Bug 1649658
| Summary: | RHV-H upgrade from 4.1 to 4.2 will fail with error "not writing through dangling symlink" if server is registered to insight | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | nijin ashok <nashok> |
| Component: | ovirt-node-ng | Assignee: | Yuval Turgeman <yturgema> |
| Status: | CLOSED ERRATA | QA Contact: | Huijuan Zhao <huzhao> |
| Severity: | high | Docs Contact: | Rolfe Dlugy-Hegwer <rdlugyhe> |
| Priority: | urgent | ||
| Version: | 4.2.7 | CC: | chyan, cshao, dfediuck, huzhao, nashok, nlevy, qiyuan, ratamir, rdlugyhe, sbonazzo, weiwang, yaniwang, ycui, yturgema |
| Target Milestone: | ovirt-4.2.8 | Keywords: | Rebase, ZStream |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
imgbased tries to override dangling symlinks to redhat-access-insights.
Consequence:
RHVH upgrade fails when trying to copy over the dangling symlinks.
Fix:
Copy /etc/redhat-access-insights files from previous layer to /etc/insights-client.
Result:
The files are placed in the correct location, and the symlinks point to the updated files correctly.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-01-22 12:44:15 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Node | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
nijin ashok
2018-11-14 07:35:04 UTC
Ok, I didn't read this correctly, we could just ship the image without the dangling symlinks, and rerun the post and posttrans scripts for insights-client on update QE can reproduce this issue. Test version: Build 1: rhvh-4.1-0.20170417.0 Build 2: rhvh-4.2.7.3-0.20181026.0 Test steps: 1. Install rhvh-4.1-0.20170417.0 2. Check redhat-access-insights rpm installed on rhvh 3. Register rhvh to RHSM 4. Register rhvh to insights # redhat-access-insights --register 5. Change the date of machine-id file touch -d 20171207 /etc/redhat-access-insights/machine-id 6. Upgrade rhvh to rhvh-4.2.7.3-0.20181026.0 Actual results: After step 6, upgrade failed. Expected results: After step 6, upgrade should be successful. (In reply to Yuval Turgeman from comment #3) > Ok, I didn't read this correctly, we could just ship the image without the > dangling symlinks, and rerun the post and posttrans scripts for > insights-client on update I didn't have much knowledge about insights-client. I think ISO without symlinks would be fine. Also, note that it's not only "machine-id" and there are other dangling links as well. ls -laR rootfs/etc/redhat-access-insights/ rootfs/etc/redhat-access-insights/: total 16 drwxr-xr-x. 2 root root 4096 Oct 26 12:15 . drwxr-xr-x. 129 root root 12288 Oct 26 12:16 .. lrwxrwxrwx. 1 root root 32 Oct 26 12:15 .lastupload -> /etc/insights-client/.lastupload lrwxrwxrwx. 1 root root 31 Oct 26 12:15 machine-id -> /etc/insights-client/machine-id lrwxrwxrwx. 1 root root 41 Oct 26 12:15 redhat-access-insights.conf -> /etc/insights-client/insights-client.conf lrwxrwxrwx. 1 root root 41 Oct 26 12:15 redhat-access-insights.cron -> /etc/insights-client/insights-client.cron lrwxrwxrwx. 1 root root 32 Oct 26 12:15 .registered -> /etc/insights-client/.registered lrwxrwxrwx. 1 root root 34 Oct 26 12:15 .unregistered -> /etc/insights-client/.unregistered This bug is fixed in redhat-virtualization-host-4.2-20181128.0 Test version: # 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: Same as comment 4 Test results: After step6, upgrade successful I will verify this bug once the status move to ON_QA 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 |