Saturday, April 15, 2017

Solution of one system of equations in boolean variables via bitmasks in regards of training for Unified State Examination in Informatics (Russia)

  
In brief, bitmasks are supposed to be a core tool for solution of systems of equations in Boolean variables versus method suggested at
https://inf-ege.sdamgia.ru/test?theme=264
for task 11 which is pretty much similar to sample been analyzed bellow

*************************************
Original task looks like :-
*************************************
Determine total number of corteges
{x1,...,x9,y1,....,y9} which and only which
satisfy system :-

((x1 ≡ y1) → (x2 ≡ y2)) ∧ (x1 → x2) ∧ (y1 → y2) = 1
((x2 ≡ y2) → (x3 ≡ y3)) ∧ (x2 → x3) ∧ (y2 → y3) = 1
...
((x8 ≡ y8) → (x9 ≡ y9)) ∧ (x8 → x9) ∧ (y8 → y9) = 1

Consider truncated system :-

(x1 → x2) ∧ (y1 → y2) = 1
(x2 → x3) ∧ (y2 → y3) = 1
...
(x8 → x9) ∧ (y8 → y9) = 1

Now build well known bitmasks for {x} and {y}

x1 x2 x3 x4 x5 x6 x7 x8 x9
----------------------------------------
1   1   1   1   1   1   1   1   1 
0   1   1   1   1   1   1   1   1 
0   0   1   1   1   1   1   1   1 
0   0   0   1   1   1   1   1   1 
0   0   0   0   1   1   1   1   1 
0   0   0   0   0   1   1   1   1 
0   0   0   0   0   0   1   1   1 
0   0   0   0   0   0   0   1   1 
0   0   0   0   0   0   0   0   1 
0   0   0   0   0   0   0   0   0 



y1 y2 y3 y4 y5 y6 y7 y8 y9
-----------------------------------------
1   1   1   1   1   1   1   1   1 
0   1   1   1   1   1   1   1   1 
0   0   1   1   1   1   1   1   1 
0   0   0   1   1   1   1   1   1 
0   0   0   0   1   1   1   1   1 
0   0   0   0   0   1   1   1   1 
0   0   0   0   0   0   1   1   1 
0   0   0   0   0   0   0   1   1 
0   0   0   0   0   0   0   0   1 
0   0   0   0   0   0   0   0   0 


We would name bellow first matrix "X" an second "Y"

For j=2 to j=9 consider  following two concatenations
"X" ->"Y" and "Y" -> "X"

First one :-

X                                     Y
---------------------------           ------------------------------
|                         |           |                            |
---------------------------           ------------------------------ 
j                         |           |                            |   
---------------------------           ------------------------------ 
. . . .                   |           j+1                          | 
---------------------------           ------------------------------
                                      j+2                          |
                                      ------------------------------        
                                      | . . . . .                  |
---------------------------           ------------------------------  
10                        |           10                           |     
---------------------------           ------------------------------ 
                                      

Record {j} from X with records {j+1,j+2,. . . 10} from Y
and vice versa second one :-

Y                                     X
---------------------------           ------------------------------
|                         |           |                            |
---------------------------           ------------------------------ 
j                         |           |                            |   
---------------------------           ------------------------------ 
. . . .                   |           j+1                          | 
---------------------------           ------------------------------
                                      j+2                          |
                                      ------------------------------        
                                      | . . . . .                  |
---------------------------           ------------------------------  
10                        |           10                           |     
---------------------------           ------------------------------ 
 
Record { j } from Y with records {j+1,j+2,. . . 10} from X
We'll get total 2*(10-j) сorteges making boolean value of implication

   ((x[j-1] ≡ y[j-1])) → (x[j] ≡ y[j]) equal FALSE

**************************************
For instance when j=3 we get
**************************************

x1 x2 x3 x4 x5 x6 x7 x8 x9
----------------------------------------
1   1   1   1   1   1   1   1   1 
0   1   1   1   1   1   1   1   1 
0   0   1   1   1   1   1   1   1   =>
0   0   0   1   1   1   1   1   1 
0   0   0   0   1   1   1   1   1 
0   0   0   0   0   1   1   1   1 
0   0   0   0   0   0   1   1   1 
0   0   0   0   0   0   0   1   1 
0   0   0   0   0   0   0   0   1 
0   0   0   0   0   0   0   0   0 



y1 y2 y3 y4 y5 y6 y7 y8 y9
-----------------------------------------
1   1   1   1   1   1   1   1   1 
0   1   1   1   1   1   1   1   1 
0   0   1   1   1   1   1   1   1 
0   0   0   1   1   1   1   1   1 <=
0   0   0   0   1   1   1   1   1 <=
0   0   0   0   0   1   1   1   1 <=
0   0   0   0   0   0   1   1   1 <=
0   0   0   0   0   0   0   1   1 <=
0   0   0   0   0   0   0   0   1 <=
0   0   0   0   0   0   0   0   0 <=


 Vice Versa Set :-


