验证nova是否安装正确
1、source admin-openrc.sh脚本,设置全局变量
$ source admin-openrc.sh
2、显示nova的服务组建,查看相关服务
$nova service-list +----+------------------+-----------+----------+---------+-------+----------------------------+-----------------+ | Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +----+------------------+-----------+----------+---------+-------+----------------------------+-----------------+ | 1 | nova-cert | emulation | internal | enabled | up | 2015-10-20T02:51:17.000000 | - | | 2 | nova-scheduler | emulation | internal | enabled | up | 2015-10-20T02:51:17.000000 | - | | 3 | nova-conductor | emulation | internal | enabled | up | 2015-10-20T02:51:17.000000 | - | | 4 | nova-network | emulation | internal | enabled | up | 2015-10-20T02:51:17.000000 | - | | 5 | nova-compute | node1 | nova | enabled | up | 2015-10-20T02:51:13.000000 | - | | 6 | nova-consoleauth | emulation | internal | enabled | up | 2015-10-20T02:51:08.000000 | - | +----+------------------+-----------+----------+---------+-------+----------------------------+-----------------+
3、查看api端点,验证与认证服务的连通性
$nova endpoints 192.168.99.108 "GET /v2.1/ HTTP/1.1" status: 200 len: 652 time: 0.0281239 WARNING: keystone has no endpoint in ! Available endpoints for this service: +-----------+----------------------------------+ | keystone | Value | +-----------+----------------------------------+ | id | 0bfa372e377742e9a6cbfe7a60f070fd | | interface | internal | | region | RegionOne | | region_id | RegionOne | | url | http://controller:5000/v2.0 | +-----------+----------------------------------+ +-----------+----------------------------------+ | keystone | Value | +-----------+----------------------------------+ | id | 7599f87065c54e07b60fd271e51fa40d | | interface | public | | region | RegionOne | | region_id | RegionOne | | url | http://controller:5000/v2.0 | +-----------+----------------------------------+ +-----------+----------------------------------+ | keystone | Value | +-----------+----------------------------------+ | id | cb8228aefbb54b7997b80e573ba7f405 | | interface | admin | | region | RegionOne | | region_id | RegionOne | | url | http://controller:35357/v2.0 | +-----------+----------------------------------+ WARNING: nova has no endpoint in ! Available endpoints for this service: +-----------+--------------------------------------------------------------+ | nova | Value | +-----------+--------------------------------------------------------------+ | id | 13d7acd9843947ff9318be95377f4c0f | | interface | public | | region | RegionOne | | region_id | RegionOne | | url | http://controller:8774/v2.1/2110135bcbc64695b311ccc40c4790db | +-----------+--------------------------------------------------------------+ +-----------+--------------------------------------------------------------+ | nova | Value | +-----------+--------------------------------------------------------------+ | id | 4def46c4ae624d9d8433f87a807fa774 | | interface | internal | | region | RegionOne | | region_id | RegionOne | | url | http://controller:8774/v2.1/2110135bcbc64695b311ccc40c4790db | +-----------+--------------------------------------------------------------+ +-----------+--------------------------------------------------------------+ | nova | Value | +-----------+--------------------------------------------------------------+ | id | 9c8e3891483e4b57882c164c9c691b3d | | interface | admin | | region | RegionOne | | region_id | RegionOne | | url | http://controller:8774/v2.1/2110135bcbc64695b311ccc40c4790db | +-----------+--------------------------------------------------------------+ WARNING: glance has no endpoint in ! Available endpoints for this service: +-----------+----------------------------------+ | glance | Value | +-----------+----------------------------------+ | id | 38802011ef9b41a6a7127c79c958753a | | interface | admin | | region | RegionOne | | region_id | RegionOne | | url | http://controller:9292 | +-----------+----------------------------------+ +-----------+----------------------------------+ | glance | Value | +-----------+----------------------------------+ | id | 4edabbe364fe46ffaac53745aa968fbc | | interface | public | | region | RegionOne | | region_id | RegionOne | | url | http://controller:9292 | +-----------+----------------------------------+ +-----------+----------------------------------+ | glance | Value | +-----------+----------------------------------+ | id | e4e246e83dc04737b743944d493ffef3 | | interface | internal | | region | RegionOne | | region_id | RegionOne | | url | http://controller:9292 | +-----------+----------------------------------+
4、查看镜像,验证与glance的连通性
$nova image-list +--------------------------------------+---------------------+--------+--------+ | ID | Name | Status | Server | +--------------------------------------+---------------------+--------+--------+ | 3e09a2b0-5ca9-49e1-b4b9-4a132b83ac92 | cirros-0.3.4-x86_64 | ACTIVE | | +--------------------------------------+---------------------+--------+--------+