OS:UbuntuServer 22.04 Mini
设备配置:8G 4core 60GB
一:注册Nova信息至Keystone
[email protected]:~(keystone)# openstack user create --domain default --project service --password servicepassword nova
+---------------------+----------------------------------+
| Field | Value |
+---------------------+----------------------------------+
| default_project_id | 4fabd4d8316c40a398d6496c0a733caf |
| domain_id | default |
| enabled | True |
| id | 92707fe2584546299370285c69a26414 |
| name | nova |
| options | {} |
| password_expires_at | None |
+---------------------+----------------------------------+
[email protected]:~(keystone)# openstack role add --project service --user nova admin
[email protected]:~(keystone)# openstack role assignment list --name
+-------+----------------+-------+-----------------+--------+--------+-----------+
| Role | User | Group | Project | Domain | System | Inherited |
+-------+----------------+-------+-----------------+--------+--------+-----------+
| admin | [email protected] | | [email protected] | | | False |
| admin | [email protected] | | [email protected] | | | False |
| admin | [email protected] | | [email protected] | | | False |
| admin | [email protected] | | | | all | False |
+-------+----------------+-------+-----------------+--------+--------+-----------+
[email protected]:~(keystone)# openstack user create --domain default --project service --password servicepassword placement
+---------------------+----------------------------------+
| Field | Value |
+---------------------+----------------------------------+
| default_project_id | 4fabd4d8316c40a398d6496c0a733caf |
| domain_id | default |
| enabled | True |
| id | 1b504f4b36334ff09c4e8934c057cff6 |
| name | placement |
| options | {} |
| password_expires_at | None |
+---------------------+----------------------------------+
[email protected]:~(keystone)# openstack role add --project service --user placement admin
[email protected]:~(keystone)# openstack role assignment list --name
+-------+-------------------+-------+-----------------+--------+--------+-----------+
| Role | User | Group | Project | Domain | System | Inherited |
+-------+-------------------+-------+-----------------+--------+--------+-----------+
| admin | [email protected] | | [email protected] | | | False |
| admin | [email protected] | | [email protected] | | | False |
| admin | [email protected] | | [email protected] | | | False |
| admin | [email protected] | | [email protected] | | | False |
| admin | [email protected] | | | | all | False |
+-------+-------------------+-------+-----------------+--------+--------+-----------+
[email protected]:~(keystone)# openstack service create --name nova --description "OpenStack Compute service" compute
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | OpenStack Compute service |
| enabled | True |
| id | 39236cf903c340d682dcbe14cb28f719 |
| name | nova |
| type | compute |
+-------------+----------------------------------+
[email protected]:~(keystone)# openstack service create --name placement --description "OpenStack Compute Placement service" placement
+-------------+-------------------------------------+
| Field | Value |
+-------------+-------------------------------------+
| description | OpenStack Compute Placement service |
| enabled | True |
| id | 061751d2d3a54739a536137f2fe4d68c |
| name | placement |
| type | placement |
+-------------+-------------------------------------+
[email protected]:~(keystone)# openstack endpoint create --region RegionOne compute public https://srv1.1000y.cloud:8774/v2.1/%(tenant_id)s
+--------------+--------------------------------------------------+
| Field | Value |
+--------------+--------------------------------------------------+
| enabled | True |
| id | 0ce2730111d24cb49f40e82bd0cfaecb |
| interface | public |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 39236cf903c340d682dcbe14cb28f719 |
| service_name | nova |
| service_type | compute |
| url | https://srv1.1000y.cloud:8774/v2.1/%(tenant_id)s |
+--------------+--------------------------------------------------+
[email protected]:~(keystone)# openstack endpoint create --region RegionOne compute internal https://srv1.1000y.cloud:8774/v2.1/%(tenant_id)s
+--------------+--------------------------------------------------+
| Field | Value |
+--------------+--------------------------------------------------+
| enabled | True |
| id | dddd0a2c6c024b2d8b4a286a4923f3f8 |
| interface | internal |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 39236cf903c340d682dcbe14cb28f719 |
| service_name | nova |
| service_type | compute |
| url | https://srv1.1000y.cloud:8774/v2.1/%(tenant_id)s |
+--------------+--------------------------------------------------+
[email protected]:~(keystone)# openstack endpoint create --region RegionOne compute admin https://srv1.1000y.cloud:8774/v2.1/%(tenant_id)s
+--------------+--------------------------------------------------+
| Field | Value |
+--------------+--------------------------------------------------+
| enabled | True |
| id | b18e6c6f465a481790adb17d4f4b04aa |
| interface | admin |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 39236cf903c340d682dcbe14cb28f719 |
| service_name | nova |
| service_type | compute |
| url | https://srv1.1000y.cloud:8774/v2.1/%(tenant_id)s |
+--------------+--------------------------------------------------+
[email protected]:~(keystone)# openstack endpoint create --region RegionOne placement public https://srv1.1000y.cloud:8778
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | 94f05c1457b245c38e2c325564b723d5 |
| interface | public |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 061751d2d3a54739a536137f2fe4d68c |
| service_name | placement |
| service_type | placement |
| url | https://srv1.1000y.cloud:8778 |
+--------------+----------------------------------+
[email protected]:~(keystone)# openstack endpoint create --region RegionOne placement internal https://srv1.1000y.cloud:8778
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | f9c80672a4c94a9bbd8c2f57dc69123e |
| interface | internal |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 061751d2d3a54739a536137f2fe4d68c |
| service_name | placement |
| service_type | placement |
| url | https://srv1.1000y.cloud:8778 |
+--------------+----------------------------------+
[email protected]:~(keystone)# openstack endpoint create --region RegionOne placement admin https://srv1.1000y.cloud:8778
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | 917f4685af3d4f28a6b59aadeef48e08 |
| interface | admin |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 061751d2d3a54739a536137f2fe4d68c |
| service_name | placement |
| service_type | placement |
| url | https://srv1.1000y.cloud:8778 |
+--------------+----------------------------------+
[email protected] ~(keystone)# openstack catalog show nova
+-----------+---------------------------------------------------------------------------------+
| Field | Value |
+-----------+---------------------------------------------------------------------------------+
| endpoints | RegionOne |
| | public: https://srv1.1000y.cloud:8774/v2.1/994a4a3e0fbc4f5891f38470e158e6b4 |
| | RegionOne |
| | admin: https://srv1.1000y.cloud:8774/v2.1/994a4a3e0fbc4f5891f38470e158e6b4 |
| | RegionOne |
| | internal: https://srv1.1000y.cloud:8774/v2.1/994a4a3e0fbc4f5891f38470e158e6b4 |
| | |
| id | 39236cf903c340d682dcbe14cb28f719 |
| name | nova |
| type | compute |
+-----------+---------------------------------------------------------------------------------+
[email protected] ~(keystone)# openstack catalog show placement
+-----------+-------------------------------------------+
| Field | Value |
+-----------+-------------------------------------------+
| endpoints | RegionOne |
| | admin: https://srv1.1000y.cloud:8778 |
| | RegionOne |
| | public: https://srv1.1000y.cloud:8778 |
| | RegionOne |
| | internal: https://srv1.1000y.cloud:8778 |
| | |
| id | 061751d2d3a54739a536137f2fe4d68c |
| name | placement |
| type | placement |
+-----------+-------------------------------------------+