yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #06656
[Bug 1251244] Re: Glance locations don't check for duplicates
** Changed in: glance
Status: Fix Committed => Fix Released
** Changed in: glance
Milestone: None => icehouse-1
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1251244
Title:
Glance locations don't check for duplicates
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Bug description:
When setting image locations, Glange allows users to set the same
location once. Instead it should verify that the combination of
location+metadata does not exist already.
Steps to Reproduce:
1. configure the multiple location in glance
2. create an image.
3. add the same location twice (run the same command): curl -i -X PATCH -H 'Content-Type: application/openstack-images-v2.1-json-patch' -H "X-Auth-Token: $AUTH" http://localhost:9292/v2/images/<image_id> -d '[{"op": "add", "path": "/locations/1", "value": {"url": "<image url>", "metadata": {}}}]'
Actual results:
| locations | [{u'url': u'http://mirrors.usc.edu/pub/linux/distributions/fedora/linux/releases/19/Live/x86_64/Fedora-Live-Desktop-x86_64-19-1.iso', u'metadata': {}}, {u'url': u'http://mirrors.usc.edu/pub/linux/distributions/fedora/linux/releases/19/Live/x86_64/Fedora-Live-Desktop-x86_64-19-1.iso', u'metadata': {}}] |
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1251244/+subscriptions