Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
That should be clearly documented, but a check to fail early if no metadata.yml is present is a good idea. Feel free to file an issue on the repo here https://github.com/RedHatSatellite/satellite-clone
Suraj Patil,
Myself and others have used the 6.4 Beta satellite-clone RPM many times to clone 6.3 systems without error and it works perfectly.
If metadata.yml is missing, this is an issue with the backup tooling or the user who created the backup and not satellite-clone.
If you follow the set of enabled repositories from comment #4:
# subscription-manager repos \
--enable rhel-7-server-satellite-maintenance-6-beta-rpms \
--enable rhel-7-server-ansible-2.6-rpms \
--enable rhel-7-server-rpms
# yum install satellite-clone
it should work without any intervention. I just ran this exact routine with a 6.3 backup *today* without error.
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-2018:2926
Description of problem: satellite-clone fails to enable satellite 6.3 repositories. ~~~~ TASK [satellite-clone : Enable required repos for Satellite installation] ******************************************************************************************************************** Thursday 20 September 2018 10:26:28 +0530 (0:00:00.022) 0:02:02.007 **** changed: [localhost] cmd: subscription-manager repos --enable rhel-7-server-rpms --enable rhel-server-rhscl-7-rpms --enable rhel-7-server-satellite-6.2-rpms start: 2018-09-20 10:26:28.595743 end: 2018-09-20 10:27:02.598621 delta: 0:00:34.002878 stdout: Repository 'rhel-7-server-rpms' is enabled for this system. Repository 'rhel-7-server-satellite-6.2-rpms' is enabled for this system. Repository 'rhel-server-rhscl-7-rpms' is enabled for this system. ~~~ task which fails: ~~~ TASK [satellite-clone : Run Satellite installer] ********************************************************************************************************************************************* Thursday 20 September 2018 10:37:07 +0530 (0:00:00.181) 0:12:40.806 **** fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["satellite-installer", "--scenario", "satellite", "--foreman-proxy-dns", "false", "--foreman-proxy-dhcp", "false", "--foreman-proxy-tftp", "false", "--foreman-ipa-authentication", "false"], "delta": "0:00:05.484732", "end": "2018-09-20 10:37:12.885831", "msg": "non-zero return code", "rc": 1, "start": "2018-09-20 10:37:07.401099", "stderr": "/usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:267:in `expand_path': no implicit conversion of Array into String (TypeError)\n\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:267:in `parser_cache'\n\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/puppet_module.rb:31:in `initialize'\n\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:88:in `new'\n\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:88:in `block in modules'\n\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:88:in `map'\n\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:88:in `modules'\n\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:184:in `params'\n\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:193:in `preset_defaults_from_puppet'\n\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/kafo_configure.rb:251:in `set_parameters'\n\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/kafo_configure.rb:97:in `initialize'\n\tfrom /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `new'\n\tfrom /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'\n\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/kafo_configure.rb:148:in `run'\n\tfrom /usr/sbin/satellite-installer:12:in `<main>'", "stderr_lines": ["/usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:267:in `expand_path': no implicit conversion of Array into String (TypeError)", "\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:267:in `parser_cache'", "\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/puppet_module.rb:31:in `initialize'", "\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:88:in `new'", "\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:88:in `block in modules'", "\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:88:in `map'", "\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:88:in `modules'", "\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:184:in `params'", "\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/configuration.rb:193:in `preset_defaults_from_puppet'", "\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/kafo_configure.rb:251:in `set_parameters'", "\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/kafo_configure.rb:97:in `initialize'", "\tfrom /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `new'", "\tfrom /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'", "\tfrom /usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/kafo_configure.rb:148:in `run'", "\tfrom /usr/sbin/satellite-installer:12:in `<main>'"], "stdout": "", "stdout_lines": []} ~~~~ Version-Release number of selected component (if applicable): this is from BETA repo :satellite-clone-1.2.5-1.el7sat.noarch OR this is from GA repo : satellite-clone-1.2.2-1.el7sat.noarch How reproducible: Always Steps to Reproduce: 1.Backup satellite 6.3 server(using katello-backup). 2.Enable 'rhel-7-server-satellite-maintenance-6-rpms' or 'rhel-7-server-satellite-maintenance-6-beta-rpms' on new system. 3.#satellite-clone [mention backup path in etc/satellite-clone/satellite-clone-vars.yml] Actual results: It fails to enable satellite 6.3 repos. Expected results: It should enable satellite 6.3 repos and continue cloning. Additional info: