Network Agents Missing for Re-onboarded Host Due to Stale OVN Chassis Entry
PreviousVM Creation Failed Due to Port Binding FailureNextMTU for Virtual Networks Cannot be Modified
Last updated
$ openstack network agent list$ cat /var/log/pf9/ovn/ovn-controller.log |ovsdb_idl|WARN|transaction error: {"details":"Transaction causes multiple rows in \"Encap\" table to have identical values (geneve and \"[HOST_IP_ADDRESS]\") for index on columns \"type\" and \"ip\". First row, with UUID [UUID_1], was inserted by this transaction. Second row, with UUID [UUID_2], existed in the database before this transaction and was not modified by the transaction.","error":"constraint violation"}$ ovn-sbctl show#example output
Chassis "[OLD_CHASSIS_UUID]"
hostname: "[OLD_HOST_ID]"
Encap geneve
ip: "[HOST_GENEVE_IP]"
options: {csum="true"}$ ovn-sbctl chassis-del <OLD_CHASSIS_UUID>$ systemctl restart ovn-controller
$ systemctl restart pf9-neutron-ovn-metadata-agent$ ovn-sbctl show
#example output
Chassis "[NEW_CHASSIS_UUID]"
hostname: "[NEW_HOST-ID]"
Encap geneve
ip: "[HOST_GENEVE_IP]"
options: {csum="true"}$ openstack network agent listEXTERNAL_ID=$(sudo ovs-vsctl get open . external_ids:ovn-remote | awk -F: '{print $2}')
export NBDB=tcp:${EXTERNAL_ID}:6641
export SBDB=tcp:${EXTERNAL_ID}:6642
alias ovn-sbctl="ovn-sbctl --db=$SBDB"
alias ovn-nbctl="ovn-nbctl --db=$NBDB"
alias ovn-trace="ovn-trace --db=$SBDB"$ source ovs-alias.rc
$ ovn-sbctl show$ kubectl -n <REGION_NAMESPACE> exec -it <OVN_SOUTH_POD> -- bash --kubeconfig <PATH_TO_KUBECONFIG>