09-OpenStack-queens版-控制節(jié)點(diǎn)上Nova計(jì)算服務(wù)

一鳖孤、概述
使用OpenStack計(jì)算服務(wù)來托管和管理云計(jì)算系統(tǒng)。OpenStack計(jì)算服務(wù)是基礎(chǔ)設(shè)施即服務(wù)(IaaS)系統(tǒng)的主要部分,模塊主要由Python實(shí)現(xiàn)。
OpenStack計(jì)算組件請(qǐng)求OpenStack Identity服務(wù)進(jìn)行認(rèn)證判耕;請(qǐng)求OpenStack Image服務(wù)提供磁盤鏡像;為OpenStack dashboard提供用戶與管理員接口翘骂。磁盤鏡像訪問限制在項(xiàng)目與用戶上壁熄;配額以每個(gè)項(xiàng)目進(jìn)行設(shè)定(例如,每個(gè)項(xiàng)目下可以創(chuàng)建多少實(shí)例)碳竟。OpenStack
組件可以在標(biāo)準(zhǔn)硬件上水平大規(guī)模擴(kuò)展草丧,并且下載磁盤鏡像啟動(dòng)虛擬機(jī)實(shí)例。
  OpenStack計(jì)算服務(wù)由下列組件所構(gòu)成:
nova-api 服務(wù):接受并響應(yīng)所有計(jì)算服務(wù)請(qǐng)求莹桅,管理虛擬機(jī)(云主機(jī))生命周期昌执。
nova-api-metadata 服務(wù):接受來自虛擬機(jī)發(fā)送的元數(shù)據(jù)請(qǐng)求。
nova-compute服務(wù)(多個(gè)):真正管理虛擬機(jī)(nova-compute調(diào)用libvirt)统翩。
nova-scheduler服務(wù):nova調(diào)度器(挑選出最合適的nova-compute來創(chuàng)建虛擬機(jī))仙蚜。
nova-conductor模塊:幫助nova-compute代理修改數(shù)據(jù)庫(kù)中虛擬機(jī)的狀態(tài)。
nova-cert模塊:服務(wù)器守護(hù)進(jìn)程向Nova Cert服務(wù)提供X509證書厂汗。用來為euca-bundle-image生成證書委粉。僅僅是在EC2 API的請(qǐng)求中使用
nova-network worker 守護(hù)進(jìn)程:與nova-compute服務(wù)類似,從隊(duì)列中接受網(wǎng)絡(luò)任務(wù)娶桦,并且操作網(wǎng)絡(luò)贾节。執(zhí)行任務(wù)例如創(chuàng)建橋接的接口或者改變IPtables的規(guī)則。
nova-consoleauth 守護(hù)進(jìn)程和nova-novncproxy 守護(hù)進(jìn)程:web版的vnc來直接操作云主機(jī)衷畦。
nova-spicehtml5proxy 守護(hù)進(jìn)程:提供一個(gè)代理栗涂,用于訪問正在運(yùn)行的實(shí)例,通過 SPICE 協(xié)議祈争,支持基于瀏覽器的 HTML5 客戶端斤程。
nova-xvpvncproxy 守護(hù)進(jìn)程:提供一個(gè)代理,用于訪問正在運(yùn)行的實(shí)例菩混,通過VNC協(xié)議忿墅,支持OpenStack特定的Java客戶端。
nova-cert 守護(hù)進(jìn)程:X509 證書沮峡。
nova客戶端:用于用戶作為租戶管理員或最終用戶來提交命令疚脐。
隊(duì)列:一個(gè)在守護(hù)進(jìn)程間傳遞消息的中央集線器。


1邢疙、安裝和配置Nova計(jì)算服務(wù)之前棍弄,必須創(chuàng)建數(shù)據(jù)庫(kù)望薄,服務(wù)憑證和API端點(diǎn)。
1)確認(rèn)安裝mariadb呼畸,以root用戶身份登陸痕支,使數(shù)據(jù)庫(kù) 訪問客戶端連接到數(shù)據(jù)庫(kù)服務(wù)器
[root@controller ~]# mysql -u root -p #以root用戶身份登陸
Enter password: (密碼whj1218)
2)創(chuàng)建數(shù)據(jù)庫(kù)nova、nova_api蛮原、nova_cell0采转、placement
MariaDB [(none)]> CREATE DATABASE nova; #創(chuàng)建數(shù)據(jù)庫(kù)nova
MariaDB [(none)]> CREATE DATABASE nova_api; #創(chuàng)建數(shù)據(jù)庫(kù)nova_api
MariaDB [(none)]> CREATE DATABASE nova_cell0; #創(chuàng)建數(shù)據(jù)庫(kù)nova_cell0
MariaDB [(none)]> CREATE DATABASE placement; #創(chuàng)建數(shù)據(jù)庫(kù)placement
MariaDB [(none)]> show databases;#查數(shù)據(jù)表
+--------------------+
| Database |
+--------------------+
| glance |
| information_schema |
| keystone |
| mysql |
| nova |
| nova_api |
| nova_cell0 |
| performance_schema |
| placement |
+--------------------+
3)對(duì)上面創(chuàng)建的數(shù)據(jù)庫(kù)授予合適賬戶訪問權(quán)限
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost' IDENTIFIED BY 'whj1218' ;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%' IDENTIFIED BY 'whj1218';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'whj1218';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'whj1218';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'localhost' IDENTIFIED BY 'whj1218';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'%' IDENTIFIED BY 'whj1218';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_placement.* TO 'nova'@'localhost' IDENTIFIED BY 'whj1218';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_placement.* TO 'nova'@'%' IDENTIFIED BY 'whj1218';
MariaDB [(none)]> select user,host from mysql.user;
+----------+-----------+
| user | host |
+----------+-----------+
| glance | % |
| keystone | % |
| nova | % |
| root | 127.0.0.1 |
| root | ::1 |
| glance | localhost |
| keystone | localhost |
| nova | localhost |
| root | localhost |
+----------+-----------+
MariaDB [(none)]> quit #退出數(shù)據(jù)庫(kù)


2.在keystone上面注冊(cè)nova服務(wù)
1)在keystone上創(chuàng)建nova用戶
[root@controller ~]# source keystone-admin-pass.sh #加載admin憑據(jù)的環(huán)境變量

[root@controller ~]# openstack user create --domain default --password=whj1218 #nova 創(chuàng)建用戶nova

