1
RDO Juno test M3 Notes multinode GRE
Arif Ali edited this page 2014-10-02 17:40:57 +01:00
- set SELinux to permissive
setenforce 0 - run
packstack --gen-answer-file /root/packstack_answers.txt - Edit
packstack-answers.txt, with the following updates`
CONFIG_KEYSTONE_ADMIN_PW=openstack
CONFIG_HEAT_INSTALL=y
CONFIG_NTP_SERVERS=10.0.0.251
CONFIG_COMPUTE_HOSTS=10.0.0.1,10.0.0.2,10.0.0.3
CONFIG_USE_EPEL=n
CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=physnet1:br-ex
CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:enp2s1f1
CONFIG_PROVISION_DEMO=n
CONFIG_NEUTRON_ML2_TYPE_DRIVERS=vxlan,gre,flat
CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=gre
CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=gre
CONFIG_NEUTRON_OVS_TUNNEL_RANGES=1:1000
CONFIG_NEUTRON_OVS_TUNNEL_IF=enp2s1f0
- run
packstack --answer-file=packstack_answers.txt
[root@stack01 ~]# packstack --answer-file=packstack_answers.txt
Welcome to Installer setup utility
Installing:
Clean Up [ DONE ]
Setting up ssh keys [ DONE ]
Discovering hosts' details [ DONE ]
Adding pre install manifest entries [ DONE ]
Installing time synchronization via NTP [ DONE ]
Preparing servers [ DONE ]
Adding AMQP manifest entries [ DONE ]
Adding MySQL manifest entries [ DONE ]
Adding Keystone manifest entries [ DONE ]
Adding Glance Keystone manifest entries [ DONE ]
Adding Glance manifest entries [ DONE ]
Adding Cinder Keystone manifest entries [ DONE ]
Adding Cinder manifest entries [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Adding Nova API manifest entries [ DONE ]
Adding Nova Keystone manifest entries [ DONE ]
Adding Nova Cert manifest entries [ DONE ]
Adding Nova Conductor manifest entries [ DONE ]
Creating ssh keys for Nova migration [ DONE ]
Gathering ssh host keys for Nova migration [ DONE ]
Adding Nova Compute manifest entries [ DONE ]
Adding Nova Scheduler manifest entries [ DONE ]
Adding Nova VNC Proxy manifest entries [ DONE ]
Adding Openstack Network-related Nova manifest entries[ DONE ]
Adding Nova Common manifest entries [ DONE ]
Adding Neutron API manifest entries [ DONE ]
Adding Neutron Keystone manifest entries [ DONE ]
Adding Neutron L3 manifest entries [ DONE ]
Adding Neutron L2 Agent manifest entries [ DONE ]
Adding Neutron DHCP Agent manifest entries [ DONE ]
Adding Neutron LBaaS Agent manifest entries [ DONE ]
Adding Neutron Metering Agent manifest entries [ DONE ]
Adding Neutron Metadata Agent manifest entries [ DONE ]
Checking if NetworkManager is enabled and running [ DONE ]
Adding OpenStack Client manifest entries [ DONE ]
Adding Horizon manifest entries [ DONE ]
Adding Swift Keystone manifest entries [ DONE ]
Adding Swift builder manifest entries [ DONE ]
Adding Swift proxy manifest entries [ DONE ]
Adding Swift storage manifest entries [ DONE ]
Adding Swift common manifest entries [ DONE ]
Adding Heat manifest entries [ DONE ]
Adding Heat Keystone manifest entries [ DONE ]
Adding MongoDB manifest entries [ DONE ]
Adding Ceilometer manifest entries [ DONE ]
Adding Ceilometer Keystone manifest entries [ DONE ]
Adding Nagios server manifest entries [ DONE ]
Adding Nagios host manifest entries [ DONE ]
Adding post install manifest entries [ DONE ]
Installing Dependencies [ DONE ]
Copying Puppet modules and manifests [ DONE ]
Applying 10.0.0.1_prescript.pp
Applying 10.0.0.3_prescript.pp
Applying 10.0.0.2_prescript.pp
10.0.0.1_prescript.pp: [ DONE ]
10.0.0.2_prescript.pp: [ DONE ]
10.0.0.3_prescript.pp: [ DONE ]
Applying 10.0.0.1_ntpd.pp
Applying 10.0.0.3_ntpd.pp
Applying 10.0.0.2_ntpd.pp
10.0.0.3_ntpd.pp: [ DONE ]
10.0.0.1_ntpd.pp: [ DONE ]
10.0.0.2_ntpd.pp: [ DONE ]
Applying 10.0.0.1_amqp.pp
Applying 10.0.0.1_mysql.pp
10.0.0.1_amqp.pp: [ DONE ]
10.0.0.1_mysql.pp: [ DONE ]
Applying 10.0.0.1_keystone.pp
Applying 10.0.0.1_glance.pp
Applying 10.0.0.1_cinder.pp
10.0.0.1_keystone.pp: [ DONE ]
10.0.0.1_glance.pp: [ DONE ]
10.0.0.1_cinder.pp: [ DONE ]
Applying 10.0.0.1_api_nova.pp
10.0.0.1_api_nova.pp: [ DONE ]
Applying 10.0.0.1_nova.pp
Applying 10.0.0.3_nova.pp
Applying 10.0.0.2_nova.pp
10.0.0.1_nova.pp: [ DONE ]
10.0.0.2_nova.pp: [ DONE ]
10.0.0.3_nova.pp: [ DONE ]
Applying 10.0.0.1_neutron.pp
Applying 10.0.0.3_neutron.pp
Applying 10.0.0.2_neutron.pp
10.0.0.3_neutron.pp: [ DONE ]
10.0.0.2_neutron.pp: [ DONE ]
10.0.0.1_neutron.pp: [ DONE ]
Applying 10.0.0.1_neutron_fwaas.pp
Applying 10.0.0.1_osclient.pp
Applying 10.0.0.1_horizon.pp
10.0.0.1_neutron_fwaas.pp: [ DONE ]
10.0.0.1_osclient.pp: [ DONE ]
10.0.0.1_horizon.pp: [ DONE ]
Applying 10.0.0.1_ring_swift.pp
10.0.0.1_ring_swift.pp: [ DONE ]
Applying 10.0.0.1_swift.pp
Applying 10.0.0.1_heat.pp
10.0.0.1_swift.pp: [ DONE ]
10.0.0.1_heat.pp: [ DONE ]
Applying 10.0.0.1_mongodb.pp
10.0.0.1_mongodb.pp: [ DONE ]
Applying 10.0.0.1_ceilometer.pp
Applying 10.0.0.1_nagios.pp
Applying 10.0.0.1_nagios_nrpe.pp
Applying 10.0.0.3_nagios_nrpe.pp
Applying 10.0.0.2_nagios_nrpe.pp
10.0.0.3_nagios_nrpe.pp: [ DONE ]
10.0.0.2_nagios_nrpe.pp: [ DONE ]
10.0.0.1_ceilometer.pp: [ DONE ]
10.0.0.1_nagios.pp: [ DONE ]
10.0.0.1_nagios_nrpe.pp: [ DONE ]
Applying 10.0.0.1_postscript.pp
Applying 10.0.0.3_postscript.pp
Applying 10.0.0.2_postscript.pp
10.0.0.2_postscript.pp: [ DONE ]
10.0.0.1_postscript.pp: [ DONE ]
10.0.0.3_postscript.pp: [ DONE ]
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]
**** Installation completed successfully ******
Additional information:
* Did not create a cinder volume group, one already existed
* Warning: NetworkManager is active on 10.0.0.1, 10.0.0.3, 10.0.0.2. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
* File /root/keystonerc_admin has been created on OpenStack client host 10.0.0.1. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://10.0.0.1/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse to http://10.0.0.1/nagios username: nagiosadmin, password: 214733caf72945df
* The installation log file is available at: /var/tmp/packstack/20141002-163319-fghJam/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20141002-163319-fghJam/manifests
[root@stack01 ~]# . keystonerc_admin
[root@stack01 ~(keystone_admin)]# nova-manage host list
host zone
stack01.cluster internal
stack02.cluster nova
stack03.cluster nova
[root@stack01 ~(keystone_admin)]# neutron net-create ext_net --provider:network_type=flat --provider:physical_network=physnet1 --router:external=True
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | ae6aeca1-59a5-4314-8dba-5b95a511d362 |
| name | ext_net |
| provider:network_type | flat |
| provider:physical_network | physnet1 |
| provider:segmentation_id | |
| router:external | True |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 7c1d467365644598910faf3ddb634c5e |
+---------------------------+--------------------------------------+
[root@stack01 ~(keystone_admin)]# neutron subnet-create --name ext_subnet --disable-dhcp ext_net 192.168.33.0/24 --gateway 192.168.33.254 --allocation-pool start=192.168.33.161,end=192.168.33.190
Created a new subnet:
+-------------------+------------------------------------------------------+
| Field | Value |
+-------------------+------------------------------------------------------+
| allocation_pools | {"start": "192.168.33.161", "end": "192.168.33.190"} |
| cidr | 192.168.33.0/24 |
| dns_nameservers | |
| enable_dhcp | False |
| gateway_ip | 192.168.33.254 |
| host_routes | |
| id | 9f42837c-dcae-4450-8e19-5cc55626879e |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | ext_subnet |
| network_id | ae6aeca1-59a5-4314-8dba-5b95a511d362 |
| tenant_id | 7c1d467365644598910faf3ddb634c5e |
+-------------------+------------------------------------------------------+
[root@stack01 ~(keystone_admin)]# wget --no-check-certificate https://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img
--2014-10-02 17:02:17-- https://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img
Resolving download.cirros-cloud.net (download.cirros-cloud.net)... 69.163.241.114
Connecting to download.cirros-cloud.net (download.cirros-cloud.net)|69.163.241.114|:443... connected.
WARNING: cannot verify download.cirros-cloud.net's certificate, issued by ‘/CN=download.cirros-cloud.net’:
Self-signed certificate encountered.
HTTP request sent, awaiting response... 302 Found
Location: http://cdn.download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img [following]
--2014-10-02 17:02:18-- http://cdn.download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img
Resolving cdn.download.cirros-cloud.net (cdn.download.cirros-cloud.net)... 23.63.99.137, 23.63.99.161, 2a02:26f0:5d::173f:63a1, ...
Connecting to cdn.download.cirros-cloud.net (cdn.download.cirros-cloud.net)|23.63.99.137|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13200896 (13M) [application/octet-stream]
Saving to: ‘cirros-0.3.3-x86_64-disk.img’
100%[===========================================================================================================================================================================>] 13,200,896 1.05MB/s in 13s
2014-10-02 17:02:31 (1.01 MB/s) - ‘cirros-0.3.3-x86_64-disk.img’ saved [13200896/13200896]
[root@stack01 ~(keystone_admin)]# glance image-create --name cirros --is-public=True --disk-format=qcow2 --container-format=bare --disk-format=qcow2 --file /root/cirros-0.3.3-x86_64-disk.img
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 133eae9fb1c98f45894a4e60d8736619 |
| container_format | bare |
| created_at | 2014-10-02T16:02:47 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 09d0e07d-9273-4656-8fca-ed4177f0728a |
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros |
| owner | 7c1d467365644598910faf3ddb634c5e |
| protected | False |
| size | 13200896 |
| status | active |
| updated_at | 2014-10-02T16:02:47 |
| virtual_size | None |
+------------------+--------------------------------------+
[root@stack01 ~(keystone_admin)]# keystone tenant-create --name demo
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| description | |
| enabled | True |
| id | 437b6ec6239e432db2bbac67791fa13b |
| name | demo |
+-------------+----------------------------------+
[root@stack01 ~(keystone_admin)]$ neutron net-create stack_net_priv --provider:network_type=gre --tenant-id 437b6ec6239e432db2bbac67791fa13b --provider:segmentation_id=11
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | ade6201c-fe2d-4d0c-afe9-e4046e487b88 |
| name | stack_net_priv |
| provider:network_type | gre |
| provider:physical_network | |
| provider:segmentation_id | 11 |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 437b6ec6239e432db2bbac67791fa13b |
+---------------------------+--------------------------------------+
[root@stack01 ~(keystone_admin)]# keystone user-create --name demo --pass demo
+----------+----------------------------------+
| Property | Value |
+----------+----------------------------------+
| email | |
| enabled | True |
| id | 73bd85452187454a9ecb6f33fad3b8ba |
| name | demo |
| username | demo |
+----------+----------------------------------+
[root@stack01 ~(keystone_admin)]# keystone user-role-add --user demo --role _member_ --tenant demo
[root@stack01 ~(keystone_admin)]# cat > keystonerc_demo << EOF
> export OS_USERNAME=demo
> export OS_TENANT_NAME=demo
> export OS_PASSWORD=demo
> export OS_AUTH_URL=http://10.0.0.1:5000/v2.0/
> export PS1='[\u@\h \W(keystone_demo)]\$ '
> EOF
[root@stack01 ~(keystone_admin)]# . keystonerc_demo
[root@stack01 ~(keystone_demo)]$ ssh-keygen -t rsa -b 4096 -N '' -f /root/id_rsa_demo
Generating public/private rsa key pair.
Your identification has been saved in /root/id_rsa_demo.
Your public key has been saved in /root/id_rsa_demo.pub.
The key fingerprint is:
56:56:ce:54:cb:2c:fd:5a:8c:58:db:fe:24:5e:b3:47 root@stack01.cluster
The key's randomart image is:
+--[ RSA 4096]----+
| o.. |
| = + . |
| o + * |
| o + * |
| S . o =|
| . +E|
| oo+|
| . +=|
| ..o|
+-----------------+
[root@stack01 ~(keystone_demo)]$ nova keypair-add --pub-key /root/id_rsa_demo.pub demo_key
[root@stack01 ~(keystone_demo)]$ neutron subnet-create --name stack_subnet_priv --dns-nameserver 8.8.8.8 stack_net_priv 10.0.8.0/24
Created a new subnet:
+-------------------+--------------------------------------------+
| Field | Value |
+-------------------+--------------------------------------------+
| allocation_pools | {"start": "10.0.8.2", "end": "10.0.8.254"} |
| cidr | 10.0.8.0/24 |
| dns_nameservers | 8.8.8.8 |
| enable_dhcp | True |
| gateway_ip | 10.0.8.1 |
| host_routes | |
| id | 4902408f-138e-45c3-94c0-93d4abba14b9 |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | stack_subnet_priv |
| network_id | ade6201c-fe2d-4d0c-afe9-e4046e487b88 |
| tenant_id | 437b6ec6239e432db2bbac67791fa13b |
+-------------------+--------------------------------------------+
[root@stack01 ~(keystone_demo)]$ neutron router-create extnet_stackrouter
Created a new router:
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| external_gateway_info | |
| id | 79cbd6ca-d2bb-4a05-b0b2-26c2075a5efe |
| name | extnet_stackrouter |
| routes | |
| status | ACTIVE |
| tenant_id | 437b6ec6239e432db2bbac67791fa13b |
+-----------------------+--------------------------------------+
[root@stack01 ~(keystone_demo)]$ neutron router-gateway-set extnet_stackrouter ext_net
Set gateway for router extnet_stackrouter
[root@stack01 ~(keystone_demo)]$ neutron router-interface-add extnet_stackrouter stack_subnet_priv
Added interface 678397be-963a-492b-9112-1cdee1711383 to router extnet_stackrouter.
[root@stack01 ~(keystone_demo)]$ neutron security-group-rule-create --protocol tcp --port-range-min 22 --port-range-max 22 default
Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| direction | ingress |
| ethertype | IPv4 |
| id | f3d18a3e-fbb4-4279-9740-949ea28180c1 |
| port_range_max | 22 |
| port_range_min | 22 |
| protocol | tcp |
| remote_group_id | |
| remote_ip_prefix | |
| security_group_id | 8923f079-4dfa-4ca9-ad22-51b2c78d2c55 |
| tenant_id | 437b6ec6239e432db2bbac67791fa13b |
+-------------------+--------------------------------------+
[root@stack01 ~(keystone_demo)]$ neutron security-group-rule-create --protocol icmp default
Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| direction | ingress |
| ethertype | IPv4 |
| id | 3f08f644-4185-401c-b79c-de79c596aceb |
| port_range_max | |
| port_range_min | |
| protocol | icmp |
| remote_group_id | |
| remote_ip_prefix | |
| security_group_id | 8923f079-4dfa-4ca9-ad22-51b2c78d2c55 |
| tenant_id | 437b6ec6239e432db2bbac67791fa13b |
+-------------------+--------------------------------------+
[root@stack01 ~(keystone_demo)]$ nova boot --poll --flavor m1.tiny --image cirros --nic net-id=ade6201c-fe2d-4d0c-afe9-e4046e487b88 --key-name demo_key --min-count 8 test0
+--------------------------------------+-----------------------------------------------+
| Property | Value |
+--------------------------------------+-----------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| 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 | cx89mEjP9jZi |
| config_drive | |
| created | 2014-10-02T16:19:36Z |
| flavor | m1.tiny (1) |
| hostId | |
| id | b8313c00-5e3a-4d67-9c61-0cc81b4ab767 |
| image | cirros (09d0e07d-9273-4656-8fca-ed4177f0728a) |
| key_name | demo_key |
| metadata | {} |
| name | test0-b8313c00-5e3a-4d67-9c61-0cc81b4ab767 |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | 437b6ec6239e432db2bbac67791fa13b |
| updated | 2014-10-02T16:19:36Z |
| user_id | 73bd85452187454a9ecb6f33fad3b8ba |
+--------------------------------------+-----------------------------------------------+
Server building... 100% complete
Finished
[root@stack01 ~(keystone_demo)]$ nova list
+--------------------------------------+--------------------------------------------+--------+------------+-------------+--------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------------------------------------------+--------+------------+-------------+--------------------------+
| 068e1961-9326-4aff-9ac4-2a1a2cf02aaf | test0-068e1961-9326-4aff-9ac4-2a1a2cf02aaf | ACTIVE | - | Running | stack_net_priv=10.0.8.5 |
| 0995eb88-b34c-4f2e-a440-9c6a6001fa26 | test0-0995eb88-b34c-4f2e-a440-9c6a6001fa26 | ACTIVE | - | Running | stack_net_priv=10.0.8.10 |
| 1446b1f0-e2bc-4bb3-9c50-12b0286f1edb | test0-1446b1f0-e2bc-4bb3-9c50-12b0286f1edb | ACTIVE | - | Running | stack_net_priv=10.0.8.7 |
| 46dde1f4-a5cc-4d07-986f-63ab4058a067 | test0-46dde1f4-a5cc-4d07-986f-63ab4058a067 | ACTIVE | - | Running | stack_net_priv=10.0.8.9 |
| 48bc9eba-4545-425d-a25c-a66861789118 | test0-48bc9eba-4545-425d-a25c-a66861789118 | ACTIVE | - | Running | stack_net_priv=10.0.8.3 |
| 67c4b540-24c5-4849-a8ba-953698e8d9c2 | test0-67c4b540-24c5-4849-a8ba-953698e8d9c2 | ACTIVE | - | Running | stack_net_priv=10.0.8.8 |
| b6f9d933-a550-497d-af05-f9cdb75e16bc | test0-b6f9d933-a550-497d-af05-f9cdb75e16bc | ACTIVE | - | Running | stack_net_priv=10.0.8.6 |
| b8313c00-5e3a-4d67-9c61-0cc81b4ab767 | test0-b8313c00-5e3a-4d67-9c61-0cc81b4ab767 | ACTIVE | - | Running | stack_net_priv=10.0.8.2 |
+--------------------------------------+--------------------------------------------+--------+------------+-------------+--------------------------+
[root@stack01 ~(keystone_demo)]$ nova floating-ip-create ext_net
+----------------+-----------+----------+---------+
| Ip | Server Id | Fixed Ip | Pool |
+----------------+-----------+----------+---------+
| 192.168.33.162 | - | - | ext_net |
+----------------+-----------+----------+---------+
[root@stack01 ~(keystone_demo)]$ nova floating-ip-create ext_net
+----------------+-----------+----------+---------+
| Ip | Server Id | Fixed Ip | Pool |
+----------------+-----------+----------+---------+
| 192.168.33.163 | - | - | ext_net |
+----------------+-----------+----------+---------+
[root@stack01 ~(keystone_demo)]$ nova floating-ip-create ext_net
+----------------+-----------+----------+---------+
| Ip | Server Id | Fixed Ip | Pool |
+----------------+-----------+----------+---------+
| 192.168.33.164 | - | - | ext_net |
+----------------+-----------+----------+---------+
[root@stack01 ~(keystone_demo)]$ nova floating-ip-create ext_net
+----------------+-----------+----------+---------+
| Ip | Server Id | Fixed Ip | Pool |
+----------------+-----------+----------+---------+
| 192.168.33.165 | - | - | ext_net |
+----------------+-----------+----------+---------+
[root@stack01 ~(keystone_demo)]$ nova floating-ip-create ext_net
+----------------+-----------+----------+---------+
| Ip | Server Id | Fixed Ip | Pool |
+----------------+-----------+----------+---------+
| 192.168.33.166 | - | - | ext_net |
+----------------+-----------+----------+---------+
[root@stack01 ~(keystone_demo)]$ nova floating-ip-create ext_net
+----------------+-----------+----------+---------+
| Ip | Server Id | Fixed Ip | Pool |
+----------------+-----------+----------+---------+
| 192.168.33.167 | - | - | ext_net |
+----------------+-----------+----------+---------+
[root@stack01 ~(keystone_demo)]$ nova floating-ip-create ext_net
+----------------+-----------+----------+---------+
| Ip | Server Id | Fixed Ip | Pool |
+----------------+-----------+----------+---------+
| 192.168.33.168 | - | - | ext_net |
+----------------+-----------+----------+---------+
[root@stack01 ~(keystone_demo)]$ nova floating-ip-create ext_net
+----------------+-----------+----------+---------+
| Ip | Server Id | Fixed Ip | Pool |
+----------------+-----------+----------+---------+
| 192.168.33.169 | - | - | ext_net |
+----------------+-----------+----------+---------+
[root@stack01 ~(keystone_demo)]$ nova list
+--------------------------------------+--------------------------------------------+--------+------------+-------------+--------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------------------------------------------+--------+------------+-------------+--------------------------+
| 068e1961-9326-4aff-9ac4-2a1a2cf02aaf | test0-068e1961-9326-4aff-9ac4-2a1a2cf02aaf | ACTIVE | - | Running | stack_net_priv=10.0.8.5 |
| 0995eb88-b34c-4f2e-a440-9c6a6001fa26 | test0-0995eb88-b34c-4f2e-a440-9c6a6001fa26 | ACTIVE | - | Running | stack_net_priv=10.0.8.10 |
| 1446b1f0-e2bc-4bb3-9c50-12b0286f1edb | test0-1446b1f0-e2bc-4bb3-9c50-12b0286f1edb | ACTIVE | - | Running | stack_net_priv=10.0.8.7 |
| 46dde1f4-a5cc-4d07-986f-63ab4058a067 | test0-46dde1f4-a5cc-4d07-986f-63ab4058a067 | ACTIVE | - | Running | stack_net_priv=10.0.8.9 |
| 48bc9eba-4545-425d-a25c-a66861789118 | test0-48bc9eba-4545-425d-a25c-a66861789118 | ACTIVE | - | Running | stack_net_priv=10.0.8.3 |
| 67c4b540-24c5-4849-a8ba-953698e8d9c2 | test0-67c4b540-24c5-4849-a8ba-953698e8d9c2 | ACTIVE | - | Running | stack_net_priv=10.0.8.8 |
| b6f9d933-a550-497d-af05-f9cdb75e16bc | test0-b6f9d933-a550-497d-af05-f9cdb75e16bc | ACTIVE | - | Running | stack_net_priv=10.0.8.6 |
| b8313c00-5e3a-4d67-9c61-0cc81b4ab767 | test0-b8313c00-5e3a-4d67-9c61-0cc81b4ab767 | ACTIVE | - | Running | stack_net_priv=10.0.8.2 |
+--------------------------------------+--------------------------------------------+--------+------------+-------------+--------------------------+
[root@stack01 ~(keystone_demo)]$ nova floating-ip-associate 068e1961-9326-4aff-9ac4-2a1a2cf02aaf 192.168.33.162
[root@stack01 ~(keystone_demo)]$ nova floating-ip-associate 0995eb88-b34c-4f2e-a440-9c6a6001fa26 192.168.33.163
[root@stack01 ~(keystone_demo)]$ nova floating-ip-associate 1446b1f0-e2bc-4bb3-9c50-12b0286f1edb 192.168.33.164
[root@stack01 ~(keystone_demo)]$ nova floating-ip-associate 46dde1f4-a5cc-4d07-986f-63ab4058a067 192.168.33.165
[root@stack01 ~(keystone_demo)]$ nova floating-ip-associate 48bc9eba-4545-425d-a25c-a66861789118 192.168.33.166
[root@stack01 ~(keystone_demo)]$ nova floating-ip-associate 67c4b540-24c5-4849-a8ba-953698e8d9c2 192.168.33.167
[root@stack01 ~(keystone_demo)]$ nova floating-ip-associate b6f9d933-a550-497d-af05-f9cdb75e16bc 192.168.33.168
[root@stack01 ~(keystone_demo)]$ nova floating-ip-associate b8313c00-5e3a-4d67-9c61-0cc81b4ab767 192.168.33.169
[root@stack01 ~(keystone_demo)]$ nova list
+--------------------------------------+--------------------------------------------+--------+------------+-------------+------------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------------------------------------------+--------+------------+-------------+------------------------------------------+
| 068e1961-9326-4aff-9ac4-2a1a2cf02aaf | test0-068e1961-9326-4aff-9ac4-2a1a2cf02aaf | ACTIVE | - | Running | stack_net_priv=10.0.8.5, 192.168.33.162 |
| 0995eb88-b34c-4f2e-a440-9c6a6001fa26 | test0-0995eb88-b34c-4f2e-a440-9c6a6001fa26 | ACTIVE | - | Running | stack_net_priv=10.0.8.10, 192.168.33.163 |
| 1446b1f0-e2bc-4bb3-9c50-12b0286f1edb | test0-1446b1f0-e2bc-4bb3-9c50-12b0286f1edb | ACTIVE | - | Running | stack_net_priv=10.0.8.7, 192.168.33.164 |
| 46dde1f4-a5cc-4d07-986f-63ab4058a067 | test0-46dde1f4-a5cc-4d07-986f-63ab4058a067 | ACTIVE | - | Running | stack_net_priv=10.0.8.9, 192.168.33.165 |
| 48bc9eba-4545-425d-a25c-a66861789118 | test0-48bc9eba-4545-425d-a25c-a66861789118 | ACTIVE | - | Running | stack_net_priv=10.0.8.3, 192.168.33.166 |
| 67c4b540-24c5-4849-a8ba-953698e8d9c2 | test0-67c4b540-24c5-4849-a8ba-953698e8d9c2 | ACTIVE | - | Running | stack_net_priv=10.0.8.8, 192.168.33.167 |
| b6f9d933-a550-497d-af05-f9cdb75e16bc | test0-b6f9d933-a550-497d-af05-f9cdb75e16bc | ACTIVE | - | Running | stack_net_priv=10.0.8.6, 192.168.33.168 |
| b8313c00-5e3a-4d67-9c61-0cc81b4ab767 | test0-b8313c00-5e3a-4d67-9c61-0cc81b4ab767 | ACTIVE | - | Running | stack_net_priv=10.0.8.2, 192.168.33.169 |
+--------------------------------------+--------------------------------------------+--------+------------+-------------+------------------------------------------+
[root@stack01 ~(keystone_demo)]$ ping 192.168.33.162
PING 192.168.33.162 (192.168.33.162) 56(84) bytes of data.
64 bytes from 192.168.33.162: icmp_seq=1 ttl=63 time=1.63 ms
64 bytes from 192.168.33.162: icmp_seq=2 ttl=63 time=0.440 ms
64 bytes from 192.168.33.162: icmp_seq=3 ttl=63 time=0.286 ms
^C
--- 192.168.33.162 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.286/0.788/1.638/0.604 ms
[root@stack01 ~(keystone_demo)]$ ssh -l root -i ~/id_rsa_demo 192.168.33.162
Warning: Permanently added '192.168.33.162' (RSA) to the list of known hosts.
Please login as 'cirros' user, not as root
^CConnection to 192.168.33.162 closed.
[root@stack01 ~(keystone_demo)]$ ssh -l cirro -i ~/id_rsa_demo 192.168.33.162
cirro@192.168.33.162's password:
[root@stack01 ~(keystone_demo)]$ ssh -l cirros -i ~/id_rsa_demo 192.168.33.162 date
Thu Oct 2 10:27:47 MDT 2014
[root@stack01 ~(keystone_demo)]$ ssh -l cirros -i ~/id_rsa_demo 192.168.33.163 date
Warning: Permanently added '192.168.33.163' (RSA) to the list of known hosts.
Thu Oct 2 10:27:51 MDT 2014
[root@stack01 ~(keystone_demo)]$ ssh -l cirros -i ~/id_rsa_demo 192.168.33.164 date
Warning: Permanently added '192.168.33.164' (RSA) to the list of known hosts.
Thu Oct 2 10:27:53 MDT 2014
[root@stack01 ~(keystone_demo)]$ ssh -l cirros -i ~/id_rsa_demo 192.168.33.165 date
Warning: Permanently added '192.168.33.165' (RSA) to the list of known hosts.
Thu Oct 2 10:27:56 MDT 2014
[root@stack01 ~(keystone_demo)]$ ssh -l cirros -i ~/id_rsa_demo 192.168.33.166 date
Warning: Permanently added '192.168.33.166' (RSA) to the list of known hosts.
Thu Oct 2 10:27:59 MDT 2014