Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.93 KB | None | 0 0
  1. [root@fuel ~]# pssh -P -h ctrl.txt 'ovs-vsctl add-br br-dmz'
  2. [1] 18:50:27 [SUCCESS] 10.20.2.5
  3. [2] 18:50:27 [SUCCESS] 10.20.2.3
  4. [3] 18:50:27 [SUCCESS] 10.20.2.7
  5. [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'
  6. [1] 18:50:27 [SUCCESS] 10.20.2.5
  7. [2] 18:50:27 [SUCCESS] 10.20.2.3
  8. [3] 18:50:27 [SUCCESS] 10.20.2.7
  9. [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'
  10. [1] 18:50:27 [SUCCESS] 10.20.2.5
  11. [2] 18:50:27 [SUCCESS] 10.20.2.3
  12. [3] 18:50:27 [SUCCESS] 10.20.2.7
  13. [root@fuel ~]# pssh -P -h ctrl.txt 'ip link set up dev br-dmz'
  14. [1] 18:50:27 [SUCCESS] 10.20.2.5
  15. [2] 18:50:27 [SUCCESS] 10.20.2.3
  16. [3] 18:50:27 [SUCCESS] 10.20.2.7
  17. [root@fuel ~]# pssh -h ctrl.txt -P 'sed -i.bak s/"external_network_bridge = br-ex"/"external_network_bridge ="/ /etc/neutron/l3_agent.ini'
  18. [1] 18:51:59 [SUCCESS] 10.20.2.3
  19. [2] 18:51:59 [SUCCESS] 10.20.2.5
  20. [3] 18:51:59 [SUCCESS] 10.20.2.7
  21. [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'
  22. [1] 18:55:38 [SUCCESS] 10.20.2.3
  23. [2] 18:55:38 [SUCCESS] 10.20.2.5
  24. [3] 18:55:38 [SUCCESS] 10.20.2.7
  25. [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'
  26. [1] 18:56:14 [SUCCESS] 10.20.2.3
  27. [2] 18:56:14 [SUCCESS] 10.20.2.7
  28. [3] 18:56:14 [SUCCESS] 10.20.2.5
  29. [root@fuel ~]# ssh 10.20.2.3
  30. Warning: Permanently added '10.20.2.3' (RSA) to the list of known hosts.
  31. Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-18-generic x86_64)
  32.  
  33. * Documentation: https://help.ubuntu.com/
  34. Last login: Fri Nov 28 18:52:32 2014 from 10.20.2.2
  35. root@node-6:~# crm resource restart clone_p_neutron-plugin-openvswitch-agent
  36. INFO: ordering clone_p_neutron-plugin-openvswitch-agent to stop
  37. waiting for stop to finish . done
  38. INFO: ordering clone_p_neutron-plugin-openvswitch-agent to start
  39. root@node-6:~# . openrc
  40. root@node-6:~# neutron net-create net-dmz --router:external=True --provider:network_type=flat --provider:physical_network=physnet3
  41. Created a new network:
  42. +---------------------------+--------------------------------------+
  43. | Field | Value |
  44. +---------------------------+--------------------------------------+
  45. | admin_state_up | True |
  46. | id | 43113227-6ebe-40c9-8808-087915335c28 |
  47. | name | net-dmz |
  48. | provider:network_type | flat |
  49. | provider:physical_network | physnet3 |
  50. | provider:segmentation_id | |
  51. | router:external | True |
  52. | shared | False |
  53. | status | ACTIVE |
  54. | subnets | |
  55. | tenant_id | 87f088a8cbe5464fb9a8ae05c42a2de2 |
  56. +---------------------------+--------------------------------------+
  57. 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
  58. Created a new subnet:
  59. +------------------+--------------------------------------------------------+
  60. | Field | Value |
  61. +------------------+--------------------------------------------------------+
  62. | allocation_pools | {"start": "192.168.101.135", "end": "192.168.101.250"} |
  63. | cidr | 192.168.101.0/24 |
  64. | dns_nameservers | |
  65. | enable_dhcp | False |
  66. | gateway_ip | 192.168.101.1 |
  67. | host_routes | |
  68. | id | 01054010-bea7-4833-af63-c95e93871d21 |
  69. | ip_version | 4 |
  70. | name | net-dmz-subnet |
  71. | network_id | 43113227-6ebe-40c9-8808-087915335c28 |
  72. | tenant_id | 87f088a8cbe5464fb9a8ae05c42a2de2 |
  73. +------------------+--------------------------------------------------------+
  74. root@node-6:~# crm status
  75. Last updated: Fri Nov 28 18:59:06 2014
  76. Last change: Fri Nov 28 18:58:53 2014 via crm_attribute on node-10
  77. Stack: classic openais (with plugin)
  78. Current DC: node-6 - partition with quorum
  79. Version: 1.1.10-42f2063
  80. 3 Nodes configured, 3 expected votes
  81. 20 Resources configured
  82.  
  83.  
  84. Online: [ node-10 node-6 node-8 ]
  85.  
  86. vip__management_old (ocf::mirantis:ns_IPaddr2): Started node-6
  87. vip__public_old (ocf::mirantis:ns_IPaddr2): Started node-6
  88. Master/Slave Set: master_p_rabbitmq-server [p_rabbitmq-server]
  89. Masters: [ node-6 ]
  90. Slaves: [ node-10 node-8 ]
  91. Clone Set: clone_p_mysql [p_mysql]
  92. Started: [ node-10 node-6 node-8 ]
  93. Clone Set: clone_p_haproxy [p_haproxy]
  94. Started: [ node-10 node-6 node-8 ]
  95. p_heat-engine (ocf::mirantis:heat-engine): Started node-6
  96. Clone Set: clone_p_neutron-plugin-openvswitch-agent [p_neutron-plugin-openvswitch-agent]
  97. Started: [ node-10 node-6 node-8 ]
  98. Clone Set: clone_p_neutron-metadata-agent [p_neutron-metadata-agent]
  99. Started: [ node-10 node-6 node-8 ]
  100. p_neutron-dhcp-agent (ocf::mirantis:neutron-agent-dhcp): Started node-8
  101. p_neutron-l3-agent (ocf::mirantis:neutron-agent-l3): Started node-10
  102. root@node-6:~# logout
  103. Connection to 10.20.2.3 closed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement