yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #09029
[Bug 1273171] [NEW] On Glance API, "changes-since" parameter filters out images which have been update at the same date as the specified timestamp
Public bug reported:
environment:
Openstack deployed by devstack.
Steps to reproduce:
1. Check "image" tables.
2. Request glance API whith "changes-since" parameter, whose
value is the same as "update_at" of an image in "images" table.
3.filters out images whose "update_at" is the same of "changes-since"
parameter.
Expected result:
in step3, images are'nt filtered out.
Remark:
this is simillar to https://review.openstack.org/#/c/60157/.
example)
-execution:
$mysql -u root glance
$select * from images;
+--------------------------------------+---+---------------------+
| id |***| updated_at |
+--------------------------------------+---+---------------------+
| 1d88c716-ecd8-4ca1-9fc5-3bda1cf5affc |***| 2014-01-24 17:18:23 |
| b7bc3608-f19e-4eb1-a178-f3c59af2ba22 |***| 2014-01-24 17:18:24 |
| ca15b4d7-6c8b-4d7e-a4bd-a6186373e4d9 |***| 2014-01-24 17:18:25 |
+--------------------------------------+---+---------------------+
$curl *** http://192.168.0.10:9292/v1/images/detail?changes-since=2014-01-24T17:18:25
HTTP/1.1 200 OK
***
{"images": []}
-Expected result:
image whose id is "ca15b4d7-6c8b-4d7e-a4bd-a6186373e4d9" is filter out.
this image should'nt be filtered out from the viewpoint of its name
which includes "since".
** Affects: glance
Importance: Undecided
Assignee: Noboru Arai (arai-h)
Status: In Progress
** Attachment added: "teraterm.log"
https://bugs.launchpad.net/bugs/1273171/+attachment/3958810/+files/teraterm.log
** Changed in: glance
Assignee: (unassigned) => Noboru Arai (arai-h)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1273171
Title:
On Glance API, "changes-since" parameter filters out images which have
been update at the same date as the specified timestamp
Status in OpenStack Image Registry and Delivery Service (Glance):
In Progress
Bug description:
environment:
Openstack deployed by devstack.
Steps to reproduce:
1. Check "image" tables.
2. Request glance API whith "changes-since" parameter, whose
value is the same as "update_at" of an image in "images" table.
3.filters out images whose "update_at" is the same of "changes-since"
parameter.
Expected result:
in step3, images are'nt filtered out.
Remark:
this is simillar to https://review.openstack.org/#/c/60157/.
example)
-execution:
$mysql -u root glance
$select * from images;
+--------------------------------------+---+---------------------+
| id |***| updated_at |
+--------------------------------------+---+---------------------+
| 1d88c716-ecd8-4ca1-9fc5-3bda1cf5affc |***| 2014-01-24 17:18:23 |
| b7bc3608-f19e-4eb1-a178-f3c59af2ba22 |***| 2014-01-24 17:18:24 |
| ca15b4d7-6c8b-4d7e-a4bd-a6186373e4d9 |***| 2014-01-24 17:18:25 |
+--------------------------------------+---+---------------------+
$curl *** http://192.168.0.10:9292/v1/images/detail?changes-since=2014-01-24T17:18:25
HTTP/1.1 200 OK
***
{"images": []}
-Expected result:
image whose id is "ca15b4d7-6c8b-4d7e-a4bd-a6186373e4d9" is filter out.
this image should'nt be filtered out from the viewpoint of its name
which includes "since".
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1273171/+subscriptions
Follow ups
References