summaryrefslogtreecommitdiff
path: root/Port stuck in migrating.md
blob: 26c22e19cb4b2223b836e1e64ca4564caa694c70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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.