Thursday, June 15, 2017

Attempt to upgrade OVS to 2.7 on HA overcloud topology RDO Ocata

This test is inspired by [1], however it has been done on stable Ocata 
branch 15.0.6 (versus master in link mentioned above.) 
So, it allows after OVS upgrade to launch completely functional VM in overcloud.
Obviously no ovn* packages got installed. 
Same step on Master is awaiting complete functionality of TripleO QS 
deployment of Master branch. See https://bugs.launchpad.net/nova/+bug/1694666

*********************************************************
On each Controller in 3 Node PCS Cluster :-
*********************************************************

# yum-config-manager --add-repo \
 http://cbs.centos.org/repos/cloud7-openstack-pike-candidate/x86_64/os/
# cd /etc/yum.repos.d
# vi cbs.centos.org_repos_cloud7-openstack-pike-candidate_x86_64_os_.repo
[cbs.centos.org_repos_cloud7-openstack-pike-candidate_x86_64_os]
name=added from: http://cbs.centos.org/repos/cloud7-openstack-pike-candidate/x86_64/os
baseurl=http://cbs.centos.org/repos/cloud7-openstack-pike-candidate/x86_64/os
enabled=1
gpgcheck=0
includepkgs=openvswitch
:wq

# yum update

********************************************
Restart openvswitch.service
********************************************
# systemctl restart openvswitch.service
*******************************************
Openstack services restart
*******************************************
# pcs resource cleanup

[root@overcloud-controller-0 ~]# ovs-vsctl show
ae3131f6-98e5-4f6f-bb67-5916329ecfce
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-tun
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port "vxlan-ac100006"
            Interface "vxlan-ac100006"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="172.16.0.15", out_key=flow, remote_ip="172.16.0.6"}
        Port "vxlan-ac10000a"
            Interface "vxlan-ac10000a"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="172.16.0.15", out_key=flow, remote_ip="172.16.0.10"}
        Port "vxlan-ac10000b"
            Interface "vxlan-ac10000b"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="172.16.0.15", out_key=flow, remote_ip="172.16.0.11"}
        Port br-tun
            Interface br-tun
                type: internal
    Bridge br-int
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port "tap30d30240-cb"
            tag: 3
            Interface "tap30d30240-cb"
                type: internal
        Port "qr-00b1cdd4-0e"
            tag: 3
            Interface "qr-00b1cdd4-0e"
                type: internal
        Port "ha-66bd8bcf-f0"
            tag: 1
            Interface "ha-66bd8bcf-f0"
                type: internal
        Port br-int
            Interface br-int
                type: internal
        Port "qg-72c290d4-29"
            tag: 2
            Interface "qg-72c290d4-29"
                type: internal
    Bridge br-ex
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port "vlan40"
            tag: 40
            Interface "vlan40"
                type: internal
        Port "vlan20"
            tag: 20
            Interface "vlan20"
                type: internal
        Port "eth0"
            Interface "eth0"
        Port "vlan50"
            tag: 50
            Interface "vlan50"
                type: internal
        Port br-ex
            Interface br-ex
                type: internal
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
        Port "vlan30"
            tag: 30
            Interface "vlan30"
                type: internal
        Port "vlan10"
            tag: 10
            Interface "vlan10"
                type: internal
    ovs_version: "2.7.0"
[root@overcloud-controller-0 ~]# pcs status Cluster name: tripleo_cluster Stack: corosync Current DC: overcloud-controller-0 (version 1.1.15-11.el7_3.4-e174ec8) - partition with quorum Last updated: Thu Jun 15 10:04:05 2017        Last change: Thu Jun 15 09:04:10 2017 by root via cibadmin on overcloud-controller-0 3 nodes and 19 resources configured Online: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ] Full list of resources:  Master/Slave Set: galera-master [galera]      Masters: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]  Clone Set: rabbitmq-clone [rabbitmq]      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 ]  ip-192.168.24.12    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-0  ip-10.0.0.7    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-1  ip-172.16.2.5    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-2  ip-172.16.2.4    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-0  ip-172.16.1.7    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-1  ip-172.16.3.12    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-2  Clone Set: haproxy-clone [haproxy]      Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]  openstack-cinder-volume    (systemd:openstack-cinder-volume):    Started overcloud-controller-0 Daemon Status:   corosync: active/enabled   pacemaker: active/enabled   pcsd: active/enabled ************************** On Compute-0:- ************************** # yum-config-manager --add-repo  http://cbs.centos.org/repos/cloud7-openstack-pike-candidate/x86_64/os/ # cd /etc/yum.repos.d # vi cbs.centos.org_repos_cloud7-openstack-pike-candidate_x86_64_os_.repo [cbs.centos.org_repos_cloud7-openstack-pike-candidate_x86_64_os] name=added from: http://cbs.centos.org/repos/cloud7-openstack-pike-candidate/x86_64/os baseurl=http://cbs.centos.org/repos/cloud7-openstack-pike-candidate/x86_64/os enabled=1 gpgcheck=0 includepkgs=openvswitch :wq # yum update # systemctl restart openvswitch.service OVS neutron agent Service restart ********************* On Controller-0 ******************** [root@overcloud-controller-0 ~]# wget https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img [root@overcloud-controller-0 ~]# openstack image create --disk-format qcow2 --container-format bare \  --public --file ./xenial-server-cloudimg-amd64-disk1.img XenialServerCloud-image [root@overcloud-controller-0 ~]# openstack volume create --image de9fde67-dd5c-41db-9bac-3fc6294c6879 \  --size 5 --availability-zone nova XenialVolume01 [root@overcloud-controller-0 ~]# cinder list +--------------------------------------+-----------+----------------+------+-------------+----------+-------------+ | ID                                   | Status    | Name           | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+----------------+------+-------------+----------+-------------+ | 1a59b245-b37e-43ef-a5be-15a765889968 | available | XenialVolume01 | 5    | -           | true     |             | +--------------------------------------+-----------+----------------+------+-------------+----------+-------------+ [root@overcloud-controller-0 ~]# openstack flavor create --public m1.small --id 2 \ >   --ram 2000 --disk 20 --vcpus 1 --rxtx-factor 1 +----------------------------+----------+ | Field                      | Value    | +----------------------------+----------+ | OS-FLV-DISABLED:disabled   | False    | | OS-FLV-EXT-DATA:ephemeral  | 0        | | disk                       | 20       | | id                         | 2        | | name                       | m1.small | | os-flavor-access:is_public | True     | | properties                 |          | | ram                        | 2000     | | rxtx_factor                | 1.0      | | swap                       |          | | vcpus                      | 1        | +----------------------------+----------+ [root@overcloud-controller-0 ~]# openstack keypair create oskey061517 > oskey061517.pem [root@overcloud-controller-0 ~]# openstack  network create ext-net --external \ > --provider-physical-network datacentre  --provider-network-type flat +---------------------------+--------------------------------------+ | Field                     | Value                                | +---------------------------+--------------------------------------+ | admin_state_up            | UP                                   | | availability_zone_hints   |                                      | | availability_zones        |                                      | | created_at                | 2017-06-15T09:44:37Z                 | | description               |                                      | | dns_domain                | None                                 | | id                        | 24f6f028-02a1-4770-813b-f694c85463ce | | ipv4_address_scope        | None                                 | | ipv6_address_scope        | None                                 | | is_default                | False                                | | mtu                       | 1500                                 | | name                      | ext-net                              | | port_security_enabled     | True                                 | | project_id                | 0781e1071ea94a0987f0d9ca84fe7c8f     | | provider:network_type     | flat                                 | | provider:physical_network | datacentre                           | | provider:segmentation_id  | None                                 | | qos_policy_id             | None                                 | | revision_number           | 4                                    | | router:external           | External                             | | segments                  | None                                 | | shared                    | False                                | | status                    | ACTIVE                               | | subnets                   |                                      | | updated_at                | 2017-06-15T09:44:37Z                 | +---------------------------+--------------------------------------+ [root@overcloud-controller-0 ~]# openstack subnet create ext-subnet --network ext-net \ >  --subnet-range 192.168.24.0/24  --allocation-pool start=192.168.24.100,end=192.168.24.120 \ >  --no-dhcp --gateway 192.168.24.1 +-------------------+--------------------------------------+ | Field             | Value                                | +-------------------+--------------------------------------+ | allocation_pools  | 192.168.24.100-192.168.24.120        | | cidr              | 192.168.24.0/24                      | | created_at        | 2017-06-15T09:45:11Z                 | | description       |                                      | | dns_nameservers   |                                      | | enable_dhcp       | False                                | | gateway_ip        | 192.168.24.1                         | | host_routes       |                                      | | id                | ea278781-96c1-4cb3-88a6-3d19834245a3 | | ip_version        | 4                                    | | ipv6_address_mode | None                                 | | ipv6_ra_mode      | None                                 | | name              | ext-subnet                           | | network_id        | 24f6f028-02a1-4770-813b-f694c85463ce | | project_id        | 0781e1071ea94a0987f0d9ca84fe7c8f     | | revision_number   | 2                                    | | segment_id        | None                                 | | service_types     |                                      | | subnetpool_id     | None                                 | | updated_at        | 2017-06-15T09:45:11Z                 | +-------------------+--------------------------------------+ [root@overcloud-controller-0 ~]# openstack router create RouterDSA +-------------------------+--------------------------------------+ | Field                   | Value                                | +-------------------------+--------------------------------------+ | admin_state_up          | UP                                   | | availability_zone_hints |                                      | | availability_zones      |                                      | | created_at              | 2017-06-15T09:45:32Z                 | | description             |                                      | | distributed             | False                                | | external_gateway_info   | None                                 | | flavor_id               | None                                 | | ha                      | True                                 | | id                      | bcd4300c-e81c-4119-8483-e904e3e947ae | | name                    | RouterDSA                            | | project_id              | 0781e1071ea94a0987f0d9ca84fe7c8f     | | revision_number         | None                                 | | routes                  |                                      | | status                  | ACTIVE                               | | updated_at              | 2017-06-15T09:45:32Z                 | +-------------------------+--------------------------------------+ [root@overcloud-controller-0 ~]# openstack router set RouterDSA --external-gateway ext-net [root@overcloud-controller-0 ~]# openstack network create internal01 +---------------------------+--------------------------------------+ | Field                     | Value                                | +---------------------------+--------------------------------------+ | admin_state_up            | UP                                   | | availability_zone_hints   |                                      | | availability_zones        |                                      | | created_at                | 2017-06-15T09:46:31Z                 | | description               |                                      | | dns_domain                | None                                 | | id                        | a7379327-e89c-4b60-aaeb-ecfe799b37f9 | | ipv4_address_scope        | None                                 | | ipv6_address_scope        | None                                 | | is_default                | None                                 | | mtu                       | 1450                                 | | name                      | internal01                           | | port_security_enabled     | True                                 | | project_id                | 0781e1071ea94a0987f0d9ca84fe7c8f     | | provider:network_type     | vxlan                                | | provider:physical_network | None                                 | | provider:segmentation_id  | 50                                   | | qos_policy_id             | None                                 | | revision_number           | 3                                    | | router:external           | Internal                             | | segments                  | None                                 | | shared                    | False                                | | status                    | ACTIVE                               | | subnets                   |                                      | | updated_at                | 2017-06-15T09:46:32Z                 | +---------------------------+--------------------------------------+ [root@overcloud-controller-0 ~]# openstack subnet create sub-internal01 --network internal01 \ >  --subnet-range 50.0.0.0/24  --dns-nameserver  83.221.202.254 +-------------------+--------------------------------------+ | Field             | Value                                | +-------------------+--------------------------------------+ | allocation_pools  | 50.0.0.2-50.0.0.254                  | | cidr              | 50.0.0.0/24                          | | created_at        | 2017-06-15T09:46:57Z                 | | description       |                                      | | dns_nameservers   | 83.221.202.254                       | | enable_dhcp       | True                                 | | gateway_ip        | 50.0.0.1                             | | host_routes       |                                      | | id                | 61908b57-647a-472e-92f2-d69ca149ad15 | | ip_version        | 4                                    | | ipv6_address_mode | None                                 | | ipv6_ra_mode      | None                                 | | name              | sub-internal01                       | | network_id        | a7379327-e89c-4b60-aaeb-ecfe799b37f9 | | project_id        | 0781e1071ea94a0987f0d9ca84fe7c8f     | | revision_number   | 2                                    | | segment_id        | None                                 | | service_types     |                                      | | subnetpool_id     | None                                 | | updated_at        | 2017-06-15T09:46:57Z                 | +-------------------+--------------------------------------+ [root@overcloud-controller-0 ~]# openstack router add subnet RouterDSA  61908b57-647a-472e-92f2-d69ca149ad15 At this point I launched dashborad via sshuttle connection and proceed as usual.