Saturday, October 8, 2016

RDO Newton Overcloud HA deployment via instack-virt-setup on CentOS 7.2 VIRTHOST

=================
UPDATE 10/172016
=================
I initiated KSM&&KSMTUNED on CentOS 7.2 VIRTHOST running instack-virt-setup 2 days ago along with instack-virt-setup HA overcloud deployment
Stack's virthost's .bashrc
[stack@Server72Centos ~]$ cat .bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
export NODE_DIST=centos7
export NODE_CPU=2
export NODE_MEM=6500
export NODE_COUNT=4
export UNDERCLOUD_NODE_CPU=2
export UNDERCLOUD_NODE_MEM=8000
export NODE_DISK=45
export UNDERCLOUD_NODE_DISK=35
export FS_TYPE=ext4
# User specific aliases and functions
export LIBVIRT_DEFAULT_URI="qemu:///system"

So far I don't see any negative drawback from ksmd daemon up and running on
VIRTHOST ( HA Overcloud been built via instack-virt-setup). I also have to
notice that performance problems caused by swap memory utilization around
3.5 GB are eliminated. Overcloud KVM nodes demonstrate perfomance close
to TripleO QuickStart ( in meantime unavailable for RDO Newton -> trunk/newton)




   Enabling KSM allows to run PCS HA Controller's with 7GB RAM .
   Amount of RAM allocated to HA Controller is critical to pass phase 5.X
   during overcloud deployment in case instack-virt-setup installation

============
END UPDATE
============

Draft belllow may be considered as POC awaiting release of TripleoO QuickStart
along with flexible templates managed by ansible and KSM patching.
Follow http://lxer.com/module/newswire/view/234586/index.html   setting up instack VM and configuring "centos7-newton/current-passed-ci" based delorean repos on VIRTHOST and INSTACK . After log into "instack VM" (undercloud VM) create 4GB swap file and restart "instack VM"

[root@instack ~]# dd if=/dev/zero of=/swapfile bs=1024 count=4194304
4194304+0 records in
4194304+0 records out
4294967296 bytes (4.3 GB) copied, 6.13213 s, 700 MB/s
[root@instack ~]# mkswap /swapfile
Setting up swapspace version 1, size = 4194300 KiB
no label, UUID=5d32541b-09f1-4fdd-a4a8-fd284c358255
[root@instack ~]# chmod 600 /swapfile
[root@instack ~]#  swapon /swapfile
[root@instack ~]# echo "/swapfile swap swap defaults 0 0" >> /etc/fstab

Restart and logging again

=======================
VIRTHOST -  configuration
=======================
 Create user stack
  useradd stack
  echo "stack:stack" | chpasswd
  echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
  sudo chmod 0440 /etc/sudoers.d/stack
  su - stack
 ************************************************
 Create stack's .bachrc && relogin to stack
 ************************************************
export NODE_DIST=centos7
export NODE_DISK=45
export UNDERCLOUD_NODE_DISK=35
export NODE_CPU=2
# KSM is enabled
export NODE_MEM=7000
export NODE_COUNT=4
export UNDERCLOUD_NODE_CPU=2
export UNDERCLOUD_NODE_MEM=8000
export FS_TYPE=ext4

*****************************************
Set up Newton DLRN repos
*****************************************
sudo yum -y install yum-plugin-priorities
sudo curl -o /etc/yum.repos.d/delorean-newton.repo  http://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-newton-tested/delorean.repo
sudo curl -o /etc/yum.repos.d/delorean-deps-newton.repo https://trunk.rdoproject.org/centos7-newton/delorean-deps.repo

$ sudo yum -y update
$ sudo yum install -y instack-undercloud
$ instack-virt-setup

=============
INSTACK
=============

# su - stack

************************************************
Update .bashrc && relogin to stack
************************************************
[stack@instack ~]$ cat .bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
export NODE_DIST=centos7
export USE_DELOREAN_TRUNK=1
export DELOREAN_TRUNK_REPO=" http://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-newton-tested/"
export DELOREAN_REPO_FILE="delorean.repo"
# User specific aliases and functions


*****************************************
Set up Newton DLRN repos
*****************************************

sudo yum -y install yum-plugin-priorities
sudo curl -o /etc/yum.repos.d/delorean-newton.repo  http://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-newton-tested/delorean.repo
sudo curl -o /etc/yum.repos.d/delorean-deps-newton.repo https://trunk.rdoproject.org/centos7-newton/delorean-deps.repo

    $ sudo yum install -y python-tripleoclient
    $  openstack undercloud install
    $   source stackrc
    $  openstack overcloud image build --all
    $  openstack overcloud image upload
    $  openstack baremetal import instackenv.json
    $  openstack baremetal configure boot
    $  openstack baremetal introspection bulk start

        In case when this command hangs, then start from scratch
        follow http://tripleo.org/advanced_deployment/introspect_single_node.html
        It might take long time and resolve the issue.

    $  neutron subnet-list
    $  neutron subnet-update 1b7d82e5-0bf1-4ba5-8008-4aa402598065 --dns-nameserver192.168.122.1

******************************
Set up Network isolation
******************************

 [stack@instack ~]$ 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@instack ~]$ sudo ovs-vsctl show
b0d48704-2e6c-4ec4-9d75-bf9a0d6bec71
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-int
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
        Port int-br-ctlplane
            Interface int-br-ctlplane
                type: patch
                options: {peer=phy-br-ctlplane}
        Port "tapc0290c0a-65"
            tag: 1
            Interface "tapc0290c0a-65"
                type: internal
    Bridge br-ctlplane
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port phy-br-ctlplane
            Interface phy-br-ctlplane
                type: patch
                options: {peer=int-br-ctlplane}
        Port br-ctlplane
            Interface br-ctlplane
                type: internal
        Port "eth1"
            Interface "eth1"
        Port "vlan10"
            tag: 10
            Interface "vlan10"
                type: internal
    ovs_version: "2.5.0"

