在 Openstack 中,是否可以创建没有硬盘驱动器的计算节点并使用 PXE 来启动主机系统,从而启动没有本地驱动器的实例来启动 VM 的映像。
如果不是,为了获得功能齐全的系统,需要为主机提供的最小存储空间是多少。
在 Openstack 中,是否可以创建没有硬盘驱动器的计算节点并使用 PXE 来启动主机系统,从而启动没有本地驱动器的实例来启动 VM 的映像。
如果不是,为了获得功能齐全的系统,需要为主机提供的最小存储空间是多少。
最近我正在测试具有 1 个主节点和 3 个基于 Openstack(版本:Wallaby)的工作节点的 kubernetes。它涉及大量测试,因此我想事先将卷备份到本地机器。
卷后端使用 Ceph。浏览互联网,它建议将卷转换为图像并将图像下载到本地计算机。我可以成功地将我的 20GB 卷转换为 QCOW2 格式。但是,我的 120GB 卷失败了。
我已经执行了以下检查:
(1) 我检查了/etc/glance/glance-api.conf下的glance配置。image_size_cap 参数设置为 4TB。我也重新启动了 Glance api 服务。
(2) 我使用 ceph df 命令检查了 ceph 后端,并且 ceph 有足够的容量。
(3)glance 节点也有足够的存储空间。但是,我尝试检查 /var/lib/glance/images 下的图像转换进度,但即使 Openstack 上存在图像,该目录也是空的。
有人打过同样的吗?并且可以给我一些建议..
非常感谢你。
我在以下问题上遇到了困难:“将 Openstack 控制服务(如 Neurtron/Cinder/Glance/Keystone 服务器服务(neutron-API 等)和 Nova-api 等 nova 控制服务(除了nova-compute)? 我对 Openstack Kolla 项目进行了研究,但它无法帮助我吸收其背后的想法。
任何帮助,将不胜感激。问候
我正在从http://docs.openstack.org/newton/install-guide-rdo/设置示例架构
我在启动实例章节
当我启动实例时,我在实例信息中收到以下错误消息:
Build of instance bcaa06fe-99ca-4db7-baf3-633f21b16f61 aborted: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='control
当我查看 /var/log/nova/nova-compute.log 中计算节点上的日志时,我注意到以下两条错误消息:
我该如何调试和解决这个问题?
/var/log/nova/nova-compute.log
2017-01-02 02:36:03.290 2309 ERROR nova.compute.manager [req-2224a009-1cf2-4b84-b654-05c79d688b7b cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] Instance failed network setup after 1 attempt(s)
2017-01-02 02:36:03.290 2309 ERROR nova.compute.manager ConnectFailure: Unable to establish connection to http://127.0.0.1:9696/v2.0/networks.json?id=b4fb8e4a-cbbc-43e8-9e80-4abede8e4d56: HTTPConnectionPool(host='127.0.0.1', port=9696): Max retries exceeded with url: /v2.0/networks.json?id=b4fb8e4a-cbbc-43e8-9e80-4abede8e4d56 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x6608f90>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2017-01-02 02:36:03.290 2309 ERROR nova.compute.manager
2017-01-02 02:36:03.535 2309 ERROR nova.image.glance [req-2224a009-1cf2-4b84-b654-05c79d688b7b cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] Error contacting glance server 'http://controller:9292' for 'data', done trying.
2017-01-02 02:36:03.535 2309 ERROR nova.image.glance CommunicationError: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x86fba90>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 02:36:03.535 2309 ERROR nova.image.glance
2017-01-02 02:36:03.561 2309 ERROR nova.compute.manager [req-2224a009-1cf2-4b84-b654-05c79d688b7b cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: c854d552-037c-4e84-a953-9610b6a6670d] Instance failed to spawn
2017-01-02 02:36:03.561 2309 ERROR nova.compute.manager [instance: c854d552-037c-4e84-a953-9610b6a6670d] GlanceConnectionFailed: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x86fba90>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 02:36:03.561 2309 ERROR nova.compute.manager [instance: c854d552-037c-4e84-a953-9610b6a6670d]
2017-01-02 02:36:03.678 2309 ERROR nova.compute.manager [req-2224a009-1cf2-4b84-b654-05c79d688b7b cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: c854d552-037c-4e84-a953-9610b6a6670d] Failed to deallocate network for instance. Error: Unable to establish connection to http://127.0.0.1:9696/v2.0/ports.json?device_id=c854d552-037c-4e84-a953-9610b6a6670d: HTTPConnectionPool(host='127.0.0.1', port=9696): Max retries exceeded with url: /v2.0/ports.json?device_id=c854d552-037c-4e84-a953-9610b6a6670d (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x875bed0>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2017-01-02 02:36:03.846 2309 ERROR nova.compute.manager [req-2224a009-1cf2-4b84-b654-05c79d688b7b cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: c854d552-037c-4e84-a953-9610b6a6670d] Build of instance c854d552-037c-4e84-a953-9610b6a6670d aborted: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x86fba90>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 02:36:03.846 2309 ERROR nova.compute.manager [instance: c854d552-037c-4e84-a953-9610b6a6670d] BuildAbortException: Build of instance c854d552-037c-4e84-a953-9610b6a6670d aborted: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x86fba90>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 02:36:03.846 2309 ERROR nova.compute.manager [instance: c854d552-037c-4e84-a953-9610b6a6670d]
2017-01-02 02:36:03.872 2309 ERROR nova.compute.manager [req-2224a009-1cf2-4b84-b654-05c79d688b7b cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: c854d552-037c-4e84-a953-9610b6a6670d] Failed to deallocate networks
2017-01-02 02:36:03.872 2309 ERROR nova.compute.manager [instance: c854d552-037c-4e84-a953-9610b6a6670d] ConnectFailure: Unable to establish connection to http://127.0.0.1:9696/v2.0/ports.json?device_id=c854d552-037c-4e84-a953-9610b6a6670d: HTTPConnectionPool(host='127.0.0.1', port=9696): Max retries exceeded with url: /v2.0/ports.json?device_id=c854d552-037c-4e84-a953-9610b6a6670d (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x8772d90>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2017-01-02 02:36:03.872 2309 ERROR nova.compute.manager [instance: c854d552-037c-4e84-a953-9610b6a6670d]
2017-01-02 02:48:49.652 2309 ERROR nova.compute.manager [req-dfd82484-3bfd-4bc7-92eb-029ee52bf579 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] Instance failed network setup after 1 attempt(s)
2017-01-02 02:48:49.652 2309 ERROR nova.compute.manager ConnectFailure: Unable to establish connection to http://127.0.0.1:9696/v2.0/networks.json?id=b4fb8e4a-cbbc-43e8-9e80-4abede8e4d56: HTTPConnectionPool(host='127.0.0.1', port=9696): Max retries exceeded with url: /v2.0/networks.json?id=b4fb8e4a-cbbc-43e8-9e80-4abede8e4d56 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x662f510>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2017-01-02 02:48:49.652 2309 ERROR nova.compute.manager
2017-01-02 02:48:49.807 2309 ERROR nova.image.glance [req-dfd82484-3bfd-4bc7-92eb-029ee52bf579 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] Error contacting glance server 'http://controller:9292' for 'data', done trying.
2017-01-02 02:48:49.807 2309 ERROR nova.image.glance CommunicationError: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x87dec50>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 02:48:49.807 2309 ERROR nova.image.glance
2017-01-02 02:48:49.807 2309 ERROR nova.compute.manager [req-dfd82484-3bfd-4bc7-92eb-029ee52bf579 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91] Instance failed to spawn
2017-01-02 02:48:49.807 2309 ERROR nova.compute.manager [instance: 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91] GlanceConnectionFailed: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x87dec50>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 02:48:49.807 2309 ERROR nova.compute.manager [instance: 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91]
2017-01-02 02:48:49.896 2309 ERROR nova.compute.manager [req-dfd82484-3bfd-4bc7-92eb-029ee52bf579 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91] Failed to deallocate network for instance. Error: Unable to establish connection to http://127.0.0.1:9696/v2.0/ports.json?device_id=79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91: HTTPConnectionPool(host='127.0.0.1', port=9696): Max retries exceeded with url: /v2.0/ports.json?device_id=79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x87de550>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2017-01-02 02:48:50.064 2309 ERROR nova.compute.manager [req-dfd82484-3bfd-4bc7-92eb-029ee52bf579 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91] Build of instance 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91 aborted: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x87dec50>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 02:48:50.064 2309 ERROR nova.compute.manager [instance: 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91] BuildAbortException: Build of instance 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91 aborted: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x87dec50>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 02:48:50.064 2309 ERROR nova.compute.manager [instance: 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91]
2017-01-02 02:48:50.066 2309 ERROR nova.compute.manager [req-dfd82484-3bfd-4bc7-92eb-029ee52bf579 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91] Failed to deallocate networks
2017-01-02 02:48:50.066 2309 ERROR nova.compute.manager [instance: 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91] ConnectFailure: Unable to establish connection to http://127.0.0.1:9696/v2.0/ports.json?device_id=79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91: HTTPConnectionPool(host='127.0.0.1', port=9696): Max retries exceeded with url: /v2.0/ports.json?device_id=79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x87e25d0>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2017-01-02 02:48:50.066 2309 ERROR nova.compute.manager [instance: 79a943ae-7c5f-44a9-a5c9-c7f68c6f8b91]
2017-01-02 04:46:25.063 2309 ERROR nova.compute.manager [req-3b4a7b20-fa9f-4f59-ab90-3d914395add4 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] Instance failed network setup after 1 attempt(s)
2017-01-02 04:46:25.063 2309 ERROR nova.compute.manager ConnectFailure: Unable to establish connection to http://127.0.0.1:9696/v2.0/networks.json?id=b4fb8e4a-cbbc-43e8-9e80-4abede8e4d56: HTTPConnectionPool(host='127.0.0.1', port=9696): Max retries exceeded with url: /v2.0/networks.json?id=b4fb8e4a-cbbc-43e8-9e80-4abede8e4d56 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x88a34d0>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2017-01-02 04:46:25.063 2309 ERROR nova.compute.manager
2017-01-02 04:46:25.227 2309 ERROR nova.image.glance [req-3b4a7b20-fa9f-4f59-ab90-3d914395add4 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] Error contacting glance server 'http://controller:9292' for 'data', done trying.
2017-01-02 04:46:25.227 2309 ERROR nova.image.glance CommunicationError: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x8772190>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 04:46:25.227 2309 ERROR nova.image.glance
2017-01-02 04:46:25.228 2309 ERROR nova.compute.manager [req-3b4a7b20-fa9f-4f59-ab90-3d914395add4 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: bcaa06fe-99ca-4db7-baf3-633f21b16f61] Instance failed to spawn
2017-01-02 04:46:25.228 2309 ERROR nova.compute.manager [instance: bcaa06fe-99ca-4db7-baf3-633f21b16f61] GlanceConnectionFailed: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x8772190>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 04:46:25.228 2309 ERROR nova.compute.manager [instance: bcaa06fe-99ca-4db7-baf3-633f21b16f61]
2017-01-02 04:46:25.330 2309 ERROR nova.compute.manager [req-3b4a7b20-fa9f-4f59-ab90-3d914395add4 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: bcaa06fe-99ca-4db7-baf3-633f21b16f61] Failed to deallocate network for instance. Error: Unable to establish connection to http://127.0.0.1:9696/v2.0/ports.json?device_id=bcaa06fe-99ca-4db7-baf3-633f21b16f61: HTTPConnectionPool(host='127.0.0.1', port=9696): Max retries exceeded with url: /v2.0/ports.json?device_id=bcaa06fe-99ca-4db7-baf3-633f21b16f61 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x876fc50>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2017-01-02 04:46:25.494 2309 ERROR nova.compute.manager [req-3b4a7b20-fa9f-4f59-ab90-3d914395add4 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: bcaa06fe-99ca-4db7-baf3-633f21b16f61] Build of instance bcaa06fe-99ca-4db7-baf3-633f21b16f61 aborted: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x8772190>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 04:46:25.494 2309 ERROR nova.compute.manager [instance: bcaa06fe-99ca-4db7-baf3-633f21b16f61] BuildAbortException: Build of instance bcaa06fe-99ca-4db7-baf3-633f21b16f61 aborted: Connection to glance host http://controller:9292 failed: Error finding address for http://controller:9292/v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/41dc78dd-963d-4a84-a872-35d1d3cb3f7c/file (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x8772190>: Failed to establish a new connection: [Errno 113] EHOSTUNREACH',))
2017-01-02 04:46:25.494 2309 ERROR nova.compute.manager [instance: bcaa06fe-99ca-4db7-baf3-633f21b16f61]
2017-01-02 04:46:25.496 2309 ERROR nova.compute.manager [req-3b4a7b20-fa9f-4f59-ab90-3d914395add4 cb356159afe8419593c567ed59ecf8de 9de892a2176a4744ba7bfda9ba47f62c - - -] [instance: bcaa06fe-99ca-4db7-baf3-633f21b16f61] Failed to deallocate networks
2017-01-02 04:46:25.496 2309 ERROR nova.compute.manager [instance: bcaa06fe-99ca-4db7-baf3-633f21b16f61] ConnectFailure: Unable to establish connection to http://127.0.0.1:9696/v2.0/ports.json?device_id=bcaa06fe-99ca-4db7-baf3-633f21b16f61: HTTPConnectionPool(host='127.0.0.1', port=9696): Max retries exceeded with url: /v2.0/ports.json?device_id=bcaa06fe-99ca-4db7-baf3-633f21b16f61 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x87e7650>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
2017-01-02 04:46:25.496 2309 ERROR nova.compute.manager [instance: bcaa06fe-99ca-4db7-baf3-633f21b16f61]
我按照hastexo上的指南创建了一个 OpenStack Cloud。Keystone 服务和 应该在不同的机器上运行。但是,当我想在控制台中运行 glance-api 进行调试时,我遇到了以下错误:
错误:无法从配置文件 /etc/glance/glance-api-paste.ini 加载 glance-api-keystone。Got: ImportError('No module named keystone.middleware.auth_token',)
所以 Glance API 没有运行。我正在运行 Ubuntu 12.04 LTS 和 Openstack Essex。