[Openstack-operators] use lxc with openstack
宣铭艺
xuanmingyi at gmail.com
Mon Oct 15 06:48:12 UTC 2012
I have installed openstack with devstack.It can run now.
Then I want to change the hypervisor to lxc.
I replace /etc/nova/nova.conf
>libvirt_type=lxc
add a line in /etc/nova/nova.conf
connection_type=libvirt
then "apt-get install nova-compute-lxc"
"""
Configuration file `/etc/nova/api-paste.ini'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** api-paste.ini (Y/I/N/O/D/Z) [default=N] ? d
Configuration file `/etc/nova/api-paste.ini'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** api-paste.ini (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/nova/api-paste.ini ...
Configuration file `/etc/nova/policy.json'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** policy.json (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/nova/policy.json ...
Configuration file `/etc/nova/nova.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** nova.conf (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/nova/nova.conf ...
"""
but error:
Not creating home directory `/var/lib/nova'.
usermod: no changes
Traceback (most recent call last):
File "/usr/local/bin/nova-manage", line 7, in <module>
execfile(__file__)
File "/opt/stack/nova/bin/nova-manage", line 1336, in <module>
main()
File "/opt/stack/nova/bin/nova-manage", line 1243, in main
argv = flags.parse_args(sys.argv)
File "/opt/stack/nova/nova/flags.py", line 43, in parse_args
default_config_files=default_config_files)
File "/opt/stack/nova/nova/openstack/common/cfg.py", line 1026, in
__call__
self._parse_config_files()
File "/opt/stack/nova/nova/openstack/common/cfg.py", line 1492, in
_parse_config_files
raise ConfigFileParseError(pe.filename, str(pe))
nova.openstack.common.cfg.ConfigFileParseError: Failed to parse
/etc/nova/nova.conf: at /etc/nova/nova.conf:2, Section must be started
before assignment: None
No apport report written because the error message indicates its a followup
error from a previous failure.
No apport report written because the error message indicates its a followup
error from a previous failure.
Errors were encountered while
processing:
nova-common
nova-compute
nova-compute-lxc
what can I do now?
system:ubuntu 12.04 x64
--
樱宝宝: http://www.xuanmingyi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20121015/7b647e14/attachment.html>
More information about the OpenStack-operators
mailing list