[root@controller ~]# openstack user create --domain default --password-prompt nova
User Password: ,密碼whj1218
Repeat User Password:
+---------------------+----------------------------------+
| Field | Value |
+---------------------+----------------------------------+
| domain_id | default |
| enabled | True |
| id | d41274fd47e044d4baef61aeef98d0c8 |
| name | nova |
| options | {} |
| password_expires_at | None |
+---------------------+----------------------------------+
[root@controller ~]# openstack user list #列出用戶
+----------------------------------+---------+
| ID | Name |
+----------------------------------+---------+
| 4640a445474e44abba73328aa81a805b | admin |
| 9c1f982fc354433dbea4d060681619bf | myuser |
| 0356c4d61dcf4afb9d8df45c1dea3ffc | my_user |
| b2f7c49185004822957e5e40227b833a | glance |
| d41274fd47e044d4baef61aeef98d0c8 | nova |
+----------------------------------+---------+
2)在keystone上將nova用戶配置為admin角色并添加進(jìn)service項(xiàng)目
[root@controller ~]# openstack role add --project service --user nova admin
3)創(chuàng)建nova計(jì)算服務(wù)的實(shí)體
[root@controller ~]# openstack service create --name nova --description "OpenStack Compute" compute
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | OpenStack Compute |
| enabled | True |
| id | 3a4e43c903d14e2f9f8839d55b62e360 |
| name | nova |
| type | compute |
+-------------+----------------------------------+
[root@controller ~]# openstack service list #列出服務(wù)
+----------------------------------+----------+----------+
| ID | Name | Type |
+----------------------------------+----------+----------+
| 04289507c30f41faa7ba4e5f730db3d0 | glance | image |
| 3a4e43c903d14e2f9f8839d55b62e360 | nova | compute |
| 5bf0447c80e44bc5a68d8ccc554d81e8 | keystone | identity |
+----------------------------------+----------+----------+
4)創(chuàng)建計(jì)算服務(wù)的API端點(diǎn)(endpoint)
創(chuàng)建endpoint
OpenStack使用三個(gè)API端點(diǎn)變種代表每種服務(wù):admin瞬痘,internal和public。默認(rèn)情況下板熊,管理API端點(diǎn)允許修改用戶和租戶而公共和內(nèi)部APIs不允許這些操作框全。在生產(chǎn)環(huán)境中,處于安全原因干签,變種為了服務(wù)不同類型的用戶可能駐留在單獨(dú)的網(wǎng)絡(luò)上津辩。對(duì)實(shí)例而言,公共API網(wǎng)絡(luò)為了讓顧客管理他們自己的云在互聯(lián)網(wǎng)上是可見的容劳。管理API網(wǎng)絡(luò)在管理云基礎(chǔ)設(shè)施的組織中操作也是有所限制的喘沿。內(nèi)部API網(wǎng)絡(luò)可能會(huì)被限制在包含OpenStack服務(wù)的主機(jī)上。此外竭贩,OpenStack支持可伸縮性的多區(qū)域蚜印。為了簡(jiǎn)單起見,本指南為所有端點(diǎn)變種和默認(rèn)RegionOne區(qū)域都使用管理網(wǎng)絡(luò)留量。
[root@controller ~]# openstack endpoint create --region RegionOne compute public http://controller:8774/v2.1 #創(chuàng)建公有端點(diǎn)public
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | 79d5319675d34bc89bd4e1775f8477fd |
| interface | public |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 3a4e43c903d14e2f9f8839d55b62e360 |
| service_name | nova |
| service_type | compute |
| url | http://controller:8774/v2.1 |
+--------------+----------------------------------+
[root@controller ~]# openstack endpoint create --region RegionOne compute internal http://controller:8774/v2.1 #創(chuàng)建私有端點(diǎn)internal
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | 1098726adea6413ab5a222547b0d203a |
| interface | internal |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 3a4e43c903d14e2f9f8839d55b62e360 |
| service_name | nova |
| service_type | compute |
| url | http://controller:8774/v2.1 |
+--------------+----------------------------------+
[root@controller ~]# openstack endpoint create --region RegionOne compute admin http://controller:8774/v2.1 #創(chuàng)建admin端點(diǎn)
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | 817b9881d0db41549c4ce48c6b13d8ba |
| interface | admin |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 3a4e43c903d14e2f9f8839d55b62e360 |
| service_name | nova |
| service_type | compute |
| url | http://controller:8774/v2.1 |
+--------------+----------------------------------+
[root@controller ~]# openstack endpoint list #列出所有端點(diǎn)
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
| 03317d828e5944daaa9b9806c92b6319 | RegionOne | glance | image | True | public | http://controller:9292 |
| 1098726adea6413ab5a222547b0d203a | RegionOne | nova | compute | True | internal | http://controller:8774/v2.1 |
| 3ad1568a787d467893daf154e65d60d2 | RegionOne | glance | image | True | internal | http://controller:9292 |
| 6d5e77dc42a243c5810c29f679a486f8 | RegionOne | glance | image | True | admin | http://controller:9292 |
| 79d5319675d34bc89bd4e1775f8477fd | RegionOne | nova | compute | True | public | http://controller:8774/v2.1 |
| 817b9881d0db41549c4ce48c6b13d8ba | RegionOne | nova | compute | True | admin | http://controller:8774/v2.1 |
| bcbf96c2a7d54d1181d75e752eb1642d | RegionOne | keystone | identity | True | internal | http://controller:5000/v3/ |
| d41a39b417964676b6cfea658a7f3d01 | RegionOne | keystone | identity | True | admin | http://controller:5000/v3/ |
| f25f1eab7c8b4c4489f1c84234be9912 | RegionOne | keystone | identity | True | public | http://controller:5000/v3/ |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
5)創(chuàng)建放置placement服務(wù)憑證

[root@controller ~]# openstack user create --domain default --password=whj1218 placement

