Thursday, October 13, 2016

TripleO QuickStart deployment RDO Mitaka HA Overcloud


 Deployment procedure for TripleO QuickStart is bit more complicated in meantime then it was designed originally for Mitaka stable release. Instructions bellow provide a step by step guide in past ( just this summer) not required by QuickStart environment on undercloud VM after you logged into undercloud

Git clone repo bellow :-
[jon@fedora24wks release]$   git clone https://github.com/openstack/tripleo-quickstart


[john@fedora24wks tripleo-quickstart]$ cat ./config/general_config/ha.yml

# Deploy an HA openstack environment.
#
# This will require (6144 * 4) == approx. 24GB for the overcloud
# nodes, plus another 8GB for the undercloud, for a total of around
# 32GB.
control_memory:7000
compute_memory: 6144
undercloud_memory: 8192
default_vcpu: 2

# Giving the undercloud additional CPUs can greatly improve heat's
# performance (and result in a shorter deploy time).
undercloud_vcpu:  2

# Create three controller nodes and one compute node.
overcloud_nodes:
  - name: control_0
    flavor: control
  - name: control_1
    flavor: control
  - name: control_2
    flavor: control

  - name: compute_0
    flavor: compute
  - name: compute_1
    flavor: compute

# We don't need introspection in a virtual environment (because we are
# creating all the "hardware" we really know the necessary
# information).
step_introspect:true

# Tell tripleo about our environment.
network_isolation: true
extra_args: >-
  --control-scale 3 --compute-scale 2 --neutron-network-type vxlan
  --neutron-tunnel-types vxlan
  --ntp-server pool.ntp.org
test_ping: true
enable_pacemaker: true

tempest_config: false
run_tempest: false

****************************************************************************
Run quickstart.sh to create undercloud VM on VIRTHOST
****************************************************************************

[john@fedora24wks tripleo-quickstart]$ bash quickstart.sh --config ./config/general_config/ha.yml $VIRTHOST

********************************************************************************************
In meantime QuickStart requires manual overcloud deployment
Now you are logged into undecloud VM running on VIRTHOST as stack
Building overcloud images is skipped due to QuickStart CI. There is no harm in attempt of building them. It will take a second, they are already there.
********************************************************************************************


Up on completion undercloud build following report is supposed to pop up :-

================================================================================
Thursday 20 October 2016  16:18:04 +0300 (0:00:00.255)       0:30:38.608 ****** 
=============================================================================== 
tripleo/undercloud : Install the undercloud -------------------------- 1492.40s
/home/jon/tripleo-quickstart/roles/tripleo/undercloud/tasks/install-undercloud.yml:15 
setup/undercloud : Get undercloud vm ip address ------------------------ 81.36s
/home/jon/tripleo-quickstart/roles/libvirt/setup/undercloud/tasks/main.yml:194 
setup/undercloud : Resize undercloud image (call virt-resize) ---------- 78.15s
/home/jon/tripleo-quickstart/roles/libvirt/setup/undercloud/tasks/main.yml:131 
setup/undercloud : Upload undercloud volume to storage pool ------------ 53.62s
/home/jon/tripleo-quickstart/roles/libvirt/setup/undercloud/tasks/main.yml:156 
setup/undercloud : Copy instackenv.json to appliance ------------------- 36.49s
/home/jon/tripleo-quickstart/roles/libvirt/setup/undercloud/tasks/main.yml:54 -
setup/undercloud : Get qcow2 image from cache -------------------------- 26.33s
/home/jon/tripleo-quickstart/roles/libvirt/setup/undercloud/tasks/fetch_image.yml:144 
setup/undercloud : Inject undercloud ssh public key to appliance -------- 7.67s
/home/jon/tripleo-quickstart/roles/libvirt/setup/undercloud/tasks/main.yml:72 -
setup/undercloud : Perform selinux relabel on undercloud image ---------- 4.24s
/home/jon/tripleo-quickstart/roles/libvirt/setup/undercloud/tasks/main.yml:114 
setup/user : Generate ssh keys ------------------------------------------ 2.98s
/home/jon/tripleo-quickstart/roles/libvirt/setup/user/tasks/main.yml:19 -------
provision/remote : Create virthost access key --------------------------- 2.88s
/home/jon/tripleo-quickstart/roles/provision/remote/tasks/main.yml:5 ----------
tripleo/undercloud : Run dstat for collecting metrics during 2 hours ---- 1.43s
/home/jon/tripleo-quickstart/roles/tripleo/undercloud/tasks/install-undercloud.yml:6 
tripleo/undercloud : Create undercloud configuration -------------------- 1.41s
/home/jon/tripleo-quickstart/roles/tripleo/undercloud/tasks/create-scripts.yml:3 
setup/overcloud : Create overcloud vm storage --------------------------- 1.34s
/home/jon/tripleo-quickstart/roles/libvirt/setup/overcloud/tasks/main.yml:68 --
environment/setup : Run dstat for collecting metrics during 2 hours on virthost --- 1.32s
/home/jon/tripleo-quickstart/roles/environment/setup/tasks/main.yml:93 --------
parts/libvirt : If ipxe-roms-qemu is not installed, install a known good version --- 1.27s
/home/jon/tripleo-quickstart/roles/parts/libvirt/tasks/main.yml:20 ------------
setup/overcloud : Define overcloud vms ---------------------------------- 1.23s
/home/jon/tripleo-quickstart/roles/libvirt/setup/overcloud/tasks/main.yml:80 --
setup ------------------------------------------------------------------- 1.13s
None --------------------------------------------------------------------------
teardown/nodes : Check overcloud vms ------------------------------------ 1.02s
/home/jon/tripleo-quickstart/roles/libvirt/teardown/nodes/tasks/main.yml:22 ---
teardown/nodes : Delete baremetal vm storage ---------------------------- 1.00s
/home/jon/tripleo-quickstart/roles/libvirt/teardown/nodes/tasks/main.yml:53 ---
setup/overcloud : Check if overcloud volumes exist ---------------------- 0.91s
/home/jon/tripleo-quickstart/roles/libvirt/setup/overcloud/tasks/main.yml:59 --
+ set +x
##################################
Virtual Environment Setup Complete
##################################

Access the undercloud by:

    ssh -F /home/jon/.quickstart/ssh.config.ansible undercloud

Follow the documentation in the link below to complete your deployment.

    http://ow.ly/c44w304begR

##################################
Virtual Environment Setup Complete
##################################
[jon@fedora24wks tripleo-quickstart]$ ssh -F /home/jon/.quickstart/ssh.config.ansible undercloud


Warning: Permanently added '192.168.1.74' (ECDSA) to the list of known hosts.
Warning: Permanently added 'undercloud' (ECDSA) to the list of known hosts.
Last login: Thu Oct 20 13:18:03 2016 from gateway
[stack@undercloud ~]$ ls -l
total 1707568
-rw-rw-r--. 1 stack stack      18288 Oct 21 06:52 instackenv.json
-rw-r--r--. 1 root  root   398233817 Oct  6 03:41 ironic-python-agent.initramfs
-rwxr-xr-x. 1 root  root     5157296 Oct  6 03:41 ironic-python-agent.kernel
-rw-rw-r--. 1 stack stack        462 Oct 21 07:25 network_env.yaml
-rw-------. 1 stack stack       1687 Oct 21 09:33 oskey102116.pem
-rwxrwxr-x. 1 stack stack        523 Oct 21 07:27 overcloud-deploy.sh
-rw-rw-r--. 1 stack stack       4328 Oct 21 07:27 overcloud-env.json
-rw-r--r--. 1 root  root    41988925 Oct  6 03:41 overcloud-full.initrd
-rw-r--r--. 1 root  root  1296961536 Oct  6 03:41 overcloud-full.qcow2
-rwxr-xr-x. 1 root  root     5157296 Oct  6 03:41 overcloud-full.vmlinuz
-rw-rw-r--. 1 stack stack        388 Oct 21 08:14 overcloudrc
-rw-------. 1 stack stack        351 Oct 21 06:56 quickstart-hieradata-overrides.yaml
-rw-------. 1 stack stack        287 Oct 21 07:16 stackrc
-rw-rw-r--. 1 stack stack        232 Oct 21 08:14 tempest-deployer-input.conf
-rw-rw-r--. 1 stack stack       1123 Oct 21 08:14 tripleo-overcloud-passwords
-rw-------. 1 stack stack       7748 Oct 21 06:56 undercloud.conf
-rw-rw-r--. 1 stack stack     956497 Oct 21 07:16 undercloud_install.log
-rwxr-xr-x. 1 stack stack        151 Oct 21 06:56 undercloud-install.sh
-rw-rw-r--. 1 stack stack       1579 Oct 21 06:56 undercloud-passwords.conf
 
and nothing else except reference to tripleo.org instructions
 
[stack@undercloud ~]$ . stackrc
[stack@undercloud ~]$ openstack overcloud image upload
 
 WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
Image "overcloud-full-vmlinuz" was uploaded.
+--------------------------------------+------------------------+-------------+---------+--------+
|                  ID                  |          Name          | Disk Format |   Size  | Status |
+--------------------------------------+------------------------+-------------+---------+--------+
| da8cda4c-c5a1-42f3-bbfb-d3f01ab75996 | overcloud-full-vmlinuz |     aki     | 5157296 | active |
+--------------------------------------+------------------------+-------------+---------+--------+
Image "overcloud-full-initrd" was uploaded.
+--------------------------------------+-----------------------+-------------+----------+--------+
|                  ID                  |          Name         | Disk Format |   Size   | Status |
+--------------------------------------+-----------------------+-------------+----------+--------+
| ed908b4d-6254-454b-a5a9-620d4ae4b99c | overcloud-full-initrd |     ari     | 41989458 | active |
+--------------------------------------+-----------------------+-------------+----------+--------+
Image "overcloud-full" was uploaded.
+--------------------------------------+----------------+-------------+------------+--------+
|                  ID                  |      Name      | Disk Format |    Size    | Status |
+--------------------------------------+----------------+-------------+------------+--------+
| 3838a659-309e-4533-b2c8-2ac452a6a518 | overcloud-full |    qcow2    | 1215971840 | active |
+--------------------------------------+----------------+-------------+------------+--------+
Image "bm-deploy-kernel" was uploaded.
+--------------------------------------+------------------+-------------+---------+--------+
|                  ID                  |       Name       | Disk Format |   Size  | Status |
+--------------------------------------+------------------+-------------+---------+--------+
| 7306dab8-d29f-4d71-bd61-10ccb0e734b2 | bm-deploy-kernel |     aki     | 5157296 | active |
+--------------------------------------+------------------+-------------+---------+--------+
Image "bm-deploy-ramdisk" was uploaded.
+--------------------------------------+-------------------+-------------+-----------+--------+
|                  ID                  |        Name       | Disk Format |    Size   | Status |
+--------------------------------------+-------------------+-------------+-----------+--------+
| 97dd3e36-0d24-4354-802b-5a76f7c8df1a | bm-deploy-ramdisk |     ari     | 397252505 | active |
+--------------------------------------+-------------------+-------------+-----------+--------+
 
