← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1896588] Re: [Security Groups] When using neutron CLI, if non-existing project is given when listing the SGs, a default SG is created

 

*** This bug is a duplicate of bug 1988026 ***
    https://bugs.launchpad.net/bugs/1988026

** This bug has been marked a duplicate of bug 1988026
   Neutron should not create security group with project==None

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

Title:
  [Security Groups] When using neutron CLI, if non-existing project is
  given when listing the SGs, a default SG is created

Status in neutron:
  In Progress

Bug description:
  When using the Neutron CLI, if the SGs are listed and a project is
  passed (as filter), even if the project does not exist, a default SG
  is created for this project.

  This is happening when the user has admin permissions.

  Example: http://paste.openstack.org/show/798194/

  This is not happening with the OSC because the filter parameters are tested. Example:
    stack@dev18:/opt/stack$ openstack security group list --project wrong_project_2
    No project with a name or ID of 'wrong_project_2' exists.

  Checking if the project exists, when this argument is passed, is
  expensive (a call to keystone must be done). This is also happening
  only when using the deprecated Neutron CLI. Instead of making this
  check inline, I would propose an api-paste method to check, in any API
  call, the existence of the project if the argument is passed. This
  check can be disabled only removing this filter from the api-paste
  config.

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



References