I was able to reproduce it on older deployment but it was not
reproducible on master.

After trying locally, by going through the python-openstackclient, openstacksdk 
and nova code base, nothing looked suspicious, but I was not getting the same 
user_id which I passed in the command and that was accessible in osc and 
openstacksdk but not reaching to the nova-api. 
Then I found one change [1] (which merged 5 months ago) in openstacksdk related 
to this and after applying that change in older deployment (where I reproduced 
the issue) to openstacksdk. The issue was resolved and proper user_id was 
passed to nova-api service.

[1] https://review.opendev.org/c/openstack/openstacksdk/+/939564

IMO reporter might be using older openstacksdk, I request you to try
applying this change [1] in your env and see if the error still appears.

Hence I am marking this bug as closed status.


** Changed in: nova
       Status: Confirmed => Fix Released

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

Title:
  Can't delete keypair as admin user - 404 not found

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  If I create a user in a separate domain and project, then I can create
  a keypair for that user while logged in as that user.

  I then set my credentials to an admin user. I can list the user's keypairs 
with:
    openstack keypair list --user <user_name> --user-domain <user_domain>

  However, if I try to delete a keypair with:
    openstack keypair delete --user <user_name> --user-domain <user_domain> 
<keypair>

  I get the error:
    Failed to delete key with name '<name>': ResourceNotFound: 404 .... Keypair 
<name> not found for user <admin user's id>

  When I look at the REST API calls with `--debug` I see that the CLI is
  not using the `?user_id` query parameter for the DELETE call, hence it
  is trying to delete a keypair of the admin user and not the target
  user.

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


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to