← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1637484] [NEW] Update user is working not properly

 

Public bug reported:

Using python keystone-client to update user is working not properly.
Keystone client returns new updated object. 
Old user was not updated.

Steps to reproduce:
 1. authenticate

 2. create test_user:
    name='test_user_005'
    password='test'
    email='test@xxxxxxxx'

 3. update test_user
    email='updated@xxxxxxxxxxx'
Expected result:
    Keystone client returns new object test_user was not updated

Actual result:
    test_user was updated

Attachments:
Execute script in attachment to investigate the issue

Trace:
======= CREATE TEST USER =======
======= UPDATE TEST USER =======

======= TEST USER:  <User domain_id=default, email=test@xxxxxxxx,
enabled=True, id=89d34a7ce6c842209823d674c5d0c3b2, links={u'self':
u'http://192.168.0.2:35357/v3/users/89d34a7ce6c842209823d674c5d0c3b2'},
name=test_user_005>

======= TEST USER GET:  <bound method User.get of <User
domain_id=default, email=test@xxxxxxxx, enabled=True,
id=89d34a7ce6c842209823d674c5d0c3b2, links={u'self':
u'http://192.168.0.2:35357/v3/users/89d34a7ce6c842209823d674c5d0c3b2'},
name=test_user_005>>

======= UPDATED TEST USER:  <User domain_id=default,
email=updated@xxxxxxxxxxx, enabled=True, extra={u'email':
u'updated@xxxxxxxxxxx'}, id=89d34a7ce6c842209823d674c5d0c3b2,
links={u'self':
u'http://192.168.0.2:35357/v3/users/89d34a7ce6c842209823d674c5d0c3b2'},
name=test_user_005>

======= UPDATED TEST USER GET:  <bound method User.get of <User
domain_id=default, email=updated@xxxxxxxxxxx, enabled=True,
extra={u'email': u'updated@xxxxxxxxxxx'},
id=89d34a7ce6c842209823d674c5d0c3b2, links={u'self':
u'http://192.168.0.2:35357/v3/users/89d34a7ce6c842209823d674c5d0c3b2'},
name=test_user_005>>

** Affects: keystone
     Importance: Undecided
         Status: Confirmed

** Attachment added: "script to update user"
   https://bugs.launchpad.net/bugs/1637484/+attachment/4768844/+files/user_update.py

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

Title:
  Update user is working not properly

Status in OpenStack Identity (keystone):
  Confirmed

Bug description:
  Using python keystone-client to update user is working not properly.
  Keystone client returns new updated object. 
  Old user was not updated.

  Steps to reproduce:
   1. authenticate

   2. create test_user:
      name='test_user_005'
      password='test'
      email='test@xxxxxxxx'

   3. update test_user
      email='updated@xxxxxxxxxxx'
  Expected result:
      Keystone client returns new object test_user was not updated

  Actual result:
      test_user was updated

  Attachments:
  Execute script in attachment to investigate the issue

  Trace:
  ======= CREATE TEST USER =======
  ======= UPDATE TEST USER =======

  ======= TEST USER:  <User domain_id=default, email=test@xxxxxxxx,
  enabled=True, id=89d34a7ce6c842209823d674c5d0c3b2, links={u'self':
  u'http://192.168.0.2:35357/v3/users/89d34a7ce6c842209823d674c5d0c3b2'},
  name=test_user_005>

  ======= TEST USER GET:  <bound method User.get of <User
  domain_id=default, email=test@xxxxxxxx, enabled=True,
  id=89d34a7ce6c842209823d674c5d0c3b2, links={u'self':
  u'http://192.168.0.2:35357/v3/users/89d34a7ce6c842209823d674c5d0c3b2'},
  name=test_user_005>>

  ======= UPDATED TEST USER:  <User domain_id=default,
  email=updated@xxxxxxxxxxx, enabled=True, extra={u'email':
  u'updated@xxxxxxxxxxx'}, id=89d34a7ce6c842209823d674c5d0c3b2,
  links={u'self':
  u'http://192.168.0.2:35357/v3/users/89d34a7ce6c842209823d674c5d0c3b2'},
  name=test_user_005>

  ======= UPDATED TEST USER GET:  <bound method User.get of <User
  domain_id=default, email=updated@xxxxxxxxxxx, enabled=True,
  extra={u'email': u'updated@xxxxxxxxxxx'},
  id=89d34a7ce6c842209823d674c5d0c3b2, links={u'self':
  u'http://192.168.0.2:35357/v3/users/89d34a7ce6c842209823d674c5d0c3b2'},
  name=test_user_005>>

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


Follow ups