Unable to change password (Horizon)

asked 2016-05-11 09:04:45 -0500

Sapos gravatar image

updated 2016-05-11 09:53:12 -0500

Hello!

Have an environment based on Icehouse OpenStack release (2014.1.3). An attempt to change user own password via dashboard leads to an error: "Unable to change password". The user has "_member_" role. Apache error.log shows this picture:

Not Found: The resource could not be found. (HTTP 404)
Traceback (most recent call last):
   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/settings/password/forms.py", line 61, in handle
     data['new_password'])
   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/keystone.py", line 401, in user_update_own_password
     return client.users.update_own_password(origpassword, password)
   File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/users.py", line 77, in update_own_password
     management=False)
   File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 206, in _update
     management=management)
   File "/usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 602, in patch
     return self._cs_request(url, 'PATCH', **kwargs)
   File "/usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 582, in _cs_request
     return self.request(url, method, **kwargs)
   File "/usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 564, in request
     resp = super(HTTPClient, self).request(url, method, **kwargs)]   File "/usr/lib/python2.7/dist-packages/keystoneclient/baseclient.py", line 21, in request
     return self.session.request(url, method, **kwargs)
   File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner
     return func(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 251, in request
     raise exceptions.from_response(resp, method, url)
 NotFound: The resource could not be found. (HTTP 404)

At the same time a similar attempt to change password in Kilo (2015.1.1) ends successful. I couldn't find any significant code difference in forms.py and keystone.py.

Does anybody have any ideas why is the error occurs?

Thanks!

UPDATE

Changing password via keystone user-password-update command for the same user works fine.

edit retag flag offensive close merge delete