← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1721439] [NEW] trust remaining_uses decrement by 2

 

Public bug reported:

After setting the remaining_uses to a positive value e.g. 100, the
remaining_uses are being decremented twice upon each use of the trust.


#crate trust while logged in with admin 
openstack trust create --project demo --role admin admin demo

#Set remaining uses on trust
mysql -e 'update keystone.trust set remaining_uses=100'

#With env's set to to the demo user:
stack@ubuntu-xenial:~$ openstack --os-trust-id 9338333bc185421d987a5e3c1a6b8659  trust show 9338333bc185421d987a5e3c1a6b8659  
+--------------------+----------------------------------+
| Field              | Value                            |
+--------------------+----------------------------------+
| deleted_at         | None                             |
| expires_at         | None                             |
| id                 | 9338333bc185421d987a5e3c1a6b8659 |
| impersonation      | False                            |
| project_id         | c9082a59cc66437dbab59422adc86fd0 |
| redelegation_count | 0                                |
| remaining_uses     | 98                               |
| roles              | admin                            |
| trustee_user_id    | d569f0d606bf47e0b1dbf336aa4ece7e |
| trustor_user_id    | c73ac9ac2e7b48ac872f2acb723892f8 |
+--------------------+----------------------------------+
stack@ubuntu-xenial:~$ openstack --os-trust-id 9338333bc185421d987a5e3c1a6b8659  trust show 9338333bc185421d987a5e3c1a6b8659  -c remaining_uses
+----------------+-------+
| Field          | Value |
+----------------+-------+
| remaining_uses | 96    |
+----------------+-------+
stack@ubuntu-xenial:~$ openstack --os-trust-id 9338333bc185421d987a5e3c1a6b8659  trust show 9338333bc185421d987a5e3c1a6b8659  -c remaining_uses
+----------------+-------+
| Field          | Value |
+----------------+-------+
| remaining_uses | 94    |
+----------------+-------+

** Affects: keystone
     Importance: Undecided
         Status: New

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

Title:
  trust remaining_uses decrement by 2

Status in OpenStack Identity (keystone):
  New

Bug description:
  After setting the remaining_uses to a positive value e.g. 100, the
  remaining_uses are being decremented twice upon each use of the trust.

  
  #crate trust while logged in with admin 
  openstack trust create --project demo --role admin admin demo

  #Set remaining uses on trust
  mysql -e 'update keystone.trust set remaining_uses=100'

  #With env's set to to the demo user:
  stack@ubuntu-xenial:~$ openstack --os-trust-id 9338333bc185421d987a5e3c1a6b8659  trust show 9338333bc185421d987a5e3c1a6b8659  
  +--------------------+----------------------------------+
  | Field              | Value                            |
  +--------------------+----------------------------------+
  | deleted_at         | None                             |
  | expires_at         | None                             |
  | id                 | 9338333bc185421d987a5e3c1a6b8659 |
  | impersonation      | False                            |
  | project_id         | c9082a59cc66437dbab59422adc86fd0 |
  | redelegation_count | 0                                |
  | remaining_uses     | 98                               |
  | roles              | admin                            |
  | trustee_user_id    | d569f0d606bf47e0b1dbf336aa4ece7e |
  | trustor_user_id    | c73ac9ac2e7b48ac872f2acb723892f8 |
  +--------------------+----------------------------------+
  stack@ubuntu-xenial:~$ openstack --os-trust-id 9338333bc185421d987a5e3c1a6b8659  trust show 9338333bc185421d987a5e3c1a6b8659  -c remaining_uses
  +----------------+-------+
  | Field          | Value |
  +----------------+-------+
  | remaining_uses | 96    |
  +----------------+-------+
  stack@ubuntu-xenial:~$ openstack --os-trust-id 9338333bc185421d987a5e3c1a6b8659  trust show 9338333bc185421d987a5e3c1a6b8659  -c remaining_uses
  +----------------+-------+
  | Field          | Value |
  +----------------+-------+
  | remaining_uses | 94    |
  +----------------+-------+

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


Follow ups