1
RDO Juno test M3 Notes allinone
Arif Ali edited this page 2014-10-04 17:20:52 +01:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

  • set SELinux to permissive setenforce 0
  • run packstack --allinone, and then press Ctrl-C within a few seconds
  • Edit packstack-answers-20141001-122314.txt, and update with CONFIG_PROVISION_DEMO=n
  • run packstack --answer-file=packstack-answers-20141001-122314.txt
[root@stack02 ~]# packstack --answer-file=packstack-answers-20141001-122314.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 ]
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 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.2_prescript.pp
10.0.0.2_prescript.pp:                               [ DONE ]    
Applying 10.0.0.2_amqp.pp
Applying 10.0.0.2_mysql.pp
10.0.0.2_amqp.pp:                                    [ DONE ]
10.0.0.2_mysql.pp:                                   [ DONE ]
Applying 10.0.0.2_keystone.pp
Applying 10.0.0.2_glance.pp
Applying 10.0.0.2_cinder.pp
10.0.0.2_keystone.pp:                                [ DONE ]   
10.0.0.2_glance.pp:                                  [ DONE ]   
10.0.0.2_cinder.pp:                                  [ DONE ]   
Applying 10.0.0.2_api_nova.pp
10.0.0.2_api_nova.pp:                                [ DONE ]   
Applying 10.0.0.2_nova.pp
10.0.0.2_nova.pp:                                    [ DONE ]
Applying 10.0.0.2_neutron.pp
10.0.0.2_neutron.pp:                                 [ DONE ]  
Applying 10.0.0.2_neutron_fwaas.pp
Applying 10.0.0.2_osclient.pp
Applying 10.0.0.2_horizon.pp
10.0.0.2_neutron_fwaas.pp:                           [ DONE ]        
10.0.0.2_horizon.pp:                                 [ DONE ]        
10.0.0.2_osclient.pp:                                [ DONE ]        
Applying 10.0.0.2_ring_swift.pp
10.0.0.2_ring_swift.pp:                              [ DONE ]     
Applying 10.0.0.2_swift.pp
10.0.0.2_swift.pp:                                   [ DONE ]
Applying 10.0.0.2_mongodb.pp
10.0.0.2_mongodb.pp:                                 [ DONE ]  
Applying 10.0.0.2_ceilometer.pp
Applying 10.0.0.2_nagios.pp
Applying 10.0.0.2_nagios_nrpe.pp
10.0.0.2_ceilometer.pp:                              [ DONE ]      
10.0.0.2_nagios.pp:                                  [ DONE ]      
10.0.0.2_nagios_nrpe.pp:                             [ DONE ]      
Applying 10.0.0.2_postscript.pp
10.0.0.2_postscript.pp:                              [ DONE ]     
Applying Puppet manifests                            [ DONE ]
Finalizing                                           [ DONE ]

 **** Installation completed successfully ******


Additional information:
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * File /root/keystonerc_admin has been created on OpenStack client host 10.0.0.2. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://10.0.0.2/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
 * To use Nagios, browse to http://10.0.0.2/nagios username: nagiosadmin, password: 72d5d1917c9e4eaf
 * The installation log file is available at: /var/tmp/packstack/20141001-122429-gcmhKD/openstack-setup.log
 * The generated manifests are available at: /var/tmp/packstack/20141001-122429-gcmhKD/manifests
