wangluo010 发表于 2017-6-24 19:45:19

6 云计算系列之Nova安装与配置

# openstack service create --name nova \  >   --description "OpenStack Compute" compute    # 创建服务实体
  +-------------+----------------------------------+
  | Field       | Value                            |
  +-------------+----------------------------------+
  | description | OpenStack Compute                |
  | enabled   | True                           |

  |>  | name      | nova                           |
  | type      | compute                        |
  +-------------+----------------------------------+
  # openstack endpoint create --region RegionOne compute public http://192.168.56.11:8774/v2.1/%\(tenant_id\)s
  +--------------+----------------------------------------------+
  | Field      | Value                                        |
  +--------------+----------------------------------------------+
  | enabled      | True                                       |

  |>  | interface    | public                                       |
  | region       | RegionOne                                    |
  | region_id    | RegionOne                                    |
  | service_id   | 84f33de0de8c4da18cfb7f213b63a638             |
  | service_name | nova                                       |
  | service_type | compute                                    |
  | url          | http://192.168.56.11:8774/v2.1/%(tenant_id)s |
  +--------------+----------------------------------------------+
  # openstack endpoint create --region RegionOne compute internal http://192.168.56.11:8774/v2.1/%\(tenant_id\)s
  +--------------+----------------------------------------------+
  | Field      | Value                                        |
  +--------------+----------------------------------------------+
  | enabled      | True                                       |

  |>  | interface    | internal                                     |
  | region       | RegionOne                                    |
  | region_id    | RegionOne                                    |
  | service_id   | 84f33de0de8c4da18cfb7f213b63a638             |
  | service_name | nova                                       |
  | service_type | compute                                    |
  | url          | http://192.168.56.11:8774/v2.1/%(tenant_id)s |
  +--------------+----------------------------------------------+
  # openstack endpoint create --region RegionOne compute admin http://192.168.56.11:8774/v2.1/%\(tenant_id\)s
  +--------------+----------------------------------------------+
  | Field      | Value                                        |
  +--------------+----------------------------------------------+
  | enabled      | True                                       |

  |>  | interface    | admin                                        |
  | region       | RegionOne                                    |
  | region_id    | RegionOne                                    |
  | service_id   | 84f33de0de8c4da18cfb7f213b63a638             |
  | service_name | nova                                       |
  | service_type | compute                                    |
  | url          | http://192.168.56.11:8774/v2.1/%(tenant_id)s |
  +--------------+----------------------------------------------+
页: [1]
查看完整版本: 6 云计算系列之Nova安装与配置