[root@controller ~]# openstack user create --domain default --password-prompt placement#創(chuàng)建placement用戶
User Password: 密碼為whj1218
Repeat User Password:
+---------------------+----------------------------------+
| Field | Value |
+---------------------+----------------------------------+
| domain_id | default |
| enabled | True |
| id | d7bc1525577b4800b1893077da1c1b26 |
| name | placement |
| options | {} |
| password_expires_at | None |
+---------------------+----------------------------------+
[root@controller ~]# openstack role add --project service --user placement admin #在keystone上將placement用戶配置為admin角色并添加進(jìn)service項(xiàng)目
[root@controller ~]# openstack service create --name placement --description "Placement API" placement #創(chuàng)建放置服務(wù)placement的API實(shí)體入口
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | Placement API |
| enabled | True |
| id | 06057671fff0479682a1d2ef1b3f710b |
| name | placement |
| type | placement |
+-------------+----------------------------------+
創(chuàng)建placement項(xiàng)目的endpoint(API端口)
[root@controller ~]# openstack endpoint create --region RegionOne placement public http://controller:8778
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | e6e34f670f8941c6b37fc74ca0ad7522 |
| interface | public |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 06057671fff0479682a1d2ef1b3f710b |
| service_name | placement |
| service_type | placement |
| url | http://controller:8778 |
+--------------+----------------------------------+
[root@controller ~]# openstack endpoint create --region RegionOne placement internal http://controller:8778
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | ca654b06a0694735865181664b1d627f |
| interface | internal |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 06057671fff0479682a1d2ef1b3f710b |
| service_name | placement |
| service_type | placement |
| url | http://controller:8778 |
+--------------+----------------------------------+
[root@controller ~]# openstack endpoint create --region RegionOne placement admin http://controller:8778
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | 128f6b340dbe4a88bef0217208efd751 |
| interface | admin |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 06057671fff0479682a1d2ef1b3f710b |
| service_name | placement |
| service_type | placement |
| url | http://controller:8778 |
+--------------+----------------------------------+
[root@controller ~]# openstack endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
| 03317d828e5944daaa9b9806c92b6319 | RegionOne | glance | image | True | public | http://controller:9292 |
| 1098726adea6413ab5a222547b0d203a | RegionOne | nova | compute | True | internal | http://controller:8774/v2.1 |
| 128f6b340dbe4a88bef0217208efd751 | RegionOne | placement | placement | True | admin | http://controller:8778 |
| 3ad1568a787d467893daf154e65d60d2 | RegionOne | glance | image | True | internal | http://controller:9292 |
| 6d5e77dc42a243c5810c29f679a486f8 | RegionOne | glance | image | True | admin | http://controller:9292 |
| 79d5319675d34bc89bd4e1775f8477fd | RegionOne | nova | compute | True | public | http://controller:8774/v2.1 |
| 817b9881d0db41549c4ce48c6b13d8ba | RegionOne | nova | compute | True | admin | http://controller:8774/v2.1 |
| bcbf96c2a7d54d1181d75e752eb1642d | RegionOne | keystone | identity | True | internal | http://controller:5000/v3/ |
| ca654b06a0694735865181664b1d627f | RegionOne | placement | placement | True | internal | http://controller:8778 |
| d41a39b417964676b6cfea658a7f3d01 | RegionOne | keystone | identity | True | admin | http://controller:5000/v3/ |
| e6e34f670f8941c6b37fc74ca0ad7522 | RegionOne | placement | placement | True | public | http://controller:8778 |
| f25f1eab7c8b4c4489f1c84234be9912 | RegionOne | keystone | identity | True | public | http://controller:5000/v3/ |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+


3.在控制節(jié)點(diǎn)安裝nova相關(guān)服務(wù)
[root@controller ~]# yum install openstack-nova-api openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler openstack-nova-placement-api -y
[root@controller ~]# cp /etc/nova/nova.conf /etc/nova/nova.conf.bak
[root@controller ~]# grep "^[a-z[]" /etc/nova/nova.conf.bak > /etc/nova/nova.conf
[root@controller ~]# vim /etc/nova/nova.conf
[DEFAULT]
enabled_apis=osapi_compute,metadata
my_ip=192.168.136.134
use_neutron=true
firewall_driver=nova.virt.firewall.NoopFirewallDriver
transport_url=rabbit://openstack:whj1218@controller
[api]
auth_strategy=keystone
[api_database]
connection = mysql+pymysql://nova:whj1218@controller/nova_api
...........
[database]
connection = mysql+pymysql://nova:whj1218@controller/nova
........
[glance]
api_servers = http://controller:9292
..........
[keystone_authtoken]
auth_url = http://controller:5000/v3
memcached_servers=controller:11211
auth_type=password
project_domain_name=default
user_domain_name=default
project_name=service
username=nova
password=whj1218
.......
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
..........
[placement]
region_name=RegionOne
project_domain_name=Default
project_name=service
auth_type=password
user_domain_name=Default
auth_url=http://controller:5000/v3
username=placement
password=whj1218
...........
[vnc]
enabled=true
server_listen='my_ip' server_proxyclient_address='my_ip'
.............
3)創(chuàng)建配置文件/etc/httpd/conf.d/00-nova-placement-api.conf
[root@controller ~]# vim /etc/httpd/conf.d/00-nova-placement-api.conf
Listen 8778
<VirtualHost *:8778>
WSGIProcessGroup nova-placement-api
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
WSGIDaemonProcess nova-placement-api processes=3 threads=1 user=nova group=nova
WSGIScriptAlias / /usr/bin/nova-placement-api
<IfVersion >= 2.4>
ErrorLogFormat "%M"
</IfVersion>
ErrorLog /var/log/nova/nova-placement-api.log

SSLEngine On

SSLCertificateFile ...

SSLCertificateKeyFile ...

</VirtualHost>

Alias /nova-placement-api /usr/bin/nova-placement-api
<Location /nova-placement-api>
SetHandler wsgi-script
Options +ExecCGI
WSGIProcessGroup nova-placement-api
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
</Location>

末尾處添加下面一段代碼

<Directory /usr/bin>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>

重啟httpd服務(wù)窄赋,查看服務(wù)狀態(tài)

[root@controller ~]# systemctl restart httpd
[root@controller ~]# systemctl status httpd
4.同步nova數(shù)據(jù)(注意同步順序)

nova_api有32張表,placement有32張表楼熄,nova_cell0有110張表忆绰,nova也有110張表

1)初始化nova-api和placement數(shù)據(jù)庫(kù)
[root@controller ~]# su -s /bin/sh -c "nova-manage api_db sync" nova

驗(yàn)證數(shù)據(jù)庫(kù)

[root@controller ~]# mysql -h192.168.136.134 -unova -pwhj1218 -e "use nova_api;show tables;" #有32張數(shù)據(jù)表
[root@controller ~]# mysql -h192.168.136.134 -uplacement -pwhj1218 -e "use placement;show tables;"

通過對(duì)比可知,nova_api和placement都有32張表可岂,區(qū)別在于nova_api數(shù)據(jù)庫(kù)的cell_mappings表多兩條數(shù)據(jù)错敢,存放的是nova和rabbitmq等的配置信息

2)初始化nova_cell0和nova數(shù)據(jù)庫(kù)

注冊(cè)cell0數(shù)據(jù)庫(kù)

[root@controller ~]# su -s /bin/sh -c "nova-manage cell_v2 map_cell0" nova

創(chuàng)建cell1單元

[root@controller ~]# su -s /bin/sh -c "nova-manage cell_v2 create_cell --name=cell1 --verbose" nova

初始化nova數(shù)據(jù)庫(kù)

[root@controller ~]# su -s /bin/sh -c "nova-manage db sync" nova # 這里遇到兩個(gè)警告信息,不是很嚴(yán)重缕粹,后續(xù)版本會(huì)修復(fù)稚茅,再重新執(zhí)行一下就不會(huì)報(bào)了

檢查確認(rèn)cell0和cell1注冊(cè)成功

[root@controller ~]# su -s /bin/sh -c "nova-manage cell_v2 list_cells" nova
+-------+--------------------------------------+------------------------------------+-------------------------------------------------+----------+
| Name | UUID | Transport URL | Database Connection | Disabled |
+-------+--------------------------------------+------------------------------------+-------------------------------------------------+----------+
| cell0 | 00000000-0000-0000-0000-000000000000 | none:/ | mysql+pymysql://nova:****@controller/nova_cell0 | False |
| cell1 | 84a45fca-3cda-432e-b67d-118afd69ab54 | rabbit://openstack:****@controller | mysql+pymysql://nova:****@controller/nova | False |
+-------+--------------------------------------+------------------------------------+-------------------------------------------------+----------+

返回的數(shù)據(jù)存儲(chǔ)在nova_api數(shù)據(jù)庫(kù)的cell_mappings表中

驗(yàn)證數(shù)據(jù)庫(kù)

