用 openstack 构建私有云,端口差异。keysonte service 应该监听5000端口,实际却监听8000端口 执行root@host:/etc/nova# sudo lsof -i -P | grep keystone apache2 1233 keystone 19u IPv4 154899 0t0 TCP host:46042->host:3306 (ESTABLISHED) apache2 1234 keystone 19u IPv4 200641 0t0 TCP host:37238->host:3306 (ESTABLISHED) apache2 1235 keystone 19u IPv4 82943 0t0 TCP host:37714->host:3306 (ESTABLISHED) apache2 1236 keystone 19u IPv4 83981 0t0 TCP host:37776->host:3306 (ESTABLISHED) apache2 1237 keystone 19u IPv4 147722 0t0 TCP host:53242->host:3306 (ESTABLISHED) keystone- 9102 keystone 4u IPv4 128019 0t0 TCP *:8000 (LISTEN) root@host:/etc/nova# 。。 执行root@host:/etc/nova# openstack endpoint list +----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------------+ | ID | Region | Service Name | Service Type | Enabled | Interface | URL | +----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------------+ | 1724592cd5a444d7af879e6076ed5748 | RegionOne | glance | image | True | admin | http://192.168.145.142:9292 | | 4ac9941d30ec4840af5aad62b73f0a8c | RegionOne | keystone | identity | True | public | http://192.168.145.142:5000/v3/ | | 4e27ac61a20c406db166e4aea7f79544 | RegionOne | glance | image | True | internal | http://192.168.145.142:9292 | | 50795a1892c940f88f004e962dfc99b4 | RegionOne | placement | placement | True | internal | http://192.168.145.142:8778 | | 60dc768fbe0e46e5a0ef4686dc946b99 | RegionOne | glance | image | True | public | http://192.168.145.142:9292 | | 6296a19ea15e4d9f8cdb463fe09eb89d | RegionOne | keystone | identity | True | internal | http://192.168.145.142:5000/v3/ | | 7a3b8f41068546d689901fd9af3c8d68 | RegionOne | placement | placement | True | public | http://192.168.145.142:8778 | | 7a5e828baba74e5c82327b1a049ebed1 | RegionOne | nova | compute | True | admin | http://192.168.145.142:8774/v2.1/ | | 8cbf704c96aa4f31a62128b57d5cd497 | RegionOne | placement | placement | True | admin | http://192.168.145.142:8778 | | cc210bb042df478ea4a0839c9a14ed60 | RegionOne | nova | compute | True | public | http://192.168.145.142:8774/v2.1/ | | cd0a28235de2450b8d579106eb1f4878 | RegionOne | keystone | identity | True | admin | http://192.168.145.142:5000/v3/ | | d6b80282d39f43a1b3d8d4f354ec5192 | RegionOne | nova | compute | True | internal | http://192.168.145.142:8774/v2.1/ | 。。RC 有 export OS_USERNAME=nova export OS_PASSWORD=openstack export OS_PROJECT_NAME=service export OS_USER_DOMAIN_NAME=Default export OS_PROJECT_DOMAIN_NAME=Default export OS_AUTH_URL=http://192.168.145.142:5000/v3/ 。nova.conf中设置[keystone_authtoken] www_authenticate_uri = http://192.168.145.142:5000/v3/ auth_url = http://192.168.145.142:5000/v3/
理解问题用 openstack 构建私有云,端口差异。keysonte service 应该监听5000端口,实际却监听8000端口 执行root@host:/etc/nova# sudo lsof -i -P | grep keystone apache2 1233 keystone 19u IPv4 154899 0t0 TCP host:46042->host:3306 (ESTABLISHED) apache2 1234 keystone 19u IPv4 200641 0t0 TCP host:37238->host:3306 (ESTABLISHED) apache2 1235 keystone 19u IPv4 82943 0t0 TCP host:37714->host:3306 (ESTABLISHED) apache2 1236 keystone 19u IPv4 83981 0t0 TCP host:37776->host:3306 (ESTABLISHED) apache2 1237 keystone 19u IPv4 147722 0t0 TCP host:53242->host:3306 (ESTABLISHED) keystone- 9102 keystone 4u IPv4 128019 0t0 TCP *:8000 (LISTEN) root@host:/etc/nova# 。。 执行root@host:/etc/nova# openstack endpoint list +----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------------+ | ID | Region | Service Name | Service Type | Enabled | Interface | URL | +----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------------+ | 1724592cd5a444d7af879e6076ed5748 | RegionOne | glance | image | True | admin | http://192.168.145.142:9292 | | 4ac9941d30ec4840af5aad62b73f0a8c | RegionOne | keystone | identity | True | public | http://192.168.145.142:5000/v3/ | | 4e27ac61a20c406db166e4aea7f79544 | RegionOne | glance | image | True | internal | http://192.168.145.142:9292 | | 50795a1892c940f88f004e962dfc99b4 | RegionOne | placement | placement | True | internal | http://192.168.145.142:8778 | | 60dc768fbe0e46e5a0ef4686dc946b99 | RegionOne | glance | image | True | public | http://192.168.145.142:9292 | | 6296a19ea15e4d9f8cdb463fe09eb89d | RegionOne | keystone | identity | True | internal | http://192.168.145.142:5000/v3/ | | 7a3b8f41068546d689901fd9af3c8d68 | RegionOne | placement | placement | True | public | http://192.168.145.142:8778 | | 7a5e828baba74e5c82327b1a049ebed1 | RegionOne | nova | compute | True | admin | http://192.168.145.142:8774/v2.1/ | | 8cbf704c96aa4f31a62128b57d5cd497 | RegionOne | placement | placement | True | admin | http://192.168.145.142:8778 | | cc210bb042df478ea4a0839c9a14ed60 | RegionOne | nova | compute | True | public | http://192.168.145.142:8774/v2.1/ | | cd0a28235de2450b8d579106eb1f4878 | RegionOne | keystone | identity | True | admin | http://192.168.145.142:5000/v3/ | | d6b80282d39f43a1b3d8d4f354ec5192 | RegionOne | nova | compute | True | internal | http://192.168.145.142:8774/v2.1/ | 。。RC 有 export OS_USERNAME=nova export OS_PASSWORD=openstack export OS_PROJECT_NAME=service export OS_USER_DOMAIN_NAME=Default export OS_PROJECT_DOMAIN_NAME=Default export OS_AUTH_URL=http://192.168.145.142:5000/v3/ 。nova.conf中设置[keystone_authtoken] www_authenticate_uri = http://192.168.145.142:5000/v3/ auth_url = http://192.168.145.142:5000/v3/
已完成理解「用 openstack 构建私有云,端口差异。keysonte service 应该监听5000端口,实际却监听8000端口 执行root@host:/etc/nova# sudo lsof -i -P | grep keystone apache2 1233 keystone 19u IPv4 154899 0t0 TCP host:46042->host:3306 (ESTABLISHED) apache2 1234 keystone 19u IPv4 200641 0t0 TCP host:37238->host:3306 (ESTABLISHED) apache2 1235 keystone 19u IPv4 82943 0t0 TCP host:37714->host:3306 (ESTABLISHED) apache2 1236 keystone 19u IPv4 83981 0t0 TCP host:37776->host:3306 (ESTABLISHED) apache2 1237 keystone 19u IPv4 147722 0t0 TCP host:53242->host:3306 (ESTABLISHED) keystone- 9102 keystone 4u IPv4 128019 0t0 TCP *:8000 (LISTEN) root@host:/etc/nova# 。。 执行root@host:/etc/nova# openstack endpoint list +----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------------+ | ID | Region | Service Name | Service Type | Enabled | Interface | URL | +----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------------+ | 1724592cd5a444d7af879e6076ed5748 | RegionOne | glance | image | True | admin | http://192.168.145.142:9292 | | 4ac9941d30ec4840af5aad62b73f0a8c | RegionOne | keystone | identity | True | public | http://192.168.145.142:5000/v3/ | | 4e27ac61a20c406db166e4aea7f79544 | RegionOne | glance | image | True | internal | http://192.168.145.142:9292 | | 50795a1892c940f88f004e962dfc99b4 | RegionOne | placement | placement | True | internal | http://192.168.145.142:8778 | | 60dc768fbe0e46e5a0ef4686dc946b99 | RegionOne | glance | image | True | public | http://192.168.145.142:9292 | | 6296a19ea15e4d9f8cdb463fe09eb89d | RegionOne | keystone | identity | True | internal | http://192.168.145.142:5000/v3/ | | 7a3b8f41068546d689901fd9af3c8d68 | RegionOne | placement | placement | True | public | http://192.168.145.142:8778 | | 7a5e828baba74e5c82327b1a049ebed1 | RegionOne | nova | compute | True | admin | http://192.168.145.142:8774/v2.1/ | | 8cbf704c96aa4f31a62128b57d5cd497 | RegionOne | placement | placement | True | admin | http://192.168.145.142:8778 | | cc210bb042df478ea4a0839c9a14ed60 | RegionOne | nova | compute | True | public | http://192.168.145.142:8774/v2.1/ | | cd0a28235de2450b8d579106eb1f4878 | RegionOne | keystone | identity | True | admin | http://192.168.145.142:5000/v3/ | | d6b80282d39f43a1b3d8d4f354ec5192 | RegionOne | nova | compute | True | internal | http://192.168.145.142:8774/v2.1/ | 。。RC 有 export OS_USERNAME=nova export OS_PASSWORD=openstack export OS_PROJECT_NAME=service export OS_USER_DOMAIN_NAME=Default export OS_PROJECT_DOMAIN_NAME=Default export OS_AUTH_URL=http://192.168.145.142:5000/v3/ 。nova.conf中设置[keystone_authtoken] www_authenticate_uri = http://192.168.145.142:5000/v3/ auth_url = http://192.168.145.142:5000/v3/」
展开阅读网页