我已遵循Queens openstack安装指南(Queens Openstack Guide)来手动创建CentOS 7.4控制器和计算节点(基于QEMU),完成后我可以启动cirros测试VM了。 ,然后访问提供给我的noVNC URL,它将我带到可以在其中进行入侵的VM。
然后,我在Hyper-V物理盒子上安装了Cloudbase给出的Hyper-V计算驱动程序(Queens版本),并按照说明进行了安装。完成后,我可以运行openstack service compute
来查看Hyper-V是否已连接并可以与控制器对话。但是,一旦我通过Glance上传了VHDX图像并尝试openstack server create
,就会收到错误消息(在nova-conductor.log
中):
[root@controller neutron]# openstack compute service list
+----+------------------+-----------------+----------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+------------------+-----------------+----------+---------+-------+----------------------------+
| 1 | nova-scheduler | controller | internal | enabled | up | 2019-01-25T21:21:18.000000 |
| 2 | nova-consoleauth | controller | internal | enabled | up | 2019-01-25T21:21:20.000000 |
| 3 | nova-conductor | controller | internal | enabled | up | 2019-01-25T21:21:26.000000 |
| 6 | nova-compute | compute | nova | enabled | up | 2019-01-25T21:21:18.000000 |
| 7 | nova-compute | hypervhost | nova | enabled | up | 2019-01-25T21:21:22.000000 |
+----+------------------+-----------------+----------+---------+-------+----------------------------+
ERROR nova.scheduler.utils [req-38edcaee... 989c4... 899c1... - default default] [instance: 7b12bad5...] Error from last host: 16448-d2enghprv (node 16448-d2enghprv): [u'Traceback (most recent call last):\n', u' File "C:\\Program Files\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova\\compute\\manager.py", line 1840, in _do_build_and_run_instance\n filter_properties, request_spec)\n', u' File "C:\\Program Files\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova\\compute\\manager.py", line 2108, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 7b12bad5... was re-scheduled: Binding failed for port 2cae88c3-2096-4733-99a2-d0fd845fda96, please check neutron logs for more information.\n']
WARNING nova.scheduler.utils [req-38edcaee... 989c4... 899c1... - default default] Failed to compute_task_build_instances: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 7b12bad5....: MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 7b12bad5....
WARNING nova.scheduler.utils [req-38edcaee... 989c4... 899c1... - default default] [instance: 7b12bad5...] Setting instance to ERROR state.: MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 7b12bad5....
ERROR nova.conductor.manager [req-38edcaee... 989c4... 899c1... - default default] [instance: 7b12bad5...] Failed to deallocate networks: Unauthorized: Unknown auth type: None
ERROR nova.conductor.manager [instance: 7b12bad5...] Traceback (most recent call last):
ERROR nova.conductor.manager [instance: 7b12bad5...] File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 369, in _cleanup_allocated_networks
ERROR nova.conductor.manager [instance: 7b12bad5...] context, instance, requested_networks=requested_networks)
ERROR nova.conductor.manager [instance: 7b12bad5...] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1270, in deallocate_for_instance
ERROR nova.conductor.manager [instance: 7b12bad5...] self._unbind_ports(context, ports_to_skip, neutron)
ERROR nova.conductor.manager [instance: 7b12bad5...] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 527, in _unbind_ports
ERROR nova.conductor.manager [instance: 7b12bad5...] port_client = get_client(context, admin=True)
ERROR nova.conductor.manager [instance: 7b12bad5...] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 153, in get_client
ERROR nova.conductor.manager [instance: 7b12bad5...] _ADMIN_AUTH = _load_auth_plugin(CONF)
ERROR nova.conductor.manager [instance: 7b12bad5...] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 76, in _load_auth_plugin
ERROR nova.conductor.manager [instance: 7b12bad5...] raise neutron_client_exc.Unauthorized(message=err_msg)
ERROR nova.conductor.manager [instance: 7b12bad5...] Unauthorized: Unknown auth type: None
ERROR nova.conductor.manager [instance: 7b12bad5...]
这将我指向中子(server.log
),我看到了:
INFO neutron.plugins.ml2.plugin [req-8a0b7226... c7b00... 70804... - default default] Attempt 9 to bind port 2cae88c3...
ERROR neutron.plugins.ml2.managers [req-8a0b7226... c7b00... 70804... - default default] Failed to bind port 2cae88c3... on host hypervhost for vnic_type normal using segments [{'network_id': '71b08bf7...', 'segmentation_id': None, 'physical_network': u'provider', 'id': 'f7b2368f...', 'network_type': u'flat'}]
INFO neutron.plugins.ml2.plugin [req-8a0b7226... c7b00... 70804... - default default] Attempt 10 to bind port 2cae88c3...
ERROR neutron.plugins.ml2.managers [req-8a0b7226... c7b00... 70804... - default default] Failed to bind port 2cae88c3... on host hypervhost for vnic_type normal using segments [{'network_id': '71b08bf7...', 'segmentation_id': None, 'physical_network': u'provider', 'id': 'f7b2368f...', 'network_type': u'flat'}]
在Horizon中,我得到了:
以下是Hyper-V上的nova.conf
:
[DEFAULT]
compute_driver=compute_hyperv.driver.HyperVDriver
instances_path=C:\OpenStack\Instances
use_cow_images=true
force_config_drive=false
flat_injected=true
mkisofs_cmd=C:\Program Files\Cloudbase Solutions\OpenStack\Nova\bin\mkisofs.exe
allow_resize_to_same_host=true
running_deleted_instance_poll_interval=120
resize_confirm_window=5
resume_guests_state_on_host_boot=true
transport_url=rabbit://openstack:pass@controller
rpc_response_timeout=1800
lock_path=C:\OpenStack\Log\
vif_plugging_is_fatal=false
vif_plugging_timeout=60
block_device_allocate_retries=600
log_dir=C:\OpenStack\Log\
log_file=nova-compute.log
[placement]
auth_strategy=keystone
auth_type=password
auth_url=http://controller:5000/v3
project_name=service
username=placement
password=pass
project_domain_name=Default
user_domain_name=Default
os_region_name=RegionOne
[notifications]
[glance]
api_servers=http://controller:9292
[hyperv]
limit_cpu_features=false
config_drive_inject_password=false
qemu_img_cmd=C:\Program Files\Cloudbase Solutions\OpenStack\Nova\bin\qemu-img.exe
config_drive_cdrom=true
dynamic_memory_ratio=1
enable_instance_metrics_collection=false
[os_win]
cache_temporary_wmi_objects=false
[rdp]
enabled=true
html5_proxy_base_url=http://rdpconsolehost:8000/
[neutron]
url=http://controller:9696
auth_strategy=keystone
project_name=service
username=neutron
password=pass
auth_url=http://controller:35357
project_domain_name=Default
user_domain_name=Default
os_region_name=RegionOne
auth_type=password
任何人看起来有什么问题吗?有人知道从这里去哪里吗?