[root@controller ~]# mysql -h192.168.136.134 -unova -pwhj1218 -e "use nova_cell0;show tables;"
[root@controller ~]# mysql -h192.168.136.134 -unova -pwhj1218 -e "use nova_api;show tables;"

通過對(duì)比可知,這兩個(gè)數(shù)據(jù)庫(kù)的表目前完全一樣致开,區(qū)別在于nova數(shù)據(jù)庫(kù)的service表中有4條數(shù)據(jù)峰锁,存放的是當(dāng)前版本nova相關(guān)服務(wù)的注冊(cè)信息

[root@controller ~]# systemctl start openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service #啟動(dòng)服務(wù)
[root@controller ~]# systemctl status openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service #查看服務(wù)狀態(tài)
[root@controller ~]# systemctl enable openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service #設(shè)置開機(jī)自啟動(dòng)
[root@controller ~]# systemctl list-unit-files |grep openstack-nova* |grep enabled #檢查是否都開機(jī)啟動(dòng)了
openstack-nova-api.service enabled
openstack-nova-conductor.service enabled
openstack-nova-consoleauth.service enabled
openstack-nova-novncproxy.service enabled
openstack-nova-scheduler.service enabled
至此,在控制節(jié)點(diǎn)安裝nova計(jì)算服務(wù)就完成

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末双戳,一起剝皮案震驚了整個(gè)濱河市虹蒋,隨后出現(xiàn)的幾起案子糜芳,更是在濱河造成了極大的恐慌,老刑警劉巖魄衅,帶你破解...
    沈念sama閱讀 211,265評(píng)論 6 490
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件峭竣,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡晃虫,警方通過查閱死者的電腦和手機(jī)皆撩,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,078評(píng)論 2 385
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來哲银,“玉大人扛吞,你說我怎么就攤上這事【T穑” “怎么了滥比?”我有些...
    開封第一講書人閱讀 156,852評(píng)論 0 347
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)做院。 經(jīng)常有香客問我盲泛,道長(zhǎng),這世上最難降的妖魔是什么键耕? 我笑而不...
    開封第一講書人閱讀 56,408評(píng)論 1 283
  • 正文 為了忘掉前任寺滚,我火速辦了婚禮,結(jié)果婚禮上屈雄,老公的妹妹穿的比我還像新娘村视。我一直安慰自己,他們只是感情好酒奶,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,445評(píng)論 5 384
  • 文/花漫 我一把揭開白布蓖议。 她就那樣靜靜地躺著,像睡著了一般讥蟆。 火紅的嫁衣襯著肌膚如雪勒虾。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,772評(píng)論 1 290
  • 那天瘸彤,我揣著相機(jī)與錄音修然,去河邊找鬼。 笑死质况,一個(gè)胖子當(dāng)著我的面吹牛愕宋,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播结榄,決...
    沈念sama閱讀 38,921評(píng)論 3 406
  • 文/蒼蘭香墨 我猛地睜開眼中贝,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來了臼朗?” 一聲冷哼從身側(cè)響起邻寿,我...
    開封第一講書人閱讀 37,688評(píng)論 0 266
  • 序言:老撾萬榮一對(duì)情侶失蹤蝎土,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后绣否,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體誊涯,經(jīng)...
    沈念sama閱讀 44,130評(píng)論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,467評(píng)論 2 325
  • 正文 我和宋清朗相戀三年蒜撮,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了暴构。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 38,617評(píng)論 1 340
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡段磨,死狀恐怖取逾,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情苹支,我是刑警寧澤菌赖,帶...
    沈念sama閱讀 34,276評(píng)論 4 329
  • 正文 年R本政府宣布,位于F島的核電站沐序,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏堕绩。R本人自食惡果不足惜策幼,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,882評(píng)論 3 312
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望奴紧。 院中可真熱鬧特姐,春花似錦、人聲如沸黍氮。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,740評(píng)論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽沫浆。三九已至捷枯,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間专执,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 31,967評(píng)論 1 265
  • 我被黑心中介騙來泰國(guó)打工拄显, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留蟆盐,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 46,315評(píng)論 2 360
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親疾瓮。 傳聞我的和親對(duì)象是個(gè)殘疾皇子弦蹂,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,486評(píng)論 2 348