1,RDO 安装
1
2
3
4
|
sudo yum update -y
sudo yum install -y https:
//www.rdoproject.org/repos/rdo-release.rpm
sudo yum install -y openstack-packstack
packstack --allinone
|
2,遇到问题及解决办法
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Applying
192.168
.
103.29
_api_nova.pp
192.168
.
103.29
_api_nova.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error appeared during Puppet run:
192.168
.
103.29
_api_nova.pp
Error: Could not start Service[nova-api]: Execution of
'/usr/bin/systemctl start openstack-nova-api'
returned
1:
Job for openstack-nova-api.service failed. See
'systemctl status openstack-nova-api.service'
and
'journalctl -xn'
for details.
You will find full trace in log /var/tmp/packstack/
20151111
-214219
-emaUkm/manifests/
192.168
.
103.29
_api_nova.pp.log
Please check log file /var/tmp/packstack/
20151111
-214219
-emaUkm/openstack-setup.log for more information
Additional information:
* A new answerfile was created in: /root/packstack-answers
-20151111
-214220
.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host
192.168
.
103.29
. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://
192.168
.
103.29
/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse to http://
192.168
.
103.29
/nagios username: nagiosadmin, password: e
940
d
92875
d
848
ae
[root@athCloudLibry
10329
~]# packstack --allinone
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/
20151111
-221325
-G
3
t
0
Kh/openstack-setup.log
|
解决办法:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
vim
/
usr
/
lib
/
python2.
7
/
site
-
packages
/
packstack
/
modules
/
puppet.py
68
def
validate_logfile(logpath):
69
"""
70 Check given Puppet log file for errors and raise PuppetError if there is
71 any error
72 """
73
manifestpath
=
os.path.splitext(logpath)[
0
]
74
manifestfile
=
os.path.basename(manifestpath)
75
with
open
(logpath) as logfile:
76
for
line
in
logfile:
77
line
=
line.strip()
78
79
if
re_error.search(line)
is
None
:
80
continue
81
error
=
re_color.sub('', line)
# remove colors
82
if
re_ignore.search(line):
83
msg
=
(
'Ignoring expected error during Puppet run %s: %s'
%
84
(manifestfile, error))
85
logger.debug(msg)
86
continue
87
for
regex, surrogate
in
surrogates:
88
match
=
re.search(regex, error)
89
if
match
is
None
:
90
continue
91
args
=
{}
92
num
=
1
93
while
True
:
94
try
:
95
args[
'arg%d'
%
num]
=
match.group(num)
96
num
+
=
1
97
except
IndexError:
98
break
99
error
=
surrogate
%
args
100
101
#Add, william
102
#message = ('Error appeared during Puppet run: %s\n%s\n'
103
# 'You will find full trace in log %s' %
104
# (manifestfile, error, logpath))
|
解决问题:
1
2
3
4
5
6
7
8
9
10
11
12
13
|
*
*
*
*
Installation completed successfully
*
*
*
*
*
*
Additional information:
*
Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem
for
some OpenStack components.
*
File
/
root
/
keystonerc_admin has been created on OpenStack client host
192.168
.
103.29
. To use the command line tools you need to source the
file
.
*
To access the OpenStack Dashboard browse to http:
/
/
192.168
.
103.29
/
dashboard .
Please, find your login credentials stored
in
the keystonerc_admin
in
your home directory.
*
To use Nagios, browse to http:
/
/
192.168
.
103.29
/
nagios username: nagiosadmin, password: e940d92875d848ae
*
Because of the kernel update the host
192.168
.
103.29
requires reboot.
*
The installation log
file
is
available at:
/
var
/
tmp
/
packstack
/
20151111
-
222425
-
E5F0Jm
/
openstack
-
setup.log
*
The generated manifests are available at:
/
var
/
tmp
/
packstack
/
20151111
-
222425
-
E5F0Jm
/
manifests
[root@athCloudLibry10329 ~]
# vim /usr/lib/python2.7/site-packages/packstack/installer/setup_controller.py
[root@athCloudLibry10329 ~]
# vim /usr/lib/python2.7/site-packages/packstack/modules/puppet.py
|
本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1711970