Bootstrap

Openstack 创建实例是提示无可用域

### 一开始还是可以创建的,突然出现这个问题

###在控制节点查询nova 的服务状态是不可用的,提示

openstack nova disabled  Auto-disabled due to 10 build failures

[root@controller11 ~]# nova service-list
+--------------------------------------+------------------+--------------+----------+----------+-------+----------------------------+----------------------------------------+-------------+
| Id                                   | Binary           | Host         | Zone     | Status   | State | Updated_at                 | Disabled Reason                        | Forced down |
+--------------------------------------+------------------+--------------+----------+----------+-------+----------------------------+----------------------------------------+-------------+
| b566c47b-4173-458d-a79d-8013faf4c6d2 | nova-consoleauth | controller11 | internal | enabled  | up    | 2018-04-10T11:09:22.000000 | -                                      | False       |
| e104dce7-0b75-4c9a-b0df-8f45821de6de | nova-conductor   | controller11 | internal | enabled  | up    | 2018-04-10T11:09:23.000000 | -                                      | False       |
| 2a1af747-f7dd-4571-bd71-737ed8eda2fe | nova-scheduler   | controller11 | internal | enabled  | up    | 2018-04-10T11:09:21.000000 | -                                      | False       |
| 9e88ec1c-89c7-4900-95a7-33e25af24816 | nova-consoleauth | controller12 | internal | enabled  | up    | 2018-04-10T11:09:19.000000 | -                                      | False       |
| 89f985d3-c08f-4c6b-953b-41899dbaf71c | nova-scheduler   | controller12 | internal | enabled  | up    | 2018-04-10T11:09:21.000000 | -                                      | False       |
| 78195dd1-3a00-4640-ac39-d7734badec9f | nova-conductor   | controller12 | internal | enabled  | up    | 2018-04-10T11:09:20.000000 | -                                      | False       |
| 8897bca7-2aa3-463e-8433-29462d135138 | nova-consoleauth | controller13 | internal | enabled  | up    | 2018-04-10T11:09:18.000000 | -                                      | False       |
| a360bb26-a919-448d-923e-277b5b2369ad | nova-scheduler   | controller13 | internal | enabled  | up    | 2018-04-10T11:09:23.000000 | -                                      | False       |
| 4e33a66b-731b-4e88-be33-188517ccf5fd | nova-conductor   | controller13 | internal | enabled  | up    | 2018-04-10T11:09:22.000000 | -                                      | False       |
| 883ed54e-8837-4d12-b201-c3c9127918d2 | nova-compute     | compute14    | nova     | disabled | up    | 2018-04-10T11:09:18.000000 | Auto-disabled due to 10 build failures | False       |
+--------------------------------------+------------------+--------------+----------+----------+-------+----------------------------+----------------------------------------+-------------+

### 状态时 disabled 但是查看该计算节点的服务状态是Running 的

###查看nova 的命令

[root@controller12 nova]# nova  service-enable 883ed54e-8837-4d12-b201-c3c9127918d2

+--------------------------------------+-----------+--------------+---------+
| ID                                   | Host      | Binary       | Status  |
+--------------------------------------+-----------+--------------+---------+
| 883ed54e-8837-4d12-b201-c3c9127918d2 | compute14 | nova-compute | enabled |
+--------------------------------------+-----------+--------------+---------+

### 再次查看 服务enable

[root@controller12 nova]# nova service-list
+--------------------------------------+------------------+--------------+----------+---------+-------+----------------------------+-----------------+-------------+
| Id                                   | Binary           | Host         | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |
+--------------------------------------+------------------+--------------+----------+---------+-------+----------------------------+-----------------+-------------+
| b566c47b-4173-458d-a79d-8013faf4c6d2 | nova-consoleauth | controller11 | internal | enabled | up    | 2018-04-10T11:15:13.000000 | -               | False       |
| e104dce7-0b75-4c9a-b0df-8f45821de6de | nova-conductor   | controller11 | internal | enabled | up    | 2018-04-10T11:15:13.000000 | -               | False       |
| 2a1af747-f7dd-4571-bd71-737ed8eda2fe | nova-scheduler   | controller11 | internal | enabled | up    | 2018-04-10T11:15:21.000000 | -               | False       |
| 9e88ec1c-89c7-4900-95a7-33e25af24816 | nova-consoleauth | controller12 | internal | enabled | up    | 2018-04-10T11:15:19.000000 | -               | False       |
| 89f985d3-c08f-4c6b-953b-41899dbaf71c | nova-scheduler   | controller12 | internal | enabled | up    | 2018-04-10T11:15:21.000000 | -               | False       |
| 78195dd1-3a00-4640-ac39-d7734badec9f | nova-conductor   | controller12 | internal | enabled | up    | 2018-04-10T11:15:20.000000 | -               | False       |
| 8897bca7-2aa3-463e-8433-29462d135138 | nova-consoleauth | controller13 | internal | enabled | up    | 2018-04-10T11:15:19.000000 | -               | False       |
| a360bb26-a919-448d-923e-277b5b2369ad | nova-scheduler   | controller13 | internal | enabled | up    | 2018-04-10T11:15:13.000000 | -               | False       |
| 4e33a66b-731b-4e88-be33-188517ccf5fd | nova-conductor   | controller13 | internal | enabled | up    | 2018-04-10T11:15:12.000000 | -               | False       |
| 883ed54e-8837-4d12-b201-c3c9127918d2 | nova-compute     | compute14    | nova     | enabled | up    | 2018-04-10T11:15:18.000000 | -               | False       |
+--------------------------------------+------------------+--------------+----------+---------+-------+----------------------------+-----------------+-------------+
[root@controller12 nova]# 

## 登录web 可用域可用

;