← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1812118] [NEW] Neutron doesn't allow to update router external subnets

 

Public bug reported:

Create a router with an external subnet, then try to update it:

openstack router set --external-gateway 30e25ece-439b-4d9f-a3f7-816d0167d2cd --fixed-ip subnet=72808793-445e-4fe5-b653-097d720304e8 test
NotFoundException: 404: Client Error for url: https://<url>/v2.0/routers/9f3edd38-f18b-482b-9060-20773423cb76, {"NeutronError": {"message": "Port 31c7ad44-41e6-4c2a-87fc-ea749a725690 could not be found.", "type": "PortNotFound", "detail": ""}}

I expect that this is an issue:
https://github.com/openstack/neutron/blob/b09b8868e93aea437055c041148ccbd095c5c249/neutron/db/l3_db.py#L508

and the context should be: context.elevated(), but I'm not sure whether
it is a security issue.

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: external neutron router subnet

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1812118

Title:
  Neutron doesn't allow to update router external subnets

Status in neutron:
  New

Bug description:
  Create a router with an external subnet, then try to update it:

  openstack router set --external-gateway 30e25ece-439b-4d9f-a3f7-816d0167d2cd --fixed-ip subnet=72808793-445e-4fe5-b653-097d720304e8 test
  NotFoundException: 404: Client Error for url: https://<url>/v2.0/routers/9f3edd38-f18b-482b-9060-20773423cb76, {"NeutronError": {"message": "Port 31c7ad44-41e6-4c2a-87fc-ea749a725690 could not be found.", "type": "PortNotFound", "detail": ""}}

  I expect that this is an issue:
  https://github.com/openstack/neutron/blob/b09b8868e93aea437055c041148ccbd095c5c249/neutron/db/l3_db.py#L508

  and the context should be: context.elevated(), but I'm not sure
  whether it is a security issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1812118/+subscriptions


Follow ups