diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-07-30 10:37:50 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-07-30 10:37:50 +0200 |
commit | 716fa9e840b7c3063574316fd7e0246a2bcb9332 (patch) | |
tree | c4c0e1f0c3dc54a6090e10dbc780cd6251ff3988 /Port stuck in migrating.md | |
parent | a9886bf2f8a35369a2c42070c5f83504dfab2bc5 (diff) |
vault backup: 2025-07-30 10:37:50
Diffstat (limited to 'Port stuck in migrating.md')
-rw-r--r-- | Port stuck in migrating.md | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Port stuck in migrating.md b/Port stuck in migrating.md new file mode 100644 index 0000000..26c22e1 --- /dev/null +++ b/Port stuck in migrating.md @@ -0,0 +1,42 @@ +[[Neutron]] + +--- + +# Port stuck in migrating + +Check whether DB has duplicate record: +``` +MariaDB [neutron]> select * from ml2_port_bindings where port_id = "e87c2cab-e2e8-4e7b-9014-acdf5adfff0e"; ++--------------------------------------+-----------------------------------+----------+-----------+----------------------------------------------------------------------------------+---------------------------------------------+----------+ +| port_id | host | vif_type | vnic_type | profile | vif_details | status | ++--------------------------------------+-----------------------------------+----------+-----------+----------------------------------------------------------------------------------+---------------------------------------------+----------+ +| e87c2cab-e2e8-4e7b-9014-acdf5adfff0e | n13.compute.env.vps1-lej1.one.com | ovs | normal | {"os_vif_delegation": true} | {"port_filter": true, "connectivity": "l2"} | INACTIVE | +| e87c2cab-e2e8-4e7b-9014-acdf5adfff0e | n16.compute.env.vps1-lej1.one.com | ovs | normal | {"os_vif_delegation": true, "migrating_to": "n13.compute.env.vps1-lej1.one.com"} | {"port_filter": true, "connectivity": "l2"} | ACTIVE | ++--------------------------------------+-----------------------------------+----------+-----------+----------------------------------------------------------------------------------+---------------------------------------------+----------+ +2 rows in set (0.000 sec) +``` + +Delete the that is INACTIVE +``` +MariaDB [neutron]> delete from ml2_port_bindings where port_id = "e87c2cab-e2e8-4e7b-9014-acdf5adfff0e" and host = "n13.compute.env.vps1-lej1.one.com"; +Query OK, 1 row affected (0.001 sec) +``` + +Now update port binding +``` +.venv ❯ os3 port set --host n13.compute.env.vps1-lej1.one.com e87c2cab-e2e8-4e7b-9014-acdf5adfff0e +``` + +Update binding_profile: + +``` +osc main* 2s +.venv ❯ os3 port set --no-binding-profile e87c2cab-e2e8-4e7b-9014-acdf5adfff0e +``` + +``` +osc main* 2s +.venv ❯ os3 port set --binding-profile os_vif_delegation=True e87c2cab-e2e8-4e7b-9014-acdf5adfff0e +``` + +Check the port status afterward, is it DOWN? Perhaps migrate the VM. |