Bug 1652940
| Summary: | [downstream clone - 4.2.8] NTP config is migrated to chrony on every upgrade | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | RHV bug bot <rhv-bugzilla-bot> |
| Component: | imgbased | Assignee: | Yuval Turgeman <yturgema> |
| Status: | CLOSED ERRATA | QA Contact: | Huijuan Zhao <huzhao> |
| Severity: | high | Docs Contact: | Rolfe Dlugy-Hegwer <rdlugyhe> |
| Priority: | high | ||
| Version: | 4.2.6 | CC: | chyan, cshao, dfediuck, gianluca.cecchi, huzhao, qiyuan, ratamir, rdlugyhe, sbonazzo, weiwang, yaniwang, ycui, yturgema |
| Target Milestone: | ovirt-4.2.8 | Keywords: | ZStream |
| Target Release: | --- | Flags: | lsvaty:
testing_plan_complete-
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
Migrating the default ntp.conf to chrony unconditionally.
Consequence:
The migration overrides an existing chrony.conf with wrong values.
Fix:
Migrate ntp.conf only if ntp is enabled.
Result:
ntp.conf will be migrated to chrony.conf only if the ntp.conf is valid and ntp is running.
|
Story Points: | --- |
| Clone Of: | 1638606 | Environment: | |
| Last Closed: | 2019-01-22 12:44:15 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Node | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1638606 | ||
| Bug Blocks: | |||
|
Description
RHV bug bot
2018-11-23 16:05:04 UTC
Can reproduce this issue. Test steps: 1. Install rhvh-4.2.6.1-0.20180907.0 2. Modify /etc/chrony.conf 3. Upgrade Test result: /etc/chrony.conf not persisted (Originally by Chen Shao) This bug is fixed in redhat-virtualization-host-4.2-20181128.0 Scenario 1 Test versions: # imgbase layout rhvh-4.2.7.5-0.20181121.0 +- rhvh-4.2.7.5-0.20181121.0+1 rhvh-4.2.8.0-0.20181127.0 +- rhvh-4.2.8.0-0.20181127.0+1 Test steps: 1. Install rhvh-4.2.7.5-0.20181121.0 2. Login rhvh, check chronyd.service is active 3. Change both /etc/chrony.conf (e.g. add server1) and /etc/ntp.conf(e.g. add server2) 4. Upgrade rhvh to rhvh-4.2.8.0-0.20181127.0 5. Check chronyd.service status and /etc/chrony.conf Test results: After step 5, chronyd.service is active, /etc/chrony.conf only persisted the change of /etc/chrony.conf in step 3(add server1). Scenario 2 Test versions: # imgbase layout rhvh-4.1-0.20180425.0 +- rhvh-4.1-0.20180425.0+1 rhvh-4.2.8.0-0.20181127.0 +- rhvh-4.2.8.0-0.20181127.0+1 Test steps: 1. Install rhvh-4.1-0.20180425.0 2. Login rhvh, stop chronyd.service, start ntpd.service 3. Change both /etc/chrony.conf (e.g. add server1) and /etc/ntp.conf(e.g. add server2) 4. Upgrade rhvh to rhvh-4.2.8.0-0.20181127.0 5. Check chronyd.service status and /etc/chrony.conf Test results: After step 5, chronyd.service is active, /etc/chrony.conf only persisted the change of /etc/ntp.conf in step 3(add server2). So this bug is fixed, change the status to VERIFIED. 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-2019:0116 sync2jira sync2jira |