[root@stack02 ~]# . keystonerc_admin 
[root@stack02 ~(keystone_admin)]# neutron net-create ext_net --router:external=True
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | e152de38-4fcd-4b6f-959f-536ec580dc2b |
| name                      | ext_net                              |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 10                                   |
| router:external           | True                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | bde6e8b2d5c54283b7a8e34b19d3de5b     |
+---------------------------+--------------------------------------+
[root@stack02 ~(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                | 276ca76c-3e54-44c0-a3ce-bd29cc047d89                 |
| ip_version        | 4                                                    |
| ipv6_address_mode |                                                      |
| ipv6_ra_mode      |                                                      |
| name              | ext_subnet                                           |
| network_id        | e152de38-4fcd-4b6f-959f-536ec580dc2b                 |
| tenant_id         | bde6e8b2d5c54283b7a8e34b19d3de5b                     |
+-------------------+------------------------------------------------------+
[root@stack02 ~(keystone_admin)]# wget --no-check-certificate https://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img
--2014-10-01 12:45:22--  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-01 12:45:23--  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:6389, ...
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.06MB/s   in 12s    

2014-10-01 12:45:35 (1.06 MB/s) - cirros-0.3.3-x86_64-disk.img saved [13200896/13200896]

[root@stack02 ~(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-01T11:45:43                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | qcow2                                |
| id               | a0ca2de3-4b78-4de8-a4af-415b2a22fd59 |
| is_public        | True                                 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | cirros                               |
| owner            | bde6e8b2d5c54283b7a8e34b19d3de5b     |
| protected        | False                                |
| size             | 13200896                             |
| status           | active                               |
| updated_at       | 2014-10-01T11:45:44                  |
| virtual_size     | None                                 |
+------------------+--------------------------------------+
[root@stack02 ~(keystone_admin)]# keystone tenant-create --name demo
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
| description |                                  |
|   enabled   |               True               |
|      id     | 9da359db7f194a9b8c82ebae2d4be847 |
|     name    |               demo               |
+-------------+----------------------------------+
[root@stack02 ~(keystone_admin)]# keystone user-create --name demo --pass demo
+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|  email   |                                  |
| enabled  |               True               |
|    id    | c569ff9d1b1a470a86756728392f310a |
|   name   |               demo               |
| username |               demo               |
+----------+----------------------------------+
[root@stack02 ~(keystone_admin)]# keystone user-role-add --user demo --role _member_ --tenant demo
[root@stack02 ~(keystone_admin)]# vi keystonerc_demo
[root@stack02 ~(keystone_admin)]# . /root/keystonerc_demo
[root@stack02 ~(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:
26:7f:53:e2:b5:f4:5c:b8:dd:25:67:04:2d:e7:b4:d4 root@stack02.cluster
The key's randomart image is:
+--[ RSA 4096]----+
|              ...|
|              .oE|
|              .=o|
|               +.|
|      . S . + o =|
|       + . = + Bo|
|        . + . + o|
|         . .     |
|                 |
+-----------------+
[root@stack02 ~(keystone_demo)]# nova keypair-add --pub-key /root/id_rsa_demo.pub demo_key
[root@stack02 ~(keystone_demo)]# neutron net-create stack_net_priv
Created a new network:
+----------------+--------------------------------------+
| Field          | Value                                |
+----------------+--------------------------------------+
| admin_state_up | True                                 |
| id             | 6fe95207-6812-42c3-be10-c926590b1edd |
| name           | stack_net_priv                       |
| shared         | False                                |
| status         | ACTIVE                               |
| subnets        |                                      |
| tenant_id      | 9da359db7f194a9b8c82ebae2d4be847     |
+----------------+--------------------------------------+
[root@stack02 ~(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                | 8c9b2c15-1d9d-441d-bb18-126e462773b1       |
| ip_version        | 4                                          |
| ipv6_address_mode |                                            |
| ipv6_ra_mode      |                                            |
| name              | stack_subnet_priv                          |
| network_id        | 6fe95207-6812-42c3-be10-c926590b1edd       |
| tenant_id         | 9da359db7f194a9b8c82ebae2d4be847           |
+-------------------+--------------------------------------------+
[root@stack02 ~(keystone_demo)]# neutron router-create extnet_stackrouter
Created a new router:
+-----------------------+--------------------------------------+
| Field                 | Value                                |
+-----------------------+--------------------------------------+
| admin_state_up        | True                                 |
| external_gateway_info |                                      |
| id                    | 249f5922-f368-422d-9c7a-8cb6f1636b23 |
| name                  | extnet_stackrouter                   |
| routes                |                                      |
| status                | ACTIVE                               |
| tenant_id             | 9da359db7f194a9b8c82ebae2d4be847     |
+-----------------------+--------------------------------------+
[root@stack02 ~(keystone_demo)]# neutron router-gateway-set extnet_stackrouter ext_net
Set gateway for router extnet_stackrouter
[root@stack02 ~(keystone_demo)]# neutron router-interface-add extnet_stackrouter stack_subnet_priv
Added interface 6a7bd0b2-ec6c-40b6-a021-68180d526633 to router extnet_stackrouter.
[root@stack02 ~(keystone_demo)]# neutron security-group-rule-create --protocol icmp default
Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| direction         | ingress                              |
| ethertype         | IPv4                                 |
| id                | 3b15aadf-971a-43cb-9d5d-a649ea5e1c17 |
| port_range_max    |                                      |
| port_range_min    |                                      |
| protocol          | icmp                                 |
| remote_group_id   |                                      |
| remote_ip_prefix  |                                      |
| security_group_id | c7d9d6ea-d89b-405a-a04b-78c5fbef4412 |
| tenant_id         | 9da359db7f194a9b8c82ebae2d4be847     |
+-------------------+--------------------------------------+
[root@stack02 ~(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                | 4bf9bc5c-e193-40a9-9b82-b9f0b72b07ca |
| port_range_max    | 22                                   |
| port_range_min    | 22                                   |
| protocol          | tcp                                  |
| remote_group_id   |                                      |
| remote_ip_prefix  |                                      |
| security_group_id | c7d9d6ea-d89b-405a-a04b-78c5fbef4412 |
| tenant_id         | 9da359db7f194a9b8c82ebae2d4be847     |
+-------------------+--------------------------------------+
[root@stack02 ~(keystone_demo)]# nova boot --poll --flavor m1.tiny --image cirros \
>   --nic net-id=6fe95207-6812-42c3-be10-c926590b1edd --key-name demo_key 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                            | U2EDVxQ5adf4                                  |
| config_drive                         |                                               |
| created                              | 2014-10-01T11:48:29Z                          |
| flavor                               | m1.tiny (1)                                   |
| hostId                               |                                               |
| id                                   | 7b81c6ce-4c35-4600-b8da-bd851a7daf93          |
| image                                | cirros (a0ca2de3-4b78-4de8-a4af-415b2a22fd59) |
| key_name                             | demo_key                                      |
| metadata                             | {}                                            |
| name                                 | test0                                         |
| os-extended-volumes:volumes_attached | []                                            |
| progress                             | 0                                             |
| security_groups                      | default                                       |
| status                               | BUILD                                         |
| tenant_id                            | 9da359db7f194a9b8c82ebae2d4be847              |
| updated                              | 2014-10-01T11:48:29Z                          |
| user_id                              | c569ff9d1b1a470a86756728392f310a              |
+--------------------------------------+-----------------------------------------------+
Server building... 100% complete
Finished
[root@stack02 ~(keystone_demo)]# nova floating-ip-pool-list
+---------+
| name    |
+---------+
| ext_net |
+---------+
[root@stack02 ~(keystone_demo)]# nova floating-ip-create ext_net
+----------------+-----------+----------+---------+
| Ip             | Server Id | Fixed Ip | Pool    |
+----------------+-----------+----------+---------+
| 192.168.33.162 | -         | -        | ext_net |
+----------------+-----------+----------+---------+
[root@stack02 ~(keystone_demo)]# nova floating-ip-associate test0 192.168.33.162
[root@stack02 ~(keystone_demo)]# nova list
+--------------------------------------+-------+--------+------------+-------------+-----------------------------------------+
| ID                                   | Name  | Status | Task State | Power State | Networks                                |
+--------------------------------------+-------+--------+------------+-------------+-----------------------------------------+
| 7b81c6ce-4c35-4600-b8da-bd851a7daf93 | test0 | ACTIVE | -          | Running     | stack_net_priv=10.0.8.2, 192.168.33.162 |
+--------------------------------------+-------+--------+------------+-------------+-----------------------------------------+

[root@stack02 network-scripts(keystone_demo)]# ovs-vsctl add-port br-ex enp2s1f1

/etc/sysconfig/network-scripts/ifcfg-br-ex

DEVICE=br-ex
TYPE=OVSBridge
DEVICETYPE=ovs
ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED=no
IPADDR=192.168.56.151
NETMASK=255.255.255.0
GATEWAY=192.168.56.254

/etc/sysconfig/network-scripts/ifcfg-br-enp2s1f1

DEVICE=enp2s1f1
TYPE=OVSPort
DEVICETYPE=ovs
ONBOOT=yes
NM_CONTROLLED=no
OVS_BRIDGE=br-ex
systemctl restart network
systemctl restart network
openstack-service restart
[root@stack02 ~]# ping -c 3 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=2.88 ms
64 bytes from 192.168.33.162: icmp_seq=2 ttl=63 time=0.432 ms
64 bytes from 192.168.33.162: icmp_seq=3 ttl=63 time=0.292 ms

--- 192.168.33.162 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.292/1.203/2.886/1.191 ms
[root@stack02 ~]# ssh -i /root/id_rsa_demo cirros@192.168.33.162
Warning: Permanently added '192.168.33.162' (RSA) to the list of known hosts.
$ 
$ cat /etc/issue
login as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root.
$ 
$