[stack@undercloud ~]$ openstack baremetal import instackenv.json
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
Started Mistral Workflow. Execution ID: 6d86caf3-bf22-4d13-8ae0-cedbdb6e0861
Successfully registered node UUID 43d1115a-766f-4c91-b0a5-a092ab854ce7
Successfully registered node UUID 609a2bc8-c70d-40ee-84c5-8a18920520c0
. . . . . 

Successfully registered node UUID 5d66dadb-398d-49b2-9673-206f004f0be2
Successfully registered node UUID 0eef64b9-b923-4c3c-956e-ae8c69635f8a

Started Mistral Workflow. Execution ID: 757b0b23-5007-4b2e-b37d-6eb4fb439701
Successfully set all nodes to available.
 
[stack@undercloud ~]$ openstack baremetal configure boot
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils

[stack@undercloud ~]$ openstack baremetal introspection bulk start
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils

Setting nodes for introspection to manageable...
Starting introspection of manageable nodes
Started Mistral Workflow. Execution ID: 9601dffe-1ec6-473e-b4c7-50e356a142f4
Waiting for introspection to finish...
Introspection for UUID 0eef64b9-b923-4c3c-956e-ae8c69635f8a finished successfully.
Introspection for UUID 43d1115a-766f-4c91-b0a5-a092ab854ce7 finished successfully.
. . . . . .

Introspection for UUID 609a2bc8-c70d-40ee-84c5-8a18920520c0 finished successfully.
Introspection for UUID 5d66dadb-398d-49b2-9673-206f004f0be2 finished successfully.
Introspection completed.
Setting manageable nodes to available...
Started Mistral Workflow. Execution ID: c93b8cc6-ac54-424a-ac0b-f4ff6ac903a2

[stack@undercloud ~]$ neutron subnet-list 
+------------------------------------+------+--------------+------------------------------------+
| id                                 | name | cidr         | allocation_pools                   |
+------------------------------------+------+--------------+------------------------------------+
| 867b046d-                          |      | 192.0.2.0/24 | {"start": "192.0.2.5", "end":      |
| 6d60-42ba-8017-d6a50b273b95        |      |              | "192.0.2.30"}                      |
+------------------------------------+------+--------------+------------------------------------+
 
[stack@undercloud ~]$ neutron subnet-upadate 867b046d-6d60-42ba-8017-d6a50b273b95  --dns-nameserver 192.168.122.1
Invalid command u'subnet-upadate 867b046d-6d60-42ba-8017-d6a50b273b95 --dns-nameserver'
[stack@undercloud ~]$ neutron subnet-update 867b046d-6d60-42ba-8017-d6a50b273b95  --dns-nameserver 192.168.122.1
Updated subnet: 867b046d-6d60-42ba-8017-d6a50b273b95
[stack@undercloud ~]$ sudo vi /etc/sysconfig/network-scripts/ifcfg-vlan10
DEVICE=vlan10
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSIntPort
BOOTPROTO=static
IPADDR=10.0.0.1
NETMASK=255.255.255.0
OVS_BRIDGE=br-ctlplane
OVS_OPTIONS="tag=10"
 
[stack@undercloud ~]$ sudo ifup vlan10
 
[stack@undercloud ~]$ sudo ovs-vsctl show
925242eb-a2b7-4d5b-87e2-3fd2f16e8c30
    Bridge br-int
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
        Port "tap0c00ab70-e3"
            tag: 1
            Interface "tap0c00ab70-e3"
                type: internal
        Port int-br-ctlplane
            Interface int-br-ctlplane
                type: patch
                options: {peer=phy-br-ctlplane}
    Bridge br-ctlplane
        fail_mode: secure
        Port br-ctlplane
            Interface br-ctlplane
                type: internal
        Port "eth1"
            Interface "eth1"
        Port phy-br-ctlplane
            Interface phy-br-ctlplane
                type: patch
                options: {peer=int-br-ctlplane}
        Port "vlan10"
            tag: 10
            Interface "vlan10"
                type: internal
    ovs_version: "2.5.0"


[stack@undercloud ~]$ cat $HOME/network_env.yaml
{
    "parameter_defaults": {
        "ControlPlaneDefaultRoute": "192.0.2.1",
        "ControlPlaneSubnetCidr": "24",
        "DnsServers": [
            "192.168.122.1"
        ],
        "EC2MetadataIp": "192.0.2.1",
        "ExternalAllocationPools": [
            {
                "end": "10.0.0.250",
                "start": "10.0.0.4"
            }
        ],
        "ExternalNetCidr": "10.0.0.1/24",
        "NeutronExternalNetworkBridge": ""
    }
}
[stack@undercloud ~]$ sudo iptables -A BOOTSTACK_MASQ -s 10.0.0.0/24 ! -d 10.0.0.0/24 -j MASQUERADE -t nat
 
