PackStack

RDO is a community of people using and deploying OpenStack on CentOS, Fedora, and Red Hat Enterprise Linux. We have documentation to help get started, mailing lists where you can connect with other users, and community-supported packages of the most up-to-date OpenStack releases available for download. Homepage

OpenStack Installation Tutorial for Red Hat Enterprise Linux and CentOS

xe1gyq@workstation:~$ sudo dd if=CentOS-7-x86_64-Everything-1708.iso of=/dev/sdb bs=1M
[root@server ~]# sudo yum install -y centos-release-openstack-pike
======================================================================================================================================
 Package                                       Arch                   Version                            Repository              Size
======================================================================================================================================
Installing:
 centos-release-openstack-pike                 x86_64                 1-1.el7                            extras                 5.3 k
Installing for dependencies:
 centos-release-ceph-jewel                     noarch                 1.0-1.el7.centos                   extras                 4.1 k
 centos-release-qemu-ev                        noarch                 1.0-2.el7                          extras                  11 k
 centos-release-storage-common                 noarch                 1-2.el7.centos                     extras                 4.5 k
 centos-release-virt-common                    noarch                 1-1.el7.centos                     extras                 4.5 k
[root@server ~]# sudo yum update -y
======================================================================================================================================
 Package                        Arch                   Version                            Repository                             Size
======================================================================================================================================
Updating:
 mariadb-libs                   x86_64                 3:10.1.20-2.el7                    centos-openstack-pike                 643 k
Installing for dependencies:
 mariadb-common                 x86_64                 3:10.1.20-2.el7                    centos-openstack-pike                  63 k
 mariadb-config                 x86_64                 3:10.1.20-2.el7                    centos-openstack-pike                  26 k
[root@server ~]# sudo yum install -y openstack-packstack
======================================================================================================================================
 Package                              Arch             Version                                  Repository                       Size
======================================================================================================================================
Installing:
 openstack-packstack                  noarch           1:11.0.1-1.el7                           centos-openstack-pike           190 k
Installing for dependencies:
 PyYAML                               x86_64           3.10-11.el7                              base                            153 k
 augeas-libs                          x86_64           1.4.0-2.el7_4.2                          updates                         355 k
 facter                               x86_64           1:2.4.4-4.el7                            centos-openstack-pike           101 k
 hiera                                noarch           1:1.3.4-5.el7                            centos-openstack-pike            25 k
 jbigkit-libs                         x86_64           2.0-11.el7                               base                             46 k
 lcms2                                x86_64           2.6-3.el7                                base                            150 k
 libimagequant                        x86_64           2.8.2-2.el7                              centos-openstack-pike            52 k
 libjpeg-turbo                        x86_64           1.2.90-5.el7                             base                            134 k
 libselinux-ruby                      x86_64           2.5-11.el7                               base                            121 k
 libtiff                              x86_64           4.0.3-27.el7_3                           base                            170 k
 libwebp                              x86_64           0.3.0-7.el7                              base                            170 k
 libyaml                              x86_64           0.1.4-11.el7_0                           base                             55 k
 net-tools                            x86_64           2.0-0.22.20131004git.el7                 base                            305 k
 openjpeg2                            x86_64           2.1.2-1.el7                              centos-openstack-pike           112 k
 openstack-packstack-puppet           noarch           1:11.0.1-1.el7                           centos-openstack-pike            61 k
 pciutils                             x86_64           3.5.1-2.el7                              base                             93 k
 puppet                               noarch           4.8.2-1.el7                              centos-openstack-pike           1.6 M
 puppet-aodh                          noarch           11.4.0-1.el7                             centos-openstack-pike            43 k
 puppet-apache                        noarch           2.0.0-1.e31a682git.el7                   centos-openstack-pike           163 k
 puppet-ceilometer                    noarch           11.5.0-1.el7                             centos-openstack-pike            58 k
 puppet-certmonger                    noarch           1.1.1-2.d09f0f2git.el7                   centos-openstack-pike            18 k
 puppet-cinder                        noarch           11.5.0-1.el7                             centos-openstack-pike            99 k
 puppet-concat                        noarch           4.0.1-1.b783e1egit.el7                   centos-openstack-pike            28 k
 puppet-corosync                      noarch           5.0.0-4.527cda5git.el7                   centos-openstack-pike            51 k
 puppet-firewall                      noarch           1.8.2-2.2f892e9git.el7                   centos-openstack-pike            62 k
 puppet-glance                        noarch           11.5.0-1.el7                             centos-openstack-pike            70 k
 puppet-gnocchi                       noarch           11.5.0-1.el7                             centos-openstack-pike            47 k
 puppet-heat                          noarch           11.5.0-1.el7                             centos-openstack-pike            52 k
 puppet-horizon                       noarch           11.5.0-1.el7                             centos-openstack-pike            43 k
 puppet-inifile                       noarch           2.0.0-1.16fd47dgit.el7                   centos-openstack-pike            32 k
 puppet-ironic                        noarch           11.5.0-1.el7                             centos-openstack-pike            85 k
 puppet-keystone                      noarch           11.4.0-1.el7                             centos-openstack-pike           111 k
 puppet-magnum                        noarch           11.3.2-1.el7                             centos-openstack-pike            34 k
 puppet-manila                        noarch           11.4.0-1.el7                             centos-openstack-pike            58 k
 puppet-memcached                     noarch           3.0.2-1.adf8b63git.el7                   centos-openstack-pike            12 k
 puppet-mysql                         noarch           3.11.0-1.920dd76git.el7                  centos-openstack-pike            72 k
 puppet-neutron                       noarch           11.5.0-1.el7                             centos-openstack-pike           164 k
 puppet-nova                          noarch           11.5.1-1.el7                             centos-openstack-pike           142 k
 puppet-nssdb                         noarch           1.0.1-1.el7                              centos-openstack-pike           6.7 k
 puppet-openstack_extras              noarch           11.5.0-1.el7                             centos-openstack-pike            39 k
 puppet-openstacklib                  noarch           11.5.0-1.el7                             centos-openstack-pike            47 k
 puppet-oslo                          noarch           11.4.0-1.el7                             centos-openstack-pike            35 k
 puppet-ovn                           noarch           11.4.0-1.el7                             centos-openstack-pike            20 k
 puppet-panko                         noarch           11.5.0-1.el7                             centos-openstack-pike            32 k
 puppet-rabbitmq                      noarch           5.6.0-4.5ac45degit.el7                   centos-openstack-pike           253 k
 puppet-redis                         noarch           3.2.0-1.8c61533git.el7                   centos-openstack-pike            42 k
 puppet-remote                        noarch           0.0.1-3.7420908git.el7                   centos-openstack-pike            11 k
 puppet-rsync                         noarch           0.4.0-2.295cfcegit.el7                   centos-openstack-pike            19 k
 puppet-sahara                        noarch           11.4.0-1.el7                             centos-openstack-pike            44 k
 puppet-ssh                           noarch           3.0.1-3.3fb5405git.el7                   centos-openstack-pike            22 k
 puppet-staging                       noarch           1.0.4-1.b466d93git.el7                   centos-openstack-pike            78 k
 puppet-stdlib                        noarch           4.18.0-2.el7                             centos-openstack-pike           124 k
 puppet-swift                         noarch           11.4.0-1.el7                             centos-openstack-pike            93 k
 puppet-sysctl                        noarch           0.0.11-1.el7                             centos-openstack-pike           9.1 k
 puppet-tempest                       noarch           11.5.0-1.el7                             centos-openstack-pike            32 k
 puppet-trove                         noarch           11.4.0-1.el7                             centos-openstack-pike            56 k
 puppet-vcsrepo                       noarch           2.0.0-1.e3d28c6git.el7                   centos-openstack-pike            43 k
 puppet-vswitch                       noarch           7.4.0-1.el7                              centos-openstack-pike            34 k
 puppet-xinetd                        noarch           2.0.0-4.1d1e6d4git.el7                   centos-openstack-pike            20 k
 python-docutils                      noarch           0.11-0.2.20130715svn7687.el7             base                            1.5 M
 python-enum34                        noarch           1.0.4-1.el7                              base                             52 k
 python-ipaddress                     noarch           1.0.16-3.el7                             centos-openstack-pike            34 k
 python-netaddr                       noarch           0.7.18-1.el7                             centos-openstack-pike           1.3 M
 python-netifaces                     x86_64           0.10.4-3.el7                             base                             17 k
 python-ply                           noarch           3.4-11.el7                               base                            123 k
 python-pycparser                     noarch           2.14-1.el7                               base                            104 k
 python2-cffi                         x86_64           1.5.2-1.el7                              centos-openstack-pike           214 k
 python2-cryptography                 x86_64           1.7.2-1.el7_4.1                          updates                         502 k
 python2-idna                         noarch           2.5-1.el7                                centos-openstack-pike            94 k
 python2-olefile                      noarch           0.44-1.el7                               centos-openstack-pike           773 k
 python2-pbr                          noarch           3.1.1-1.el7                              centos-openstack-pike           263 k
 python2-pillow                       x86_64           4.0.0-1.el7                              centos-openstack-pike           552 k
 python2-pyOpenSSL                    noarch           16.2.0-3.el7                             centos-openstack-pike            88 k
 python2-pyasn1                       noarch           0.1.9-7.el7                              base                            100 k
 python2-setuptools                   noarch           22.0.5-1.el7                             centos-openstack-pike           485 k
 python2-six                          noarch           1.10.0-9.el7                             centos-openstack-pike            31 k
 ruby                                 x86_64           2.0.0.648-30.el7                         base                             69 k
 ruby-augeas                          x86_64           0.5.0-1.el7                              centos-openstack-pike            23 k
 ruby-irb                             noarch           2.0.0.648-30.el7                         base                             90 k
 ruby-libs                            x86_64           2.0.0.648-30.el7                         base                            2.8 M
 ruby-shadow                          x86_64           1.4.1-23.el7                             centos-openstack-pike            13 k
 rubygem-bigdecimal                   x86_64           1.2.0-30.el7                             base                             81 k
 rubygem-io-console                   x86_64           0.4.2-30.el7                             base                             52 k
 rubygem-json                         x86_64           1.7.7-30.el7                             base                             77 k
 rubygem-psych                        x86_64           2.0.0-30.el7                             base                             79 k
 rubygem-rdoc                         noarch           4.0.0-30.el7                             base                            319 k
 rubygem-rgen                         noarch           0.6.6-2.el7                              centos-openstack-pike            84 k
 rubygems                             noarch           2.0.14.1-30.el7                          base                            216 k
