kolla-ansible_general_configuraion

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
kolla-ansible_general_configuraion [2024/10/07 08:44] – [배포 스크립트] koovkolla-ansible_general_configuraion [2025/04/20 06:30] (현재) – [OVN 환경의 경우] koov
줄 38: 줄 38:
 ===== /etc/kolla/config/neutron/ml2_conf.ini ===== ===== /etc/kolla/config/neutron/ml2_conf.ini =====
 ==== Openvswitch(OVS)환경의 경우 === ==== Openvswitch(OVS)환경의 경우 ===
 +''globals.yml'' 내용중 ''neutron_plugin_agent: "openvswitch"'' 설정인 경우
 <WRAP prewrap> <WRAP prewrap>
 <code vim ml2_conf.conf> <code vim ml2_conf.conf>
 [ml2] [ml2]
-type_drivers = flat,vlan,vxlan,geneve +type_drivers = flat,vlan,vxlan 
-tenant_network_types = vxlan +tenant_network_types = flat,vlan,vxlan 
-mechanism_drivers = openvswitch,l2population+mechanism_drivers = openvswitch,baremetal,l2population
 extension_drivers = port_security extension_drivers = port_security
  
 [ml2_type_vlan] [ml2_type_vlan]
-network_vlan_ranges = physnet1+network_vlan_ranges = physnet1,physnet2
  
 [ml2_type_flat] [ml2_type_flat]
-flat_networks = physnet1+flat_networks = physnet1,physnet2
  
 [ml2_type_vxlan] [ml2_type_vxlan]
-vni_ranges = 1:1000+vni_ranges = 1:4000 
 </code> </code>
 </WRAP> </WRAP>
  
 ==== OVN 환경의 경우 === ==== OVN 환경의 경우 ===
 +''globals.yml'' 내용중 ''neutron_plugin_agent: "ovn"'' 설정인 경우
 +
 <WRAP prewrap> <WRAP prewrap>
 <code vim ml2_conf.conf> <code vim ml2_conf.conf>
 [ml2] [ml2]
-type_drivers = flat,vlan,vxlan,geneve+type_drivers = flat,vlan,geneve
 tenant_network_types = geneve tenant_network_types = geneve
-mechanism_drivers = ovn,l2population+mechanism_drivers = ovn,baremetal
 extension_drivers = port_security extension_drivers = port_security
  
줄 72: 줄 76:
 flat_networks = physnet1 flat_networks = physnet1
  
-[ml2_type_vxlan+[ml2_type_geneve
-vni_ranges = 1:1000+vni_ranges = 1:65536 
 +max_header_size = 38
 </code> </code>
 </WRAP> </WRAP>
 +
 +=== Ironic 관련 사항 ===
 +  * ''OVN''에서 ''baremetal'' 메커니즘 드라이버는 필요하지 않고 사용하지 않음
 +  * 대신 포트의 ''vnic_type=baremetal'', ''local_link_information'' 값이 ''Neutron''에 등록되면 ''OVN''이 자동 인식함
 +  * https://docs.openstack.org/neutron/latest/admin/ovn/baremetal.html
 +  * https://docs.ovn.org/en/latest/faq/general.html
 +
 +
 +
  
 ===== /etc/kolla/config/masakari/masakari-monitors.conf ===== ===== /etc/kolla/config/masakari/masakari-monitors.conf =====
줄 102: 줄 116:
 CURR="0" CURR="0"
 RELEASE="2024.1" RELEASE="2024.1"
 +TARGET="multinode"
 while true; do while true; do
  
줄 129: 줄 144:
  
         0) echo ping nodes...;         0) echo ping nodes...;
- ansible -i multinode all -m ping;+ ansible -i ${TARGET} all -m ping;
  ;;  ;;
  
         1) echo Bootstraping...;         1) echo Bootstraping...;
-        kolla-ansible -i ./multinode bootstrap-servers;+        kolla-ansible bootstrap-servers -i ./${TARGET};
         ;;         ;;
  
         2) echo Prechecking... ;         2) echo Prechecking... ;
-        kolla-ansible -i ./multinode prechecks;+        kolla-ansible prechecks -i ./${TARGET};
         ;;         ;;
  
         3) echo Deploying... ;         3) echo Deploying... ;
-        kolla-ansible -i ./multinode deploy;+        kolla-ansible deploy -i ./${TARGET};
         ;;         ;;
  
         4) echo post-deploy... ;         4) echo post-deploy... ;
-        kolla-ansible -i ./multinode post-deploy;+        kolla-ansible post-deploy -i ./${TARGET};
         ;;         ;;
  
줄 158: 줄 173:
         [Yy]* )          [Yy]* ) 
  ansible -m shell -a 'killall qemu-kvm' -i multinode compute;  ansible -m shell -a 'killall qemu-kvm' -i multinode compute;
-        kolla-ansible -i ./multinode destroy --yes-i-really-really-mean-it;+        kolla-ansible destroy -i ./${TARGET} --yes-i-really-really-mean-it;
  break;;  break;;
          [Nn]* ) break;;          [Nn]* ) break;;
줄 167: 줄 182:
  
         p) echo image purging..;         p) echo image purging..;
-        ansible -m shell -a 'docker rmi $(docker images -q)' -i multinode all;+        ansible -m shell -a 'docker rmi $(docker images -q)' -i ./${TARGET} all;
         ;;         ;;
  
         u) echo update os..;         u) echo update os..;
-        ansible -m shell -a 'yum -y update; sync;' -i multinode all;+        ansible -m shell -a 'yum -y update; sync;' -i ./${TARGET} all;
         ;;         ;;
  
  r) echo reboot nodes..;  r) echo reboot nodes..;
- ansible -m shell -a 'sync;reboot' -i multinode control; + ansible -m shell -a 'sync;reboot' -i ./${TARGET} control; 
- ansible -m shell -a 'sync;reboot' -i multinode compute;+ ansible -m shell -a 'sync;reboot' -i ./${TARGET} compute;
  ;;  ;;
  
  s) echo shutdown nodes..;  s) echo shutdown nodes..;
- ansible -m shell -a 'sync;shutdown -h now' -i multinode control; + ansible -m shell -a 'sync;shutdown -h now' -i ./${TARGET} control; 
- ansible -m shell -a 'sync;shutdown -h now' -i multinode compute;+ ansible -m shell -a 'sync;shutdown -h now' -i ./${TARGET} compute;
  ;;  ;;
  
줄 195: 줄 210:
  cd ~;  cd ~;
  echo 'stop control1 mariadb container...';  echo 'stop control1 mariadb container...';
- ansible -m shell -a 'docker stop mariadb' -i multinode control;+ ansible -m shell -a 'docker stop mariadb' -i ./${TARGET} control;
  if [ $? -eq 0 ]; then  if [ $? -eq 0 ]; then
  echo "mariadb stop successfully"  echo "mariadb stop successfully"
- kolla-ansible -i multinode mariadb_recovery;+ kolla-ansible mariadb_recovery -i ./${TARGET};
  else  else
  echo "mariadb stop failed"  echo "mariadb stop failed"
  • kolla-ansible_general_configuraion.1728290646.txt.gz
  • 마지막으로 수정됨: 2024/10/07 08:44
  • 저자 koov