y1 y2 y3 y4 y5 y6 y7 y8 y9
-----------------------------------------
1   1   1   1   1   1   1   1   1 
0   1   1   1   1   1   1   1   1 
0   0   1   1   1   1   1   1   1 =>
0   0   0   1   1   1   1   1   1 
0   0   0   0   1   1   1   1   1 
0   0   0   0   0   1   1   1   1 
0   0   0   0   0   0   1   1   1 
0   0   0   0   0   0   0   1   1 
0   0   0   0   0   0   0   0   1 
0   0   0   0   0   0   0   0   0

x1 x2 x3 x4 x5 x6 x7 x8 x9
----------------------------------------
1   1   1   1   1   1   1   1   1 
0   1   1   1   1   1   1   1   1 
0   0   1   1   1   1   1   1   1 
0   0   0   1   1   1   1   1   1 <=
0   0   0   0   1   1   1   1   1 <=
0   0   0   0   0   1   1   1   1 <=
0   0   0   0   0   0   1   1   1 <=
0   0   0   0   0   0   0   1   1 <= 
0   0   0   0   0   0   0   0   1 <=
0   0   0   0   0   0   0   0   0 <=

****************************************************************************
 So when j=3 we have 2*7 = 14 corteges where x2≡y2 is True
 and x3≡y3 is False. So,  (x2 ≡ y2) → (x3 ≡ y3) is actually 1 -> 0
 what is False by definition.
****************************************************************************

What is sign that set of corteges generated for each j from [2.3.4,...,9]
should be removed from 100 total solutions of truncated system of boolean
equations.

Now calculate :-

s:= 0 ;
for j=2 to j=10 do
begin
 s:= s + (10-j) ;
end ;
s= 2*s ;
writeln (s) ;

Finally we get s=72

Total number of corteges obtained via decart multiplication of X and Y is equal 100. So number of solutions of original system would be 100-72=28

I appreciate courtesy provided by informatik "BU"
  https://www.youtube.com/watch?v=MDL5Mym5Aac

However, don't behave so nicely as "BU" always does.




Friday, January 27, 2017

RDO Okata M3 TripleO QuickStart HA Deployment

[alan@fedora24wks general_config]$ cat ha.yml
# Deploy an HA openstack environment.
control_memory: 7000
compute_memory: 6500

undercloud_memory: 8192

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

# Since HA has more machines, we set the cpu for controllers and
# compute nodes to 1
default_vcpu: 2

# This enables TLS for the undercloud which will also make haproxy bind to the
# configured public-vip and admin-vip.
undercloud_generate_service_certificate: True

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

  - name: control_1
    flavor: control
    virtualbmc_port: 6231

  - name: control_2
    flavor: control
    virtualbmc_port: 6232

  - name: compute_0
    flavor: compute
    virtualbmc_port: 6233

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

# Tell tripleo about our environment.
network_isolation: true
extra_args: >-
  --control-scale 3
  --ntp-server pool.ntp.org
test_ping: true
enable_pacemaker: true

run_tempest: false

# options below direct automatic doc generation by tripleo-collect-logs
artcl_gen_docs: true
artcl_create_docs_payload:
  included_deployment_scripts:
    - undercloud-install
    - overcloud-custom-tht-script
    - overcloud-prep-flavors
    - overcloud-prep-images
    - overcloud-prep-network
    - overcloud-deploy
    - overcloud-deploy-post
    - overcloud-validate
  included_static_docs:
    - env-setup-virt
  table_of_contents:
    - env-setup-virt
    - undercloud-install
    - overcloud-custom-tht-script
    - overcloud-prep-flavors
    - overcloud-prep-images
    - overcloud-prep-network
    - overcloud-deploy
    - overcloud-deploy-post
    - overcloud-validate


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


[alan@fedora24wks tripleo-quickstart]$ ssh -F $HOME/.quickstart/ssh.config.ansible undercloud
Warning: Permanently added '192.168.0.74' (ECDSA) to the list of known hosts.
Warning: Permanently added 'undercloud' (ECDSA) to the list of known hosts.
Last login: Fri Jan 27 19:38:30 2017 from gateway

[stack@undercloud ~]$ . stackrc
[stack@undercloud ~]$ ./overcloud-deploy.sh

. . . . .