[stack@undercloud ~]$ vi overcloud-deploy.sh

#!/bin/bash -x
source /home/stack/stackrc   
openstack overcloud deploy  \
 --control-scale 3 --compute-scale 2 \
 --libvirt-type qemu \
 --ntp-server pool.ntp.org  \
 --templates  /usr/share/openstack-tripleo-heat-templates \
 -e  /usr/share/openstack-tripleo-heat-templates/environments/puppet-pacemaker.yaml \
 -e  /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
 -e  /usr/share/openstack-tripleo-heat-templates/environments/net-single-nic-with-vlans.yaml \
 -e  $HOME/network_env.yaml
 
Raw text of script above is here .

[stack@undercloud ~]$ chmod a+x overcloud-deploy.sh 
 
[stack@undercloud ~]$ ./overcloud-deploy.sh 

. . . . . 

2016-10-13 14:26:22Z [overcloud]: CREATE_COMPLETE  Stack CREATE completed successfully

 Stack overcloud CREATE_COMPLETE 

Overcloud Endpoint: http://10.0.0.4:5000/v2.0
Overcloud Deployed
 
[stack@undercloud ~]$ nova list
+--------------------------------------+-------------------------+--------+------------+-------------+---------------------+
| ID                                   | Name                    | Status | Task State | Power State | Networks            |
+--------------------------------------+-------------------------+--------+------------+-------------+---------------------+
| 0067e9f1-c7de-4521-b7ad-eb3c947f31ba | overcloud-controller-0  | ACTIVE | -          | Running     | ctlplane=192.0.2.9  |
| eb97fb69-e3d0-4435-82d9-857b5a5cc8cf | overcloud-controller-1  | ACTIVE | -          | Running     | ctlplane=192.0.2.13 |
| 9c94a7b9-ab67-43b4-ad2e-d87c130c64a4 | overcloud-controller-2  | ACTIVE | -          | Running     | ctlplane=192.0.2.10 |
| 9791a3b7-c9ed-453d-84eb-1bc2f7f4d58f | overcloud-novacompute-0 | ACTIVE | -          | Running     | ctlplane=192.0.2.12 |
| 13ab084d-7496-4006-87f0-7c3244f8fa93 | overcloud-novacompute-1 | ACTIVE | -          | Running     | ctlplane=192.0.2.7  |
+--------------------------------------+-------------------------+--------+------------+-------------+---------------------+
[stack@undercloud ~]$ ssh heat-admin@192.0.2.9
Last login: Fri Oct 21 08:18:38 2016 from 192.0.2.1
[heat-admin@overcloud-controller-0 ~]$ sudo su -
Last login: Fri Oct 21 08:20:15 UTC 2016 on pts/0
[root@overcloud-controller-0 ~]# pcs status
Cluster name: tripleo_cluster
Last updated: Fri Oct 21 08:33:43 2016  Last change: Fri Oct 21 08:11:56 2016 by root via cibadmin on overcloud-controller-0
Stack: corosync
Current DC: overcloud-controller-1 (version 1.1.13-10.el7_2.4-44eb2dd) - partition with quorum
3 nodes and 127 resources configured

Online: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

Full list of resources:

 ip-192.0.2.6 (ocf::heartbeat:IPaddr2): Started overcloud-controller-0
 ip-172.16.2.5 (ocf::heartbeat:IPaddr2): Started overcloud-controller-1
 ip-172.16.3.4 (ocf::heartbeat:IPaddr2): Started overcloud-controller-2
 Clone Set: haproxy-clone [haproxy]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Master/Slave Set: galera-master [galera]
     Masters: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: memcached-clone [memcached]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 ip-10.0.0.4 (ocf::heartbeat:IPaddr2): Started overcloud-controller-0
 ip-172.16.2.4 (ocf::heartbeat:IPaddr2): Started overcloud-controller-1
 ip-172.16.1.4 (ocf::heartbeat:IPaddr2): Started overcloud-controller-2
 Clone Set: rabbitmq-clone [rabbitmq]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-core-clone [openstack-core]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Master/Slave Set: redis-master [redis]
     Masters: [ overcloud-controller-0 ]
     Slaves: [ overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: mongod-clone [mongod]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-aodh-evaluator-clone [openstack-aodh-evaluator]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-nova-scheduler-clone [openstack-nova-scheduler]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: neutron-l3-agent-clone [neutron-l3-agent]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: neutron-netns-cleanup-clone [neutron-netns-cleanup]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: neutron-ovs-cleanup-clone [neutron-ovs-cleanup]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 openstack-cinder-volume (systemd:openstack-cinder-volume): Started overcloud-controller-0
 Clone Set: openstack-heat-engine-clone [openstack-heat-engine]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-ceilometer-api-clone [openstack-ceilometer-api]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-aodh-listener-clone [openstack-aodh-listener]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: neutron-metadata-agent-clone [neutron-metadata-agent]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-gnocchi-metricd-clone [openstack-gnocchi-metricd]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-aodh-notifier-clone [openstack-aodh-notifier]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-heat-api-clone [openstack-heat-api]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-ceilometer-collector-clone [openstack-ceilometer-collector]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-glance-api-clone [openstack-glance-api]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-cinder-scheduler-clone [openstack-cinder-scheduler]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-nova-api-clone [openstack-nova-api]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-nova-consoleauth-clone [openstack-nova-consoleauth]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-sahara-api-clone [openstack-sahara-api]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-heat-api-cloudwatch-clone [openstack-heat-api-cloudwatch]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-sahara-engine-clone [openstack-sahara-engine]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-glance-registry-clone [openstack-glance-registry]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-gnocchi-statsd-clone [openstack-gnocchi-statsd]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-ceilometer-notification-clone [openstack-ceilometer-notification]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-cinder-api-clone [openstack-cinder-api]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: neutron-dhcp-agent-clone [neutron-dhcp-agent]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: neutron-openvswitch-agent-clone [neutron-openvswitch-agent]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-nova-novncproxy-clone [openstack-nova-novncproxy]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: delay-clone [delay]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: neutron-server-clone [neutron-server]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-ceilometer-central-clone [openstack-ceilometer-central]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: httpd-clone [httpd]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-heat-api-cfn-clone [openstack-heat-api-cfn]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 Clone Set: openstack-nova-conductor-clone [openstack-nova-conductor]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]

PCSD Status:
  overcloud-controller-0: Online
  overcloud-controller-1: Online
  overcloud-controller-2: Online

Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled
[root@overcloud-controller-0 ~]# clustercheck
HTTP/1.1 200 OK
Content-Type: text/plain
Connection: close
Content-Length: 32

Galera cluster node is synced.
 

[stack@undercloud ~]$ wget https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
--2016-10-13 14:40:18--  https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
Resolving cloud-images.ubuntu.com (cloud-images.ubuntu.com)... 91.189.88.141, 2001:67c:1360:8001:ffff:ffff:ffff:fffe
Connecting to cloud-images.ubuntu.com (cloud-images.ubuntu.com)|91.189.88.141|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 314114048 (300M) [application/octet-stream]
Saving to: ‘xenial-server-cloudimg-amd64-disk1.img’

100%[=======================================================>] 314,114,048 1.56MB/s   in 3m 9s  

2016-10-13 14:43:27 (1.59 MB/s) - ‘xenial-server-cloudimg-amd64-disk1.img’ saved [314114048/314114048]

[stack@undercloud ~]$ scp *.img  heat-admin@192.0.2.9:/home/heat-admin
xenial-server-cloudimg-amd64-disk1.img                         100%  300MB 149.8MB/s   00:02    
 
[stack@undercloud ~]$ ssh heat-admin@192.0.2.9

Last login: Thu Oct 13 14:36:33 2016 from 192.0.2.1
[heat-admin@overcloud-controller-0 ~]$ sudo su -
Last login: Thu Oct 13 14:36:38 UTC 2016 on pts/0
[root@overcloud-controller-0 ~]# cp ~heat-admin/*.img .
[root@overcloud-controller-0 ~]# ls -l
total 306756
-rw-r--r--. 1 root root       390 Oct 13 14:37 overcloudrc
-rw-r--r--. 1 root root 314114048 Oct 13 14:44 xenial-server-cloudimg-amd64-disk1.img
[root@overcloud-controller-0 ~]# ls
overcloudrc  xenial-server-cloudimg-amd64-disk1.img
****************************************************************************
Overcloud configuration would be done via Neutron/Nova CLI
**************************************************************************** 
[root@overcloud-controller-0 ~]# . overcloudrc
[root@overcloud-controller-0 ~]# neutron net-create ext-net --router:external \
--provider:physical_network datacentre  --provider:network_type flat
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| availability_zone_hints   |                                      |
| availability_zones        |                                      |
| created_at                | 2016-10-13T14:45:42Z                 |
| description               |                                      |
| id                        | be44bdc8-058f-4d11-87cf-30c5ad7981c5 |
| ipv4_address_scope        |                                      |
| ipv6_address_scope        |                                      |
| is_default                | False                                |
| mtu                       | 1496                                 |
| name                      | ext-net                              |
| port_security_enabled     | True                                 |
| project_id                | ea70e1249eca420c9c837dc0e28ecebe     |
| provider:network_type     | flat                                 |
| provider:physical_network | datacentre                           |
| provider:segmentation_id  |                                      |
| qos_policy_id             |                                      |
| revision_number           | 3                                    |
| router:external           | True                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tags                      |                                      |
| tenant_id                 | ea70e1249eca420c9c837dc0e28ecebe     |
| updated_at                | 2016-10-13T14:45:42Z                 |
+---------------------------+--------------------------------------+
[root@overcloud-controller-0 ~]# neutron subnet-create ext-net --name ext-subnet -\
--allocation-pool start=192.0.2.100,end=192.0.2.120 --disable-dhcp --gateway 192.0.2.1  192.0.2.0/24
Created a new subnet:
+-------------------+------------------------------------------------+
| Field             | Value                                          |
+-------------------+------------------------------------------------+
| allocation_pools  | {"start": "192.0.2.100", "end": "192.0.2.120"} |
| cidr              | 192.0.2.0/24                                   |
| created_at        | 2016-10-13T14:46:28Z                           |
| description       |                                                |
| dns_nameservers   |                                                |
| enable_dhcp       | False                                          |
| gateway_ip        | 192.0.2.1                                      |
| host_routes       |                                                |
| id                | 3f0f1128-abf8-4005-8abb-1db57428f0b4           |
| ip_version        | 4                                              |
| ipv6_address_mode |                                                |
| ipv6_ra_mode      |                                                |
| name              | ext-subnet                                     |
| network_id        | be44bdc8-058f-4d11-87cf-30c5ad7981c5           |
| project_id        | ea70e1249eca420c9c837dc0e28ecebe               |
| revision_number   | 2                                              |
| service_types     |                                                |
| subnetpool_id     |                                                |
| tenant_id         | ea70e1249eca420c9c837dc0e28ecebe               |
| updated_at        | 2016-10-13T14:46:28Z                           |
+-------------------+------------------------------------------------+
[root@overcloud-controller-0 ~]# neutron router-create router1
Created a new router:
+-------------------------+--------------------------------------+
| Field                   | Value                                |
+-------------------------+--------------------------------------+
| admin_state_up          | True                                 |
| availability_zone_hints |                                      |
| availability_zones      |                                      |
| created_at              | 2016-10-13T14:46:51Z                 |
| description             |                                      |
| distributed             | False                                |
| external_gateway_info   |                                      |
| flavor_id               |                                      |
| ha                      | True                                 |
| id                      | ec4e6f3e-e583-4939-be24-bea99806915f |
| name                    | router1                              |
| project_id              | ea70e1249eca420c9c837dc0e28ecebe     |
| revision_number         | 2                                    |
| routes                  |                                      |
| status                  | ACTIVE                               |
| tenant_id               | ea70e1249eca420c9c837dc0e28ecebe     |
| updated_at              | 2016-10-13T14:46:52Z                 |
+-------------------------+--------------------------------------+
[root@overcloud-controller-0 ~]# neutron router-gateway-set router1 ext-net
Set gateway for router router1
[root@overcloud-controller-0 ~]# neutron net-create int
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| availability_zone_hints   |                                      |
| availability_zones        |                                      |
| created_at                | 2016-10-13T14:47:41Z                 |
| description               |                                      |
| id                        | c6a4b4fc-30e5-45bc-86e6-a9cfb645b219 |
| ipv4_address_scope        |                                      |
| ipv6_address_scope        |                                      |
| mtu                       | 1446                                 |
| name                      | int                                  |
| port_security_enabled     | True                                 |
| project_id                | ea70e1249eca420c9c837dc0e28ecebe     |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 37                                   |
| qos_policy_id             |                                      |
| revision_number           | 3                                    |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tags                      |                                      |
| tenant_id                 | ea70e1249eca420c9c837dc0e28ecebe     |
| updated_at                | 2016-10-13T14:47:41Z                 |
+---------------------------+--------------------------------------+
[root@overcloud-controller-0 ~]# neutron subnet-create int 30.0.0.0/24 --dns_nameservers list=true 83.221.202.254
Created a new subnet:
+-------------------+--------------------------------------------+
| Field             | Value                                      |
+-------------------+--------------------------------------------+
| allocation_pools  | {"start": "30.0.0.2", "end": "30.0.0.254"} |
| cidr              | 30.0.0.0/24                                |
| created_at        | 2016-10-13T14:48:05Z                       |
| description       |                                            |
| dns_nameservers   | 83.221.202.254                             |
| enable_dhcp       | True                                       |
| gateway_ip        | 30.0.0.1                                   |
| host_routes       |                                            |
| id                | e2237901-5d46-40a6-96ef-9d2880954bfd       |
| ip_version        | 4                                          |
| ipv6_address_mode |                                            |
| ipv6_ra_mode      |                                            |
| name              |                                            |
| network_id        | c6a4b4fc-30e5-45bc-86e6-a9cfb645b219       |
| project_id        | ea70e1249eca420c9c837dc0e28ecebe           |
| revision_number   | 2                                          |
| service_types     |                                            |
| subnetpool_id     |                                            |
| tenant_id         | ea70e1249eca420c9c837dc0e28ecebe           |
| updated_at        | 2016-10-13T14:48:05Z                       |
+-------------------+--------------------------------------------+
[root@overcloud-controller-0 ~]# neutron router-interface-add router1 e2237901-5d46-40a6-96ef-9d2880954bfd
Added interface 362580ec-e6e1-48ce-ac0e-489cb3eaff29 to router router1.
[root@overcloud-controller-0 ~]# nova secgroup-list
WARNING: Command secgroup-list is deprecated and will be removed after Nova 15.0.0 is released. Use python-neutronclient or python-openstackclient instead.
+--------------------------------------+---------+------------------------+
| Id                                   | Name    | Description            |
+--------------------------------------+---------+------------------------+
| d493e619-404d-4e78-b7bf-97731d5802c0 | default | Default security group |
+--------------------------------------+---------+------------------------+
[root@overcloud-controller-0 ~]# neutron security-group-rule-create --protocol \ 
   icmp  --direction ingress  \
