我正在安装openstack horizon .
当我检查 git hub 上的文档时,他们提到
运行的 OpenStack 服务的最低要求包括以下内容:
- Nova(计算、API、调度程序、网络和卷服务)
- 概览
- 梯形校正
但是我的nova、keystone 和glance 服务正在其他机器上运行。
例如: Horizon 在 192.168.1.1 上运行,keystone、nova 和 Glace 在 192.168.1.2 上运行。
[root@localhost ~]# keystone service-list
+----------------------------------+----------+----------+---------------------------+
| id | name | type | description |
+----------------------------------+----------+----------+---------------------------+
| 5cb184a0a6be458e9ae6319d3f592d22 | keystone | identity | Keystone Identity Service |
| 759d0f09bdcc4537bb981de9889b778d | quantum | network | Network Service |
| 8c3b1ab783fa492ba7d004ec38af7a49 | nova | compute | Nova Compute Service |
| c5ca826057a8483bb68aba8dd81b5126 | glance | image | Glance Image Service |
| fd35e426172146008a1b20dd7b2b5f6d | cinder | volume | Cinder Service |
+----------------------------------+----------+----------+---------------------------+
[root@localhost ~]# keystone endpoint-list
+----------------------------------+--------+---------------------------------------------+------------------------------------------+------------------------------------------+----------------------------------+
| id | region | publicurl | internalurl | adminurl | service_id |
+----------------------------------+--------+---------------------------------------------+------------------------------------------+------------------------------------------+----------------------------------+
| 12e0810eb2774f8cb437afcdd903c431 | test | http://*.*.*.*:9292/v1 | http://127.0.0.1:9292/v1 | http://127.0.0.1:9292/v1 | c5ca826057a8483bb68aba8dd81b5126 |
| 13e767828adc4add92cec572d220508d | test | http://*.*.*.*:8774/v1.1/% (tenant_id)s | http://127.0.0.1:8774/v1.1/%(tenant_id)s | http://127.0.0.1:8774/v1.1/%(tenant_id)s | 8c3b1ab783fa492ba7d004ec38af7a49 |
| 18b1360d5d0e4d1cbfd4a5076c56d30b | test | http://*.*.*.*:8776/v1/%(tenant_id)s | http://127.0.0.1:8776/v1/%(tenant_id)s | http://127.0.0.1:8776/v1/%(tenant_id)s | fd35e426172146008a1b20dd7b2b5f6d |
| 244a4f0323f94017a9de913090811523 | test | http://*.*.*.*:5000/v2.0 | http://127.0.0.1:5000/v2.0 | http://*.*.*.*:35357/v2.0 | 5cb184a0a6be458e9ae6319d3f592d22 |
| f98ebb649df54e71a91851cb101af3d6 | test | http://*.*.*.*:9696/ | http://127.0.0.1:9696/ | http://127.0.0.1:9696/ | 759d0f09bdcc4537bb981de9889b778d |
+----------------------------------+--------+---------------------------------------------+------------------------------------------+------------------------------------------+----------------------------------+
我必须在 settings.py
中设置哪个变量才能指向该网址?
我尝试了OPENSTACK_KEYSTONE_URL
,但没有成功:(。
最佳答案
没有“NOVA_URL”设置。所有服务(nova、swift、glance 等)端点均由 Keystone 提供。 settings.py 中仅需要 OPENSTACK_KEYSTONE_URL。
来自文档:
Keystone also acts as a service catalog to let other OpenStack systems know where relevant API endpoints exist for OpenStack Services. The OpenStack Dashboard, in particular, uses the service catalog heavily and this must be configured for the OpenStack Dashboard to properly function.
您必须首先在 keystone 中定义所有服务: http://docs.openstack.org/developer/keystone/configuringservices.html
干杯
关于python - 我必须在 settings.py 中设置哪个变量才能重定向 nova 服务 url?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15431346/