- Routed provider 설정
주요 설정 내역
- globals.yml
# seed node: vi /etc/kolla/globals.yml workaround_ansible_issue_8743: yes kolla_base_distro: "ubuntu" openstack_release: "2023.2" node_custom_config: "{{ node_config }}/config" kolla_internal_vip_address: "<public ip>" kolla_external_vip_address: "192.168.10.111" network_interface: "internal" kolla_external_vip_interface: "eno1" api_interface: "internal" tunnel_interface: "tenant" neutron_external_interface: "external" neutron_bridge_name: "br-ex" neutron_plugin_agent: "ovn" enable_neutron_packet_logging: "yes" openstack_logging_debug: "False" enable_openstack_core: "yes" enable_haproxy: "yes" enable_horizon: "{{ enable_openstack_core | bool }}" enable_neutron_dvr: "yes" enable_neutron_agent_ha: "yes" enable_neutron_provider_networks: "yes" enable_neutron_segments: "yes" # add enable_octavia: "no" enable_octavia_jobboard: "no" nova_compute_virt_type: "kvm" nova_console: "novnc” |
- 배포
# seed node : kolla-ansible -i multinode deploy |
- bridge mapping 이름 변경
# compute node : docker exec openvswitch_vswitchd ovs-vsctl get open . external-ids:ovn-bridge-mappings # compute node : docker exec openvswitch_vswitchd ovs-vsctl set open . external-ids:ovn-bridge-mappings=physnet1:br-ex |
- ml2 수동 수정
# control node : vi /etc/kolla/neutron-server/ml2_conf.ini [ml2] type_drivers = flat,vlan,vxlan,geneve tenant_network_types = geneve mechanism_drivers = ovn extension_drivers = port_security [ml2_type_vlan] network_vlan_ranges = physnet1,physnet2 [ml2_type_flat] flat_networks = physnet1,physnet2 [ml2_type_vxlan] vni_ranges = 1:1000 [ml2_type_geneve] vni_ranges = 1001:2000 max_header_size = 38 [ovn] ovn_nb_connection = tcp:<public ip>:6641 ovn_sb_connection = tcp:<public ip>:6642 ovn_metadata_enabled = True enable_distributed_floating_ip = False ovn_emit_need_to_frag = True |
- neutron server 재시작
# control node : docker restart neutron_server |
- segment 생성
# seed node : openstack network create --provider-physical-network physnet1 --provider-network-type vlan --provider-segment 217 multisegment1 # seed node : openstack network segment list --network multisegment1 # seed node : openstack network segment set --name segment1 fa128e89-8e7d-41fd-bd2a-a49aa83448d9 # seed node : openstack network segment create --physical-network physnet2 --network-type vlan --segment 218 --network multisegment1 segment2 |
같은 subnet range로는 생성이 안됨 BadRequestException: 400: Client Error for url: http://<public ip>:9696/v2.0/subnets, Invalid input for operation: Requested subnet with cidr: 172.19.218.0/25 for network: baee9ea5-970b-42e9-96c0-4dbe8df57f41 overlaps with another subnet. |
'Openstack Kolla Ansible' 카테고리의 다른 글
Kolla-Ansible OVN with DPDK 설치 (0) | 2024.05.24 |
---|---|
Kolla-Ansible OVN with SR-IOV 설치 (0) | 2024.05.24 |