--remote-ip-prefix 0.0.0.0/0 d493e619-404d-4e78-b7bf-97731d5802c0

Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| created_at        | 2016-10-13T14:50:27Z                 |
| description       |                                      |
| direction         | ingress                              |
| ethertype         | IPv4                                 |
| id                | a8f362ab-f03e-4b70-87f4-0b88e7b0852b |
| port_range_max    |                                      |
| port_range_min    |                                      |
| project_id        | ea70e1249eca420c9c837dc0e28ecebe     |
| protocol          | icmp                                 |
| remote_group_id   |                                      |
| remote_ip_prefix  | 0.0.0.0/0                            |
| revision_number   | 1                                    |
| security_group_id | d493e619-404d-4e78-b7bf-97731d5802c0 |
| tenant_id         | ea70e1249eca420c9c837dc0e28ecebe     |
| updated_at        | 2016-10-13T14:50:27Z                 |
+-------------------+--------------------------------------+
[root@overcloud-controller-0 ~]# neutron security-group-rule-create --protocol tcp \
--port-range-min 22 --port-range-max 22 --direction ingress --remote-ip-prefix 0.0.0.0/0  d493e619-404d-4e78-b7bf-97731d5802c0
Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| created_at        | 2016-10-13T14:51:39Z                 |
| description       |                                      |
| direction         | ingress                              |
| ethertype         | IPv4                                 |
| id                | 21fe37c9-e62f-4cce-9f7b-72e210f9bf8f |
| port_range_max    | 22                                   |
| port_range_min    | 22                                   |
| project_id        | ea70e1249eca420c9c837dc0e28ecebe     |
| protocol          | tcp                                  |
| remote_group_id   |                                      |
| remote_ip_prefix  | 0.0.0.0/0                            |
| revision_number   | 1                                    |
| security_group_id | d493e619-404d-4e78-b7bf-97731d5802c0 |
| tenant_id         | ea70e1249eca420c9c837dc0e28ecebe     |
| updated_at        | 2016-10-13T14:51:39Z                 |
+-------------------+--------------------------------------+
[root@overcloud-controller-0 ~]# nova flavor-create "m1.small" 2  1000 20 1
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name     | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+
| 2  | m1.small | 1000      | 20   | 0         |      | 1     | 1.0         | True      |
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+
[root@overcloud-controller-0 ~]# nova keypair-add oskey101316 > oskey101316.pem
[root@overcloud-controller-0 ~]# chmod 600 *.pem
[root@overcloud-controller-0 ~]# ls -l
total 306760
-rw-------. 1 root root      1680 Oct 13 14:53 oskey101316.pem
-rw-r--r--. 1 root root       390 Oct 13 14:37 overcloudrc
-rw-r--r--. 1 root root 314114048 Oct 13 14:44 xenial-server-cloudimg-amd64-disk1.img
[root@overcloud-controller-0 ~]# glance image-create --name "UbuntuXenial"  --disk-format qcow2  --container-format bare --progress <  xenial-server-cloudimg-amd64-disk1.img
[=============================>] 100%
+------------------+-----------------------------------------------------------------+
| Property         | Value                                                           |
+------------------+-----------------------------------------------------------------+
| checksum         | 62ec89386a958db7dc7ec8679a041875                                |
| container_format | bare                                                            |
| created_at       | 2016-10-13T14:54:42Z                                            |
| direct_url       | swift+config://ref1/glance/1412af95-ab27-408d-9faf-db5e9fe0ef8b |
| disk_format      | qcow2                                                           |
| id               | 1412af95-ab27-408d-9faf-db5e9fe0ef8b                            |
| min_disk         | 0                                                               |
| min_ram          | 0                                                               |
| name             | UbuntuXenial                                                    |
| owner            | ea70e1249eca420c9c837dc0e28ecebe                                |
| protected        | False                                                           |
| size             | 314114048                                                       |
| status           | active                                                          |
| tags             | []                                                              |
| updated_at       | 2016-10-13T14:54:46Z                                            |
| virtual_size     | None                                                            |
| visibility       | private                                                         |
+------------------+-----------------------------------------------------------------+
[root@overcloud-controller-0 ~]# glance image-list
+--------------------------------------+--------------+
| ID                                   | Name         |
+--------------------------------------+--------------+
| 1412af95-ab27-408d-9faf-db5e9fe0ef8b | UbuntuXenial |
+--------------------------------------+--------------+
[root@overcloud-controller-0 ~]# neutron net-list
+-------------------------------+-------------------------------+-------------------------------+
| id                            | name                          | subnets                       |
+-------------------------------+-------------------------------+-------------------------------+
| 79b97f97-7fa6-409b-           | HA network tenant ea70e1249ec | 1b2e352c-7075-41e8-af39-0349e |
| 80e9-58f2f27ae34e             | a420c9c837dc0e28ecebe         | 575616c 169.254.192.0/18      |
| be44bdc8-058f-4d11-87cf-      | ext-net                       | 3f0f1128-abf8-4005-8abb-      |
| 30c5ad7981c5                  |                               | 1db57428f0b4 192.0.2.0/24     |
| c6a4b4fc-30e5-45bc-           | int                           | e2237901-5d46-40a6-96ef-      |
| 86e6-a9cfb645b219             |                               | 9d2880954bfd 30.0.0.0/24      |
+-------------------------------+-------------------------------+-------------------------------+
[root@overcloud-controller-0 ~]# nova boot --flavor 2 --key-name oskey101316  \
--image 1412af95-ab27-408d-9faf-db5e9fe0ef8b  \
--nic net-id=c6a4b4fc-30e5-45bc-86e6-a9cfb645b219 ubuntuXenial
+--------------------------------------+-----------------------------------------------------+
| Property                             | Value                                               |
+--------------------------------------+-----------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                              |
| OS-EXT-AZ:availability_zone          |                                                     |
| OS-EXT-SRV-ATTR:host                 | -                                                   |
| OS-EXT-SRV-ATTR:hostname             | ubuntuxenial                                        |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                   |
| OS-EXT-SRV-ATTR:instance_name        |                                                     |
| OS-EXT-SRV-ATTR:kernel_id            |                                                     |
| OS-EXT-SRV-ATTR:launch_index         | 0                                                   |
| OS-EXT-SRV-ATTR:ramdisk_id           |                                                     |
| OS-EXT-SRV-ATTR:reservation_id       | r-xyr9vmdm                                          |
| OS-EXT-SRV-ATTR:root_device_name     | -                                                   |
| OS-EXT-SRV-ATTR:user_data            | -                                                   |
| OS-EXT-STS:power_state               | 0                                                   |
| OS-EXT-STS:task_state                | scheduling                                          |
| OS-EXT-STS:vm_state                  | building                                            |
| OS-SRV-USG:launched_at               | -                                                   |
| OS-SRV-USG:terminated_at             | -                                                   |
| accessIPv4                           |                                                     |
| accessIPv6                           |                                                     |
| adminPass                            | pCpY5GU7846o                                        |
| config_drive                         |                                                     |
| created                              | 2016-10-13T14:57:27Z                                |
| description                          | -                                                   |
| flavor                               | m1.small (2)                                        |
| hostId                               |                                                     |
| host_status                          |                                                     |
| id                                   | 565cda45-f1f5-45fe-9538-55701781e491                |
| image                                | UbuntuXenial (1412af95-ab27-408d-9faf-db5e9fe0ef8b) |
| key_name                             | oskey101316                                         |
| locked                               | False                                               |
| metadata                             | {}                                                  |
| name                                 | ubuntuXenial                                        |
| os-extended-volumes:volumes_attached | []                                                  |
| progress                             | 0                                                   |
| security_groups                      | default                                             |
| status                               | BUILD                                               |
| tags                                 | []                                                  |
| tenant_id                            | ea70e1249eca420c9c837dc0e28ecebe                    |
| updated                              | 2016-10-13T14:57:27Z                                |
| user_id                              | eef84a2446434862a5aa615362964a95                    |
+--------------------------------------+-----------------------------------------------------+
[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+--------------+--------+------------+-------------+---------------+
| ID                                   | Name         | Status | Task State | Power State | Networks      |
+--------------------------------------+--------------+--------+------------+-------------+---------------+
| 565cda45-f1f5-45fe-9538-55701781e491 | ubuntuXenial | BUILD  | spawning   | NOSTATE     | int=30.0.0.14 |
+--------------------------------------+--------------+--------+------------+-------------+---------------+
[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+--------------+--------+------------+-------------+---------------+
| ID                                   | Name         | Status | Task State | Power State | Networks      |
+--------------------------------------+--------------+--------+------------+-------------+---------------+
| 565cda45-f1f5-45fe-9538-55701781e491 | ubuntuXenial | ACTIVE | -          | Running     | int=30.0.0.14 |
+--------------------------------------+--------------+--------+------------+-------------+---------------+
[root@overcloud-controller-0 ~]# cat overcloudrc
export OS_NO_CACHE=True
export OS_CLOUDNAME=overcloud
export OS_AUTH_URL=http://10.0.0.4:5000/v2.0
export NOVA_VERSION=1.1
export COMPUTE_API_VERSION=1.1
export OS_USERNAME=admin
export no_proxy=,10.0.0.4,192.0.2.6
export OS_PASSWORD=EepsNh6uYR2aDENGkwCq9wapk
export PYTHONWARNINGS="ignore:Certificate has no, ignore:A true SSLContext object is not available"
export OS_TENANT_NAME=admin
[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+--------------+--------+------------+-------------+---------------+
| ID                                   | Name         | Status | Task State | Power State | Networks      |
+--------------------------------------+--------------+--------+------------+-------------+---------------+
| 565cda45-f1f5-45fe-9538-55701781e491 | ubuntuXenial | ACTIVE | -          | Running     | int=30.0.0.14 |
+--------------------------------------+--------------+--------+------------+-------------+---------------+

Assign FIP via remote sshuttle connection to dashboard


   Libvirt profiles of control_0 and compute_0
   

  

   Memory allocation generated by QuickStart with Ubuntu Xenial Cloud VM
   running on compute_0

  

  Logging into ubunXenial cloud VM from undecloud VM and testing outbound
 Internet functionality

 
  

1 comment:

  1. Did you know that you can shorten your links with AdFly and receive money from every click on your shortened links.

    ReplyDelete