Focus On Oracle

Installing, Backup & Recovery, Performance Tuning,
Troubleshooting, Upgrading, Patching

Oracle Engineered System


当前位置: 首页 » 技术文章 » Cloud

How to Install Oracle OpenStack 2.1.1 Step by Step(III)

Openstack Dashboard(2.1.1)

http://172.16.1.9

admin/password


安装OpenStack命令行工具包

[root@ctrl1 ~]# yum install openstack-kolla-utils -y
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package openstack-kolla-utils.noarch 0:0.1.0-128.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch      Version            Repository          Size
================================================================================
Installing:
 openstack-kolla-utils    noarch    0.1.0-128.el7      ol7_openstack20     25 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 25 k
Installed size: 13 k
Downloading packages:
openstack-kolla-utils-0.1.0-128.el7.noarch.rpm             |  25 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : openstack-kolla-utils-0.1.0-128.el7.noarch                   1/1
  Verifying  : openstack-kolla-utils-0.1.0-128.el7.noarch                   1/1

Installed:
  openstack-kolla-utils.noarch 0:0.1.0-128.el7

Complete!
[root@ctrl1 ~]#

获取kolla_external_address的值
[root@ctrl1 ~]# kollacli property list | grep kolla_external_address
| kolla_external_address                 | 172.16.1.9                 |

配置keystonerc_admin文件(如果没有设置密码,默认密码是password)
[ohsdba@ctrl1 ~]$ cat keystonerc_admin
export OS_AUTH_URL=http://172.16.1.9:5000/v2.0/
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PROJECT_NAME=admin
export OS_PASSWORD=password
export PS1='[\u@\h \W(keystone_admin)]$ '

docker-ostk命令行工具测试
[ohsdba@ctrl1 ~]$ source keystonerc_admin
[ohsdba@ctrl1 ~(keystone_admin)]$
[ohsdba@ctrl1 ~(keystone_admin)]$ docker-ostk nova list
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+
[ohsdba@ctrl1 ~(keystone_admin)]$
[ohsdba@ctrl1 ~(keystone_admin)]$ docker-ostk nova flavor-delete m1.tiny
+----+---------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name    | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+---------+-----------+------+-----------+------+-------+-------------+-----------+
| 1  | m1.tiny | 512       | 1    | 0         |      | 1     | 1.0         | True      |
+----+---------+-----------+------+-----------+------+-------+-------------+-----------+
[ohsdba@ctrl1 ~(keystone_admin)]$ docker-ostk nova flavor-create --is-public True  m1.tiny 1 384 1 1
+----+---------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name    | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+---------+-----------+------+-----------+------+-------+-------------+-----------+
| 1  | m1.tiny | 384       | 1    | 0         |      | 1     | 1.0         | True      |
+----+---------+-----------+------+-----------+------+-------+-------------+-----------+
[ohsdba@ctrl1 ~(keystone_admin)]$

Load Cirros test image into Glance.
[ohsdba@ctrl1 ~(keystone_admin)]$ load_cirros
+--------------------------------------+------------+-------------+------------------+----------+--------+
| ID                                   | Name       | Disk Format | Container Format | Size     | Status |
+--------------------------------------+------------+-------------+------------------+----------+--------+
| 673d4240-a608-4857-8882-c741c7c11875 | cirros_aki | aki         | aki              | 4979632  | active |
| 41d4c3b8-30a6-4aaa-92a3-7911603ca433 | cirros_ami | ami         | ami              | 12458204 | active |
| 30cc39bc-af32-4a7d-a762-ca641698237d | cirros_ari | ari         | ari              | 3740163  | active |
+--------------------------------------+------------+-------------+------------------+----------+--------+
[ohsdba@ctrl1 ~(keystone_admin)]$

