Bug 1335133
| Summary: | Unnecessary date/time transformation for sync plan start date | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Oleksandr Shtaier <oshtaier> | ||||||
| Component: | WebUI | Assignee: | Walden Raines <walden> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Lukas Zapletal <lzap> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.2.0 | CC: | andrew.schofield, bbuckingham, lzap, sthirugn, walden | ||||||
| Target Milestone: | Unspecified | Keywords: | Regression, Triaged | ||||||
| Target Release: | Unused | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| URL: | http://projects.theforeman.org/issues/15180 | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | rubygem-katello-3.0.0.44-1 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | |||||||||
| : | 1339650 (view as bug list) | Environment: | |||||||
| Last Closed: | 2016-07-27 11:04:14 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: | |||||||||
| Bug Depends On: | 1339650 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Oleksandr Shtaier
2016-05-11 12:19:42 UTC
Blocker for bunch of test automation cases Regression was introduced pretty recently (I suspect in first GA) as automation started to fail just for last build for that area *** Bug 1317951 has been marked as a duplicate of this bug. *** *** Bug 1317681 has been marked as a duplicate of this bug. *** *** Bug 1317675 has been marked as a duplicate of this bug. *** Created redmine issue http://projects.theforeman.org/issues/15180 from this bug Currently we are storing sync plan times in the server's local timezone. This means that if the server changes timezone (even just for daylight saving time) then the sync plan's time could be incorrect. We need to either migrate the katello_sync_plans.sync_date column to a datetime with timezone or convert all rows to UTC (I prefer the latter). We should be storing and returning these dates as UTC and formatting them client side with the client's local timezone. This would eliminate confusion as to what timezone the next sync and sync date times are referring to. In addition to the above the fix for this bug will requires an AngularJS upgrade in order to display times in the correct timezone (see [1] and [2]). We will need to decide if fixing this for 6.2 is worth the risk of the data migration and an AngularJS upgrade. We would want to retest all of the Katello UI and especially sync plans to be sure the upgrade doesn't break anything. [1] https://github.com/Katello/bastion/pull/112 [2] https://github.com/Katello/katello/pull/6056 Upstream bug component is WebUI *** Bug 1339650 has been marked as a duplicate of this bug. *** Upstream bug component is Uncategorized Upstream bug component is WebUI See also bug #1342603 when testing this bug. Note that bug #1342603 prevents you from changing from "Browser Timezone" to a set timezone and then back to "Browser Timezone". Moving to POST since upstream bug http://projects.theforeman.org/issues/15180 has been closed Created attachment 1170638 [details]
Sync plan works
Created attachment 1170639 [details]
Sync plan works
On SNAP 17 server created a plan with time 13:13. It was shown properly, then I changed the timezone and the plan was presented correctly in the UI. Hit the bug #1342603 which was ignored. Verified the sync plan actually started on time. The CLI is still presented in UTC, but this was not part of the fix. VERIFIED [root@hp-dl360g7-01 ~]# hh sync-plan list --organization MyOrg ---|---------------|---------------------|----------|-------- ID | NAME | START DATE | INTERVAL | ENABLED ---|---------------|---------------------|----------|-------- 1 | Test timezone | 2016/06/22 09:00:00 | daily | yes ---|---------------|---------------------|----------|-------- [root@hp-dl360g7-01 ~]# date Wed Jun 22 10:46:50 CEST 2016 [root@hp-dl360g7-01 ~]# hh repository info --organization MyOrg --name ZooRepo --product TestProduct ID: 1 Name: ZooRepo Label: ZooRepo Organization: MyOrg Red Hat Repository: no Content Type: yum Checksum Type: sha256 URL: https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/ Publish Via HTTP: yes Published At: http://hp-dl360g7-01.lab.eng.brq.redhat.com/pulp/repos/MyOrg/Library/custom/TestProduct/ZooRepo/ Relative Path: MyOrg/Library/custom/TestProduct/ZooRepo Download Policy: on_demand Product: ID: 1 Name: TestProduct GPG Key: Sync: Status: Success Last Sync Date: about 8 hours Created: 2016/06/22 03:10:53 Updated: 2016/06/22 03:11:12 Content Counts: Packages: 32 Package Groups: 2 Errata: 4 [root@hp-dl360g7-01 ~]# rpm -q satellite katello foreman satellite-6.2.0-17.0.el7sat.noarch katello-3.0.0-8.el7sat.noarch foreman-1.11.0.39-1.el7sat.noarch [root@hp-dl360g7-01 ~]# hh repository info --organization MyOrg --name ZooRepo --product TestProduct ID: 1 Name: ZooRepo Label: ZooRepo Organization: MyOrg Red Hat Repository: no Content Type: yum Checksum Type: sha256 URL: https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/ Publish Via HTTP: yes Published At: http://hp-dl360g7-01.lab.eng.brq.redhat.com/pulp/repos/MyOrg/Library/custom/TestProduct/ZooRepo/ Relative Path: MyOrg/Library/custom/TestProduct/ZooRepo Download Policy: on_demand Product: ID: 1 Name: TestProduct GPG Key: Sync: Status: Success Last Sync Date: about 1 hour Created: 2016/06/22 03:10:53 Updated: 2016/06/22 03:11:12 Content Counts: Packages: 32 Package Groups: 2 Errata: 4 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1501 |