[Bug 1987242] [NEW] Gateways information are not exposed via OpenStack cli

Giuseppe Petralia 1987242 at bugs.launchpad.net
Mon Aug 22 06:47:41 UTC 2022


Public bug reported:

Using OpenStack/OVN, routers gateways information are only available via
Open Virtual Network northbound db management utility (ovn-nbctl) [0].
This tool requires root access to the OVN NB DB leader.

As an operator, I would like to use OpenStack API to retrieve similar
information to what is exposed by ovn-nbctl and being able to perform
set/del of  gateways routers.

Current features missing:

1. get list of ovn-chassis assigned to a gateway with priority.

   This is currently available via:

   ovn-nbctl lrp-get-gateway-chassis <lrp-port>

   but should be available via something similar to:

   openstack network agent list --router <uuid>

2. Set gateway chassis for port with a priority

   This is currently available via:

   ovn-nbctl lrp-set-gateway-chassis <lrp-port> <chassis> [priority]

   but should be available via something similar to:

   openstack network agent set --router <uuid> [--priority <priority>]
<agent-uuid>

3. Deletes gateway chassis from port

   This is currently available via:

   ovn-nbctl lrp-del-gateway-chassis <lrp-port> <chassis>

   but should be available via something similar to:

   openstack network agent unset --router <uuid> <agent-uuid>


[0] https://manpages.ubuntu.com/manpages/bionic/man8/ovn-nbctl.8.html

** Affects: networking-ovn
     Importance: Undecided
         Status: New

** Affects: neutron (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: ovn (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Using OpenStack/OVN, routers gateways information are only available via
  Open Virtual Network northbound db management utility (ovn-nbctl) [0].
  This tool requires root access to the OVN NB DB leader.
  
- 
- As an operator, I would like to use OpenStack API to retrieve similar information to what is exposed by ovn-nbctl and being able to perform set/del of  gateways routers.
+ As an operator, I would like to use OpenStack API to retrieve similar
+ information to what is exposed by ovn-nbctl and being able to perform
+ set/del of  gateways routers.
  
  Current features missing:
-  
- 1. get list of ovn-chassis assigned to a gateway with priority. 
  
-    This is currently available via:
-    
-    ovn-nbctl lrp-get-gateway-chassis <lrp-port>
-    
-    but should be available via something similar to:
+ 1. get list of ovn-chassis assigned to a gateway with priority.
  
-    openstack network agent list --router <uuid>
+    This is currently available via:
+ 
+    ovn-nbctl lrp-get-gateway-chassis <lrp-port>
+ 
+    but should be available via something similar to:
+ 
+    openstack network agent list --router <uuid>
  
  2. Set gateway chassis for port with a priority
  
-    This is currently available via:
+    This is currently available via:
  
-    ovn-nbctl lrp-set-gateway-chassis <lrp-port> <chassis> [priority]
+    ovn-nbctl lrp-set-gateway-chassis <lrp-port> <chassis> [priority]
  
-    but should be available via something similar to:
+    but should be available via something similar to:
  
-    openstack network agent set --router <uuid> [--priority <priority>]
+    openstack network agent set --router <uuid> [--priority <priority>]
  <agent-uuid>
  
+ 3. Deletes gateway chassis from port
  
- 3. Deletes gateway chassis from port 
+    This is currently available via:
  
-    This is currently available via:
+    ovn-nbctl lrp-del-gateway-chassis <lrp-port> <chassis>
  
-    ovn-nbctl lrp-del-gateway-chassis <lrp-port> <chassis>
+    but should be available via something similar to:
+ 
+    openstack network agent unset --router <uuid> <agent-uuid>
  
  
-    but should be available via something similar to:
  
-    openstack network agent unset --router <uuid> <agent-uuid>
- 
- 
- 0. https://manpages.ubuntu.com/manpages/bionic/man8/ovn-nbctl.8.html
+ [0] https://manpages.ubuntu.com/manpages/bionic/man8/ovn-nbctl.8.html

** Also affects: ovn (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: neutron (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ovn in Ubuntu.
https://bugs.launchpad.net/bugs/1987242

Title:
  Gateways information are not exposed via OpenStack cli

Status in networking-ovn:
  New
Status in neutron package in Ubuntu:
  New
Status in ovn package in Ubuntu:
  New

Bug description:
  Using OpenStack/OVN, routers gateways information are only available
  via Open Virtual Network northbound db management utility (ovn-nbctl)
  [0]. This tool requires root access to the OVN NB DB leader.

  As an operator, I would like to use OpenStack API to retrieve similar
  information to what is exposed by ovn-nbctl and being able to perform
  set/del of  gateways routers.

  Current features missing:

  1. get list of ovn-chassis assigned to a gateway with priority.

     This is currently available via:

     ovn-nbctl lrp-get-gateway-chassis <lrp-port>

     but should be available via something similar to:

     openstack network agent list --router <uuid>

  2. Set gateway chassis for port with a priority

     This is currently available via:

     ovn-nbctl lrp-set-gateway-chassis <lrp-port> <chassis> [priority]

     but should be available via something similar to:

     openstack network agent set --router <uuid> [--priority <priority>]
  <agent-uuid>

  3. Deletes gateway chassis from port

     This is currently available via:

     ovn-nbctl lrp-del-gateway-chassis <lrp-port> <chassis>

     but should be available via something similar to:

     openstack network agent unset --router <uuid> <agent-uuid>


  
  [0] https://manpages.ubuntu.com/manpages/bionic/man8/ovn-nbctl.8.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/networking-ovn/+bug/1987242/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list