首页 > 社交 > 科普中国

Openstack

常驻编辑 科普中国 2022-11-11 区段   节点   实例   证书   浏览器   链接   数据库   内容   设备   信息

OS:UbuntuServer 22.04 MinipOs拜客生活常识网

设备配置:8G 4core 60GBpOs拜客生活常识网

一:注册Nova信息至KeystonepOs拜客生活常识网

[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                                 |
+-----------+-------------------------------------------+    

相关阅读:

  • 受强降雨影响,北京南站部分列车晚点,京九线区段临时封锁
  • “梅花”中心即将离沪,上海地铁地面高架区段6点起逐步
  • 关于种植牙的常见问答
  • ssr链接怎么用(安卓手机ssr怎么添加节点)
  • ssr怎么设置(ssr加速器节点)
  • 节点是什么意思(手机怎么换节点)
  • 「数据结构之字典树Trie」C语言版本实现
  • 网宿科技股份有限公司2021年年度报告摘要300017
  • 《重生之门》热播背后:悬疑剧集寻求差异化,阿里影业自制
  • 互联网后端技术大全!建议收藏
    • 网站地图 |
    • 声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。文章内容仅供参考,不做权威认证,如若验证其真实性,请咨询相关权威专业人士。