Bug 1624433 - satellite-clone does not work on 6.4
Summary: satellite-clone does not work on 6.4
Keywords:
Status: CLOSED DUPLICATE of bug 1644152
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Clone
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: John Mitsch
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-31 14:46 UTC by Ales Dujicek
Modified: 2018-12-20 13:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-20 13:15:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ales Dujicek 2018-08-31 14:46:19 UTC
Description of problem:

satellite-clone fails on 6.4

# satellite-clone
...

TASK [satellite-clone : Check for satellite version in metadata file] **********
Friday 31 August 2018  10:58:55 +0200 (0:00:00.022)       0:00:05.434 ********* 
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Satellite version is not supported or found. Only Satellite 6.2, 6.3 is supported."}
...
PLAY RECAP *********************************************************************
localhost                  : ok=27   changed=2    unreachable=0    failed=1   


I altered the code to skip that check to get further, and later there were more errors:

TASK [satellite-clone : change owner of backup directory to postgres] **********
Friday 31 August 2018  11:19:55 +0200 (0:15:55.757)       0:16:09.139 ********* 
fatal: [localhost]: FAILED! => {"changed": false, "gid": 0, "group": "root", "mode": "0770", "msg": "chown failed: failed to look up user postgres", "owner": "root", "path": "/tmp/satellite-backup-2018-08-31-07-58-41", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 152, "state": "directory", "uid": 0}

postgresql-server is be installed later by satellite-installer, see https://projects.theforeman.org/issues/23103
that is why there is not postgres user


TASK [satellite-clone : Start mongod] ******************************************
Friday 31 August 2018  16:04:11 +0200 (0:00:00.015)       0:17:09.055 ********* 
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not find the requested service mongod: host"}

in Sat 6.4 there is mongo 3.4 (different service name)


Version-Release number of selected component (if applicable):
satellite-clone-1.2.4-1.el7sat.noarch

Comment 2 John Mitsch 2018-08-31 17:50:33 UTC
Is there an expectation that 6.4 is supported? Satellite clone is primarily used for upgrades so it only supports 6.3 and under currently as the error message says

Comment 4 Ivan Necas 2018-09-03 08:32:46 UTC
I think we should target supporting 6.4 as well from the day one: the reason is the ability to spin up an independent environment, which can be used for other than upgrade purposes.

Comment 6 John Mitsch 2018-09-04 14:14:50 UTC
> I believe it should be supported. It is still described in documentation
https://doc-stage.usersys.redhat.com/documentation/en-us/red_hat_satellite/6.4-beta/html-single/upgrading_and_updating_red_hat_satellite/#sec-Cloning_to_Target

This is in the upgrade section so it's meant for a 6.3 machine. If it is not clear that this is meant to be done pre-upgrade to 6.4, please file a docs bug.

Comment 7 Ales Dujicek 2018-12-20 13:15:19 UTC

*** This bug has been marked as a duplicate of bug 1644152 ***


Note You need to log in before you can comment on or make changes to this bug.