Set up the public network
[ohsdba@ctrl1 ~(keystone_admin)]$ docker-ostk neutron net-create \
> --router:external \
> --provider:network_type flat \
> --provider:physical_network physnet1 \
> public-net
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | d6cd688b-719d-4dfc-8c5a-015ec80d6385 |
| mtu                       | 0                                    |
| name                      | public-net                           |
| provider:network_type     | flat                                 |
| provider:physical_network | physnet1                             |
| provider:segmentation_id  |                                      |
| router:external           | True                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | f1c7c997405145dc9bbb20634c4533ed     |
+---------------------------+--------------------------------------+
[ohsdba@ctrl1 ~(keystone_admin)]$
[ohsdba@ctrl1 ~(keystone_admin)]$

[ohsdba@ctrl1 ~(keystone_admin)]$ docker-ostk neutron subnet-create \
> --name public-subnet \
> --gateway 172.18.1.1 \
> --allocation-pool start=172.18.1.10,end=172.18.1.199 \
> --disable-dhcp \
> --ip-version 4 \
> public-net 172.18.1.0/24
Created a new subnet:
+-------------------+-------------------------------------------------+
| Field             | Value                                           |
+-------------------+-------------------------------------------------+
| allocation_pools  | {"start": "172.18.1.10", "end": "172.18.1.199"} |
| cidr              | 172.18.1.0/24                                   |
| dns_nameservers   |                                                 |
| enable_dhcp       | False                                           |
| gateway_ip        | 172.18.1.1                                      |
| host_routes       |                                                 |
| id                | 91df5f00-55a0-40e1-ae29-4a29092b134c            |
| ip_version        | 4                                               |
| ipv6_address_mode |                                                 |
| ipv6_ra_mode      |                                                 |
| name              | public-subnet                                   |
| network_id        | d6cd688b-719d-4dfc-8c5a-015ec80d6385            |
| subnetpool_id     |                                                 |
| tenant_id         | f1c7c997405145dc9bbb20634c4533ed                |
+-------------------+-------------------------------------------------+
[ohsdba@ctrl1 ~(keystone_admin)]$
[ohsdba@ctrl1 ~(keystone_admin)]$ 

[ohsdba@ctrl1 ~(keystone_admin)]$ docker-ostk neutron net-list
+--------------------------------------+------------+----------------------------------------------------+
| id                                   | name       | subnets                                            |
+--------------------------------------+------------+----------------------------------------------------+
| d6cd688b-719d-4dfc-8c5a-015ec80d6385 | public-net | 91df5f00-55a0-40e1-ae29-4a29092b134c 172.18.1.0/24 |
+--------------------------------------+------------+----------------------------------------------------+
[ohsdba@ctrl1 ~(keystone_admin)]$ 

using a sample Heat template
[ohsdba@ctrl1 ~(keystone_admin)]$ docker-ostk heat stack-create -f vts.yaml -P $(./vts.params) ohs
+--------------------------------------+------------+--------------------+----------------------+
| id                                   | stack_name | stack_status       | creation_time        |
+--------------------------------------+------------+--------------------+----------------------+
| 9f6c6954-4511-4ba6-9270-2311728e6ce7 | ohs        | CREATE_IN_PROGRESS | 2016-10-16T15:28:09Z |
+--------------------------------------+------------+--------------------+----------------------+
[ohsdba@ctrl1 ~(keystone_admin)]$


Reference

http://docs.oracle.com/cd/E64747_01/E64749/html/osusg-docker-os-toolkit-install.html

http://docs.oracle.com/cd/E64747_01/E64749/html/osusg-docker-os-toolkit-using.html

https://community.oracle.com/docs/DOC-994381

http://docs.oracle.com/cd/E64747_01/E64748/E64748.pdf

关键词:openstack cloud 

相关文章

Oracle Cloud Native Solutions
Oracle Kubernetes Engine
Terraform,docker,wercker,k8s
Vagrant with oracle
Oracle自治数据仓库云
OMC - How to Install Gateway Agent
Oracle大数据之交互式快速参考
Oracle数据库云服务
Oracle数据库备份云服务
Oracle RAC and Third Party Cloud
Oracle Database Multilingual Engine(MLE)
Oracle GraalVM
Top