我正在安装openstack horizon。
当我检查git hub上的文档时,他们提到了
运行的最低OpenStack服务集包括以下内容:
但我的nova,keystone和glance服务正在其他机器上运行。
例如: Horizon运行在192.168.1.1上,keystone,nova和glance在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
但没有工作:(。
答案 0 :(得分:3)
没有“NOVA_URL”设置。所有服务(nova,swift,glance等)端点均由Keystone提供。 settings.py。中只需要OPENSTACK_KEYSTONE_URL。
来自doc:
Keystone还充当服务目录以允许其他OpenStack系统 知道OpenStack服务存在相关API端点的位置。该 特别是OpenStack Dashboard大量使用服务目录,这必须是 配置为OpenStack仪表板正常运行。
您必须先在keystone中定义所有服务: http://docs.openstack.org/developer/keystone/configuringservices.html
干杯
答案 1 :(得分:0)
要配置地平线以访问其他主机的数据,您可以在OPENSTACK_HOST
openstack_dashboard/local/local_settings.py
此常量的默认值为
OPENSTACK_HOST = "127.0.0.1"
如果您想从192.168.1.2
获取数据,请将其更改为
OPENSTACK_HOST = "192.168.1.2"
并重新启动地平线,它将从其他主机返回数据。