[root@server ~]# sudo packstack --allinone
[root@server ~]# sudo packstack --allinone
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20180225-033926-iCqfD4/openstack-setup.log
Packstack changed given value  to required value /root/.ssh/id_rsa.pub

Installing:
Clean Up                                             [ DONE ]
Discovering ip protocol version                      [ DONE ]
Setting up ssh keys                                  [ DONE ]
Preparing servers                                    [ DONE ]
Pre installing Puppet and discovering hosts' details [ DONE ]
Preparing pre-install entries                        [ DONE ]
Setting up CACERT                                    [ DONE ]
Preparing AMQP entries                               [ DONE ]
Preparing MariaDB entries                            [ DONE ]
Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
Preparing Keystone entries                           [ DONE ]
Preparing Glance entries                             [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Preparing Cinder entries                             [ DONE ]
Preparing Nova API entries                           [ DONE ]
Creating ssh keys for Nova migration                 [ DONE ]
Gathering ssh host keys for Nova migration           [ DONE ]
Preparing Nova Compute entries                       [ DONE ]
Preparing Nova Scheduler entries                     [ DONE ]
Preparing Nova VNC Proxy entries                     [ DONE ]
Preparing OpenStack Network-related Nova entries     [ DONE ]
Preparing Nova Common entries                        [ DONE ]
Preparing Neutron LBaaS Agent entries                [ DONE ]
Preparing Neutron API entries                        [ DONE ]
Preparing Neutron L3 entries                         [ DONE ]
Preparing Neutron L2 Agent entries                   [ DONE ]
Preparing Neutron DHCP Agent entries                 [ DONE ]
Preparing Neutron Metering Agent entries             [ DONE ]
Checking if NetworkManager is enabled and running    [ DONE ]
Preparing OpenStack Client entries                   [ DONE ]
Preparing Horizon entries                            [ DONE ]
Preparing Swift builder entries                      [ DONE ]
Preparing Swift proxy entries                        [ DONE ]
Preparing Swift storage entries                      [ DONE ]
Preparing Gnocchi entries                            [ DONE ]
Preparing Redis entries                              [ DONE ]
Preparing Ceilometer entries                         [ DONE ]
Preparing Aodh entries                               [ DONE ]
Preparing Puppet manifests                           [ DONE ]
Copying Puppet modules and manifests                 [ DONE ]
Applying 192.168.1.69_controller.pp:
192.168.1.69_controller.pp:                          [ DONE ]
Applying 192.168.1.69_network.pp:
192.168.1.69_network.pp:                             [ DONE ]
Applying 192.168.1.69_compute.pp:
192.168.1.69_compute.pp:                             [ DONE ]
Applying Puppet manifests                            [ DONE ]
Finalizing                                           [ DONE ]

 **** Installation completed successfully ******

Additional information:
 * A new answerfile was created in: /root/packstack-answers-20180228-061917.txt
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * Warning: NetworkManager is active on 192.168.1.69. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
 * File /root/keystonerc_admin has been created on OpenStack client host 192.168.1.69. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://192.168.1.69/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
 * Because of the kernel update the host 192.168.1.69 requires reboot.
 * The installation log file is available at: /var/tmp/packstack/20180228-061917-WMhEW7/openstack-setup.log
 * The generated manifests are available at: /var/tmp/packstack/20180228-061917-WMhEW7/manifests
[root@localhost xe1gyq]# sudo reboot
PolicyKit daemon disconnected from the bus.
We are no longer a registered authentication agent.
[root@localhost xe1gyq]# Connection to 192.168.1.69 closed by remote host.
Connection to 192.168.1.69 closed.
`
[root@localhost xe1gyq]# nmcli
enp0s25: connected to enp0s25
    "Intel Ethernet Connection I217-LM"
    ethernet (e1000e), 54:EE:75:2D:1D:F4, hw, mtu 1500
    ip4 default
    inet4 192.168.1.69/24
    inet6 fe80::56ee:75ff:fe2d:1df4/64

wlp4s0: disconnected
    "Intel Wireless 7260 (Dual Band Wireless-AC 7260)"
    wifi (iwlwifi), DA:F5:2C:80:D6:38, hw

lo: unmanaged
    "lo"
    loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

br-ex: unmanaged
    "br-ex"
    openvswitch, 3E:2D:DB:73:7C:44, sw, mtu 1500

br-int: unmanaged
    "br-int"
    openvswitch, 1E:6C:C3:31:57:4E, sw, mtu 1500

br-tun: unmanaged
    "br-tun"
    openvswitch, 12:50:FA:40:E1:46, sw, mtu 1500

ovs-system: unmanaged
    "ovs-system"
    openvswitch, 32:31:1E:1C:F3:99, sw, mtu 1500

DNS configuration:
    servers: 192.168.1.254
    interface: enp0s25

Use "nmcli device show" to get complete information about known devices and
"nmcli connection show" to get an overview on active connection profiles.

Consult nmcli(1) and nmcli-examples(5) manual pages for complete usage details.
[root@localhost xe1gyq]#
[xe1gyq@server ~]$ su root
Password: 
[root@server xe1gyq]# cd
[root@server ~]# source keystonerc_admin 
[root@server ~(keystone_admin)]#
[root@localhost ~(keystone_admin)]# openstack image list
+--------------------------------------+--------+--------+
| ID                                   | Name   | Status |
+--------------------------------------+--------+--------+
| aa69b59b-afe7-4754-941a-bce7e0c0664a | cirros | active |
+--------------------------------------+--------+--------+
[root@server ~(keystone_admin)]#
[root@localhost ~(keystone_admin)]# openstack compute service list
+----+------------------+-----------------------+----------+---------+-------+----------------------------+
| ID | Binary           | Host                  | Zone     | Status  | State | Updated At                 |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+
|  4 | nova-conductor   | localhost.localdomain | internal | enabled | up    | 2018-02-28T12:04:25.000000 |
|  7 | nova-scheduler   | localhost.localdomain | internal | enabled | up    | 2018-02-28T12:04:16.000000 |
|  8 | nova-consoleauth | localhost.localdomain | internal | enabled | up    | 2018-02-28T12:04:16.000000 |
|  9 | nova-compute     | localhost.localdomain | nova     | enabled | up    | 2018-02-28T12:04:24.000000 |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+
[root@server ~(keystone_admin)]#
[root@server ~(keystone_admin)]# neutron ext-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+---------------------------+----------------------------------------------------------------------------------------------+
| alias                     | name                                                                                         |
+---------------------------+----------------------------------------------------------------------------------------------+
| default-subnetpools       | Default Subnetpools                                                                          |
| availability_zone         | Availability Zone                                                                            |
| network_availability_zone | Network Availability Zone                                                                    |
| auto-allocated-topology   | Auto Allocated Topology Services                                                             |
| net-mtu-writable          | Network MTU (writable)                                                                       |
| binding                   | Port Binding                                                                                 |
| metering                  | Neutron Metering                                                                             |
| agent                     | agent                                                                                        |
| subnet_allocation         | Subnet Allocation                                                                            |
| l3_agent_scheduler        | L3 Agent Scheduler                                                                           |
| tag                       | Tag support                                                                                  |
| external-net              | Neutron external network                                                                     |
| standard-attr-tag         | Tag support for resources with standard attribute: trunk, policy, security_group, floatingip |
| flavors                   | Neutron Service Flavors                                                                      |
| net-mtu                   | Network MTU                                                                                  |
| network-ip-availability   | Network IP Availability                                                                      |
| quotas                    | Quota management support                                                                     |
| revision-if-match         | If-Match constraints based on revision_number                                                |
| l3-ha                     | HA Router extension                                                                          |
| provider                  | Provider Network                                                                             |
| multi-provider            | Multi Provider Network                                                                       |
| quota_details             | Quota details management support                                                             |
| address-scope             | Address scope                                                                                |
| extraroute                | Neutron Extra Route                                                                          |
| ext-gw-mode               | Neutron L3 Configurable external gateway mode                                                |
| subnet-service-types      | Subnet service types                                                                         |
| standard-attr-timestamp   | Resource timestamps                                                                          |
| service-type              | Neutron Service Type Management                                                              |
| l3-flavors                | Router Flavor Extension                                                                      |
| port-security             | Port Security                                                                                |
| extra_dhcp_opt            | Neutron Extra DHCP options                                                                   |
| standard-attr-revisions   | Resource revision numbers                                                                    |
| pagination                | Pagination support                                                                           |
| sorting                   | Sorting support                                                                              |
| security-group            | security-group                                                                               |
| dhcp_agent_scheduler      | DHCP Agent Scheduler                                                                         |
| router_availability_zone  | Router Availability Zone                                                                     |
| rbac-policies             | RBAC Policies                                                                                |
| tag-ext                   | Tag support for resources: subnet, subnetpool, port, router                                  |
| standard-attr-description | standard-attr-description                                                                    |
| router                    | Neutron L3 Router                                                                            |
| allowed-address-pairs     | Allowed Address Pairs                                                                        |
| project-id                | project_id field enabled                                                                     |
| dvr                       | Distributed Virtual Router                                                                   |
+---------------------------+----------------------------------------------------------------------------------------------+
[root@server ~(keystone_admin)]#
[root@localhost ~(keystone_admin)]# openstack volume service list
+------------------+---------------------------+------+---------+-------+----------------------------+
| Binary           | Host                      | Zone | Status  | State | Updated At                 |
+------------------+---------------------------+------+---------+-------+----------------------------+
| cinder-scheduler | localhost.localdomain     | nova | enabled | up    | 2018-02-28T12:06:18.000000 |
| cinder-backup    | localhost.localdomain     | nova | enabled | up    | 2018-02-28T12:06:16.000000 |
| cinder-volume    | localhost.localdomain@lvm | nova | enabled | up    | 2018-02-28T12:06:19.000000 |
+------------------+---------------------------+------+---------+-------+----------------------------+
[root@server ~(keystone_admin)]#
[root@server ~(keystone_admin)]# openstack flavor list
+----+-----------+-------+------+-----------+-------+-----------+
| ID | Name      |   RAM | Disk | Ephemeral | VCPUs | Is Public |
+----+-----------+-------+------+-----------+-------+-----------+
| 1  | m1.tiny   |   512 |    1 |         0 |     1 | True      |
| 2  | m1.small  |  2048 |   20 |         0 |     1 | True      |
| 3  | m1.medium |  4096 |   40 |         0 |     2 | True      |
| 4  | m1.large  |  8192 |   80 |         0 |     4 | True      |
| 5  | m1.xlarge | 16384 |  160 |         0 |     8 | True      |
+----+-----------+-------+------+-----------+-------+-----------+
[root@server ~(keystone_admin)]#
[root@server ~(keystone_admin)]# openstack network list
+--------------------------------------+---------+--------------------------------------+
| ID                                   | Name    | Subnets                              |
+--------------------------------------+---------+--------------------------------------+
| 0664e514-be0a-4c37-a9ae-374685e6c671 | private | 6498aa50-db90-432d-a598-76c87ca0bb86 |
| 2ead6f64-3698-48c1-8a8d-083608cf8def | public  | fc1b5ee3-2335-4aee-ae99-ec9ab5ed4472 |
+--------------------------------------+---------+--------------------------------------+
[root@server ~(keystone_admin)]#
[root@server ~(keystone_admin)]# openstack security group list
+--------------------------------------+---------+------------------------+----------------------------------+
| ID                                   | Name    | Description            | Project                          |
+--------------------------------------+---------+------------------------+----------------------------------+
| 719648e8-1c1a-40cb-8547-7f81546d3677 | default | Default security group | 50a4cbbbd9894aab92409b8711c0c10d |
| 99e1fd4c-2824-49c0-9da6-5e4f0d2d4435 | default | Default security group |                                  |
| f86e6218-7e4d-40d9-9606-03bc985c9bb5 | default | Default security group | f5166745dd994d2d9b1e40583398ff93 |
+--------------------------------------+---------+------------------------+----------------------------------+
[root@server ~(keystone_admin)]#
[root@server ~(keystone_admin)]# openstack server list

[root@server ~(keystone_admin)]#
[root@server ~(keystone_demo)]# openstack keypair create mykey
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAuad6AH5Qvi222y32VmDGcq4TH1mdquFFRxNjE4Op6CyHtDAS
...
-----END RSA PRIVATE KEY-----

[root@server ~(keystone_demo)]#
[root@server ~(keystone_demo)]# openstack keypair list
+-------+-------------------------------------------------+
| Name  | Fingerprint                                     |
+-------+-------------------------------------------------+
| mykey | b1:74:86:2c:95:bd:18:bb:ed:4e:7a:2c:d1:58:d3:a9 |
+-------+-------------------------------------------------+
[root@server ~(keystone_demo)]#
[root@server ~(keystone_admin)]# openstack --os-auth-url http://localhost:5000/v3 --os-project-domain-name Default --os-user-domain-name Default --os-project-name demo --os-username demo token issue
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field      | Value                                                                                                                                                                                   |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| expires    | 2018-02-25T15:32:00+0000                                                                                                                                                                |
| id         | gAAAAABaksjgyC-UBRbuH4B8epm5_669crWfvz82gmrOK1I_FgmdhrnX-HSQ5sgREJjlOMC1kF9nUgSeG9shO-sI-qRsWRleJjNo6s0vbBY-9X9EPyK1oGuIHgQfaf9PXABtozb2RgNb4y-fg1G1EGTelAPhxNNTSWHsJr5-nTzx6fBvL24AoNk |
| project_id | f5166745dd994d2d9b1e40583398ff93                                                                                                                                                        |
| user_id    | 771b0fa94bf94a49a369ef3ec8e977b4                                                                                                                                                        |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[root@server ~(keystone_admin)]#

Launch Instance

  • Virtual Networks

  • Flavor

  • Key Pair ?

  • Security Group Rules ?

  • Instance

  • Block Storage

  • Orchestration

  • Shared File Systems

[root@server ~(keystone_admin)]# openstack flavor list
+----+-----------+-------+------+-----------+-------+-----------+
| ID | Name      |   RAM | Disk | Ephemeral | VCPUs | Is Public |
+----+-----------+-------+------+-----------+-------+-----------+
| 1  | m1.tiny   |   512 |    1 |         0 |     1 | True      |
| 2  | m1.small  |  2048 |   20 |         0 |     1 | True      |
| 3  | m1.medium |  4096 |   40 |         0 |     2 | True      |
| 4  | m1.large  |  8192 |   80 |         0 |     4 | True      |
| 5  | m1.xlarge | 16384 |  160 |         0 |     8 | True      |
+----+-----------+-------+------+-----------+-------+-----------+
[root@server ~(keystone_admin)]#
[root@server ~(keystone_admin)]# openstack image list
+--------------------------------------+--------+--------+
| ID                                   | Name   | Status |
+--------------------------------------+--------+--------+
| 388b59d2-9eea-4c65-83ed-4214b1e9884d | cirros | active |
+--------------------------------------+--------+--------+
[root@server ~(keystone_admin)]#
[root@localhost ~(keystone_admin)]# openstack network list
+--------------------------------------+---------+--------------------------------------+
| ID                                   | Name    | Subnets                              |
+--------------------------------------+---------+--------------------------------------+
| b62b334a-427e-4974-bfc8-7bfe9d7b3909 | private | 15ded214-8aed-427c-aa23-fac36d84a239 |
| bb811c5e-fed1-45f1-ad74-641c7bf793b7 | public  | bc3f5404-8dbe-49fc-9aea-347f302fac61 |
+--------------------------------------+---------+--------------------------------------+
[root@server ~(keystone_admin)]#
[root@localhost ~(keystone_admin)]# openstack security group list
+--------------------------------------+---------+------------------------+----------------------------------+
| ID                                   | Name    | Description            | Project                          |
+--------------------------------------+---------+------------------------+----------------------------------+
| 100823ac-4698-42e6-a929-995080c1a8d4 | default | Default security group | b20323ec1d034c858ec748cdfa0c014f |
| 7c2c0793-0a43-4d41-ab11-c1bf0297ac6c | default | Default security group | 6b7a4bfea8df4a689d6dfc509c24e545 |
| a0b66228-7ee7-4b24-9b17-f31da7fc0945 | default | Default security group |                                  |
+--------------------------------------+---------+------------------------+----------------------------------+
[root@server ~(keystone_admin)]#
[root@localhost ~(keystone_admin)]# openstack server create --flavor m1.small --image cirros --nic net-id=bb811c5e-fed1-45f1-ad74-641c7bf793b7 provider-instance
+-------------------------------------+-----------------------------------------------+
| Field                               | Value                                         |
+-------------------------------------+-----------------------------------------------+
| OS-DCF:diskConfig                   | MANUAL                                        |
| OS-EXT-AZ:availability_zone         |                                               |
| OS-EXT-SRV-ATTR:host                | None                                          |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None                                          |
| OS-EXT-SRV-ATTR:instance_name       |                                               |
| OS-EXT-STS:power_state              | NOSTATE                                       |
| OS-EXT-STS:task_state               | scheduling                                    |
| OS-EXT-STS:vm_state                 | building                                      |
| OS-SRV-USG:launched_at              | None                                          |
| OS-SRV-USG:terminated_at            | None                                          |
| accessIPv4                          |                                               |
| accessIPv6                          |                                               |
| addresses                           |                                               |
| adminPass                           | JBWfMhTadPy5                                  |
| config_drive                        |                                               |
| created                             | 2018-02-28T12:08:17Z                          |
| flavor                              | m1.small (2)                                  |
| hostId                              |                                               |
| id                                  | 4867db8b-2ca4-43db-9854-829ca987fc07          |
| image                               | cirros (aa69b59b-afe7-4754-941a-bce7e0c0664a) |
| key_name                            | None                                          |
| name                                | provider-instance                             |
| progress                            | 0                                             |
| project_id                          | b20323ec1d034c858ec748cdfa0c014f              |
| properties                          |                                               |
| security_groups                     | name='default'                                |
| status                              | BUILD                                         |
| updated                             | 2018-02-28T12:08:17Z                          |
| user_id                             | 7061cecc762e46e1b00f4b2a9c703a33              |
| volumes_attached                    |                                               |
+-------------------------------------+-----------------------------------------------+
[root@localhost ~(keystone_admin)]#
[root@localhost ~(keystone_admin)]# openstack server list
+--------------------------------------+-------------------+--------+-------------------+--------+----------+
| ID                                   | Name              | Status | Networks          | Image  | Flavor   |
+--------------------------------------+-------------------+--------+-------------------+--------+----------+
| 4867db8b-2ca4-43db-9854-829ca987fc07 | provider-instance | ACTIVE | public=172.24.4.7 | cirros | m1.small |
+--------------------------------------+-------------------+--------+-------------------+--------+----------+
[root@server ~(keystone_admin)]#
[root@localhost ~(keystone_admin)]# openstack console url show provider-instance
+-------+-----------------------------------------------------------------------------------+
| Field | Value                                                                             |
+-------+-----------------------------------------------------------------------------------+
| type  | novnc                                                                             |
| url   | http://192.168.1.69:6080/vnc_auto.html?token=cc2a09d6-9d6c-4e93-ac60-0597f07de644 |
+-------+-----------------------------------------------------------------------------------+
[root@localhost ~(keystone_admin)]#
[root@localhost ~(keystone_admin)]# openstack floating ip create public
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| created_at          | 2018-02-28T12:13:03Z                 |
| description         |                                      |
| fixed_ip_address    | None                                 |
| floating_ip_address | 172.24.4.2                           |
| floating_network_id | bb811c5e-fed1-45f1-ad74-641c7bf793b7 |
| id                  | 266b52f0-f659-4052-9075-59308ad7b55f |
| name                | 172.24.4.2                           |
| port_id             | None                                 |
| project_id          | b20323ec1d034c858ec748cdfa0c014f     |
| revision_number     | 0                                    |
| router_id           | None                                 |
| status              | DOWN                                 |
| updated_at          | 2018-02-28T12:13:03Z                 |
+---------------------+--------------------------------------+
[root@localhost ~(keystone_admin)]#
[root@localhost ~(keystone_admin)]# sudo ifconfig qbrd300d8b3-ec 172.24.4.1 up
$ sudo ifconfig eth0 172.24.4.2 up

Image

Creating Custom CentOS 7 Images for Openstack

Last updated