*********************************************
192.168.122.134 is IP of "instack VM"
*********************************************

[stack@instack ~]$ cat network_env.yaml
{
    "parameter_defaults": {
        "ControlPlaneDefaultRoute": "192.0.2.1",
        "ControlPlaneSubnetCidr": "24",
        "DnsServers": [
            "192.168.122.134"
        ],
        "EC2MetadataIp": "192.0.2.1",
        "ExternalAllocationPools": [
            {
                "end": "10.0.0.250",
                "start": "10.0.0.4"
            }
        ],
        "ExternalNetCidr": "10.0.0.1/24",
        "NeutronExternalNetworkBridge": ""
    }


$ vi overcloud-deploy.sh

#!/bin/bash -x
source /home/stack/stackrc    
openstack overcloud deploy  \
 --control-scale 3 --compute-scale 1  \
 --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 here

$ sudo touch -f  /usr/share/openstack-tripleo-heat-templates/puppet/post.yaml

[stack@instack ~]$ ./overcloud-deploy.sh
+ source /home/stack/stackrc
++ export NOVA_VERSION=1.1
++ NOVA_VERSION=1.1
+++ sudo hiera admin_password
++ export OS_PASSWORD=c21d3766cc5f22ce2318427b2c736667696153ca
++ OS_PASSWORD=c21d3766cc5f22ce2318427b2c736667696153ca
++ export OS_AUTH_URL=http://192.0.2.1:5000/v2.0
++ OS_AUTH_URL=http://192.0.2.1:5000/v2.0
++ export OS_USERNAME=admin
++ OS_USERNAME=admin
++ export OS_TENANT_NAME=admin
++ OS_TENANT_NAME=admin
++ export COMPUTE_API_VERSION=1.1
++ COMPUTE_API_VERSION=1.1
++ export OS_BAREMETAL_API_VERSION=1.15
++ OS_BAREMETAL_API_VERSION=1.15
++ export OS_NO_CACHE=True
++ OS_NO_CACHE=True
++ export OS_CLOUDNAME=undercloud
++ OS_CLOUDNAME=undercloud
++ export OS_IMAGE_API_VERSION=1
++ OS_IMAGE_API_VERSION=1
+ openstack overcloud deploy --control-scale 3 --compute-scale 1 --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/stack/network_env.yaml
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
Removing the current plan files
Uploading new plan files
Started Mistral Workflow. Execution ID: 0a561b39-f990-4b3b-ae35-86fee4d5cc79
Plan updated
Deploying templates in the directory /tmp/tripleoclient-GdQas9/tripleo-heat-templates
Started Mistral Workflow. Execution ID: 298dbee0-1c9c-402f-9992-c19810de49f0
2016-10-08 19:07:15Z [overcloud]: CREATE_IN_PROGRESS  Stack CREATE started
2016-10-08 19:07:16Z [overcloud.HorizonSecret]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.ServiceNetMap]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.PcsdPassword]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.RabbitCookie]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.MysqlRootPassword]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.Networks]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.HeatAuthEncryptionKey]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.ServiceNetMap]: CREATE_COMPLETE  state changed
2016-10-08 19:07:16Z [overcloud.PcsdPassword]: CREATE_COMPLETE  state changed
2016-10-08 19:07:16Z [overcloud.RabbitCookie]: CREATE_COMPLETE  state changed
2016-10-08 19:07:16Z [overcloud.MysqlRootPassword]: CREATE_COMPLETE  state changed
2016-10-08 19:07:16Z [overcloud.HorizonSecret]: CREATE_COMPLETE  state changed
2016-10-08 19:07:16Z [overcloud.HeatAuthEncryptionKey]: CREATE_COMPLETE  state changed
2016-10-08 19:07:16Z [overcloud.DefaultPasswords]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.Networks]: CREATE_IN_PROGRESS  Stack CREATE started
2016-10-08 19:07:16Z [overcloud.Networks.InternalNetwork]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.Networks.NetworkExtraConfig]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.Networks.InternalNetwork]: CREATE_IN_PROGRESS  Stack CREATE started
2016-10-08 19:07:16Z [overcloud.Networks.ManagementNetwork]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.Networks.InternalNetwork.InternalApiNetwork]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:16Z [overcloud.Networks.StorageNetwork]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:17Z [overcloud.Networks.TenantNetwork]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:17Z [overcloud.Networks.StorageNetwork]: CREATE_IN_PROGRESS  Stack CREATE started
2016-10-08 19:07:17Z [overcloud.Networks.InternalNetwork.InternalApiNetwork]: CREATE_COMPLETE  state changed
2016-10-08 19:07:17Z [overcloud.Networks.InternalNetwork.InternalApiSubnet]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:17Z [overcloud.Networks.StorageNetwork.StorageNetwork]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:17Z [overcloud.Networks.StorageMgmtNetwork]: CREATE_IN_PROGRESS  state changed
2016-10-08 19:07:17Z [overcloud.Networks.TenantNetwork]: CREATE_IN_PROGRESS  Stack CREATE started
2016-10-08 19:07:17Z [overcloud.Networks.TenantNetwork.TenantNetwork]: CREATE_IN_PROGRESS  state changed

. . . . . . . . . . . . . . .

2016-10-08 19:45:32Z [overcloud.AllNodesDeploySteps.ControllerExtraConfigPost]: CREATE_COMPLETE  state changed
2016-10-08 19:45:32Z [overcloud.AllNodesDeploySteps.CephStorageExtraConfigPost]: CREATE_COMPLETE  state changed
2016-10-08 19:45:32Z [overcloud.AllNodesDeploySteps.ObjectStorageExtraConfigPost]: CREATE_COMPLETE  state changed
2016-10-08 19:45:32Z [overcloud.AllNodesDeploySteps.ComputeExtraConfigPost]: CREATE_COMPLETE  state changed
2016-10-08 19:45:32Z [overcloud.AllNodesDeploySteps.BlockStorageExtraConfigPost]: CREATE_COMPLETE  state changed
2016-10-08 19:45:32Z [overcloud.AllNodesDeploySteps]: CREATE_COMPLETE  Stack CREATE completed successfully
2016-10-08 19:45:33Z [overcloud.AllNodesDeploySteps]: CREATE_COMPLETE  state changed
2016-10-08 19:45:33Z [overcloud]: CREATE_COMPLETE  Stack CREATE completed successfully

 Stack overcloud CREATE_COMPLETE

Overcloud Endpoint: http://10.0.0.6:5000/v2.0
Overcloud Deployed
[stack@instack ~]$ nova list
+--------------------------------------+-------------------------+--------+------------+-------------+---------------------+
| ID                                   | Name                    | Status | Task State | Power State | Networks            |
+--------------------------------------+-------------------------+--------+------------+-------------+---------------------+
| 2ad6b1b4-1a44-4243-8010-f5752b8a9980 | overcloud-controller-0  | ACTIVE | -          | Running     | ctlplane=192.0.2.18 |
| de8369ef-684a-4630-99b7-4dcedd1f5b8f | overcloud-controller-1  | ACTIVE | -          | Running     | ctlplane=192.0.2.10 |
| 27f8621b-d899-4718-8068-e19cfc16be98 | overcloud-controller-2  | ACTIVE | -          | Running     | ctlplane=192.0.2.17 |
| bee4ad5d-cdd9-4167-903e-02be0d0dc9ab | overcloud-novacompute-0 | ACTIVE | -          | Running     | ctlplane=192.0.2.15 |
+--------------------------------------+-------------------------+--------+------------+-------------+---------------------+

[stack@instack ~]$ cat overcloudrc
export OS_NO_CACHE=True
export OS_CLOUDNAME=overcloud
export OS_AUTH_URL=http://10.0.0.6:5000/v2.0
export NOVA_VERSION=1.1
export COMPUTE_API_VERSION=1.1
export OS_USERNAME=admin
export no_proxy=,10.0.0.6,192.0.2.14
export OS_PASSWORD=vdWcZcUQEEUZt2tFyXKQZMZbr
export PYTHONWARNINGS="ignore:Certificate has no, ignore:A true SSLContext object is not available"
export OS_TENANT_NAME=admin

************************************
Log into controller-0
************************************

[stack@instack ~]$ ssh heat-admin@192.0.2.18
The authenticity of host '192.0.2.18 (192.0.2.18)' can't be established.
ECDSA key fingerprint is b7:e1:aa:3e:54:11:4a:f5:6e:d3:9c:14:7e:78:22:44.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.0.2.18' (ECDSA) to the list of known hosts.

[heat-admin@overcloud-controller-0 ~]$ sudo su -
[root@overcloud-controller-0 ~]# pcs status
Cluster name: tripleo_cluster
Last updated: Sat Oct  8 19:50:38 2016        Last change: Sat Oct  8 19:37:30 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 19 resources configured

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

Full list of resources:

 ip-192.0.2.14    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-0
 ip-172.16.2.12    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-1
 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 ]
 ip-172.16.1.11    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-2
 ip-172.16.2.11    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-0
 ip-10.0.0.6    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-1
 ip-172.16.3.12    (ocf::heartbeat:IPaddr2):    Started 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-2 ]
     Slaves: [ overcloud-controller-0 overcloud-controller-1 ]
 openstack-cinder-volume    (systemd:openstack-cinder-volume):    Started overcloud-controller-0

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

  
  


*******************************************************************************
Source overcloudrc as root and start configuration
via Neutron CLI on overcloud-controller-0
******************************************************************************

[root@overcloud-controller-0 ~]# vi overcloudrc
[root@overcloud-controller-0 ~]# .  overcloudrc
[root@overcloud-controller-0 ~]# nova service-list
+----+------------------+-------------------------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host                                | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+-------------------------------------+----------+---------+-------+----------------------------+-----------------+
| 11 | nova-consoleauth | overcloud-controller-0.localdomain  | internal | enabled | up    | 2016-10-08T19:51:42.000000 | -               |
| 14 | nova-scheduler   | overcloud-controller-0.localdomain  | internal | enabled | up    | 2016-10-08T19:51:36.000000 | -               |
| 17 | nova-conductor   | overcloud-controller-0.localdomain  | internal | enabled | up    | 2016-10-08T19:51:39.000000 | -               |
| 20 | nova-compute     | overcloud-novacompute-0.localdomain | nova     | enabled | up    | 2016-10-08T19:51:34.000000 | -               |
| 23 | nova-consoleauth | overcloud-controller-1.localdomain  | internal | enabled | up    | 2016-10-08T19:51:35.000000 | -               |
| 35 | nova-scheduler   | overcloud-controller-1.localdomain  | internal | enabled | up    | 2016-10-08T19:51:38.000000 | -               |
| 38 | nova-consoleauth | overcloud-controller-2.localdomain  | internal | enabled | up    | 2016-10-08T19:51:35.000000 | -               |
| 41 | nova-conductor   | overcloud-controller-1.localdomain  | internal | enabled | up    | 2016-10-08T19:51:36.000000 | -               |
| 53 | nova-scheduler   | overcloud-controller-2.localdomain  | internal | enabled | up    | 2016-10-08T19:51:38.000000 | -               |
| 56 | nova-conductor   | overcloud-controller-2.localdomain  | internal | enabled | up    | 2016-10-08T19:51:40.000000 | -               |
+----+------------------+-------------------------------------+----------+---------+-------+----------------------------+-----------------+

[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-08T19:52:37Z                 |
| description               |                                      |
| id                        | 60af652b-010c-4524-803e-a851627c47bf |
| ipv4_address_scope        |                                      |
| ipv6_address_scope        |                                      |
| is_default                | False                                |
| mtu                       | 1496                                 |
| name                      | ext-net                              |
| port_security_enabled     | True                                 |
| project_id                | 7c310ed1f8b94fb1987d132a15c81f71     |
| 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                 | 7c310ed1f8b94fb1987d132a15c81f71     |
| updated_at                | 2016-10-08T19:52:38Z                 |
+---------------------------+--------------------------------------+

[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-08T19:53:03Z                           |
| description       |                                                |
| dns_nameservers   |                                                |
| enable_dhcp       | False                                          |
| gateway_ip        | 192.0.2.1                                      |
| host_routes       |                                                |
| id                | 96388fb8-8848-4462-9a9f-00e2d8d5e4cc           |
| ip_version        | 4                                              |
| ipv6_address_mode |                                                |
| ipv6_ra_mode      |                                                |
| name              | ext-subnet                                     |
| network_id        | 60af652b-010c-4524-803e-a851627c47bf           |
| project_id        | 7c310ed1f8b94fb1987d132a15c81f71               |
| revision_number   | 2                                              |
| service_types     |                                                |
| subnetpool_id     |                                                |
| tenant_id         | 7c310ed1f8b94fb1987d132a15c81f71               |
| updated_at        | 2016-10-08T19:53:03Z                           |
+-------------------+------------------------------------------------+

[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-08T19:53:39Z                 |
| description             |                                      |
| distributed             | False                                |
| external_gateway_info   |                                      |
| flavor_id               |                                      |
| ha                      | True                                 |
| id                      | 31707664-a400-4b38-8203-21199f7a2a45 |
| name                    | router1                              |
| project_id              | 7c310ed1f8b94fb1987d132a15c81f71     |
| revision_number         | 2                                    |
| routes                  |                                      |
| status                  | ACTIVE                               |
| tenant_id               | 7c310ed1f8b94fb1987d132a15c81f71     |
| updated_at              | 2016-10-08T19:53:39Z                 |
+-------------------------+--------------------------------------+

[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-08T19:54:22Z                 |
| description               |                                      |
| id                        | fc3544a6-0570-4052-8e2b-122364da2bd6 |
| ipv4_address_scope        |                                      |
| ipv6_address_scope        |                                      |
| mtu                       | 1446                                 |
| name                      | int                                  |
| port_security_enabled     | True                                 |
| project_id                | 7c310ed1f8b94fb1987d132a15c81f71     |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 85                                   |
| qos_policy_id             |                                      |
| revision_number           | 3                                    |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tags                      |                                      |
| tenant_id                 | 7c310ed1f8b94fb1987d132a15c81f71     |
| updated_at                | 2016-10-08T19:54:22Z                 |
+---------------------------+--------------------------------------+

[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-08T19:54:44Z                       |
| description       |                                            |
| dns_nameservers   | 83.221.202.254                             |
| enable_dhcp       | True                                       |
| gateway_ip        | 30.0.0.1                                   |
| host_routes       |                                            |
| id                | 1657d8f2-1af4-4f1d-86d6-b743de053f59       |
| ip_version        | 4                                          |
| ipv6_address_mode |                                            |
| ipv6_ra_mode      |                                            |
| name              |                                            |
| network_id        | fc3544a6-0570-4052-8e2b-122364da2bd6       |
| project_id        | 7c310ed1f8b94fb1987d132a15c81f71           |
| revision_number   | 2                                          |
| service_types     |                                            |
| subnetpool_id     |                                            |
| tenant_id         | 7c310ed1f8b94fb1987d132a15c81f71           |
| updated_at        | 2016-10-08T19:54:44Z                       |
+-------------------+--------------------------------------------+

[root@overcloud-controller-0 ~]# neutron router-interface-add router1 1657d8f2-1af4-4f1d-86d6-b743de053f59

Added interface 6744547a-3e95-41d6-a7a2-c1c23f9a683e to router router1.

[root@overcloud-controller-0 ~]# nova keypair-add oskey1004ha >oskey1004ha.pem

[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            |
+--------------------------------------+---------+------------------------+
| 13b19617-b96a-4342-b90b-8d9bd17da784 | 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 13b19617-b96a-4342-b90b-8d9bd17da784

Created a new security_group_rule:

+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| created_at        | 2016-10-08T19:58:41Z                 |
| description       |                                      |
| direction         | ingress                              |
| ethertype         | IPv4                                 |
| id                | abb5dc28-7e9d-48c2-a997-cf8ac7ad553a |
| port_range_max    |                                      |
| port_range_min    |                                      |
| project_id        | 7c310ed1f8b94fb1987d132a15c81f71     |
| protocol          | icmp                                 |
| remote_group_id   |                                      |
| remote_ip_prefix  | 0.0.0.0/0                            |
| revision_number   | 1                                    |
| security_group_id | 13b19617-b96a-4342-b90b-8d9bd17da784 |
| tenant_id         | 7c310ed1f8b94fb1987d132a15c81f71     |
| updated_at        | 2016-10-08T19:58:41Z                 |
+-------------------+--------------------------------------+

[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 13b19617-b96a-4342-b90b-8d9bd17da784

Created a new security_group_rule:

+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| created_at        | 2016-10-08T19:59:10Z                 |
| description       |                                      |
| direction         | ingress                              |
| ethertype         | IPv4                                 |
| id                | a3bc6d72-98b6-4d35-b521-cf31d2208204 |
| port_range_max    | 22                                   |
| port_range_min    | 22                                   |
| project_id        | 7c310ed1f8b94fb1987d132a15c81f71     |
| protocol          | tcp                                  |
| remote_group_id   |                                      |
| remote_ip_prefix  | 0.0.0.0/0                            |
| revision_number   | 1                                    |
| security_group_id | 13b19617-b96a-4342-b90b-8d9bd17da784 |
| tenant_id         | 7c310ed1f8b94fb1987d132a15c81f71     |
| updated_at        | 2016-10-08T19:59:10Z                 |
+-------------------+--------------------------------------+

[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  | m2.small | 1000      | 20   | 0         |      | 1     | 1.0         | True      |
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+

[root@overcloud-controller-0 ~]# ifdown eth1

[root@overcloud-controller-0 ~]# ifup eth1


Determining IP information for eth1... done.

[root@overcloud-controller-0 ~]# yum install wget -y
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: mirror.yandex.ru
 * extras: mirror.yandex.ru
 * updates: mirror.yandex.ru
12 packages excluded due to repository priority protections

Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-10.el7_0.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
 Package            Arch                 Version                        Repository          Size
=================================================================================================
Installing:
 wget               x86_64               1.14-10.el7_0.1                base               545 k

Transaction Summary
=================================================================================================
Install  1 Package
Total download size: 545 k
Installed size: 2.0 M
Downloading packages:

wget-1.14-10.el7_0.1.x86_64.rpm                                           | 545 kB  00:00:00     

Running transaction check
Running transaction test
Transaction test succeeded

Running transaction
  Installing : wget-1.14-10.el7_0.1.x86_64                                                   1/1 
  Verifying  : wget-1.14-10.el7_0.1.x86_64                                                   1/1 
Installed:

  wget.x86_64 0:1.14-10.el7_0.1                                                                  

Complete!

[root@overcloud-controller-0 ~]# wget https://download.fedoraproject.org/pub/fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-24-1.2.x86_64.qcow2
--2016-10-08 20:01:57--  https://download.fedoraproject.org/pub/fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-24-1.2.x86_64.qcow2
Resolving download.fedoraproject.org (download.fedoraproject.org)... 152.19.134.198, 209.132.181.15, 85.236.55.6, ...
Connecting to download.fedoraproject.org (download.fedoraproject.org)|152.19.134.198|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://mirror.yandex.ru/fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-24-1.2.x86_64.qcow2 [following]
--2016-10-08 20:01:59--  https://mirror.yandex.ru/fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-24-1.2.x86_64.qcow2
Resolving mirror.yandex.ru (mirror.yandex.ru)... 213.180.204.183, 2a02:6b8::183
Connecting to mirror.yandex.ru (mirror.yandex.ru)|213.180.204.183|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 204590080 (195M) [application/octet-stream]

Saving to: ‘Fedora-Cloud-Base-24-1.2.x86_64.qcow2’
100%[=======================================================>] 204,590,080 2.62MB/s   in 69s    
2016-10-08 20:03:08 (2.82 MB/s) - ‘Fedora-Cloud-Base-24-1.2.x86_64.qcow2’ saved [204590080/204590080]

***************************************
Upload F24 Cloud image to glance 
***************************************
[root@overcloud-controller-0 ~]# glance image-create --name "VF24Cloud"  --disk-format qcow2  --container-format bare --progress < Fedora-Cloud-Base-24-1.2.x86_64.qcow2

[=============================>] 100%

+------------------+-----------------------------------------------------------------+
| Property         | Value                                                           |
+------------------+-----------------------------------------------------------------+
| checksum         | 8de08e3fe24ee788e50a6a508235aa64                                |
| container_format | bare                                                            |
| created_at       | 2016-10-08T20:04:11Z                                            |
| direct_url       | swift+config://ref1/glance/e7879fdd-8489-46f6-935e-22e0fb7dcd1c |
| disk_format      | qcow2                                                           |
| id               | e7879fdd-8489-46f6-935e-22e0fb7dcd1c                            |
| min_disk         | 0                                                               |
| min_ram          | 0                                                               |
| name             | VF24Cloud                                                       |
| owner            | 7c310ed1f8b94fb1987d132a15c81f71                                |
| protected        | False                                                           |
| size             | 204590080                                                       |
| status           | active                                                          |
| tags             | []                                                              |
| updated_at       | 2016-10-08T20:04:28Z                                            |
| virtual_size     | None                                                            |
| visibility       | private                                                         |
+------------------+-----------------------------------------------------------------+

[root@overcloud-controller-0 ~]# nova keypair-list

+-------------+------+-------------------------------------------------+
| Name        | Type | Fingerprint                                     |
+-------------+------+-------------------------------------------------+
| oskey1004ha | ssh  | 09:ad:84:8c:08:71:e9:79:5a:f2:c4:e2:38:f8:8c:c8 |
+-------------+------+-------------------------------------------------+

[root@overcloud-controller-0 ~]# glance image-list

+--------------------------------------+-----------+
| ID                                   | Name      |
+--------------------------------------+-----------+
| e7879fdd-8489-46f6-935e-22e0fb7dcd1c | VF24Cloud |
+--------------------------------------+-----------+

[root@overcloud-controller-0 ~]# neutron net-list

+-------------------------------+-------------------------------+-------------------------------+
| id                            | name                          | subnets                       |
+-------------------------------+-------------------------------+-------------------------------+
| 60af652b-010c-4524-803e-      | ext-net                       | 96388fb8-8848-4462-9a9f-      |
| a851627c47bf                  |                               | 00e2d8d5e4cc 192.0.2.0/24     |
| b141ac6b-f38e-4c9f-b90e-      | HA network tenant 7c310ed1f8b | d688b5f9-7e2f-4a33-8b2e-      |
| 68f8dbc6c0d0                  | 94fb1987d132a15c81f71         | 596b7cac5fc8 169.254.192.0/18 |
| fc3544a6-0570-4052-8e2b-      | int                           | 1657d8f2-1af4-4f1d-           |
| 122364da2bd6                  |                               | 86d6-b743de053f59 30.0.0.0/24 |
+-------------------------------+-------------------------------+-------------------------------+


*************************************************
Now launch VM via nova CLI
*************************************************
[root@overcloud-controller-0 ~]# nova boot --flavor 2 --key-name oskey1004ha \
 --image e7879fdd-8489-46f6-935e-22e0fb7dcd1c  --nic net-id=fc3544a6-0570-4052-8e2b-122364da2bd6 \
 vf24devs01

+--------------------------------------+--------------------------------------------------+
| Property                             | Value                                            |
+--------------------------------------+--------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                           |
| OS-EXT-AZ:availability_zone          |                                                  |
| OS-EXT-SRV-ATTR:host                 | -                                                |
| OS-EXT-SRV-ATTR:hostname             | vf24devs01                                       |
| 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-2l5rxzjy                                       |
| 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                            | 942ZbLTdbLd6                                     |
| config_drive                         |                                                  |
| created                              | 2016-10-08T20:08:56Z                             |
| description                          | -                                                |
| flavor                               | m2.small (2)                                     |
| hostId                               |                                                  |
| host_status                          |                                                  |
| id                                   | 20dacb92-735f-4bf3-a01a-c631e95852d1             |
| image                                | VF24Cloud (e7879fdd-8489-46f6-935e-22e0fb7dcd1c) |
| key_name                             | oskey1004ha                                      |
| locked                               | False                                            |
| metadata                             | {}                                               |
| name                                 | vf24devs01                                       |
| os-extended-volumes:volumes_attached | []                                               |
| progress                             | 0                                                |
| security_groups                      | default                                          |
| status                               | BUILD                                            |
| tags                                 | []                                               |
| tenant_id                            | 7c310ed1f8b94fb1987d132a15c81f71                 |
| updated                              | 2016-10-08T20:08:57Z                             |
| user_id                              | cd7cd8401f734dd7bde1b7250ec77d7e                 |
+--------------------------------------+--------------------------------------------------+

[root@overcloud-controller-0 ~]# nova list

+--------------------------------------+------------+--------+------------+-------------+--------------+
| ID                                   | Name       | Status | Task State | Power State | Networks     |
+--------------------------------------+------------+--------+------------+-------------+--------------+
| 20dacb92-735f-4bf3-a01a-c631e95852d1 | vf24devs01 | BUILD  | spawning   | NOSTATE     | int=30.0.0.6 |
+--------------------------------------+------------+--------+------------+-------------+--------------+
[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+------------+--------+------------+-------------+--------------+
| ID                                   | Name       | Status | Task State | Power State | Networks     |
+--------------------------------------+------------+--------+------------+-------------+--------------+
| 20dacb92-735f-4bf3-a01a-c631e95852d1 | vf24devs01 | ACTIVE | -          | Running     | int=30.0.0.6 |
+--------------------------------------+------------+--------+------------+-------------+--------------+

[root@overcloud-controller-0 ~]# nova console-log vf24devs01
%G%G[[0;32m  OK  [0m] Started Show Plymouth Boot Screen.
[[0;32m  OK  [0m] Started Forward Password Requests to Plymouth Directory Watch.
[[0;32m  OK  [0m] Reached target Paths.
[[0;32m  OK  [0m] Reached target Basic System.
[[0;32m  OK  [0m] Started File System Check on /dev/d...816-dc18-452e-8d0f-2b34bd1beced.
         Mounting /sysroot...
[[0;32m  OK  [0m] Mounted /sysroot.
[[0;32m  OK  [0m] Reached target Initrd Root File System.
         Starting Reload Configuration from the Real Root...
[[0;32m  OK  [0m] Started Reload Configuration from the Real Root.
[[0;32m  OK  [0m] Reached target Initrd File Systems.
         Starting dracut mount hook...
[[0;32m  OK  [0m] Started dracut mount hook.
[[0;32m  OK  [0m] Reached target Initrd Default Target.
         Starting Cleaning Up and Shutting Down Daemons...
[[0;32m  OK  [0m] Stopped target Remote File Systems.
[[0;32m  OK  [0m] Stopped target Remote File Systems (Pre).
         Starting Plymouth switch root service...
[[0;32m  OK  [0m] Stopped target Timers.
[[0;32m  OK  [0m] Stopped dracut cmdline hook.
[[0;32m  OK  [0m] Stopped Cleaning Up and Shutting Down Daemons.
[[0;32m  OK  [0m] Stopped target Initrd Default Target.
[[0;32m  OK  [0m] Stopped dracut mount hook.
[[0;32m  OK  [0m] Stopped target Basic System.
[[0;32m  OK  [0m] Stopped target Slices.
[[0;32m  OK  [0m] Stopped target Paths.
[[0;32m  OK  [0m] Stopped target System Initialization.
[[0;32m  OK  [0m] Stopped Apply Kernel Variables.
[[0;32m  OK  [0m] Stopped target Local File Systems.
         Stopping udev Kernel Device Manager...
[[0;32m  OK  [0m] Stopped udev Coldplug all Devices.
[[0;32m  OK  [0m] Stopped target Swap.
[[0;32m  OK  [0m] Stopped target Sockets.
[[0;32m  OK  [0m] Stopped udev Kernel Device Manager.
[[0;32m  OK  [0m] Stopped Create Static Device Nodes in /dev.
[[0;32m  OK  [0m] Stopped Create list of required sta...ce nodes for the current kernel.
[[0;32m  OK  [0m] Closed udev Control Socket.
[[0;32m  OK  [0m] Closed udev Kernel Socket.
         Starting Cleanup udevd DB...
[[0;32m  OK  [0m] Started Cleanup udevd DB.
[[0;32m  OK  [0m] Reached target Switch Root.
[[0;32m  OK  [0m] Started Plymouth switch root service.
         Starting Switch Root...
[   13.975124] intel_rapl: no valid rapl domains found in package 0
%G%G[   26.588692] cloud-init[474]: Cloud-init v. 0.7.7 running 'init-local' at Sat, 08 Oct 2016 20:10:21 +0000. Up 25.88 seconds.
[   42.983805] cloud-init[751]: Cloud-init v. 0.7.7 running 'init' at Sat, 08 Oct 2016 20:10:22 +0000. Up 26.97 seconds.
[   42.983931] cloud-init[751]: ci-info: +++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++
[   42.983996] cloud-init[751]: ci-info: +--------+------+-----------+---------------+-------+-------------------+
[   42.984132] cloud-init[751]: ci-info: | Device |  Up  |  Address  |      Mask     | Scope |     Hw-Address    |
[   42.984236] cloud-init[751]: ci-info: +--------+------+-----------+---------------+-------+-------------------+
[   42.984351] cloud-init[751]: ci-info: |  lo:   | True | 127.0.0.1 |   255.0.0.0   |   .   |         .         |
[   42.984472] cloud-init[751]: ci-info: |  lo:   | True |     .     |       .       |   d   |         .         |
[   42.984639] cloud-init[751]: ci-info: | eth0:  | True |  30.0.0.6 | 255.255.255.0 |   .   | fa:16:3e:5b:64:8d |
[   42.984755] cloud-init[751]: ci-info: | eth0:  | True |     .     |       .       |   d   | fa:16:3e:5b:64:8d |
[   42.984868] cloud-init[751]: ci-info: +--------+------+-----------+---------------+-------+-------------------+
[   42.984979] cloud-init[751]: ci-info: ++++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++++
[   42.985198] cloud-init[751]: ci-info: +-------+-----------------+----------+-----------------+-----------+-------+
[   42.985282] cloud-init[751]: ci-info: | Route |   Destination   | Gateway  |     Genmask     | Interface | Flags |
[   42.985339] cloud-init[751]: ci-info: +-------+-----------------+----------+-----------------+-----------+-------+
[   42.985393] cloud-init[751]: ci-info: |   0   |     0.0.0.0     | 30.0.0.1 |     0.0.0.0     |    eth0   |   UG  |
[   42.985446] cloud-init[751]: ci-info: |   1   |     30.0.0.0    | 0.0.0.0  |  255.255.255.0  |    eth0   |   U   |
[   42.985496] cloud-init[751]: ci-info: |   2   | 169.254.169.254 | 30.0.0.1 | 255.255.255.255 |    eth0   |  UGH  |
[   42.985588] cloud-init[751]: ci-info: +-------+-----------------+----------+-----------------+-----------+-------+
[[0;32m  OK  [0m] Started Initial cloud-init job (metadata service crawler).
        Starting OpenSSH server daemon...
        Starting Permit User Sessions...
[[0;32m  OK  [0m] Reached target Cloud-config availability.
         Starting Apply the settings specified in cloud-config...
[[0;32m  OK  [0m] Started Permit User Sessions.
[[0;32m  OK  [0m] Started Command Scheduler.
         Starting Wait for Plymouth Boot Screen to Quit...
         Starting Terminate Plymouth Boot Screen...
[[0;32m  OK  [0m] Started OpenSSH server daemon.
[   44.273513] cloud-init[845]: Cloud-init v. 0.7.7 running 'modules:config' at Sat, 08 Oct 2016 20:10:39 +0000. Up 43.57 seconds.
ci-info: ++++++++++Authorized keys from /home/fedora/.ssh/authorized_keys for user fedora+++++++++++
ci-info: +---------+-------------------------------------------------+---------+-------------------+
ci-info: | Keytype |                Fingerprint (md5)                | Options |      Comment      |
ci-info: +---------+-------------------------------------------------+---------+-------------------+
ci-info: | ssh-rsa | 09:ad:84:8c:08:71:e9:79:5a:f2:c4:e2:38:f8:8c:c8 |    -    | Generated-by-Nova |
ci-info: +---------+-------------------------------------------------+---------+-------------------+
<14>Oct  8 20:10:40 ec2: 
<14>Oct  8 20:10:40 ec2: #############################################################
<14>Oct  8 20:10:40 ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
<14>Oct  8 20:10:40 ec2: 256 SHA256:XIXv2hjAGa6MQ3PMAjLLQL+GG054Ho7PMbrLn5F+gms no comment (ECDSA)
<14>Oct  8 20:10:40 ec2: 256 SHA256:kz8+U35ErdVNArMD3U61bi8aWnZ79fZgoJQxZVmYdOg no comment (ED25519)
<14>Oct  8 20:10:40 ec2: 2048 SHA256:q4ezClsKMW8FH+L1U1o85AouaWnSqK1mndjGeNgolng no comment (RSA)
<14>Oct  8 20:10:40 ec2: -----END SSH HOST KEY FINGERPRINTS-----
<14>Oct  8 20:10:40 ec2: #############################################################
-----BEGIN SSH HOST KEY KEYS-----

ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOq2nA0aSvfg0UgxSCsWyDsse4bRuEjIq+Q8xjiFKCpuniIlt5PgaV/0ul32oniIX+xGspiZi8o09qrtP4XFgBg= 
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILtMreP9oVqx3DHy4SAy5ywzZKibcsoTabswIgivptXW 
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvNLM13rJscegMqO/XZF9u9p2lKPGjxbJLkpBY3zwko61h+JAimF+p2kUWTy33oS/Jm2To2wVrCRBGev6Txu3KnHzbLyYrIOREPnANMMo+yoypFndbpLLUd+HQYdV9o72y31bEn/2dNcr+66ua7hd6GXBX8EeENZtc6ajRsdKySQuH2xtyQ7Yuv9r1Yw2w16Dg+DVWSwoc3SBA+Po3wZblmcHCNQF+2h9lzBK9me4Z/t6qaofPM9S65PUZD3qykXyPwNAu6RCReEtpC3Qn7TCI4O+mlM+yDW9Nhk+TnqbYMW5042uii1vjP2Kciy3atZmy94sV3TnJGLHBVWpTrczJ 

-----END SSH HOST KEY KEYS-----

[   44.918845] cloud-init[881]: Cloud-init v. 0.7.7 running 'modules:final' at Sat, 08 Oct 2016 20:10:40 +0000. Up 44.62 seconds.
[   44.931400] cloud-init[881]: Cloud-init v. 0.7.7 finished at Sat, 08 Oct 2016 20:10:40 +0000. Datasource DataSourceOpenStack [net,ver=2].  Up 44.91 seconds

Fedora 24 (Cloud Edition)
Kernel 4.5.5-300.fc24.x86_64 on an x86_64 (ttyS0)
vf24devs01 login:

[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+------------+--------+------------+-------------+--------------+
| ID                                   | Name       | Status | Task State | Power State | Networks     |
+--------------------------------------+------------+--------+------------+-------------+--------------+
| 20dacb92-735f-4bf3-a01a-c631e95852d1 | vf24devs01 | ACTIVE | -          | Running     | int=30.0.0.6 |
+--------------------------------------+------------+--------+------------+-------------+--------------+

[root@overcloud-controller-0 ~]#  neutron port-list --device-id 20dacb92-735f-4bf3-a01a-c631e95852d1

+---------------------------------+------+-------------------+----------------------------------+
| id                              | name | mac_address       | fixed_ips                        |
+---------------------------------+------+-------------------+----------------------------------+
| 5c38237b-                       |      | fa:16:3e:5b:64:8d | {"subnet_id": "1657d8f2-1af4     |
| 63b1-477a-b563-6a152c5da637     |      |                   | -4f1d-86d6-b743de053f59",        |
|                                 |      |                   | "ip_address": "30.0.0.6"}        |
+---------------------------------+------+-------------------+----------------------------------+

[root@overcloud-controller-0 ~]# neutron floatingip-create ext-net

Created a new floatingip:

+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| created_at          | 2016-10-08T20:13:40Z                 |
| description         |                                      |
| fixed_ip_address    |                                      |
| floating_ip_address | 192.0.2.105                          |
| floating_network_id | 60af652b-010c-4524-803e-a851627c47bf |
| id                  | 3b99ddef-7e94-47be-aae7-3f7e65e9233b |
| port_id             |                                      |
| project_id          | 7c310ed1f8b94fb1987d132a15c81f71     |
| revision_number     | 1                                    |
| router_id           |                                      |
| status              | DOWN                                 |
| tenant_id           | 7c310ed1f8b94fb1987d132a15c81f71     |
| updated_at          | 2016-10-08T20:13:40Z                 |
+---------------------+--------------------------------------+

[root@overcloud-controller-0 ~]# neutron floatingip-associate  3b99ddef-7e94-47be-aae7-3f7e65e9233b \
                                  5c38237b-63b1-477a-b563-6a152c5da637

Associated floating IP 3b99ddef-7e94-47be-aae7-3f7e65e9233b

[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+------------+--------+------------+-------------+--------------+
| ID                                   | Name       | Status | Task State | Power State | Networks     |
+--------------------------------------+------------+--------+------------+-------------+--------------+
| 20dacb92-735f-4bf3-a01a-c631e95852d1 | vf24devs01 | ACTIVE | -          | Running     | int=30.0.0.6 |
+--------------------------------------+------------+--------+------------+-------------+--------------+

[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+------------+--------+------------+-------------+---------------------------+
| ID                                   | Name       | Status | Task State | Power State | Networks                  |
+--------------------------------------+------------+--------+------------+-------------+---------------------------+
| 20dacb92-735f-4bf3-a01a-c631e95852d1 | vf24devs01 | ACTIVE | -          | Running     | int=30.0.0.6, 192.0.2.105 |
+--------------------------------------+------------+--------+------------+-------------+---------------------------+

[root@overcloud-controller-0 ~]# ping 192.0.2.105
PING 192.0.2.105 (192.0.2.105) 56(84) bytes of data.
64 bytes from 192.0.2.105: icmp_seq=1 ttl=63 time=208 ms
64 bytes from 192.0.2.105: icmp_seq=2 ttl=63 time=0.876 ms
64 bytes from 192.0.2.105: icmp_seq=3 ttl=63 time=0.672 ms
64 bytes from 192.0.2.105: icmp_seq=4 ttl=63 time=1.39 ms
64 bytes from 192.0.2.105: icmp_seq=5 ttl=63 time=2.69 ms
^C
--- 192.0.2.105 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 0.672/42.876/208.746/82.937 ms

  
  

   Top snapshot on 32 GB VIRTHOST

  

   RDO Newton Overcloud HA deployment via instack-virt-setup Dasboard Snapshots

1 comment: