OVN Network 정보 조회

# podman exec ovn-dbs-bundle-podman-0 ovn-nbctl list logical_switch_p 50a44cd3-2f18-49f6-b455-6b08b99e521e
_uuid               : 8519965f-2acb-4b8b-8581-a9c3526dcd91
addresses           : [router]
dhcpv4_options      : []
dhcpv6_options      : []
dynamic_addresses   : []
enabled             : true
external_ids        : {"neutron:cidrs"="172.24.0.1/16", "neutron:device_id"="5444e31a-1507-4d67-92ab-f87591dfc3bb", "neutron:device_owner"="network:router_interface", "neutron:network_name"=neutron-779cc29e-8aef-4f3d-8d17-9338d26a0ed8, "neutron:port_name"="", "neutron:project_id"="9720f2419b6d414dbb1b460a6a8a5079", "neutron:revision_number"="2", "neutron:security_group_ids"=""}
ha_chassis_group    : []
name                : "50a44cd3-2f18-49f6-b455-6b08b99e521e"
options             : {router-port=lrp-50a44cd3-2f18-49f6-b455-6b08b99e521e}
parent_name         : []
port_security       : []
tag                 : []
tag_request         : []
type                : router
up                  : true         >>>>> I am UP
#openstack port list --router=5444e31a-1507-4d67-92ab-f87591dfc3bb
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------+--------+
| ID                                   | Name | MAC Address       | Fixed IP Addresses                                                         | Status |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------+--------+
| 1c608b58-e50b-4416-a16a-314fda26a9fd |      | xx:xx:xx:xx:xx:xx | ip_address='10.0.79.213', subnet_id='17eca5aa-75c5-411c-a1cd-ae1d2cc8cf3d' | ACTIVE |
| 50a44cd3-2f18-49f6-b455-6b08b99e521e |      | yy:yy:yy:yy:yy:yy | ip_address='172.24.0.1', subnet_id='9b2b4c44-8ee8-4950-bb10-5d40a68520b9'  | DOWN   |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------+--------+

neutron_sync_mode

  • log : 동기화 하지 않고 로깅만
  • repair : 동기화 시도
podman exec neutron_api neutron-ovn-db-sync-util --config-file /usr/share/neutron/neutron-dist.conf --config-dir 
/usr/share/neutron/server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini -config- 
dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-server --log-file=/var/log/neutron/repair.log --ovn- 
neutron_sync_mode repair --debug

# 또는
neutron-ovn-db-sync-util --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --ovn-neutron_sync_mode log --debug
ovs-vsctl set open . external_ids:ovn-remote-probe-interval=180000

# And restart the OVN -related services:

# Controller:
systemctl restart tripleo_neutron_api.service
systemctl restart tripleo_ovn_controller.service

# Compute:
systemctl restart tripleo_ovn_controller.service
systemctl restart tripleo_ovn_metadata_agent.service
로그인하면 댓글을 남길 수 있습니다.
  • ovn_network_정보_조회.txt
  • 마지막으로 수정됨: 2024/04/01 01:44
  • 저자 koov