Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@fuel ~]# pssh -P -h ctrl.txt 'ovs-vsctl add-br br-dmz'
- [1] 18:50:27 [SUCCESS] 10.20.2.5
- [2] 18:50:27 [SUCCESS] 10.20.2.3
- [3] 18:50:27 [SUCCESS] 10.20.2.7
- [root@fuel ~]# pssh -P -h ctrl.txt 'ovs-vsctl -- add-port br-dmz br-dmz--br-eth1 -- set interface br-dmz--br-eth1 type=patch options:peer=br-eth1--br-dmz'
- [1] 18:50:27 [SUCCESS] 10.20.2.5
- [2] 18:50:27 [SUCCESS] 10.20.2.3
- [3] 18:50:27 [SUCCESS] 10.20.2.7
- [root@fuel ~]# pssh -P -h ctrl.txt 'ovs-vsctl -- add-port br-eth1 br-eth1--br-dmz tag=1010 -- set interface br-eth1--br-dmz type=patch options:peer=br-dmz--br-eth1'
- [1] 18:50:27 [SUCCESS] 10.20.2.5
- [2] 18:50:27 [SUCCESS] 10.20.2.3
- [3] 18:50:27 [SUCCESS] 10.20.2.7
- [root@fuel ~]# pssh -P -h ctrl.txt 'ip link set up dev br-dmz'
- [1] 18:50:27 [SUCCESS] 10.20.2.5
- [2] 18:50:27 [SUCCESS] 10.20.2.3
- [3] 18:50:27 [SUCCESS] 10.20.2.7
- [root@fuel ~]# pssh -h ctrl.txt -P 'sed -i.bak s/"external_network_bridge = br-ex"/"external_network_bridge ="/ /etc/neutron/l3_agent.ini'
- [1] 18:51:59 [SUCCESS] 10.20.2.3
- [2] 18:51:59 [SUCCESS] 10.20.2.5
- [3] 18:51:59 [SUCCESS] 10.20.2.7
- [root@fuel ~]# pssh -h ctrl.txt -P 'sed -i.bak s/"network_vlan_ranges =physnet2:1000:1030"/"network_vlan_ranges =physnet2:1000:1030,physnet3"/ /etc/neutron/plugin.ini'
- [1] 18:55:38 [SUCCESS] 10.20.2.3
- [2] 18:55:38 [SUCCESS] 10.20.2.5
- [3] 18:55:38 [SUCCESS] 10.20.2.7
- [root@fuel ~]# pssh -h ctrl.txt -P 'sed -i.bak s/"bridge_mappings=physnet2:br-prv"/"bridge_mappings=physnet2:br-prv,physnet3:br-dmz"/ /etc/neutron/plugin.ini'
- [1] 18:56:14 [SUCCESS] 10.20.2.3
- [2] 18:56:14 [SUCCESS] 10.20.2.7
- [3] 18:56:14 [SUCCESS] 10.20.2.5
- [root@fuel ~]# ssh 10.20.2.3
- Warning: Permanently added '10.20.2.3' (RSA) to the list of known hosts.
- Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-18-generic x86_64)
- * Documentation: https://help.ubuntu.com/
- Last login: Fri Nov 28 18:52:32 2014 from 10.20.2.2
- root@node-6:~# crm resource restart clone_p_neutron-plugin-openvswitch-agent
- INFO: ordering clone_p_neutron-plugin-openvswitch-agent to stop
- waiting for stop to finish . done
- INFO: ordering clone_p_neutron-plugin-openvswitch-agent to start
- root@node-6:~# . openrc
- root@node-6:~# neutron net-create net-dmz --router:external=True --provider:network_type=flat --provider:physical_network=physnet3
- Created a new network:
- +---------------------------+--------------------------------------+
- | Field | Value |
- +---------------------------+--------------------------------------+
- | admin_state_up | True |
- | id | 43113227-6ebe-40c9-8808-087915335c28 |
- | name | net-dmz |
- | provider:network_type | flat |
- | provider:physical_network | physnet3 |
- | provider:segmentation_id | |
- | router:external | True |
- | shared | False |
- | status | ACTIVE |
- | subnets | |
- | tenant_id | 87f088a8cbe5464fb9a8ae05c42a2de2 |
- +---------------------------+--------------------------------------+
- root@node-6:~# neutron subnet-create net-dmz --name net-dmz-subnet --allocation-pool start=192.168.101.135,end=192.168.101.250 --disable-dhcp --gateway 192.168.101.1 192.168.101.0/24
- Created a new subnet:
- +------------------+--------------------------------------------------------+
- | Field | Value |
- +------------------+--------------------------------------------------------+
- | allocation_pools | {"start": "192.168.101.135", "end": "192.168.101.250"} |
- | cidr | 192.168.101.0/24 |
- | dns_nameservers | |
- | enable_dhcp | False |
- | gateway_ip | 192.168.101.1 |
- | host_routes | |
- | id | 01054010-bea7-4833-af63-c95e93871d21 |
- | ip_version | 4 |
- | name | net-dmz-subnet |
- | network_id | 43113227-6ebe-40c9-8808-087915335c28 |
- | tenant_id | 87f088a8cbe5464fb9a8ae05c42a2de2 |
- +------------------+--------------------------------------------------------+
- root@node-6:~# crm status
- Last updated: Fri Nov 28 18:59:06 2014
- Last change: Fri Nov 28 18:58:53 2014 via crm_attribute on node-10
- Stack: classic openais (with plugin)
- Current DC: node-6 - partition with quorum
- Version: 1.1.10-42f2063
- 3 Nodes configured, 3 expected votes
- 20 Resources configured
- Online: [ node-10 node-6 node-8 ]
- vip__management_old (ocf::mirantis:ns_IPaddr2): Started node-6
- vip__public_old (ocf::mirantis:ns_IPaddr2): Started node-6
- Master/Slave Set: master_p_rabbitmq-server [p_rabbitmq-server]
- Masters: [ node-6 ]
- Slaves: [ node-10 node-8 ]
- Clone Set: clone_p_mysql [p_mysql]
- Started: [ node-10 node-6 node-8 ]
- Clone Set: clone_p_haproxy [p_haproxy]
- Started: [ node-10 node-6 node-8 ]
- p_heat-engine (ocf::mirantis:heat-engine): Started node-6
- Clone Set: clone_p_neutron-plugin-openvswitch-agent [p_neutron-plugin-openvswitch-agent]
- Started: [ node-10 node-6 node-8 ]
- Clone Set: clone_p_neutron-metadata-agent [p_neutron-metadata-agent]
- Started: [ node-10 node-6 node-8 ]
- p_neutron-dhcp-agent (ocf::mirantis:neutron-agent-dhcp): Started node-8
- p_neutron-l3-agent (ocf::mirantis:neutron-agent-l3): Started node-10
- root@node-6:~# logout
- Connection to 10.20.2.3 closed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement