← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1210416] Re: non-admin user's search options contains all_tenants

 

This is working as designed.  The change was made in grizzly, here is
the commit that made the change with the explanation:

https://github.com/openstack/nova/commit/3ba1a653d755e2472b23e45f0a698f188fdb18cc

I used Blame on stable/grizzly in github to find this.

** Changed in: nova
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1210416

Title:
  non-admin user's search options contains all_tenants

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  When I reading the code about nova list  function, I find the
  following code:

  def _get_server_search_options(self):
         """ return server search options allowed by non-admin."""
         return ('reservation_id','name','status','image','flavor','ip',
                        'changes-since','all_tenants')

  The last options is 'all_tenants' which I think should be not be
  allowed by non-admin, But In the folsom version, this option
  'all_tenants' is not contained.

  Although, as a non-admin user execute "nova list --all-tenants 1" will
  not get other tenants' instances list, why did this option be added,
  folosm version don'tlcontain? Or just a little bug?

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