Modify Users - Changing host clears database access
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
High
|
Tim Simpson |
Bug Description
When the client changes the host attribute, the user loses access to all databases.
Get the user. It can access one database.
$ curl \
--request GET "https:/
--header "Content-Type: application/json" \
--header "X-Auth-Token: 7e08297922a2457
--insecure \
--write-out "http_code=
Response:
{"user": {"host": "%", "name": "frodo", "databases": [{"name": "1h5x9yfp3n"}]}}
Then, update the host attribute:
$ curl \
--request PUT "https:/
--data "{ \"user\" : { \"host\": \"192.168.1.100\" } }" \
--header "Content-Type: application/json" \
--header "X-Auth-Token: 7e08297922a2457
--insecure \
--write-out "http_code=
Response: 202
Then, get the same user again:
$ curl \
--request GET "https:/
--header "Content-Type: application/json" \
--header "X-Auth-Token: 7e08297922a2457
--insecure \
--write-out "http_code=
Response:
{"user": {"host": "192.168.1.100", "name": "frodo", "databases": []}}
Changed in trove: | |
assignee: | nobody → Riddhi (ridhi-j-shah) |
status: | New → In Progress |
Changed in trove: | |
milestone: | none → havana-rc1 |
Changed in trove: | |
assignee: | Riddhi (ridhi-j-shah) → Tim Simpson (tim-simpson) |
Changed in trove: | |
importance: | Undecided → High |
Changed in trove: | |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | havana-rc1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/43005
Review: https:/