Bug 1889927
Summary: | [RFE] Support cloning a Satellite with external/remote databases | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | John Mitsch <jomitsch> |
Component: | Satellite Clone | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED ERRATA | QA Contact: | Vladimír Sedmík <vsedmik> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.7.0 | CC: | ehelms, jturel, mmccune, vsedmik |
Target Milestone: | 6.9.0 | Keywords: | FutureFeature, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | satellite-clone-2.0.2 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-04-21 14:48:24 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: | 1921295 | ||
Bug Blocks: |
Description
John Mitsch
2020-10-21 00:07:14 UTC
Merged in https://github.com/RedHatSatellite/satellite-clone/commit/b30d35d5fca211ea6631fd190dda713480155531 Tagged upstream in https://github.com/RedHatSatellite/satellite-clone/archive/1.6.2.tar.gz The clone failed due to missing packages on the target server (see https://bugzilla.redhat.com/show_bug.cgi?id=1921295) Vladimír, the changes in BZ#1889927 will only show the error that the tooling is not installed: 'The psql command not found. Make sure system has psql utility installed' We will not be automatically installing these packages currently. You need to manually install the following: # yum -y install rh-mongodb34-syspaths rh-postgresql12-syspaths rh-postgresql12-postgresql-evr to complete the pre-installation. I filed a docs bug to add this to the instructions: https://bugzilla.redhat.com/show_bug.cgi?id=1937457 Can we re-test this by applying the step that will be added to the documentation? Hey Vladimír, I've got an upstream PR open to address the issue you found: https://github.com/RedHatSatellite/satellite-clone/pull/385 Can you apply the changes to the satellite-clone you have installed (only the changes in roles/satellite-clone/tasks/main.yml and roles/satellite-clone/vars/satellite_6.8.yml are relevant in your case) and see if the clone completes successfully? That way I can include any additional fixes necessary on the open PR. If you experience any more issues please include log snippets, ansible output, etc. so we can pinpoint the cause more easily ignore my comment about the docs bug, gonna include this in satellite-clone as Jonathon says :) Hey Jonathon, the 385.patch (applied to satellite-clone-2.0.1-1.el7sat.noarch) fixed the issue: [root@target ~]# satellite-clone -y ansible-playbook -i /usr/share/satellite-clone/inventory /usr/share/satellite-clone/satellite-clone-playbook.yml ... TASK [satellite-clone : Install packages necessary to check DB status] *********************************************************************************************************************************************************************** Thursday 11 March 2021 05:39:44 -0500 (0:08:24.192) 0:09:12.290 ******** changed: [localhost] ... Installed: rh-mongodb34-syspaths.x86_64 0:3.0-14.el7 rh-postgresql12-postgresql-evr.x86_64 0:0.0.2-1.el7sat rh-postgresql12-syspaths.x86_64 0:3.4-1.el7 ... PLAY RECAP *********************************************************************************************************************************************************************************************************************************** localhost : ok=73 changed=29 unreachable=0 failed=0 Thursday 11 March 2021 06:18:58 -0500 (0:00:00.026) 0:48:25.690 ******** =============================================================================== satellite-clone : restore using foreman-maintain ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 793.91s satellite-clone : Run Satellite installer ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 681.93s satellite-clone : Install Satellite packages ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 504.19s satellite-clone : Wait for foreman-tasks service to start --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 300.33s satellite-clone : Run installer upgrade to match latest z-version ------------------------------------------------------------------------------------------------------------------------------------------------------------------- 233.75s satellite-clone : Install Satellite SELinux packages for 6.8 and above --------------------------------------------------------------------------------------------------------------------------------------------------------------- 87.71s satellite-clone : Run katello reimport for Satellite - Note that this might take hours ----------------------------------------------------------------------------------------------------------------------------------------------- 65.92s satellite-clone : Wait 60 seconds for services to be fully up ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 60.46s satellite-clone : Install packages necessary to check DB status ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 49.68s satellite-clone : Reset admin password ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 31.10s satellite-clone : Cleanup paused tasks ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 29.87s satellite-clone : Enable required repos for Satellite installation ------------------------------------------------------------------------------------------------------------------------------------------------------------------- 16.57s satellite-clone : Disable all repos -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 15.95s satellite-clone : Restart services ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 8.64s satellite-clone : Test Satellite ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 2.71s satellite-clone : Clean yum info ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 2.46s satellite-clone : Disassociate capsules with lifecycle environments (to avoid the cloned Satellite server talking with live capsules) ------------------------------------------------------------------------------------------------- 2.14s satellite-clone : Check if DNS is enabled --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.08s satellite-clone : Check if DHCP is enabled -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.96s satellite-clone : Identify the hostname from the backup config tar file --------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.75s Thank you! Fixed in https://github.com/RedHatSatellite/satellite-clone/pull/385 and released upstream in satellite-clone-2.0.2 https://github.com/RedHatSatellite/satellite-clone/archive/2.0.2.tar.gz Verified on Sat 6.9.0 snap 18 with satellite-clone-2.0.2-1.el7sat.noarch I think we need to cover the workflow in Docs, here it is described in upstream: https://github.com/RedHatSatellite/satellite-clone/blob/master/docs/satellite-clone.md#cloning-a-satellite-with-remote-databases 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 (Satellite 6.9 Satellite Maintenance Release), 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-2021:1312 |