Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
openstack port list -f value --long --network ntnu-[global|internal] | grep router | awk '{print $3}' | cut -d"'" -f2 | xargs -n1 ping -c2


Fix missing neutron dragents in BGP speakers

For some odd reason the BGP speakers seems to forget which neutron dragents they have been configured to include. Here's som troubleshooting tips. Typical symptom is that all the tenant IPv6 routes are gone..

Code Block
# List all neutron dragents (you will need the ID)
$ openstack network agent list --sort-column Host --agent-type bgp
+--------------------------------------+---------------------------+---------------+-------------------+-------+-------+---------------------+
| ID                                   | Agent Type                | Host          | Availability Zone | Alive | State | Binary              |
+--------------------------------------+---------------------------+---------------+-------------------+-------+-------+---------------------+
| 73d17a70-6d81-4b41-9a17-ea0b64fbbca8 | BGP dynamic routing agent | neutronnet1   | None              | :-)   | UP    | neutron-bgp-dragent |
| 181618ad-ec71-4dc2-8074-459ff691d032 | BGP dynamic routing agent | neutronnet2   | None              | :-)   | UP    | neutron-bgp-dragent |
| 990cfb8d-4f21-48fa-9bd3-e1eed9f68b1f | BGP dynamic routing agent | neutronnet3   | None              | :-)   | UP    | neutron-bgp-dragent |
| f4cbef36-e812-41fc-acc2-57f0fc5e5604 | BGP dynamic routing agent | neutronv4bgp1 | None              | :-)   | UP    | neutron-bgp-dragent |
| 16546bec-d33a-4b44-8a0a-ac04b4fbc4af | BGP dynamic routing agent | neutronv4bgp2 | None              | :-)   | UP    | neutron-bgp-dragent |
| 8862c571-8e44-47a8-8e89-b091058497d8 | BGP dynamic routing agent | neutronv6bgp1 | None              | :-)   | UP    | neutron-bgp-dragent |
| 088a8f05-fb6f-4e2d-8b0c-4dcb2166337f | BGP dynamic routing agent | neutronv6bgp2 | None              | :-)   | UP    | neutron-bgp-dragent |
+--------------------------------------+---------------------------+---------------+-------------------+-------+-------+---------------------+

# List the BGP speakers (you will need the name)
$ openstack bgp speaker list
+--------------------------------------+---------------+----------+------------+
| ID                                   | Name          | Local AS | IP Version |
+--------------------------------------+---------------+----------+------------+
| 33dc46ad-e6fc-4369-872e-b05436d320ee | bgpspeaker-v4 |    65102 |          4 |
| 4c7c1129-f7c4-4756-af32-3d57abe4dc77 | bgpspeaker-v6 |    65102 |          6 |
+--------------------------------------+---------------+----------+------------+

# List the dragents currently attached to a given speaker
$ openstack bgp speaker show dragents bgpspeaker-v6
+--------------------------------------+---------------+-------+-------+
| ID                                   | Host          | State | Alive |
+--------------------------------------+---------------+-------+-------+
| 088a8f05-fb6f-4e2d-8b0c-4dcb2166337f | neutronv6bgp2 | True  | :-)   |
| 8862c571-8e44-47a8-8e89-b091058497d8 | neutronv6bgp1 | True  | :-)   |
+--------------------------------------+---------------+-------+-------+

# If some of the agents above are missing, re-add them:
$ openstack bgp dragent add speaker 8862c571-8e44-47a8-8e89-b091058497d8 bgpspeaker-v6


Rabbitmq

Manually drain a queue

...