我已经使用 openstack-autopilot 安装了 openstack,并尝试使用“从映像启动(创建新卷)”选项启动实例,但是它给了我来自 nova-compute.log 的此错误:
2016-01-19 11:00:15.541 141391 WARNING nova.virt.libvirt.driver [req-f0274244-cf51-476d-b53c-ce77f5f1eda1 775ea332bfc647f092d57ecec9469f95 fb90a38f8340433f84b04ec4429dc9e3 - - -] [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] Ignoring supplied device name: /dev/vda. Libvirt can't honour user-supplied dev names
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [req-f0274244-cf51-476d-b53c-ce77f5f1eda1 775ea332bfc647f092d57ecec9469f95 fb90a38f8340433f84b04ec4429dc9e3 - - -] [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] Instance failed block device setup
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] Traceback (most recent call last):
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1738, in _prep_block_device
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] wait_func=self._await_block_device_map_created)
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 476, in attach_block_devices
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] map(_log_and_attach, block_device_mapping)
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 474, in _log_and_attach
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] bdm.attach(*attach_args, **attach_kwargs)
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 383, in attach
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] availability_zone=av_zone)
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] File "/usr/lib/python2.7/dist-packages/nova/volume/cinder.py", line 385, in create
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] raise exception.InvalidInput(reason=e)
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] InvalidInput: Invalid input received: Invalid input received: Availability zone 'region1-1' is invalid. (HTTP 400) (Request-ID: req-1490caf9-fae1-4f0a-86e4-835b3c30d370)
2016-01-19 11:00:17.397 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7]
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [req-f0274244-cf51-476d-b53c-ce77f5f1eda1 775ea332bfc647f092d57ecec9469f95 fb90a38f8340433f84b04ec4429dc9e3 - - -] [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] Build of instance cf84bf3e-a978-48ae-af49-5aa07abbd1b7 aborted: Block Device Mapping is Invalid.
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] Traceback (most recent call last):
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1905, in _do_build_and_run_instance
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] filter_properties)
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2025, in _build_and_run_instance
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] 'create.error', fault=e)
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] six.reraise(self.type_, self.value, self.tb)
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1996, in _build_and_run_instance
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] block_device_mapping) as resources:
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] return self.gen.next()
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2143, in _build_resources
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] reason=e.format_message())
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7] BuildAbortException: Build of instance cf84bf3e-a978-48ae-af49-5aa07abbd1b7 aborted: Block Device Mapping is Invalid.
2016-01-19 11:00:17.504 141391 ERROR nova.compute.manager [instance: cf84bf3e-a978-48ae-af49-5aa07abbd1b7]
cinder-api.log:
2016-01-19 11:00:09.912 28131 WARNING cinder.quota [req-077e678b-f676-4f5b-b24d-7d85438d1c3c - - - - -] Deprecated: Default quota for resource: backup_gigabytes is set by the default quota flag: quota_backup_gigabytes, it is now deprecated. Please use the default quota class for default quota.
2016-01-19 11:00:09.986 28131 WARNING cinder.quota [req-077e678b-f676-4f5b-b24d-7d85438d1c3c - - - - -] Deprecated: Default quota for resource: backups is set by the default quota flag: quota_backups, it is now deprecated. Please use the default quota class for default quota.
2016-01-19 11:00:17.301 28136 WARNING cinder.volume.api [req-073d486b-3b67-4cc5-b67f-729a605dcb94 - - - - -] Task 'cinder.volume.flows.api.create_volume.ExtractVolumeRequestTask;volume:create' (9957bda0-f188-42db-a275-1ce695281b78) transitioned into state 'FAILURE' from state 'RUNNING'
Failure: cinder.exception.InvalidInput: Invalid input received: Availability zone 'region1-1' is invalid.
2016-01-19 11:00:17.309 28136 WARNING cinder.volume.api [req-073d486b-3b67-4cc5-b67f-729a605dcb94 - - - - -] Task 'cinder.volume.flows.api.create_volume.ExtractVolumeRequestTask;volume:create' (9957bda0-f188-42db-a275-1ce695281b78) transitioned into state 'REVERTED' from state 'REVERTING'
2016-01-19 11:00:17.312 28136 WARNING cinder.volume.api [req-073d486b-3b67-4cc5-b67f-729a605dcb94 - - - - -] Flow 'volume_create_api' (0c1b341c-db96-4ae5-af31-e594ac31cda4) transitioned into state 'REVERTED' from state 'RUNNING'
如果我尝试在仪表板中以管理员身份运行,则会出现这些错误;如果我以项目所有者身份运行,则会在 Horizon 中收到此错误:
The requested instance cannot be launched.
Requested volume exceeds quota: Available: 0, Requested: 1.
如果我创建一个卷并附加一个图像,并从该卷创建实例,那么我就可以启动一个实例。
从日志来看,它似乎无法识别可用区域。
任何帮助都非常感谢。
答案1
我在用演示账户登录 UI 时也遇到了类似的问题。我还看到项目演示的配额没问题。但是当我将卷配额从 10 更改为 9 并保存时,我可以正常创建实例。