超詳細Openstack核心組件——nova部署

目錄

  • OpenStack-nova組件部署
    • nova組件部署位置
    • 計算節點Nova服務配置(CT配置)
    • 計算節點配置Nova服務-c1節點配置
    • 計算節點-c2(與c1相同)(除了IP地址)
    • controller節點操做
  • 總結

 

OpenStack-nova組件部署

繼以前Placement部署以後,繼續部署novajavascript

nova組件部署位置

  • 控制節點ct
    ​nova-api(nova主服務)
    ​nova-scheduler(nova調度服務)
    ​nova-conductor(nova數據庫服務,提供數據庫訪問)
    ​nova-novncproxy(nova的vnc服務,提供實例的控制檯)html

  • 計算節點c一、c2
    nova-compute(nova計算服務)java

計算節點Nova服務配置(CT配置)

1. 建立nova數據庫,並執行受權操做python

[root@ct ~]# mysql -uroot -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 55 Server version: 10.3.20-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> CREATE DATABASE nova_api; Query OK, 1 row affected (0.001 sec) MariaDB [(none)]> CREATE DATABASE nova; Query OK, 1 row affected (0.000 sec) MariaDB [(none)]> CREATE DATABASE nova_cell0; Query OK, 1 row affected (0.000 sec) MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost' IDENTIFIED BY 'NOVA_DBPASS'; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%' IDENTIFIED BY 'NOVA_DBPASS'; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'NOVA_DBPASS'; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'NOVA_DBPASS'; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'localhost' IDENTIFIED BY 'NOVA_DBPASS'; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'%' IDENTIFIED BY 'NOVA_DBPASS'; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.000 sec) MariaDB [(none)]> exit Bye 

2. 管理Nova用戶及服務mysql

[root@ct ~]# openstack user create --domain default --password NOVA_PASS nova +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | domain_id | default | | enabled | True | | id | 93e904c4063545de83350cd21b7c6b44 | | name | nova | | options | {} | | password_expires_at | None | +---------------------+----------------------------------+ //把nova用戶添加到service項目,擁有admin權限 [root@ct ~]# openstack role add --project service --user nova admin 
[root@ct ~]# openstack service create --name nova --description "OpenStack Compute" compute +-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | OpenStack Compute | | enabled | True | | id | 721156ee0ff54b468f8e9ff1b65af18c | | name | nova | | type | compute | +-------------+----------------------------------+ 
[root@ct ~]# openstack endpoint create --region RegionOne compute public http://ct:8774/v2.1 +--------------+----------------------------------+ | Field | Value | +--------------+----------------------------------+ | enabled | True | | id | cb13f505671a453ab7c1be84e8774bfc | | interface | public | | region | RegionOne | | region_id | RegionOne | | service_id | 721156ee0ff54b468f8e9ff1b65af18c | | service_name | nova | | service_type | compute | | url | http://ct:8774/v2.1 | +--------------+----------------------------------+ [root@ct ~]# openstack endpoint create --region RegionOne compute internal http://ct:8774/v2.1 +--------------+----------------------------------+ | Field | Value | +--------------+----------------------------------+ | enabled | True | | id | f769cea83d5343a787203bb5da4de4b0 | | interface | internal | | region | RegionOne | | region_id | RegionOne | | service_id | 721156ee0ff54b468f8e9ff1b65af18c | | service_name | nova | | service_type | compute | | url | http://ct:8774/v2.1 | +--------------+----------------------------------+ [root@ct ~]# openstack endpoint create --region RegionOne compute admin http://ct:8774/v2.1 +--------------+----------------------------------+ | Field | Value | +--------------+----------------------------------+ | enabled | True | | id | d9bfe772d4ab4a6c9cd3fb2b3a93533d | | interface | admin | | region | RegionOne | | region_id | RegionOne | | service_id | 721156ee0ff54b468f8e9ff1b65af18c | | service_name | nova | | service_type | compute | | url | http://ct:8774/v2.1 | +--------------+----------------------------------+ 
  • 安裝nova組件(nova-api、nova-conductor、nova-novncproxy、nova-scheduler)
[root@ct ~]# yum -y install openstack-nova-api openstack-nova-conductor openstack-nova-novncproxy openstack-nova-scheduler 

3. 修改nova配置文件(nova.conf)sql

  • 拷貝備份配置文件
[root@ct ~]# cp -a /etc/nova/nova.conf{,.bak} [root@ct ~]# grep -Ev '^$|#' /etc/nova/nova.conf.bak > /etc/nova/nova.conf 
  • 修改nova.conf
[root@ct ~]# openstack-config --set /etc/nova/nova.conf DEFAULT enabled_apis osapi_compute,metadata [root@ct ~]# openstack-config --set /etc/nova/nova.conf DEFAULT my_ip 192.168.100.10 [root@ct ~]# openstack-config --set /etc/nova/nova.conf DEFAULT use_neutron true [root@ct ~]# openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver [root@ct ~]# openstack-config --set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:RABBIT_PASS@ct [root@ct ~]# openstack-config --set /etc/nova/nova.conf api_database connection mysql+pymysql://nova:NOVA_DBPASS@ct/nova_api [root@ct ~]# openstack-config --set /etc/nova/nova.conf database connection mysql+pymysql://nova:NOVA_DBPASS@ct/nova [root@ct ~]# openstack-config --set /etc/nova/nova.conf placement_database connection mysql+pymysql://placement:PLACEMENT_DBPASS@ct/placement [root@ct ~]# openstack-config --set /etc/nova/nova.conf api auth_strategy keystone [root@ct ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_url http://ct:5000/v3 [root@ct ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken memcached_servers ct:11211 [root@ct ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_type password [root@ct ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken project_domain_name Default [root@ct ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken user_domain_name Default [root@ct ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken project_name service [root@ct ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken username nova [root@ct ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken password NOVA_PASS [root@ct ~]# openstack-config --set /etc/nova/nova.conf vnc enabled true [root@ct ~]# openstack-config --set /etc/nova/nova.conf vnc server_listen ' $my_ip' [root@ct ~]# openstack-config --set /etc/nova/nova.conf vnc server_proxyclient_address ' $my_ip' [root@ct ~]# openstack-config --set /etc/nova/nova.conf glance api_servers http://ct:9292 [root@ct ~]# openstack-config --set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp [root@ct ~]# openstack-config --set /etc/nova/nova.conf placement region_name RegionOne [root@ct ~]# openstack-config --set /etc/nova/nova.conf placement project_domain_name Default [root@ct ~]# openstack-config --set /etc/nova/nova.conf placement project_name service [root@ct ~]# openstack-config --set /etc/nova/nova.conf placement auth_type password [root@ct ~]# openstack-config --set /etc/nova/nova.conf placement user_domain_name Default [root@ct ~]# openstack-config --set /etc/nova/nova.conf placement auth_url http://ct:5000/v3 [root@ct ~]# openstack-config --set /etc/nova/nova.conf placement username placement [root@ct ~]# openstack-config --set /etc/nova/nova.conf placement password PLACEMENT_PASS 
  • 查看nova.conf
[root@ct ~]# cat /etc/nova/nova.conf [DEFAULT] enabled_apis = osapi_compute,metadata //指定支持的api類型 my_ip = 192.168.100.10 //定義本地IP use_neutron = true //經過neutron獲取IP地址 firewall_driver = nova.virt.firewall.NoopFirewallDriver transport_url = rabbit://openstack:RABBIT_PASS@ct #指定鏈接的rabbitmq [api] auth_strategy = keystone //指定使用keystone認證 [api_database] connection = mysql+pymysql://nova:NOVA_DBPASS@ct/nova_api [barbican] [cache] [cinder] [compute] [conductor] [console] [consoleauth] [cors] [database] connection = mysql+pymysql://nova:NOVA_DBPASS@ct/nova [devices] [ephemeral_storage_encryption] [filter_scheduler] [glance] api_servers = http://ct:9292 [guestfs] [healthcheck] [hyperv] [ironic] [key_manager] [keystone] [keystone_authtoken] //配置keystone的認證信息 auth_url = http://ct:5000/v3 //到此url去認證 memcached_servers = ct:11211 //memcache數據庫地址:端口 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password = NOVA_PASS [libvirt] [metrics] [mks] [neutron] [notifications] [osapi_v21] [oslo_concurrency] //指定鎖路徑 lock_path = /var/lib/nova/tmp //鎖的做用是建立虛擬機時,在執行某個操做的時候,須要等此步驟執行完後才能執行下一個步驟,不能並行執行,保證操做是一步一步的執行 [oslo_messaging_amqp] [oslo_messaging_kafka] [oslo_messaging_notifications] [oslo_messaging_rabbit] [oslo_middleware] [oslo_policy] [pci] [placement] region_name = RegionOne project_domain_name = Default project_name = service auth_type = password user_domain_name = Default auth_url = http://ct:5000/v3 username = placement password = PLACEMENT_PASS [powervm] [privsep] [profiler] [quota] [rdp] [remote_debug] [scheduler] [serial_console] [service_user] [spice] [upgrade_levels] [vault] [vendordata_dynamic_auth] [vmware] [vnc] //此處若是配置不正確,則鏈接不上虛擬機的控制檯 enabled = true server_listen = $my_ip //指定vnc的監聽地址 server_proxyclient_address = $my_ip //server的客戶端地址爲本機地址;此地址是管理網的地址 [workarounds] [wsgi] [xenserver] [xvp] [zvm] [placement_database] connection = mysql+pymysql://placement:PLACEMENT_DBPASS@ct/placement 

4. 初始化數據庫數據庫

  • 初始化nova_api數據庫
[root@ct ~]# su -s /bin/sh -c "nova-manage api_db sync" nova 

5. 註冊cell0數據庫;nova服務內部把資源劃分到不一樣的cell中,把計算節點劃分到不一樣的cell中;openstack內部基於cell把計算節點進行邏輯上的分組vim

[root@ct ~]# su -s /bin/sh -c "nova-manage cell_v2 map_cell0" nova 
  • 建立cell1單元格
[root@ct ~]# su -s /bin/sh -c "nova-manage cell_v2 create_cell --name=cell1 --verbose" nova bffae239-c193-421d-80a1-b894767a098c 
  • 初始化nova數據庫;能夠經過 /var/log/nova/nova-manage.log 日誌判斷是否初始化成功
[root@ct ~]# su -s /bin/sh -c "nova-manage db sync" nova /usr/lib/python2.7/site-packages/pymysql/cursors.py:170: Warning: (1831, u'Duplicate index `block_device_mapping_instance_uuid_virtual_name_device_name_idx`. This is deprecated and will be disallowed in a future release') result = self._query(query) /usr/lib/python2.7/site-packages/pymysql/cursors.py:170: Warning: (1831, u'Duplicate index `uniq_instances0uuid`. This is deprecated and will be disallowed in a future release') result = self._query(query) 
  • 可以使用如下命令驗證cell0和cell1是否註冊成功
[root@ct ~]# su -s /bin/sh -c "nova-manage cell_v2 list_cells" nova //驗證cell0和cell1組件是否註冊成功 +-------+--------------------------------------+----------------------------+-----------------------------------------+----------+ | 名稱 | UUID | Transport URL | 數據庫鏈接 | Disabled | +-------+--------------------------------------+----------------------------+-----------------------------------------+----------+ | cell0 | 00000000-0000-0000-0000-000000000000 | none:/ | mysql+pymysql://nova:****@ct/nova_cell0 | False | | cell1 | bffae239-c193-421d-80a1-b894767a098c | rabbit://openstack:****@ct | mysql+pymysql://nova:****@ct/nova | False | +-------+--------------------------------------+----------------------------+-----------------------------------------+----------+ 
  1. 啓動Nova服務
[root@ct ~]# systemctl enable openstack-nova-api.service Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-api.service to /usr/lib/systemd/system/openstack-nova-api.service. [root@ct ~]# systemctl enable openstack-nova-scheduler.service Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-scheduler.service to /usr/lib/systemd/system/openstack-nova-scheduler.service. [root@ct ~]# systemctl enable openstack-nova-conductor.service Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-conductor.service to /usr/lib/systemd/system/openstack-nova-conductor.service. [root@ct ~]# systemctl enable openstack-nova-novncproxy.service Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-novncproxy.service to /usr/lib/systemd/system/openstack-nova-novncproxy.service. 
[root@ct ~]# systemctl start openstack-nova-api.service [root@ct ~]# systemctl start openstack-nova-scheduler.service [root@ct ~]# systemctl start openstack-nova-conductor.service [root@ct ~]# systemctl start openstack-nova-novncproxy.service 

6. 檢查nova服務端口api

[root@ct ~]# netstat -tnlup|egrep '8774|8775' tcp 0 0 0.0.0.0:8775 0.0.0.0:* LISTEN 89211/python2 tcp 0 0 0.0.0.0:8774 0.0.0.0:* LISTEN 89211/python2 [root@ct ~]# curl http://ct:8774 {"versions": [{"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://ct:8774/v2/", "rel": "self"}], "min_version": "", "version": "", "id": "v2.0"}, {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://ct:8774/v2.1/", "rel": "self"}], "min_version": "2.1", "version": "2.79", "id": "v2.1"}]}[root@ct ~]# 

在這裏插入圖片描述

計算節點配置Nova服務-c1節點配置

1. 安裝nova-compute組件app

[root@c1 ~]# yum -y install openstack-nova-compute 
  • 修改配置文件
[root@c1 ~]# cp -a /etc/nova/nova.conf{,.bak} [root@c1 ~]# grep -Ev '^$|#' /etc/nova/nova.conf.bak > /etc/nova/nova.conf [root@c1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT enabled_apis osapi_compute,metadata [root@c1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:RABBIT_PASS@ct [root@c1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT my_ip 192.168.100.11 [root@c1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT use_neutron true [root@c1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver [root@c1 ~]# openstack-config --set /etc/nova/nova.conf api auth_strategy keystone [root@c1 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_url http://ct:5000/v3 [root@c1 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken memcached_servers ct:11211 [root@c1 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_type password [root@c1 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken project_domain_name Default [root@c1 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken user_domain_name Default [root@c1 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken project_name service [root@c1 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken username nova [root@c1 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken password NOVA_PASS [root@c1 ~]# openstack-config --set /etc/nova/nova.conf vnc enabled true [root@c1 ~]# openstack-config --set /etc/nova/nova.conf vnc server_listen 0.0.0.0 [root@c1 ~]# openstack-config --set /etc/nova/nova.conf vnc server_proxyclient_address ' $my_ip' [root@c1 ~]# openstack-config --set /etc/nova/nova.conf vnc novncproxy_base_url http://192.168.100.11:6080/vnc_auto.html [root@c1 ~]# openstack-config --set /etc/nova/nova.conf glance api_servers http://ct:9292 [root@c1 ~]# openstack-config --set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp [root@c1 ~]# openstack-config --set /etc/nova/nova.conf placement region_name RegionOne [root@c1 ~]# openstack-config --set /etc/nova/nova.conf placement project_domain_name Default [root@c1 ~]# openstack-config --set /etc/nova/nova.conf placement project_name service [root@c1 ~]# openstack-config --set /etc/nova/nova.conf placement auth_type password [root@c1 ~]# openstack-config --set /etc/nova/nova.conf placement user_domain_name Default [root@c1 ~]# openstack-config --set /etc/nova/nova.conf placement auth_url http://ct:5000/v3 [root@c1 ~]# openstack-config --set /etc/nova/nova.conf placement username placement [root@c1 ~]# openstack-config --set /etc/nova/nova.conf placement password PLACEMENT_PASS [root@c1 ~]# openstack-config --set /etc/nova/nova.conf libvirt virt_type qemu 
  • 查看配置文件
[root@c1 ~]# cd /etc/nova/ [root@c1 nova]# cat nova.conf [DEFAULT] enabled_apis = osapi_compute,metadata transport_url = rabbit://openstack:RABBIT_PASS@ct my_ip = 192.168.100.11 use_neutron = true firewall_driver = nova.virt.firewall.NoopFirewallDriver [api] auth_strategy = keystone [api_database] [barbican] [cache] [cinder] [compute] [conductor] [console] [consoleauth] [cors] [database] [devices] [ephemeral_storage_encryption] [filter_scheduler] [glance] api_servers = http://ct:9292 [guestfs] [healthcheck] [hyperv] [ironic] [key_manager] [keystone] [keystone_authtoken] auth_url = http://ct:5000/v3 memcached_servers = ct:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password = NOVA_PASS [libvirt] virt_type = qemu [metrics] [mks] [neutron] [notifications] [osapi_v21] [oslo_concurrency] lock_path = /var/lib/nova/tmp [oslo_messaging_amqp] [oslo_messaging_kafka] [oslo_messaging_notifications] [oslo_messaging_rabbit] [oslo_middleware] [oslo_policy] [pci] [placement] region_name = RegionOne project_domain_name = Default project_name = service auth_type = password user_domain_name = Default auth_url = http://ct:5000/v3 username = placement password = PLACEMENT_PASS [powervm] [privsep] [profiler] [quota] [rdp] [remote_debug] [scheduler] [serial_console] [service_user] [spice] [upgrade_levels] [vault] [vendordata_dynamic_auth] [vmware] [vnc] enabled = true server_listen = 0.0.0.0 server_proxyclient_address = $my_ip novncproxy_base_url = http://192.168.100.11:6080/vnc_auto.html [workarounds] [wsgi] [xenserver] [xvp] [zvm] 
  • 開啓服務
[root@c2 ~]# systemctl enable libvirtd.service openstack-nova-compute.service Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-compute.service to /usr/lib/systemd/system/openstack-nova-compute.service. [root@c2 ~]# systemctl start libvirtd.service openstack-nova-compute.service 

計算節點-c2(與c1相同)(除了IP地址)

controller節點操做

1. 查看compute節點是否註冊到controller上,經過消息隊列;須要在controller節點執行

[root@ct ~]# openstack compute service list --service nova-compute +----+--------------+------+------+---------+-------+----------------------------+ | ID | Binary | Host | Zone | Status | State | Updated At | +----+--------------+------+------+---------+-------+----------------------------+ | 9 | nova-compute | c1 | nova | enabled | up | 2021-02-18T14:11:26.000000 | | 10 | nova-compute | c2 | nova | enabled | up | 2021-02-18T14:11:23.000000 | +----+--------------+------+------+---------+-------+----------------------------+ 

2. 掃描當前openstack中有哪些計算節點可用,發現後會把計算節點建立到cell中,後面就能夠在cell中建立虛擬機;至關於openstack內部對計算節點進行分組,把計算節點分配到不一樣的cell中

[root@ct ~]# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova Found 2 cell mappings. Skipping cell0 since it does not contain hosts. Getting computes from cell 'cell1': bffae239-c193-421d-80a1-b894767a098c Checking host mapping for compute host 'c1': 93382dce-69da-46a7-95a8-0e4331db8da1 Creating host mapping for compute host 'c1': 93382dce-69da-46a7-95a8-0e4331db8da1 Checking host mapping for compute host 'c2': d5c3816b-467a-4ecf-a36e-ffbc917521d4 Creating host mapping for compute host 'c2': d5c3816b-467a-4ecf-a36e-ffbc917521d4 Found 2 unmapped computes in cell: bffae239-c193-421d-80a1-b894767a098c 

3. 默認每次添加個計算節點,在控制端就須要執行一次掃描,這樣會很麻煩,因此能夠修改控制端nova的主配置文件

[root@ct ~]# vim /etc/nova/nova.conf [scheduler] discover_hosts_in_cells_interval = 300 //每300秒掃描一次 

在這裏插入圖片描述
4. 驗證計算節點服務

  • 檢查 nova 的各個服務是否都是正常,以及 compute 服務是否註冊成功
[root@ct ~]# openstack compute service list +----+----------------+------+----------+---------+-------+----------------------------+ | ID | Binary | Host | Zone | Status | State | Updated At | +----+----------------+------+----------+---------+-------+----------------------------+ | 4 | nova-scheduler | ct | internal | enabled | up | 2021-02-18T14:15:29.000000 | | 8 | nova-conductor | ct | internal | enabled | up | 2021-02-18T14:15:20.000000 | | 9 | nova-compute | c1 | nova | enabled | up | 2021-02-18T14:15:26.000000 | | 10 | nova-compute | c2 | nova | enabled | up | 2021-02-18T14:15:23.000000 | +----+----------------+------+----------+---------+-------+----------------------------+ 
  • 查看各個組件的 api 是否正常
[root@ct ~]# openstack catalog list +-----------+-----------+---------------------------------+ | Name | Type | Endpoints | +-----------+-----------+---------------------------------+ | nova | compute | RegionOne | | | | public: http://ct:8774/v2.1 | | | | RegionOne | | | | admin: http://ct:8774/v2.1 | | | | RegionOne | | | | internal: http://ct:8774/v2.1 | | | | | | keystone | identity | RegionOne | | | | internal: http://ct:5000/v3/ | | | | RegionOne | | | | public: http://ct:5000/v3/ | | | | RegionOne | | | | admin: http://ct:5000/v3/ | | | | | | glance | image | RegionOne | | | | admin: http://ct:9292 | | | | RegionOne | | | | public: http://ct:9292 | | | | RegionOne | | | | internal: http://ct:9292 | | | | | | placement | placement | RegionOne | | | | admin: http://ct:8778 | | | | RegionOne | | | | public: http://ct:8778 | | | | RegionOne | | | | internal: http://ct:8778 | | | | | +-----------+-----------+---------------------------------+ 
  • 查看是否可以拿到鏡像
[root@ct ~]# openstack image list +--------------------------------------+--------+--------+ | ID | Name | Status | +--------------------------------------+--------+--------+ | a4ff4b8f-4c46-4bc3-9c0c-2de82b257447 | cirros | active | +--------------------------------------+--------+--------+ 
  • 查看cell的api和placement的api是否正常,只要其中一個有誤,後期沒法建立虛擬機
[root@ct ~]# nova-status upgrade check +--------------------------------+ | Upgrade Check Results | +--------------------------------+ | Check: Cells v2 | | Result: Success | | Details: None | +--------------------------------+ | Check: Placement API | | Result: Success | | Details: None | +--------------------------------+ | Check: Ironic Flavor Migration | | Result: Success | | Details: None | +--------------------------------+ | Check: Cinder API | | Result: Success | | Details: None | +--------------------------------+ 

至此,nova配置完成

總結

  • Nova分爲控制節點、計算節點
  • Nova組件核心功能是調度資源,在配置文件中須要體現的部分:指向認證節點位置(URL、ENDPOINT)、調用服務、註冊、提供支持等,配置文件中的全部配置參數基本都是圍繞此範圍(對實例生命週期管理)進行設置
相關文章
相關標籤/搜索