2017-01-27 19:17:10Z [overcloud.AllNodesDeploySteps.ControllerPostPuppet.ControllerPostPuppetMaintenanceModeConfig]: CREATE_COMPLETE  state changed
2017-01-27 19:17:10Z [overcloud.AllNodesDeploySteps.ControllerPostPuppet.ControllerPostPuppetMaintenanceModeDeployment]: CREATE_IN_PROGRESS  state changed
2017-01-27 19:17:42Z [overcloud.AllNodesDeploySteps.ControllerPostPuppet.ControllerPostPuppetMaintenanceModeDeployment]: CREATE_COMPLETE  state changed
2017-01-27 19:17:42Z [overcloud.AllNodesDeploySteps.ControllerPostPuppet.ControllerPostPuppetRestart]: CREATE_IN_PROGRESS  state changed
2017-01-27 19:18:03Z [overcloud.AllNodesDeploySteps.ControllerPostPuppet.ControllerPostPuppetRestart]: CREATE_COMPLETE  state changed
2017-01-27 19:18:03Z [overcloud.AllNodesDeploySteps.ControllerPostPuppet]: CREATE_COMPLETE  Stack CREATE completed successfully
2017-01-27 19:18:03Z [overcloud.AllNodesDeploySteps.ControllerPostPuppet]: CREATE_COMPLETE  state changed
2017-01-27 19:18:03Z [overcloud.AllNodesDeploySteps]: CREATE_COMPLETE  Stack CREATE completed successfully
2017-01-27 19:18:04Z [overcloud.AllNodesDeploySteps]: CREATE_COMPLETE  state changed
2017-01-27 19:18:04Z [overcloud]: CREATE_COMPLETE  Stack CREATE completed successfully

 Stack overcloud CREATE_COMPLETE

Overcloud Endpoint: http://10.0.0.12:5000/v2.0
Overcloud Deployed
+ status_code=0
+ heat stack-list
+ grep -q CREATE_FAILED
WARNING (shell) "heat stack-list" is deprecated, please use "openstack stack list" instead
+ exit 0
[stack@undercloud ~]$ nova-manage --version
15.0.0
[stack@undercloud ~]$ nova list
+--------------------------------------+-------------------------+--------+------------+-------------+------------------------+
| ID                                   | Name                    | Status | Task State | Power State | Networks               |
+--------------------------------------+-------------------------+--------+------------+-------------+------------------------+
| c0895716-9ad2-4fae-b571-c347896c813c | overcloud-controller-0  | ACTIVE | -          | Running     | ctlplane=192.168.24.10 |
| 33cb2c05-9292-4478-9d1b-12ffd8c12537 | overcloud-controller-1  | ACTIVE | -          | Running     | ctlplane=192.168.24.13 |
| 5f4ab42c-bd77-4b9c-80a7-8dd96daaec26 | overcloud-controller-2  | ACTIVE | -          | Running     | ctlplane=192.168.24.15 |
| 675b566d-1a05-4ab5-b98e-4ba1ff5ac3db | overcloud-novacompute-0 | ACTIVE | -          | Running     | ctlplane=192.168.24.12 |
+--------------------------------------+-------------------------+--------+------------+-------------+------------------------+
[stack@undercloud ~]$ cat overcloudrc]
cat: overcloudrc]: No such file or directory
[stack@undercloud ~]$ cat overcloudrc
# Clear any old environment that may conflict.
for key in $( set | awk '{FS="="}  /^OS_/ {print $1}' ); do unset $key ; done
export OS_NO_CACHE=True
export OS_CLOUDNAME=overcloud
export OS_AUTH_URL=http://10.0.0.12:5000/v2.0
export NOVA_VERSION=1.1
export COMPUTE_API_VERSION=1.1
export OS_USERNAME=admin
export OS_PASSWORD=HH2xYgYWGMd4BBREr339AVbf3
export no_proxy=,10.0.0.12,192.168.24.8
export OS_PROJECT_NAME=admin
export PYTHONWARNINGS="ignore:Certificate has no, ignore:A true SSLContext object is not available"
[stack@undercloud ~]$ ssh heat-admin@192.168.24.10
The authenticity of host '192.168.24.10 (192.168.24.10)' can't be established.
ECDSA key fingerprint is 9b:6c:9c:5f:02:13:15:9c:c4:65:7e:78:3d:df:40:b2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.24.10' (ECDSA) to the list of known hosts.
[heat-admin@overcloud-controller-0 ~]$ sudo su -
[root@overcloud-controller-0 ~]# vi overcloudrc
[root@overcloud-controller-0 ~]# .  overcloudrc
[root@overcloud-controller-0 ~]# pcs status
Cluster name: tripleo_cluster
Stack: corosync
Current DC: overcloud-controller-0 (version 1.1.15-11.el7_3.2-e174ec8) - partition with quorum
Last updated: Fri Jan 27 19:22:30 2017        Last change: Fri Jan 27 19:17:21 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-1 ]
     Slaves: [ overcloud-controller-0 overcloud-controller-2 ]
 Clone Set: haproxy-clone [haproxy]
     Started: [ overcloud-controller-0 overcloud-controller-1 overcloud-controller-2 ]
 ip-192.168.24.8    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-0
 ip-10.0.0.12    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-1
 ip-172.16.2.9    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-2
 ip-172.16.2.5    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-0
 ip-172.16.1.11    (ocf::heartbeat:IPaddr2):    Started overcloud-controller-1
 ip-172.16.3.7    (ocf::heartbeat:IPaddr2):    Started 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

[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
--2017-01-27 19:24:27--  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)... 140.211.169.206, 8.43.85.67, 209.132.181.15, ...
Connecting to download.fedoraproject.org (download.fedoraproject.org)|140.211.169.206|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://ftp.neva.ru/Linux-Distrib/Fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-24-1.2.x86_64.qcow2 [following]
--2017-01-27 19:24:29--  http://ftp.neva.ru/Linux-Distrib/Fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-24-1.2.x86_64.qcow2
Resolving ftp.neva.ru (ftp.neva.ru)... 195.208.113.245, 2001:b08:2:100::245
Connecting to ftp.neva.ru (ftp.neva.ru)|195.208.113.245|:80... 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.84MB/s   in 76s    

2017-01-27 19:25:45 (2.58 MB/s) - ‘Fedora-Cloud-Base-24-1.2.x86_64.qcow2’ saved [204590080/204590080]

[root@overcloud-controller-0 ~]# openstack image create --disk-format qcow2 --container-format bare \
--public --file ./Fedora-Cloud-Base-24-1.2.x86_64.qcow2  VF24Cloud-image
+------------------+----------------------------------------------------------------------------+
| Field            | Value                                                                      |
+------------------+----------------------------------------------------------------------------+
| checksum         | 8de08e3fe24ee788e50a6a508235aa64                                           |
| container_format | bare                                                                       |
| created_at       | 2017-01-27T19:26:14Z                                                       |
| disk_format      | qcow2                                                                      |
| file             | /v2/images/fdc9a912-d3ae-4099-bc79-b54891f7a3f0/file                       |
| id               | fdc9a912-d3ae-4099-bc79-b54891f7a3f0                                       |
| min_disk         | 0                                                                          |
| min_ram          | 0                                                                          |
| name             | VF24Cloud-image                                                            |
| owner            | 1b276463e41e42279f65f967e230d022                                           |
| properties       | direct_url='swift+config://ref1/glance/fdc9a912-d3ae-4099-bc79-b54891f7a3f |
|                  | 0'                                                                         |
| protected        | False                                                                      |
| schema           | /v2/schemas/image                                                          |
| size             | 204590080                                                                  |
| status           | active                                                                     |
| tags             |                                                                            |
| updated_at       | 2017-01-27T19:26:18Z                                                       |
| virtual_size     | None                                                                       |
| visibility       | public                                                                     |
+------------------+----------------------------------------------------------------------------+
[root@overcloud-controller-0 ~]# openstack image list
+--------------------------------------+-----------------+--------+
| ID                                   | Name            | Status |
+--------------------------------------+-----------------+--------+
| fdc9a912-d3ae-4099-bc79-b54891f7a3f0 | VF24Cloud-image | active |
+--------------------------------------+-----------------+--------+
[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                | 2017-01-27T19:27:37Z                 |
| description               |                                      |
| id                        | 7f16f821-1d9c-4a81-a893-ab017eabfcc7 |
| ipv4_address_scope        |                                      |
| ipv6_address_scope        |                                      |
| is_default                | False                                |
| mtu                       | 1500                                 |
| name                      | ext-net                              |
| port_security_enabled     | True                                 |
| project_id                | 1b276463e41e42279f65f967e230d022     |
| provider:network_type     | flat                                 |
| provider:physical_network | datacentre                           |
| provider:segmentation_id  |                                      |
| qos_policy_id             |                                      |
| revision_number           | 4                                    |
| router:external           | True                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tags                      |                                      |
| tenant_id                 | 1b276463e41e42279f65f967e230d022     |
| updated_at                | 2017-01-27T19:27:37Z                 |
+---------------------------+--------------------------------------+
[root@overcloud-controller-0 ~]# nova-manage --version
15.0.0
[root@overcloud-controller-0 ~]# neutron subnet-create ext-net --name ext-subnet \
 --allocation-pool start=192.168.24.100,end=192.168.24.120 --disable-dhcp --gateway 192.168.24.1  192.168.24.0/24
Created a new subnet:
---------++-------------------+--------------------------------------------+
| Field             | Value                                                |
+-------------------+------------------------------------------------------+
| allocation_pools  | {"start": "192.168.24.100", "end": "192.168.24.120"} |
| cidr              | 192.168.24.0/24                                      |
| created_at        | 2017-01-27T19:28:47Z                                 |
| description       |                                                      |
| dns_nameservers   |                                                      |
| enable_dhcp       | False                                                |
| gateway_ip        | 192.168.24.1                                         |
| host_routes       |                                                      |
| id                | 6a42354e-3d39-4aff-a815-4568bbe6f137                 |
| ip_version        | 4                                                    |
| ipv6_address_mode |                                                      |
| ipv6_ra_mode      |                                                      |
| name              | ext-subnet                                           |
| network_id        | 7f16f821-1d9c-4a81-a893-ab017eabfcc7                 |
| project_id        | 1b276463e41e42279f65f967e230d022                     |
| revision_number   | 2                                                    |
| service_types     |                                                      |
| subnetpool_id     |                                                      |
| tenant_id         | 1b276463e41e42279f65f967e230d022                     |
| updated_at        | 2017-01-27T19:28:47Z                                 |
+-------------------+------------------------------------------------------+
[root@overcloud-controller-0 ~]# neutron router-create --ha=True router1
Created a new router:
+-------------------------+--------------------------------------+
| Field                   | Value                                |
+-------------------------+--------------------------------------+
| admin_state_up          | True                                 |
| availability_zone_hints |                                      |
| availability_zones      |                                      |
| created_at              | 2017-01-27T19:29:19Z                 |
| description             |                                      |
| distributed             | False                                |
| external_gateway_info   |                                      |
| flavor_id               |                                      |
| ha                      | True                                 |
| id                      | fc6b97c9-0b63-4412-b514-a4dce4a8f49b |
| name                    | router1                              |
| project_id              | 1b276463e41e42279f65f967e230d022     |
| revision_number         | 3                                    |
| routes                  |                                      |
| status                  | ACTIVE                               |
| tenant_id               | 1b276463e41e42279f65f967e230d022     |
| updated_at              | 2017-01-27T19:29:19Z                 |
+-------------------------+--------------------------------------+
[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                | 2017-01-27T19:30:19Z                 |
| description               |                                      |
| id                        | 035f9554-8ba7-4781-a6b1-01083e9f4039 |
| ipv4_address_scope        |                                      |
| ipv6_address_scope        |                                      |
| mtu                       | 1450                                 |
| name                      | int                                  |
| port_security_enabled     | True                                 |
| project_id                | 1b276463e41e42279f65f967e230d022     |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 9                                    |
| qos_policy_id             |                                      |
| revision_number           | 3                                    |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tags                      |                                      |
| tenant_id                 | 1b276463e41e42279f65f967e230d022     |
| updated_at                | 2017-01-27T19:30:19Z                 |
+---------------------------+--------------------------------------+
[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        | 2017-01-27T19:30:53Z                       |
| description       |                                            |
| dns_nameservers   | 83.221.202.254                             |
| enable_dhcp       | True                                       |
| gateway_ip        | 30.0.0.1                                   |
| host_routes       |                                            |
| id                | e3671a73-a908-4aa7-a28e-853f0364ad8e       |
| ip_version        | 4                                          |
| ipv6_address_mode |                                            |
| ipv6_ra_mode      |                                            |
| name              |                                            |
| network_id        | 035f9554-8ba7-4781-a6b1-01083e9f4039       |
| project_id        | 1b276463e41e42279f65f967e230d022           |
| revision_number   | 2                                          |
| service_types     |                                            |
| subnetpool_id     |                                            |
| tenant_id         | 1b276463e41e42279f65f967e230d022           |
| updated_at        | 2017-01-27T19:30:53Z                       |
+-------------------+--------------------------------------------+
[root@overcloud-controller-0 ~]# neutron router-interface-add router1 e3671a73-a908-4aa7-a28e-853f0364ad8e
Added interface edb75b03-196e-46bd-9869-ee2343d57248 to router router1.

[root@overcloud-controller-0 ~]# nova keypair-add oskey012717 > oskey012717.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            |
+--------------------------------------+---------+------------------------+
| e4c0b726-7d45-41ca-9dea-8592b2b0f8e2 | default | Default security group |
+--------------------------------------+---------+------------------------+
[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 \
 e4c0b726-7d45-41ca-9dea-8592b2b0f8e2
 Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| created_at        | 2017-01-27T19:37:39Z                 |
| description       |                                      |
| direction         | ingress                              |
| ethertype         | IPv4                                 |
| id                | 645abc8f-b31c-45e0-acf9-dbf031225f25 |
| port_range_max    | 22                                   |
| port_range_min    | 22                                   |
| project_id        | 1b276463e41e42279f65f967e230d022     |
| protocol          | tcp                                  |
| remote_group_id   |                                      |
| remote_ip_prefix  | 0.0.0.0/0                            |
| revision_number   | 1                                    |
| security_group_id | e4c0b726-7d45-41ca-9dea-8592b2b0f8e2 |
| tenant_id         | 1b276463e41e42279f65f967e230d022     |
| updated_at        | 2017-01-27T19:37: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      |
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+
[alan@fedora24wks tripleo-quickstart]$ ssh -F $HOME/.quickstart/ssh.config.ansible undercloudWarning: Permanently added '192.168.0.74' (ECDSA) to the list of known hosts.
Warning: Permanently added 'undercloud' (ECDSA) to the list of known hosts.
Last login: Fri Jan 27 19:20:04 2017 from gateway
[stack@undercloud ~]$ . stackrc
[stack@undercloud ~]$ nova list
+--------------------------------------+-------------------------+--------+------------+-------------+------------------------+
| ID                                   | Name                    | Status | Task State | Power State | Networks               |
+--------------------------------------+-------------------------+--------+------------+-------------+------------------------+
| c0895716-9ad2-4fae-b571-c347896c813c | overcloud-controller-0  | ACTIVE | -          | Running     | ctlplane=192.168.24.10 |
| 33cb2c05-9292-4478-9d1b-12ffd8c12537 | overcloud-controller-1  | ACTIVE | -          | Running     | ctlplane=192.168.24.13 |
| 5f4ab42c-bd77-4b9c-80a7-8dd96daaec26 | overcloud-controller-2  | ACTIVE | -          | Running     | ctlplane=192.168.24.15 |
| 675b566d-1a05-4ab5-b98e-4ba1ff5ac3db | overcloud-novacompute-0 | ACTIVE | -          | Running     | ctlplane=192.168.24.12 |
+--------------------------------------+-------------------------+--------+------------+-------------+------------------------+
[stack@undercloud ~]$ ssh heat-admin@192.168.24.10
Last login: Fri Jan 27 19:21:36 2017 from 192.168.24.1
[heat-admin@overcloud-controller-0 ~]$ sudo su -
Last login: Fri Jan 27 19:21:42 UTC 2017 on pts/0
[root@overcloud-controller-0 ~]# ls
Fedora-Cloud-Base-24-1.2.x86_64.qcow2  oskey012717.pem  overcloudrc
[root@overcloud-controller-0 ~]# . overcloudrc
[root@overcloud-controller-0 ~]# openstack image list
+--------------------------------------+-----------------+--------+
| ID                                   | Name            | Status |
+--------------------------------------+-----------------+--------+
| fdc9a912-d3ae-4099-bc79-b54891f7a3f0 | VF24Cloud-image | active |
+--------------------------------------+-----------------+--------+
[root@overcloud-controller-0 ~]# openstack network list
+-------------------------------+-------------------------------+-------------------------------+
| ID                            | Name                          | Subnets                       |
+-------------------------------+-------------------------------+-------------------------------+
| 035f9554-8ba7-4781-a6b1-01083 | int                           | e3671a73-a908-4aa7-a28e-      |
| e9f4039                       |                               | 853f0364ad8e                  |
| 7f16f821-1d9c-                | ext-net                       | 6a42354e-                     |
| 4a81-a893-ab017eabfcc7        |                               | 3d39-4aff-a815-4568bbe6f137   |
| 8d0b61bd-a785-4ab8-b492-7c070 | HA network tenant 1b276463e41 | d8f9017e-b75f-4565-b2ae-      |
| 6583ec7                       | e42279f65f967e230d022         | c88f4e70467b                  |
+-------------------------------+-------------------------------+-------------------------------+
 
[root@overcloud-controller-0 ~]# nova boot --flavor 2 --key-name oskey012717 \
--image fdc9a912-d3ae-4099-bc79-b54891f7a3f0 \
--nic net-id=035f9554-8ba7-4781-a6b1-01083e9f4039 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        | instance-00000003                                      |
| 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-ih0828hh                                             |
| 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                            | B8mwEDz6onG6                                           |
| config_drive                         |                                                        |
| created                              | 2017-01-27T19:44:43Z                                   |
| description                          | -                                                      |
| flavor                               | m1.small (2)                                           |
| hostId                               |                                                        |
| host_status                          |                                                        |
| id                                   | ca234b0a-dc07-4ec5-8b10-ddefe445f109                   |
| image                                | VF24Cloud-image (fdc9a912-d3ae-4099-bc79-b54891f7a3f0) |
| key_name                             | oskey012717                                            |
| locked                               | False                                                  |
| metadata                             | {}                                                     |
| name                                 | VF24Devs01                                             |
| os-extended-volumes:volumes_attached | []                                                     |
| progress                             | 0                                                      |
| security_groups                      | default                                                |
| status                               | BUILD                                                  |
| tags                                 | []                                                     |
| tenant_id                            | 1b276463e41e42279f65f967e230d022                       |
| updated                              | 2017-01-27T19:44:44Z                                   |
| user_id                              | 3f0e953c276f4261bea675808dbfb89f                       |
+--------------------------------------+--------------------------------------------------------+

[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+------------+--------+------------+-------------+--------------+
| ID                                   | Name       | Status | Task State | Power State | Networks     |
+--------------------------------------+------------+--------+------------+-------------+--------------+
| ca234b0a-dc07-4ec5-8b10-ddefe445f109 | VF24Devs01 | ACTIVE | -          | Running     | int=30.0.0.6 |
+--------------------------------------+------------+--------+------------+-------------+--------------+

[root@overcloud-controller-0 ~]# neutron port-list --device-id ca234b0a-dc07-4ec5-8b10-ddefe445f109
+---------------------------------+------+-------------------+----------------------------------+
| id                              | name | mac_address       | fixed_ips                        |
+---------------------------------+------+-------------------+----------------------------------+
| 1546a87c-644d-470a-8d1d-        |      | fa:16:3e:54:33:75 | {"subnet_id":                    |
| d7b0a4d41e51                    |      |                   | "e3671a73-a908-4aa7-a28e-        |
|                                 |      |                   | 853f0364ad8e", "ip_address":     |
|                                 |      |                   | "30.0.0.6"}                      |
+---------------------------------+------+-------------------+----------------------------------+
[root@overcloud-controller-0 ~]# neutron floatingip-create ext-net
Created a new floatingip:
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| created_at          | 2017-01-27T19:50:15Z                 |
| description         |                                      |
| fixed_ip_address    |                                      |
| floating_ip_address | 192.168.24.104                       |
| floating_network_id | 7f16f821-1d9c-4a81-a893-ab017eabfcc7 |
| id                  | c8c49f23-df24-44b7-8fbc-6aa4f9aebdeb |
| port_id             |                                      |
| project_id          | 1b276463e41e42279f65f967e230d022     |
| revision_number     | 1                                    |
| router_id           |                                      |
| status              | DOWN                                 |
| tenant_id           | 1b276463e41e42279f65f967e230d022     |
| updated_at          | 2017-01-27T19:50:15Z                 |
+---------------------+--------------------------------------+
 
[root@overcloud-controller-0 ~]# neutron floatingip-associate \
c8c49f23-df24-44b7-8fbc-6aa4f9aebdeb 1546a87c-644d-470a-8d1d-d7b0a4d41e51
 
Associated floating IP c8c49f23-df24-44b7-8fbc-6aa4f9aebdeb
[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+------------+--------+------------+-------------+------------------------------+
| ID                                   | Name       | Status | Task State | Power State | Networks                     |
+--------------------------------------+------------+--------+------------+-------------+------------------------------+
| ca234b0a-dc07-4ec5-8b10-ddefe445f109 | VF24Devs01 | ACTIVE | -          | Running     | int=30.0.0.6, 192.168.24.104 |
+--------------------------------------+------------+--------+------------+-------------+------------------------------+
[root@overcloud-controller-0 ~]# ls -l
total 199804
-rw-r--r--. 1 root root 204590080 Jun 14  2016 Fedora-Cloud-Base-24-1.2.x86_64.qcow2
-rw-r--r--. 1 root root      1676 Jan 27 19:36 oskey012717.pem
-rw-r--r--. 1 root root       519 Jan 27 19:22 overcloudrc
[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+------------+--------+------------+-------------+------------------------------+
| ID                                   | Name       | Status | Task State | Power State | Networks                     |
+--------------------------------------+------------+--------+------------+-------------+------------------------------+
| ca234b0a-dc07-4ec5-8b10-ddefe445f109 | VF24Devs01 | ACTIVE | -          | Running     | int=30.0.0.6, 192.168.24.104 |
+--------------------------------------+------------+--------+------------+-------------+------------------------------+ 
 
[stack@undercloud ~]$ ssh -i oskey012717.pem fedora@192.168.24.104
Last login: Fri Jan 27 20:09:54 2017 from 192.168.24.1
[fedora@vf24devs01 ~]$ sudo su -
[root@vf24devs01 ~]# dnf -y update


[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+------------+---------+------------+-------------+------------------------------+
| ID                                   | Name       | Status  | Task State | Power State | Networks                     |
+--------------------------------------+------------+---------+------------+-------------+------------------------------+
| ca234b0a-dc07-4ec5-8b10-ddefe445f109 | VF24Devs01 | SHUTOFF | -          | Shutdown    | int=30.0.0.6, 192.168.24.104 |
+--------------------------------------+------------+---------+------------+-------------+------------------------------+
 [root@overcloud-controller-0 ~]# nova start VF24Devs01
Request to start server VF24Devs01 has been accepted.

[root@overcloud-controller-0 ~]# nova list
+--------------------------------------+------------+--------+------------+-------------+------------------------------+
| ID                                   | Name       | Status | Task State | Power State | Networks                     |
+--------------------------------------+------------+--------+------------+-------------+------------------------------+
| ca234b0a-dc07-4ec5-8b10-ddefe445f109 | VF24Devs01 | ACTIVE | -          | Running     | int=30.0.0.6, 192.168.24.104 |
+--------------------------------------+------------+--------+------------+-------------+------------------------------+

[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.
[[0;32m  OK  [0m] Reached target Initrd Default Target.
         Starting Cleaning Up and Shutting Down Daemons...
[[0;32m  OK  [0m] Stopped Cleaning Up and Shutting Down Daemons.
[[0;32m  OK  [0m] Stopped target Remote File Systems.
         Starting Plymouth switch root service...
[[0;32m  OK  [0m] Stopped target Timers.
[[0;32m  OK  [0m] Stopped target Initrd Default Target.
[[0;32m  OK  [0m] Stopped target Remote File Systems (Pre).
[[0;32m  OK  [0m] Stopped target Basic System.
[[0;32m  OK  [0m] Stopped target Paths.
[[0;32m  OK  [0m] Stopped target Slices.
[[0;32m  OK  [0m] Stopped target Sockets.
[[0;32m  OK  [0m] Stopped target System Initialization.
[[0;32m  OK  [0m] Stopped Apply Kernel Variables.
[[0;32m  OK  [0m] Stopped target Swap.
[[0;32m  OK  [0m] Stopped udev Coldplug all Devices.
[[0;32m  OK  [0m] Stopped target Local File Systems.
         Stopping udev Kernel Device Manager...
[[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...
%G%G[    4.331073] cloud-init[335]: Cloud-init v. 0.7.7 running 'init-local' at Fri, 27 Jan 2017 21:48:20 +0000. Up 4.12 seconds.
[    8.806318] cloud-init[609]: Cloud-init v. 0.7.7 running 'init' at Fri, 27 Jan 2017 21:48:23 +0000. Up 6.33 seconds.
[    8.806482] cloud-init[609]: ci-info: +++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++
[    8.806557] cloud-init[609]: ci-info: +--------+------+-----------+---------------+-------+-------------------+
[    8.806613] cloud-init[609]: ci-info: | Device |  Up  |  Address  |      Mask     | Scope |     Hw-Address    |
[    8.806783] cloud-init[609]: ci-info: +--------+------+-----------+---------------+-------+-------------------+
[    8.806844] cloud-init[609]: ci-info: |  lo:   | True | 127.0.0.1 |   255.0.0.0   |   .   |         .         |
[    8.806903] cloud-init[609]: ci-info: |  lo:   | True |     .     |       .       |   d   |         .         |
[    8.806959] cloud-init[609]: ci-info: | eth0:  | True |  30.0.0.6 | 255.255.255.0 |   .   | fa:16:3e:54:33:75 |
[    8.807012] cloud-init[609]: ci-info: | eth0:  | True |     .     |       .       |   d   | fa:16:3e:54:33:75 |
[    8.807164] cloud-init[609]: ci-info: +--------+------+-----------+---------------+-------+-------------------+
[    8.807218] cloud-init[609]: ci-info: ++++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++++
[    8.807271] cloud-init[609]: ci-info: +-------+-----------------+----------+-----------------+-----------+-------+
[    8.807322] cloud-init[609]: ci-info: | Route |   Destination   | Gateway  |     Genmask     | Interface | Flags |
[    8.807390] cloud-init[609]: ci-info: +-------+-----------------+----------+-----------------+-----------+-------+
[    8.807478] cloud-init[609]: ci-info: |   0   |     0.0.0.0     | 30.0.0.1 |     0.0.0.0     |    eth0   |   UG  |
[    8.807531] cloud-init[609]: ci-info: |   1   |     30.0.0.0    | 0.0.0.0  |  255.255.255.0  |    eth0   |   U   |
[    8.807582] cloud-init[609]: ci-info: |   2   | 169.254.169.254 | 30.0.0.1 | 255.255.255.255 |    eth0   |  UGH  |
[    8.807633] cloud-init[609]: ci-info: +-------+-----------------+----------+-----------------+-----------+-------+
[    9.540575] cloud-init[665]: Cloud-init v. 0.7.7 running 'modules:config' at Fri, 27 Jan 2017 21:48:26 +0000. Up 9.47 seconds.
[    9.946323] cloud-init[679]: Cloud-init v. 0.7.7 running 'modules:final' at Fri, 27 Jan 2017 21:48:26 +0000. Up 9.85 seconds.
[    9.962109] cloud-init[679]: Cloud-init v. 0.7.7 finished at Fri, 27 Jan 2017 21:48:26 +0000. Datasource DataSourceOpenStack [net,ver=2].  Up 9.93 seconds

Fedora 24 (Cloud Edition)
Kernel 4.9.5-100.fc24.x86_64 on an x86_64 (ttyS0)

vf24devs01 login: