Bug 1131954
Summary: | Behavior around 'updated_at' changed for :repositories :show | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Matej Kollar <mkollar> | ||||
Component: | API | Assignee: | Bryan Kearney <bkearney> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | Unspecified | CC: | akarsale, bbuckingham, ggainey | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-01-13 19:55:01 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Per 6.3 planning, moving out non acked bugs to the backlog the response structure for individual repository API(katello/api/repositories/:id) has been changed now in satellite 6.1+ as compared to previous response(when the BZ was created). Currently the `last_sync` attribute is a hash object with inner attributes as follows: "last_sync": { "id": "3181854a-a97b-43dc-aa0b-461d50fe0da5", "username": "admin", "started_at": "2016-04-20 13:05:43 +0530", "ended_at": "2016-04-20 13:47:31 +0530", "state": "stopped", "result": "success", "progress": 1.0 } Also the `started_at` and `ended_at` timestamp is greater than `updated_at` attribute. I guess there is nothing to do on this BZ now. This bugzilla can be closed. |
Created attachment 928769 [details] reproducer Description of problem: When I run sync for the newly created repository, after sync is finished, I expect res = api_call(:repositories, :show, {'id' => repo['id']}) Time.parse(res['last_sync']) >= Time.parse(res['updated_at']) to be true, that means time of last sync to be after last modification. How reproducible: always/deterministic Steps to Reproduce: 1. run attached reproducer Actual results: result is false Expected results: result is true Additional info: This is regression. Described behaviour was first observed/noticed with compose Satellite-6.0.4-RHEL-6-20140813.2-Satellite-x86_64. Also, when I start sync, wait for it to finish, start sync again and again wait for it to finish, (it is commented out in reproducer after first sync), then it returns (as I would expect) true.