我正在安装openstack horizon。
当我检查git hub上的文档时,他们提到
OpenStack服务运行的最低要求包括:
- Nova(计算、api、调度、网络和卷服务)
- 梯形
但是我的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
中设置哪个变量来指向该url?
我尝试了OPENSTACK_KEYSTONE_URL
,但没有工作:(.
没有"NOVA_URL"设置。所有服务(nova、swift、glance等)的端点均由Keystone提供。在settings.py中只需要OPENSTACK_KEYSTONE_URL。
From the doc:
Keystone同时作为服务目录让其他OpenStack系统了解OpenStack服务的相关API端点在哪里。的特别是OpenStack Dashboard,大量使用服务目录,这是必须的
必须首先定义keystone中的所有服务:http://docs.openstack.org/developer/keystone/configuringservices.html
欢呼
要配置horizon从另一台主机访问数据,可以在openstack_dashboard/local/local_settings.py
中设置OPENSTACK_HOST
这个常量的默认值是
OPENSTACK_HOST = "127.0.0.1"
如果您想从192.168.1.2
获取数据,那么将其更改为
OPENSTACK_HOST = "192.168.1.2"
并重新启动地平线,它将返回来自另一个主机的数据