← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1573479] [NEW] Users email can not delete by updating user

 

Public bug reported:

Environment:  Kilo build

Steps:
1) Login using admin
2) Click Identity -> Users
3)  Create a user with email address input.
4) Then edit this user to let the email para as empty which want to remove original email .
5) But after this update, the email address still exist. 

Expected Result: Email address should be removed by this update action

Also tried with the keystone command, it can successfully remove the
email:

1. Create user with an email using Identity API v2: 
# keystone --os-identity-api-version 2.0 user-create --name testv2 --email testv2@xxxxxxx
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|  email   |          testv2@xxxxxxx          |
| enabled  |               True               |
|    id    | 6cde253f2e4c474993d78a70e21886ab |
|   name   |              testv2              |
| username |              testv2              |
+----------+----------------------------------+

2. Update user to remove the email using Identity API v2: 
# keystone --os-identity-api-version 2.0 user-update --name testv2new --email "" testv2
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
User has been updated.

Then run command to verify, the email address has been removed.
# keystone --os-identity-api-version 2.0 user-get testv2new
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|  email   |                                  |
| enabled  |               True               |
|    id    | 6cde253f2e4c474993d78a70e21886ab |
|   name   |            testv2new             |
| username |            testv2new             |
+----------+----------------------------------+

** Affects: horizon
     Importance: Undecided
         Status: New

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

Title:
  Users email can not delete by updating user

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Environment:  Kilo build

  Steps:
  1) Login using admin
  2) Click Identity -> Users
  3)  Create a user with email address input.
  4) Then edit this user to let the email para as empty which want to remove original email .
  5) But after this update, the email address still exist. 

  Expected Result: Email address should be removed by this update action

  Also tried with the keystone command, it can successfully remove the
  email:

  1. Create user with an email using Identity API v2: 
  # keystone --os-identity-api-version 2.0 user-create --name testv2 --email testv2@xxxxxxx
  /usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
    'python-keystoneclient.', DeprecationWarning)
  +----------+----------------------------------+
  | Property |              Value               |
  +----------+----------------------------------+
  |  email   |          testv2@xxxxxxx          |
  | enabled  |               True               |
  |    id    | 6cde253f2e4c474993d78a70e21886ab |
  |   name   |              testv2              |
  | username |              testv2              |
  +----------+----------------------------------+

  2. Update user to remove the email using Identity API v2: 
  # keystone --os-identity-api-version 2.0 user-update --name testv2new --email "" testv2
  /usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
    'python-keystoneclient.', DeprecationWarning)
  User has been updated.

  Then run command to verify, the email address has been removed.
  # keystone --os-identity-api-version 2.0 user-get testv2new
  /usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
    'python-keystoneclient.', DeprecationWarning)
  +----------+----------------------------------+
  | Property |              Value               |
  +----------+----------------------------------+
  |  email   |                                  |
  | enabled  |               True               |
  |    id    | 6cde253f2e4c474993d78a70e21886ab |
  |   name   |            testv2new             |
  | username |            testv2new             |
  +----------+----------------------------------+

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


Follow ups