I have installed openstack with devstack.It can run now.<br>Then I want to change the hypervisor to lxc.<br> <br>I replace /etc/nova/nova.conf<br>>libvirt_type=lxc<br><br>add a line in /etc/nova/nova.conf<br>connection_type=libvirt<br>
<br><br>then "apt-get install nova-compute-lxc"<br><br><br>"""<br>Configuration file `/etc/nova/api-paste.ini'<br> ==> File on system created by you or by a script.<br> ==> File also in package provided by package maintainer.<br>
What would you like to do about it ? Your options are:<br> Y or I : install the package maintainer's version<br> N or O : keep your currently-installed version<br> D : show the differences between the versions<br>
Z : start a shell to examine the situation<br> The default action is to keep your current version.<br>*** api-paste.ini (Y/I/N/O/D/Z) [default=N] ? d<br><br>Configuration file `/etc/nova/api-paste.ini'<br> ==> File on system created by you or by a script.<br>
==> File also in package provided by package maintainer.<br> What would you like to do about it ? Your options are:<br> Y or I : install the package maintainer's version<br> N or O : keep your currently-installed version<br>
D : show the differences between the versions<br> Z : start a shell to examine the situation<br> The default action is to keep your current version.<br>*** api-paste.ini (Y/I/N/O/D/Z) [default=N] ? y<br>
Installing new version of config file /etc/nova/api-paste.ini ...<br><br>Configuration file `/etc/nova/policy.json'<br> ==> File on system created by you or by a script.<br> ==> File also in package provided by package maintainer.<br>
What would you like to do about it ? Your options are:<br> Y or I : install the package maintainer's version<br> N or O : keep your currently-installed version<br> D : show the differences between the versions<br>
Z : start a shell to examine the situation<br> The default action is to keep your current version.<br>*** policy.json (Y/I/N/O/D/Z) [default=N] ? y<br>Installing new version of config file /etc/nova/policy.json ...<br>
<br>Configuration file `/etc/nova/nova.conf'<br> ==> File on system created by you or by a script.<br> ==> File also in package provided by package maintainer.<br> What would you like to do about it ? Your options are:<br>
Y or I : install the package maintainer's version<br> N or O : keep your currently-installed version<br> D : show the differences between the versions<br> Z : start a shell to examine the situation<br>
The default action is to keep your current version.<br>*** nova.conf (Y/I/N/O/D/Z) [default=N] ? y<br>Installing new version of config file /etc/nova/nova.conf ...<br><br>"""<br><br><br>but error:<br><br>Not creating home directory `/var/lib/nova'.<br>
usermod: no changes<br>Traceback (most recent call last):<br> File "/usr/local/bin/nova-manage", line 7, in <module><br> execfile(__file__)<br> File "/opt/stack/nova/bin/nova-manage", line 1336, in <module><br>
main()<br> File "/opt/stack/nova/bin/nova-manage", line 1243, in main<br> argv = flags.parse_args(sys.argv)<br> File "/opt/stack/nova/nova/flags.py", line 43, in parse_args<br> default_config_files=default_config_files)<br>
File "/opt/stack/nova/nova/openstack/common/cfg.py", line 1026, in __call__<br> self._parse_config_files()<br> File "/opt/stack/nova/nova/openstack/common/cfg.py", line 1492, in _parse_config_files<br>
raise ConfigFileParseError(pe.filename, str(pe))<br>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<br><br>
<br>No apport report written because the error message indicates its a followup error from a previous failure.<br> No apport report written because the error message indicates its a followup error from a previous failure.<br>
Errors were encountered while processing:<br> nova-common<br> nova-compute<br> nova-compute-lxc<br><br><br>what can I do now?<br><br><br>system:ubuntu 12.04 x64<br clear="all">
<br>-- <br>ÓŁ±¦±¦: <a href="http://www.xuanmingyi.com" target="_blank">http://www.xuanmingyi.com</a><br><br>