高手进,关于OpenStack nova问题。麻烦大了,求救!
小的今天在试用OpenStack搭建云,出现了问题。看下面:我使用 sudo nova-manage service list 也是报下面的错误。求救!!!
root@opens:/etc/nova# sudo nova-manage db sync
Traceback (most recent call last):
File "/usr/bin/nova-manage", line 1404, in <module>
main()
File "/usr/bin/nova-manage", line 1311, in main
argv = flags.parse_args(sys.argv)
File "/usr/lib/python2.7/dist-packages/nova/flags.py", line 43, in parse_args
default_config_files=default_config_files)
File "/usr/lib/python2.7/dist-packages/nova/openstack/common/cfg.py", line 1026, in __call__
self._parse_config_files()
File "/usr/lib/python2.7/dist-packages/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
问题何在呢,附上nova.conf,如下:
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/run/lock/nova
--allow_admin_api=true
--use_deprecated_auth=false
--auth_strategy=keystone
--scheduler_driver=nova.scheduler.易做图.SimpleScheduler
--s3_host=192.168.1.233
--ec2_host=192.168.1.233
--rabbit_host=192.168.1.233
--cc_host=192.168.1.233
--nova_url=http://192.168.1.233:8774/v1.1/
--routing_source_ip=192.168.1.233
--glance_api_servers=192.168.1.233:9292
--image_service=nova.image.glance.GlanceImageService
--iscsi_ip_prefix=192.168.4
--sql_connection=mysql://novadbadmin:novasecret@192.168.1.233/nova
--ec2_url=http://192.168.1.233:8773/services/Cloud
--keystone_ec2_url=http://192.168.1.233:5000/v2.0/ec2tokens
--api_paste_config=/etc/nova/api-paste.ini
--libvirt_type=kvm
--libvirt_use_virtio_for_bridges=true
--start_guests_on_host_boot=true
--resume_guests_state_on_host_boot=true
# vnc specific configuration
--novnc_enabled=true
--novncproxy_base_url=http://192.168.1.233:60
--vncserver_proxyclient_address=192.168.1.233
--vncserver_listen=192.168.1.233
# network specific settings
--network_manager=nova.network.manager.FlatDHCPManager
--public_inte易做图ce=eth0
--flat_inte易做图ce=eth1
--flat_network_bridge=br100
--fixed_range=192.168.4.1/27
--floating_range=192.168.1.233/27
--network_size=32
--flat_network_dhcp_start=192.168.4.33
--flat_injected=False
--force_dhcp_release
--iscsi_helper=tgtadm
--connection_type=libvirt
--root_helper=sudo nova-rootwrap
--verbose
请大神帮忙!!!!
nova OpenStack --------------------编程问答-------------------- 这个应该是你nova.conf粘贴错了, 缺少了[default] section, --------------------编程问答-------------------- 除 --------------------编程问答-------------------- 楼上正解
补充:云计算 , OpenStack