← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1247030] Re: admin user cannot delete other tenants' instances by name

 

** Project changed: nova => python-novaclient

-- 
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/1247030

Title:
  admin user cannot delete other tenants' instances by name

Status in Python client library for Nova:
  Incomplete

Bug description:
  1.Set to admin user firstly. Normally user can delete an instance by
  instance-id or instance-name(when there aren't duplicated names).

  2. Use non-admin user to create a instance server1459893667.

  2.Use admin user to list instances.
  [root@localhost ˜]# nova list --all-tenant 1
  +--------------------------------------+------------------+---------+------------+-------------+-------------------+
  | ID                                   | Name             | Status  | Task State | Power State | Networks          |
  +--------------------------------------+------------------+---------+------------+-------------+-------------------+
  | 59a285a0-d9a1-4bae-969c-7577e673dbb6 | kvm1             | SHUTOFF | None       | Shutdown    | network1=10.0.1.3 |
  | 718edd9b-6ce5-4700-9325-f63a2ecf94ee | server1459893667 | ERROR   | None       | NOSTATE     |                   |
  +--------------------------------------+------------------+---------+------------+-------------+-------------------+

  3. Try to delete an instance of a non-admin user by its name using admin user.
  [root@localhost ˜]# nova delete server1459893667
  No server with a name or ID of 'server1459893667' exists.
  ERROR: Unable to delete any of the specified servers.

  4.Then try to delete this instance by its id and this complete successfully.
  [root@localhost ˜]# nova delete 718edd9b-6ce5-4700-9325-f63a2ecf94ee
  [root@localhost ˜]# nova list --all-tenant 1
  +--------------------------------------+------+---------+------------+-------------+-------------------+
  | ID                                   | Name | Status  | Task State | Power State | Networks          |
  +--------------------------------------+------+---------+------------+-------------+-------------------+
  | 59a285a0-d9a1-4bae-969c-7577e673dbb6 | kvm1 | SHUTOFF | None       | Shutdown    | network1=10.0.1.3 |
  +--------------------------------------+------+---------+------------+-------------+-------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-novaclient/+bug/1247030/+subscriptions