Advertisement
Guest User

Untitled

a guest
May 21st, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. 1) [root@gprfc045 infrared]# cat /infrared/oc_extra_templates.yml
  2. ---
  3. tripleo_heat_templates:
  4. - /home/stack/networks-disable.yaml
  5. - /usr/share/openstack-tripleo-heat-templates/environments/disable-telemetry.yaml
  6. [root@gprfc045 infrared]#
  7.  
  8. 2) copy instackenv.json from undercloud to /infrared in ansible/infrared node
  9.  
  10. 3) in undercloud /home/stack/network_data.yaml
  11. - name: Storage
  12. vip: true
  13. vlan: 30
  14. name_lower: storage
  15. ip_subnet: '172.17.3.0/24'
  16. allocation_pools: [{'start': '172.17.3.100', 'end': '172.17.3.149'}]
  17.  
  18. - name: InternalApi
  19. name_lower: internal_api_osp
  20. vip: true
  21. vlan: 20
  22. ip_subnet: '172.17.1.0/24'
  23. allocation_pools: [{'start': '172.17.1.100', 'end': '172.17.1.149'}]
  24.  
  25. - name: External
  26. vip: true
  27. name_lower: external
  28. ip_subnet: '10.0.0.0/24'
  29. allocation_pools: [{'start': '10.0.0.101', 'end': '10.0.0.149'}]
  30. gateway_ip: '10.0.0.1'
  31.  
  32. - name: Tenant
  33. vip: false # Tenant network does not use VIPs
  34. name_lower: tenant
  35. vlan: 50
  36. ip_subnet: '172.17.2.0/24'
  37. allocation_pools: [{'start': '172.17.2.100', 'end': '172.17.2.149'}]
  38.  
  39. - name: StorageMgmt
  40. name_lower: storage_mgmt
  41. vip: true
  42. vlan: 40
  43. ip_subnet: '172.17.4.0/24'
  44. allocation_pools: [{'start': '172.17.4.100', 'end': '172.17.4.149'}]
  45.  
  46. 4) in undercloud /home/stack/networks-disable.yaml
  47. # Disable the creation of Neutron networks
  48. # This can be useful if you want to create two stacks along side of each
  49. # other. The first stack (doesn't use this environment) and creates
  50. # all of the Neutron networks. The second stack suppresses the
  51. # creation of Networks and shares the same network spaces.
  52. resource_registry:
  53. OS::TripleO::Network::Storage: OS::Heat::None
  54. OS::TripleO::Network::External: OS::Heat::None
  55. OS::TripleO::Network::Management: OS::Heat::None
  56.  
  57. 5) infrared plugin add plugins/tripleo-overcloud
  58.  
  59. 6) run overcloud command
  60. #infrared tripleo-overcloud --deployment-files virt --controller-nodes 1 --compute-nodes 1 --version 14 --deploy yes --overcloud-templates /infrared/oc_extra_templates.yml --instackenv-f
  61. ile /infrared/instackenv.json --extra-deploy-params="-n /home/stack/network_data.yaml" 2>&1 | tee ir_oc14_log1.txt
  62.  
  63. changing host
  64. 1) nova.conf
  65. both my_ip and host should be set to 10.130.0.2
  66. [DEFAULT]
  67. my_ip = 10.130.0.2
  68. host = 10.130.0.2
  69.  
  70. 2) neutron.conf
  71. [DEFAULT]
  72. host = 10.130.0.2
  73.  
  74. 3) /etc/neutron/plugins/ml2/openvswitch_agent.ini
  75. [ovs]
  76. bridge_mappings = datacentre:br-ex
  77. local_ip = 10.130.0.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement