{"id":1610,"date":"2024-08-28T18:57:22","date_gmt":"2024-08-28T10:57:22","guid":{"rendered":"https:\/\/www.chencuo.top\/?p=1610"},"modified":"2024-08-28T18:57:22","modified_gmt":"2024-08-28T10:57:22","slug":"openstack-v%e7%89%88-centos-stream-8-%e6%89%8b%e5%b7%a5%e6%90%ad%e5%bb%ba-nova%e6%90%ad%e5%bb%ba","status":"publish","type":"post","link":"https:\/\/www.chencuo.top\/?p=1610","title":{"rendered":"openstack v\u7248 centos stream 8 \u624b\u5de5\u642d\u5efa\u2014\u2014nova\u642d\u5efa(\u4e94)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>\u6ce8\u610f<\/strong><\/h2>\n\n\n\n<p>1.\u672c\u6559\u7a0b\u4e3aopenstack \u642d\u5efa\u5e73\u53f0victoria \u7248\uff0c\u865a\u62df\u673a\u4e3acentos stream 8<\/p>\n\n\n\n<p>2.\u672c\u6559\u7a0b\u8bbe\u8ba1\u5185\u5bb9\u975e\u5e38\u591a\uff0c\u5f88\u590d\u6742\uff0c\u4f46\u4e5f\u5f88\u6709\u6280\u5de7\uff0c\u8bf7\u6ce8\u610f\u6bcf\u4e00\u6b65\uff0c\u6211\u8bf4\u53ef\u4ee5\u66f4\u6539\u7684\u5730\u65b9\u53ef\u4ee5\u66f4\u6539\uff0c\u5176\u4f59\u5efa\u8bae\u548c\u6211\u4e00\u6837<\/p>\n\n\n\n<p>3.\u5185\u5bb9\u677f\u5757\u5927\u4f53\u5305\u62ec\uff1a\u57fa\u7840\u73af\u5883\u8bbe\u7f6e\uff0c keystone\u7ec4\u5efa\u5b89\u88c5\uff0cglance\u7ec4\u5efa\u5b89\u88c5\uff0cplacement\u7ec4\u5efa\u5b89\u88c5\uff0cnova\u7ec4\u5efa\u5b89\u88c5\uff0cneutron\u7ec4\u5efa\u5b89\u88c5\uff0cdashboard\u7ec4\u5efa\u5b89\u88c5<\/p>\n\n\n\n<p><strong>4.\u5bc6\u7801\u7ea6\u5b9a\uff1a\u672c\u6587\u6240\u6709\u548c\u6570\u636e\u5e93\u53ca\u6d88\u606f\u961f\u5217\u76f8\u5173\u7684\u5bc6\u7801\u7edf\u4e00\u8bbe\u5b9a rootroot\uff0copenstack \u7ec4\u4ef6\u7528\u6237\u5bc6\u7801\u7edf\u4e00\u8bbe\u5b9a redhat<\/strong><\/p>\n\n\n\n<p>5.\u5b66\u4e60\u6b64\u7ae0\u8282\uff0c\u4f60\u9700\u8981\u4e86\u89e3\u7684\u77e5\u8bc6\uff1a\u6570\u636e\u5e93sql\u4e2ddcl\u7528\u6237\u7ba1\u7406\u7684\u77e5\u8bc6\uff0clinux\u57fa\u7840\u547d\u4ee4\uff0copenstack\u57fa\u7840\u547d\u4ee4<\/p>\n\n\n\n<p>6.\u5b98\u65b9\u7f51\u5740\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/docs.openstack.org\/placement\/victoria\/install\/install-rdo.html\">OpenStack Docs: Install and configure controller node for Red Hat Enterprise Linux and CentOS<\/a><\/p>\n\n\n\n<p>7.\u73af\u5883\u914d\u7f6e\uff1a<\/p>\n\n\n\n<p>\u73af\u5883\u7528\u5230 2\u53f0 \u865a\u62df\u673a\uff0c\u5355\u7f51\u5361\uff0c\u5e76\u4e3a\u5176\u914d\u7f6e \u9759\u6001 IP \u53ca DNS<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>\u4e3b\u673a\u540d<\/td><td>ip<\/td><td>\u7f51\u5173<\/td><td>DNS<\/td><td>cpu\/\u5185\u5b58<\/td><td>\u78c1\u76d8<\/td><td>\u89d2\u8272<\/td><td>\u5907\u6ce8<\/td><\/tr><tr><td>controller<\/td><td>192.168.100.128<\/td><td>192.168.100.2<\/td><td>114.114.114.114<\/td><td>4c\/6g<\/td><td>100g<\/td><td>\u63a7\u5236\u8282\u70b9<\/td><td>\u5f00\u542f\u865a\u62df\u5316\u5f15\u64ce<\/td><\/tr><tr><td>compute<\/td><td>192.168.100.129<\/td><td>192.168.100.2<\/td><td>114.114.114.114<\/td><td>4c\/6g<\/td><td>100g<\/td><td>\u8ba1\u7b97\u8282\u70b9<\/td><td>\u5f00\u542f\u865a\u62df\u5316\u5f15\u64ce<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u63a7\u5236\u8282\u70b9<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5efa\u5e93\u53ca\u6388\u6743<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@controller ~(admin)]$ mysql -uroot -prootroot\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.\nYour MariaDB connection id is 43\nServer version: 10.3.28-MariaDB MariaDB Server\n\nCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nMariaDB &#91;(none)]> create database nova_api;\nQuery OK, 1 row affected (0.001 sec)\n\nMariaDB &#91;(none)]> create database nova;\nQuery OK, 1 row affected (0.001 sec)\n\nMariaDB &#91;(none)]> create database nova_cell0;\nQuery OK, 1 row affected (0.001 sec)\n##\u61d2\u5f97\u89e3\u91ca\u4e86 \u53cd\u6b63\u5c31\u662fsql\u7684dcl\u77e5\u8bc6\nMariaDB &#91;(none)]> grant all privileges on nova_api.* to 'nova'@'localhost'identified by 'rootroot';\nQuery OK, 0 rows affected (0.002 sec)\n\nMariaDB &#91;(none)]> grant all privileges on nova_api.* to 'nova'@'%'identified by 'rootroot';\nQuery OK, 0 rows affected (0.001 sec)\n\nMariaDB &#91;(none)]> grant all privileges on nova.* to 'nova'@'%'identified by 'rootroot';\nQuery OK, 0 rows affected (0.001 sec)\n\nMariaDB &#91;(none)]> grant all privileges on nova.* to 'nova'@'localhost'identified by 'rootroot';\nQuery OK, 0 rows affected (0.001 sec)\n\nMariaDB &#91;(none)]> grant all privileges on nova_cell0.* to 'nova'@'localhost'identified by 'rootroot';\nQuery OK, 0 rows affected (0.001 sec)\n\nMariaDB &#91;(none)]> grant all privileges on nova_cell0.* to 'nova'@'%'identified by 'rootroot';\nQuery OK, 0 rows affected (0.001 sec)\n\nMariaDB &#91;(none)]> show databases;\n+--------------------+\n| Database           |\n+--------------------+\n| glance             |\n| information_schema |\n| keystone           |\n| mysql              |\n| nova               |\n| nova_api           |\n| nova_cell0         |\n| performance_schema |\n| placement          |\n+--------------------+\n9 rows in set (0.002 sec)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u521b\u5efa\u7528\u6237\u53ca\u5173\u8054\u89d2\u8272<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@controller ~(admin)]$ openstack user create --domain default --password-prompt nova\nUser Password:\nRepeat User Password:\n+---------------------+----------------------------------+\n| Field               | Value                            |\n+---------------------+----------------------------------+\n| domain_id           | default                          |\n| enabled             | True                             |\n| id                  | 0c39c2efcb144276b82ac8fb249655b2 |\n| name                | nova                             |\n| options             | {}                               |\n| password_expires_at | None                             |\n+---------------------+----------------------------------+\n&#91;root@controller ~(admin)]$ openstack role add --project service --user nova admin\n&#91;root@controller ~(admin)]$ openstack role assignment list --user nova\n+----------------------------------+----------------------------------+-------+----------------------------------+--------+--------+-----------+\n| Role                             | User                             | Group | Project                          | Domain | System | Inherited |\n+----------------------------------+----------------------------------+-------+----------------------------------+--------+--------+-----------+\n| 35eb6220a4b14503b1672de9f0ffcae9 | 0c39c2efcb144276b82ac8fb249655b2 |       | 578eca45e7e549858c97314e3f2ec1e3 |        |        | False     |\n+----------------------------------+----------------------------------+-------+----------------------------------+--------+--------+-----------+\n&#91;root@controller ~(admin)]$ openstack user list\n+----------------------------------+-----------+\n| ID                               | Name      |\n+----------------------------------+-----------+\n| cda7fc3c6ff74289b8f40e149d397710 | admin     |\n| 9688822b0dcd41929430ab48335fceb2 | myuser    |\n| 2c401bee20a245ac88cf4629ed4ee440 | glance    |\n| 3e66c60b57354be89ac3d5e85fb2f485 | placement |\n| 0c39c2efcb144276b82ac8fb249655b2 | nova      |\n+----------------------------------+-----------+\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u521b\u5efa\u670d\u52a1\u53ca\u6ce8\u518cAPI<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@controller ~(admin)]$ openstack service create --name nova --description \"OpenStack Compute\" compute\n+-------------+----------------------------------+\n| Field       | Value                            |\n+-------------+----------------------------------+\n| description | OpenStack Compute                |\n| enabled     | True                             |\n| id          | b72941ac12b044e281e3e8adbc74476d |\n| name        | nova                             |\n| type        | compute                          |\n+-------------+----------------------------------+\n&#91;root@controller ~(admin)]$ openstack endpoint create --region RegionOne compute public http:\/\/controller:8774\/v2.1\n+--------------+----------------------------------+\n| Field        | Value                            |\n+--------------+----------------------------------+\n| enabled      | True                             |\n| id           | af379dafc84344b190a0b9bd0a08aa67 |\n| interface    | public                           |\n| region       | RegionOne                        |\n| region_id    | RegionOne                        |\n| service_id   | b72941ac12b044e281e3e8adbc74476d |\n| service_name | nova                             |\n| service_type | compute                          |\n| url          | http:\/\/controller:8774\/v2.1      |\n+--------------+----------------------------------+\n&#91;root@controller ~(admin)]$ openstack endpoint create --region RegionOne compute internal http:\/\/controller:8774\/v2.1\n+--------------+----------------------------------+\n| Field        | Value                            |\n+--------------+----------------------------------+\n| enabled      | True                             |\n| id           | a57a74e92f0143e4b13f6211f03a6c3d |\n| interface    | internal                         |\n| region       | RegionOne                        |\n| region_id    | RegionOne                        |\n| service_id   | b72941ac12b044e281e3e8adbc74476d |\n| service_name | nova                             |\n| service_type | compute                          |\n| url          | http:\/\/controller:8774\/v2.1      |\n+--------------+----------------------------------+\n&#91;root@controller ~(admin)]$ openstack endpoint create --region RegionOne compute admin http:\/\/controller:8774\/v2.1\n+--------------+----------------------------------+\n| Field        | Value                            |\n+--------------+----------------------------------+\n| enabled      | True                             |\n| id           | a0056090bca448f48158baec90bba5f3 |\n| interface    | admin                            |\n| region       | RegionOne                        |\n| region_id    | RegionOne                        |\n| service_id   | b72941ac12b044e281e3e8adbc74476d |\n| service_name | nova                             |\n| service_type | compute                          |\n| url          | http:\/\/controller:8774\/v2.1      |\n+--------------+----------------------------------+\n&#91;root@controller ~(admin)]$ openstack endpoint list      ##\u6b64\u5904\u6b63\u5e38\u60c5\u51b5\u4e3a12\u4e2a\n+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+\n| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                         |\n+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+\n| 0347ebc573814319b61f2b061d12a76d | RegionOne | glance       | image        | True    | internal  | http:\/\/controller:9292      |\n| 5b07ad93e892406da4bac5dd0338e3cf | RegionOne | placement    | placement    | True    | internal  | http:\/\/controller:8778      |\n| 6395f0c625274f4b90e9137f38e93882 | RegionOne | keystone     | identity     | True    | admin     | http:\/\/controller:5000\/v3\/  |\n| 810eab1198cc44dc8a2f4de04d227da4 | RegionOne | glance       | image        | True    | admin     | http:\/\/controller:9292      |\n| 861dc3b20d324e4892e506058c2c7b1f | RegionOne | glance       | image        | True    | public    | http:\/\/controller:9292      |\n| a0056090bca448f48158baec90bba5f3 | RegionOne | nova         | compute      | True    | admin     | http:\/\/controller:8774\/v2.1 |\n| a57a74e92f0143e4b13f6211f03a6c3d | RegionOne | nova         | compute      | True    | internal  | http:\/\/controller:8774\/v2.1 |\n| af379dafc84344b190a0b9bd0a08aa67 | RegionOne | nova         | compute      | True    | public    | http:\/\/controller:8774\/v2.1 |\n| ca45bbfeef81436688974a8d04e75d88 | RegionOne | keystone     | identity     | True    | internal  | http:\/\/controller:5000\/v3\/  |\n| dc77bcd015344f4c9406495cba143841 | RegionOne | placement    | placement    | True    | admin     | http:\/\/controller:8778      |\n| deb57dd079d1434b8ba2560d13aa8757 | RegionOne | placement    | placement    | True    | public    | http:\/\/controller:8778      |\n| ff9d2f5be3c54026a27d8661b68460b9 | RegionOne | keystone     | identity     | True    | public    | http:\/\/controller:5000\/v3\/  |\n+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u5b89\u88c5nova<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@controller ~(admin)]$ yum install openstack-nova-api openstack-nova-conductor openstack-nova-novncproxy openstack-nova-scheduler -y\n\u4e0a\u6b21\u5143\u6570\u636e\u8fc7\u671f\u68c0\u67e5\uff1a4:18:42 \u524d\uff0c\u6267\u884c\u4e8e 2024\u5e7408\u670828\u65e5 \u661f\u671f\u4e09 02\u65f644\u520632\u79d2\u3002\n##\u592a\u591a\u4e0d\u4e00\u4e00\u5c55\u793a\u4e86\n\u5df2\u5347\u7ea7:\n  python3-requests-2.22.0-7.el8.noarch                                                                                                          \n\u5df2\u5b89\u88c5:\n  ipcalc-0.2.4-4.el8.x86_64                                                   libsodium-1.0.18-2.el8.x86_64                                     \n  network-scripts-10.00.18-1.el8.x86_64                                       network-scripts-openvswitch2.13-2.13.0-214.el8s.x86_64            \n  network-scripts-team-1.31-4.el8.x86_64                                      nodejs-1:10.23.1-1.module_el8.4.0+645+9ce14ba2.x86_64             \n  nodejs-full-i18n-1:10.23.1-1.module_el8.4.0+645+9ce14ba2.x86_64             novnc-1.1.0-6.el8.noarch                                          \n  npm-1:6.14.10-1.10.23.1.1.module_el8.4.0+645+9ce14ba2.x86_64                openstack-nova-api-1:22.4.0-1.el8.noarch                          \n  openstack-nova-common-1:22.4.0-1.el8.noarch                                 openstack-nova-conductor-1:22.4.0-1.el8.noarch                    \n  openstack-nova-novncproxy-1:22.4.0-1.el8.noarch                             openstack-nova-scheduler-1:22.4.0-1.el8.noarch                    \n  openvswitch-selinux-extra-policy-1.0-29.el8s.noarch                         openvswitch2.13-2.13.0-214.el8s.x86_64                            \n  python-oslo-versionedobjects-lang-2.3.0-2.el8.noarch                        python3-dataclasses-0.7-1.el8.noarch                              \n  python3-fluidity-sm-0.2.0-16.el8.noarch                                     python3-invoke-1.4.0-1.el8.noarch                                 \n  python3-kazoo-2.8.0-1.el8.noarch                                            python3-lexicon-1.0.0-9.el8.noarch                                \n  python3-nova-1:22.4.0-1.el8.noarch                                          python3-openvswitch2.13-2.13.0-214.el8s.x86_64                    \n  python3-os-vif-2.2.1-1.el8.noarch                                           python3-oslo-versionedobjects-2.3.0-2.el8.noarch                  \n  python3-ovsdbapp-1.6.1-1.el8.noarch                                         python3-paramiko-2.7.2-1.el8.noarch                               \n  python3-pynacl-1.4.0-1.el8.x86_64                                           python3-pyroute2-0.5.13-1.1.el8.noarch                            \n  python3-rdo-openvswitch-1:2.13-3.el8.noarch                                 python3-redis-3.3.8-1.el8.noarch                                  \n  python3-tooz-2.7.2-1.el8.noarch                                             python3-voluptuous-0.11.7-2.el8.noarch                            \n  python3-websockify-0.9.0-1.el8.noarch                                       python3-zake-0.2.2-18.el8.noarch    <\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;DEFAULT]\nenabled_apis = osapi_compute,metadata\ntransport_url = rabbit:\/\/openstack:rootroot@controller:5672\/\nmy_ip = 192.168.100.128                                                ##\u7b2c\u4e00\u884c\n\n&#91;api_database]\nconnection = mysql+pymysql:\/\/nova:rootroot@controller\/nova_api    ##1100\u5de6\u53f3\n\n&#91;database]\nconnection = mysql+pymysql:\/\/nova:rootroot@controller\/nova      ##1720\u5de6\u53f3\n\n&#91;api]\nauth_strategy = keystone                         ##890\u5de6\u53f3\n\n&#91;keystone_authtoken]\nwww_authenticate_uri = http:\/\/controller:5000\/\nauth_url = http:\/\/controller:5000\/                      ##2680\u5de6\u53f3\nmemcached_servers = controller:11211\nauth_type = password\nproject_domain_name = Default\nuser_domain_name = Default\nproject_name = service\nusername = nova\npassword = redhat\n\n&#91;vnc]\nenabled = true\nserver_listen = $my_ip\nserver_proxyclient_address = $my_ip         ##5350\u5de6\u53f3\n\n&#91;glance]\napi_servers = http:\/\/controller:9292       ##2040\u5de6\u53f3\n\n&#91;oslo_concurrency]\nlock_path = \/var\/lib\/nova\/tmp         ##3750\u5de6\u53f3\n\n&#91;placement]\nregion_name = RegionOne\nproject_domain_name = Default\nproject_name = service\nauth_type = password\nuser_domain_name = Default                 ##4290\u5de6\u53f3\nauth_url = http:\/\/controller:5000\/v3\nusername = placement\npassword = redhat<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u521d\u59cb\u5316\u6570\u636e\u5e93<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@controller ~(admin)]$ su -s \/bin\/sh -c \"nova-manage api_db sync\" nova\n##\u521d\u59cb\u5316api\u6570\u636e\u5e93\n&#91;root@controller ~(admin)]$ su -s \/bin\/sh -c \"nova-manage cell_v2 map_cell0\" nova\n##\u521d\u59cb\u5316cell0\u6570\u636e\u5e93\n&#91;root@controller ~(admin)]$ su -s \/bin\/sh -c \"nova-manage cell_v2 create_cell --name=cell1 --verbose\" nova\n##\u521d\u59cb\u5316cell\u6570\u636e\u5e93\n--transport-url not provided in the command line, using the value &#91;DEFAULT]\/transport_url from the configuration file\n--database_connection not provided in the command line, using the value &#91;database]\/connection from the configuration file\ndf605cf2-4246-4212-a02a-a237ac56cec0\n\n&#91;root@controller ~(admin)]$ su -s \/bin\/sh -c \"nova-manage db sync\" nova\n##\u586b\u5145nova\u6570\u636e\u5e93\n&#91;root@controller ~(admin)]$ su -s \/bin\/sh -c \"nova-manage cell_v2 list_cells\" nova\n##\u9a8c\u8bc1 nova cell0 \u548c cell1 \u662f\u5426\u5df2\u6b63\u786e\u6ce8\u518c\n+-------+--------------------------------------+------------------------------------------+-------------------------------------------------+----------+\n|  \u540d\u79f0 |                 UUID                 |              Transport URL               |                    \u6570\u636e\u5e93\u8fde\u63a5                   | Disabled |\n+-------+--------------------------------------+------------------------------------------+-------------------------------------------------+----------+\n| cell0 | 00000000-0000-0000-0000-000000000000 |                  none:\/                  | mysql+pymysql:\/\/nova:****@controller\/nova_cell0 |  False   |\n| cell1 | df605cf2-4246-4212-a02a-a237ac56cec0 | rabbit:\/\/openstack:****@controller:5672\/ |    mysql+pymysql:\/\/nova:****@controller\/nova    |  False   |\n+-------+--------------------------------------+------------------------------------------+-------------------------------------------------+----------+\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u91cd\u542f\u670d\u52a1\u5e76\u6d4b\u8bd5<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@controller ~(admin)]$ systemctl enable \\\n> openstack-nova-api.service \\\n> openstack-nova-scheduler.service \\\n> openstack-nova-conductor.service \\\n> openstack-nova-novncproxy.service\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/openstack-nova-api.service \u2192 \/usr\/lib\/systemd\/system\/openstack-nova-api.service.\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/openstack-nova-scheduler.service \u2192 \/usr\/lib\/systemd\/system\/openstack-nova-scheduler.service.\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/openstack-nova-conductor.service \u2192 \/usr\/lib\/systemd\/system\/openstack-nova-conductor.service.\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/openstack-nova-novncproxy.service \u2192 \/usr\/lib\/systemd\/system\/openstack-nova-novncproxy.service.\n&#91;root@controller ~(admin)]$ systemctl start \\\n> openstack-nova-api.service \\\n> openstack-nova-scheduler.service \\\n> openstack-nova-conductor.service \\\n> openstack-nova-novncproxy.service\n&#91;root@controller ~(admin)]$ nova service-list\n+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+\n| Id                                   | Binary         | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |\n+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+\n| b4390dd1-b2ff-45e2-a52a-2833bbb12455 | nova-conductor | controller | internal | enabled | up    | 2024-08-28T11:30:05.000000 | -               | False       |\n| f9b2396b-c97a-446c-9c19-1ba321eaf8f0 | nova-scheduler | controller | internal | enabled | up    | 2024-08-28T11:30:08.000000 | -               | False       |\n+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+\n&#91;root@controller ~(admin)]$ systemctl status openstack-nova-novncproxy.service\n\u25cf openstack-nova-novncproxy.service - OpenStack Nova NoVNC Proxy Server\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/openstack-nova-novncproxy.service; enabled; vendor preset: disabled)\n   Active: active (running) since Wed 2024-08-28 07:29:53 EDT; 43s ago\n Main PID: 59868 (nova-novncproxy)\n    Tasks: 1 (limit: 36628)\n   Memory: 92.4M\n   CGroup: \/system.slice\/openstack-nova-novncproxy.service\n           \u2514\u250059868 \/usr\/bin\/python3 \/usr\/bin\/nova-novncproxy --web \/usr\/share\/novnc\/\n\n8\u6708 28 07:29:53 controller systemd&#91;1]: Started OpenStack Nova NoVNC Proxy Server.\n&#91;root@controller ~(admin)]$ netstat -tulnp |grep 60\n##\u67e5\u770bnova\u7684web\u7aef\u53e3\ntcp        0      0 0.0.0.0:15672           0.0.0.0:*               LISTEN      36059\/beam.smp      \ntcp        0      0 0.0.0.0:6080            0.0.0.0:*               LISTEN      59868\/python3       \ntcp        0      0 0.0.0.0:25672           0.0.0.0:*               LISTEN      36059\/beam.smp      \ntcp6       0      0 :::5672                 :::*                    LISTEN      36059\/beam.smp      \n<\/code><\/pre>\n\n\n\n<p><strong>\u767b\u5f55vnc<\/strong><\/p>\n\n\n\n<p>\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;192.168.100.128:6080\/\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/08\/image-46-1024x582.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"582\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/08\/image-46-1024x582.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-1644\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u8ba1\u7b97\u8282\u70b9<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u5b89\u88c5nova<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@compute yum.repos.d]# yum install openstack-nova-compute -y\n\u8001\u6837\u5b50 \u592a\u591a\u4e86\n\u5df2\u5b89\u88c5:\n  bind-export-libs-32:9.11.36-13.el8.x86_64                                     \n  blosc-1.17.0-1.el8.x86_64                                                     \n  dhcp-client-12:4.3.6-50.el8.x86_64                                            \n  dhcp-common-12:4.3.6-50.el8.noarch                                            \n  dhcp-libs-12:4.3.6-50.el8.x86_64                                              \n  graphviz-2.40.1-45.el8.x86_64                                                 \n  hdf5-1.10.5-5.el8.x86_64                                                      \n  hivex-1.3.18-23.module_el8+310+72016cce.x86_64                                \n  ipcalc-0.2.4-4.el8.x86_64                                                     \n  ipmitool-1.8.18-19.el8.x86_64                                                 \n  iptables-services-1.8.4-23.el8.x86_64                                         \n  libXaw-1.0.13-10.el8.x86_64                                                   \n  libaec-1.0.2-3.el8.x86_64                                                     \n  libgfortran-8.5.0-22.el8.x86_64                                               \n  libguestfs-1:1.44.0-9.module_el8+310+72016cce.x86_64                          \n  libguestfs-appliance-1:1.44.0-9.module_el8+310+72016cce.x86_64                \n  libqhull-1:7.2.1-2.el8.x86_64                                                 \n  libquadmath-8.5.0-22.el8.x86_64                                               \n  libsodium-1.0.18-2.el8.x86_64                                                 \n  libvirt-client-8.0.0-10.module_el8.7.0+1218+f626c2ff.x86_64                   \n  network-scripts-10.00.18-1.el8.x86_64                                         \n  network-scripts-openvswitch2.13-2.13.0-214.el8s.x86_64                        \n  network-scripts-team-1.31-4.el8.x86_64                                        \n  openblas-0.3.15-4.el8.x86_64                                                  \n  openblas-threads-0.3.15-4.el8.x86_64                                          \n  openstack-nova-common-1:22.4.0-1.el8.noarch                                   \n  openstack-nova-compute-1:22.4.0-1.el8.noarch                                  \n  openvswitch-selinux-extra-policy-1.0-29.el8s.noarch                           \n  openvswitch2.13-2.13.0-214.el8s.x86_64                                        \n  perl-Filter-2:1.58-2.el8.x86_64                                               \n  perl-Text-Unidecode-1.30-5.el8.noarch                                         \n  perl-XML-Parser-2.44-11.el8.x86_64                                            \n  perl-XML-XPath-1.42-3.el8.noarch                                              \n  perl-encoding-4:2.22-3.el8.x86_64                                             \n  perl-open-1.11-422.el8.noarch                                                 \n  platform-python-devel-3.6.8-62.el8.x86_64                                     \n  python-oslo-cache-lang-2.6.3-1.el8.noarch                                     \n  python-oslo-concurrency-lang-4.3.1-1.el8.noarch                               \n  python-oslo-db-lang-8.4.1-1.el8.noarch                                        \n  python-oslo-middleware-lang-4.1.1-2.el8.noarch                                \n  python-oslo-policy-lang-3.5.0-2.el8.noarch                                    \n  python-oslo-privsep-lang-2.4.0-2.el8.noarch                                   \n  python-oslo-versionedobjects-lang-2.3.0-2.el8.noarch                          \n  python-oslo-vmware-lang-3.7.0-2.el8.noarch                                    \n  python-pycadf-common-3.1.1-2.el8.noarch                                       \n  python-rpm-macros-3-45.el8.noarch                                             \n  python-srpm-macros-3-45.el8.noarch                                            \n  python3-Bottleneck-1.2.1-13.el8.x86_64                                        \n  python3-PyMySQL-0.10.1-2.module_el8+762+77bd8591.noarch                       \n  python3-alembic-1.4.2-5.el8.noarch                                            \n  python3-amqp-2.6.1-1.el8.noarch                                               \n  python3-automaton-2.2.0-1.el8.noarch                                          \n  python3-babel-2.5.1-7.el8.noarch                                              \n  python3-barbicanclient-5.0.1-2.el8.noarch                                     \n  python3-bcrypt-3.1.7-3.el8s.x86_64                                            \n  python3-boto-2.49.0-4.el8.noarch                                              \n  python3-cachetools-4.2.0-1.el8s.noarch                                        \n  python3-castellan-3.6.1-1.el8.noarch                                          \n  python3-cursive-0.2.2-1.el8.noarch                                            \n  python3-cycler-0.10.0-13.el8.noarch                                           \n  python3-dataclasses-0.7-1.el8.noarch                                          \n  python3-dns-1.15.0-12.el8.noarch                                              \n  python3-editor-1.0.4-4.el8.noarch                                             \n  python3-etcd3gw-0.2.5-1.el8.noarch                                            \n  python3-eventlet-0.25.2-3.1.el8.noarch                                        \n  python3-fasteners-0.14.1-20.el8.noarch                                        \n  python3-fluidity-sm-0.2.0-16.el8.noarch                                       \n  python3-futurist-2.3.0-2.el8.noarch                                           \n  python3-glanceclient-1:3.2.2-2.el8.noarch                                     \n  python3-greenlet-0.4.13-4.el8.x86_64                                          \n  python3-invoke-1.4.0-1.el8.noarch                                             \n  python3-jinja2-2.10.1-5.el8.noarch                                            \n  python3-jsonschema-3.2.0-5.el8.noarch                                         \n  python3-kazoo-2.8.0-1.el8.noarch                                              \n  python3-keystonemiddleware-9.1.0-2.el8.noarch                                 \n  python3-kiwisolver-1.1.0-4.el8.x86_64                                         \n  python3-kombu-1:4.6.11-2.el8.noarch                                           \n  python3-ldap-3.3.1-2.el8.x86_64                                               \n  python3-lexicon-1.0.0-9.el8.noarch                                            \n  python3-libguestfs-1:1.44.0-9.module_el8+310+72016cce.x86_64                  \n  python3-libvirt-8.0.0-2.module_el8+310+72016cce.x86_64                        \n  python3-matplotlib-3.1.1-2.el8.x86_64                                         \n  python3-matplotlib-data-3.1.1-2.el8.noarch                                    \n  python3-matplotlib-data-fonts-3.1.1-2.el8.noarch                              \n  python3-matplotlib-tk-3.1.1-2.el8.x86_64                                      \n  python3-memcached-1.58-11.el8.noarch                                          \n  python3-microversion-parse-1.0.1-1.el8.noarch                                 \n  python3-migrate-0.13.0-1.el8.noarch                                           \n  python3-mock-3.0.5-7.el8.noarch                                               \n  python3-monotonic-1.5-5.el8.noarch                                            \n  python3-networkx-2.5-1.el8.noarch                                             \n  python3-nova-1:22.4.0-1.el8.noarch                                            \n  python3-numexpr-2.7.1-1.el8.x86_64                                            \n  python3-numpy-1:1.14.3-10.el8.x86_64                                          \n  python3-numpy-f2py-1:1.14.3-10.el8.x86_64                                     \n  python3-openvswitch2.13-2.13.0-214.el8s.x86_64                                \n  python3-os-brick-4.0.5-1.el8.noarch                                           \n  python3-os-resource-classes-1.0.0-1.el8.noarch                                \n  python3-os-traits-2.4.0-2.el8.noarch                                          \n  python3-os-vif-2.2.1-1.el8.noarch                                             \n  python3-os-win-5.2.0-1.el8.noarch                                             \n  python3-oslo-cache-2.6.3-1.el8.noarch                                         \n  python3-oslo-concurrency-4.3.1-1.el8.noarch                                   \n  python3-oslo-db-8.4.1-1.el8.noarch                                            \n  python3-oslo-messaging-12.5.2-1.el8.noarch                                    \n  python3-oslo-middleware-4.1.1-2.el8.noarch                                    \n  python3-oslo-policy-3.5.0-2.el8.noarch                                        \n  python3-oslo-privsep-2.4.0-2.el8.noarch                                       \n  python3-oslo-reports-2.2.0-2.el8.noarch                                       \n  python3-oslo-rootwrap-6.2.0-2.el8.noarch                                      \n  python3-oslo-service-2.4.1-1.el8.noarch                                       \n  python3-oslo-upgradecheck-1.1.1-2.el8.noarch                                  \n  python3-oslo-versionedobjects-2.3.0-2.el8.noarch                              \n  python3-oslo-vmware-3.7.0-2.el8.noarch                                        \n  python3-ovsdbapp-1.6.1-1.el8.noarch                                           \n  python3-pandas-0.25.3-1.el8.x86_64                                            \n  python3-paramiko-2.7.2-1.el8.noarch                                           \n  python3-paste-3.5.0-1.el8.noarch                                              \n  python3-paste-deploy-2.1.0-3.el8.noarch                                       \n  python3-pillow-5.1.1-21.el8.x86_64                                            \n  python3-pyOpenSSL-19.0.0-1.el8.noarch                                         \n  python3-pyasn1-0.4.6-3.el8s.noarch                                            \n  python3-pyasn1-modules-0.4.6-3.el8s.noarch                                    \n  python3-pycadf-3.1.1-2.el8.noarch                                             \n  python3-pydot-1.4.1-1.el8.noarch                                              \n  python3-pygraphviz-1.5-9.el8.x86_64                                           \n  python3-pynacl-1.4.0-1.el8.x86_64                                             \n  python3-pyngus-2.3.0-4.el8.noarch                                             \n  python3-pyroute2-0.5.13-1.1.el8.noarch                                        \n  python3-pyrsistent-0.16.0-3.el8.x86_64                                        \n  python3-qpid-proton-0.30.0-1.el8.x86_64                                       \n  python3-rdo-openvswitch-1:2.13-3.el8.noarch                                   \n  python3-redis-3.3.8-1.el8.noarch                                              \n  python3-repoze-lru-0.7-6.el8s.noarch                                          \n  python3-retrying-1.2.3-21.el8.noarch                                          \n  python3-routes-2.4.1-12.el8s.noarch                                           \n  python3-rpm-generators-5-8.el8.noarch                                         \n  python3-rpm-macros-3-45.el8.noarch                                            \n  python3-rsa-4.6-2.el8s.noarch                                                 \n  python3-scipy-1.0.0-21.module_el8+762+77bd8591.x86_64                         \n  python3-sqlalchemy-1.3.2-3.module_el8+778+ea5e2816.x86_64                     \n  python3-sqlparse-0.3.1-3.el8.noarch                                           \n  python3-statsd-3.2.1-16.el8.noarch                                            \n  python3-suds-0.7-0.11.94664ddd46a6.el8.noarch                                 \n  python3-tables-3.5.2-6.el8.x86_64                                             \n  python3-taskflow-4.5.0-2.el8.noarch                                           \n  python3-tempita-0.5.1-25.el8s.noarch                                          \n  python3-tenacity-6.2.0-1.el8.noarch                                           \n  python3-tkinter-3.6.8-62.el8.x86_64                                           \n  python3-tooz-2.7.2-1.el8.noarch                                               \n  python3-vine-1.3.0-4.el8.noarch                                               \n  python3-voluptuous-0.11.7-2.el8.noarch                                        \n  python3-warlock-1.3.3-1.el8.noarch                                            \n  python3-webob-1.8.6-3.el8s.noarch                                             \n  python3-yappi-1.2.5-1.el8.x86_64                                              \n  python3-zake-0.2.2-18.el8.noarch                                              \n  qpid-proton-c-0.30.0-1.el8.x86_64                                             \n  rdo-openvswitch-1:2.13-3.el8.noarch                                           \n  scrub-2.5.2-16.el8.x86_64                                                     \n  supermin-5.2.1-2.module_el8+310+72016cce.x86_64                               \n  sysfsutils-2.1.0-25.el8.x86_64                                                \n  syslinux-6.04-6.el8.x86_64                                                    \n  syslinux-extlinux-6.04-6.el8.x86_64                                           \n  syslinux-extlinux-nonlinux-6.04-6.el8.noarch                                  \n  syslinux-nonlinux-6.04-6.el8.noarch                                           \n  tcl-1:8.6.8-2.el8.x86_64                                                      \n  texlive-base-7:20180414-29.el8.noarch                                         \n  texlive-dvipng-7:20180414-29.el8.x86_64                                       \n  texlive-kpathsea-7:20180414-29.el8.x86_64                                     \n  texlive-lib-7:20180414-29.el8.x86_64                                          \n  texlive-tetex-7:20180414-29.el8.noarch                                        \n  texlive-texlive.infra-7:20180414-29.el8.noarch                                \n  tk-1:8.6.8-1.el8.x86_64                                                       \n  xorg-x11-fonts-ISO8859-1-100dpi-7.5-19.el8.noarch                             \n\n\u5b8c\u6bd5\uff01\n&#91;root@compute yum.repos.d]# cd\n&#91;root@compute ~]# \n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;DEFAULT]\nenabled_apis = osapi_compute,metadata\ntransport_url = rabbit:\/\/openstack:rootroot@controller   ##\u7b2c\u4e00\u884c\nmy_ip = 192.168.100.129\n\n&#91;api]\nauth_strategy = keystone       ##890\u5de6\u53f3\n\n&#91;keystone_authtoken]\nwww_authenticate_uri = http:\/\/controller:5000\/    \nauth_url = http:\/\/controller:5000\/\nmemcached_servers = controller:11211        ##2680\u5de6\u53f3\nauth_type = password\nproject_domain_name = Default\nuser_domain_name = Default\nproject_name = service\nusername = nova\npassword = redhat\n\n&#91;vnc]\nenabled = true\nserver_listen = 0.0.0.0\nserver_proxyclient_address = $my_ip              ##5350\u5de6\u53f3\nnovncproxy_base_url = http:\/\/controller:6080\/vnc_auto.html\n\n&#91;glance]\napi_servers = http:\/\/controller:9292            ##2030\u5de6\u53f3\n\n&#91;oslo_concurrency]\nlock_path = \/var\/lib\/nova\/tmp               ##3750\u5de6\u53f3\n\n&#91;placement]\nregion_name = RegionOne\nproject_domain_name = Default\nproject_name = service\nauth_type = password\nuser_domain_name = Default                 ##4290\u5de6\u53f3\nauth_url = http:\/\/controller:5000\/v3\nusername = placement\npassword = redhat\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u542f\u52a8\u670d\u52a1<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@compute ~]# systemctl start libvirtd.service openstack-nova-compute.service\n&#91;root@compute ~]# systemctl enable libvirtd.service openstack-nova-compute.service\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/openstack-nova-compute.service \u2192 \/usr\/lib\/systemd\/system\/openstack-nova-compute.service.\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u8fd4\u56de\u63a7\u5236\u8282\u70b9<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u786e\u8ba4\u53ca\u53d1\u73b0\u8ba1\u7b97\u8282\u70b9<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@controller ~(admin)]$ source keystonerc_admin\n&#91;root@controller ~(admin)]$ ping 192.168.100.129\nPING 192.168.100.129 (192.168.100.129) 56(84) bytes of data.\n64 bytes from 192.168.100.129: icmp_seq=1 ttl=64 time=7.29 ms\n64 bytes from 192.168.100.129: icmp_seq=2 ttl=64 time=0.784 ms\n^C\n--- 192.168.100.129 ping statistics ---\n2 packets transmitted, 2 received, 0% packet loss, time 1004ms\nrtt min\/avg\/max\/mdev = 0.784\/4.036\/7.288\/3.252 ms\n&#91;root@controller ~(admin)]$ openstack compute service list --service nova-compute\n+----+--------------+---------+------+---------+-------+----------------------------+\n| ID | Binary       | Host    | Zone | Status  | State | Updated At                 |\n+----+--------------+---------+------+---------+-------+----------------------------+\n|  5 | nova-compute | compute | nova | enabled | up    | 2024-08-28T11:50:48.000000 |\n+----+--------------+---------+------+---------+-------+----------------------------+\n&#91;root@controller ~(admin)]$ su -s \/bin\/sh -c \"nova-manage cell_v2 discover_hosts --verbose\" nova\nFound 2 cell mappings.\nSkipping cell0 since it does not contain hosts.\nGetting computes from cell 'cell1': df605cf2-4246-4212-a02a-a237ac56cec0\nChecking host mapping for compute host 'compute': 28beb780-f6ef-4713-ac7c-3463d7f1b5fe\nCreating host mapping for compute host 'compute': 28beb780-f6ef-4713-ac7c-3463d7f1b5fe\nFound 1 unmapped computes in cell: df605cf2-4246-4212-a02a-a237ac56cec0\n&#91;root@controller ~(admin)]$ vim \/etc\/nova\/nova.conf\n##\u6253\u5f00\u540e\u4fee\u6539\n&#91;scheduler]\ndiscover_hosts_in_cells_interval = 300\n\n&#91;root@controller ~(admin)]$ nova service-list\n+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+\n| Id                                   | Binary         | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |\n+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+\n| b4390dd1-b2ff-45e2-a52a-2833bbb12455 | nova-conductor | controller | internal | enabled | up    | 2024-08-28T11:52:36.000000 | -               | False       |\n| f9b2396b-c97a-446c-9c19-1ba321eaf8f0 | nova-scheduler | controller | internal | enabled | up    | 2024-08-28T11:52:39.000000 | -               | False       |\n| 22527ad0-d6a2-471b-9a9e-6c6157725a0c | nova-compute   | compute    | nova     | enabled | up    | 2024-08-28T11:52:38.000000 | -               | False       |\n+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6ce8\u610f 1.\u672c\u6559\u7a0b\u4e3aopenstack \u642d\u5efa\u5e73\u53f0victoria \u7248\uff0c\u865a\u62df\u673a\u4e3acentos stream 8 2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,9,14],"tags":[30,32],"class_list":["post-1610","post","type-post","status-publish","format-standard","hentry","category-5","category-9","category-14","tag-openstack","tag-victoria"],"_links":{"self":[{"href":"https:\/\/www.chencuo.top\/index.php?rest_route=\/wp\/v2\/posts\/1610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chencuo.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chencuo.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chencuo.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chencuo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1610"}],"version-history":[{"count":0,"href":"https:\/\/www.chencuo.top\/index.php?rest_route=\/wp\/v2\/posts\/1610\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.chencuo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chencuo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chencuo.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}