Hide Forgot
Description of problem: Restoring Red Hat Satellite from Backup fails on satellite 6.3 katello-restore /home/backup/ /usr/bin/katello-restore:18:in `chop!': can't modify frozen String (RuntimeError) from /usr/bin/katello-restore:18:in `<main>' Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Back up Your Red Hat Satellite Server 2. Restore it from backup using katello-restore 3. Actual results: restore fails Expected results: restore should pass Additional info:
(In reply to Pradeep Kumar Surisetty from comment #0) > Description of problem: > > Restoring Red Hat Satellite from Backup fails on satellite 6.3 > > katello-restore /home/backup/ > /usr/bin/katello-restore:18:in `chop!': can't modify frozen String > (RuntimeError) > from /usr/bin/katello-restore:18:in `<main>' > I cannot reproduce this error. Was this error from katello-backup rather than katello-restore? There has never been a call to 'chop!' in katello-restore.
My apologies Pradeep, I was able to reproduce. Thanks!
Created redmine issue http://projects.theforeman.org/issues/16795 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16795 has been resolved.
[root@rhel7 ~]# katello-restore /tmp/backup/katello-backup-20170906161439/ WARNING: This script will drop and restore your database. Your existing installation will be replaced with the backup database. Once this operation is complete there is no going back. Are you sure(Y/N)? y Starting restore from /tmp/backup/katello-backup-20170906161439/: 2017-09-06 16:19:12 +0000 Setting file security Done. Resetting Katello yes | foreman-installer -v --reset --scenario katello Failed 'yes | foreman-installer -v --reset --scenario katello'
This is blocked being verified by https://bugzilla.redhat.com/show_bug.cgi?id=1488590 Once that is resolved, we can verify this.
VERIFIED. @satellite-6.3.0-21.0.beta.el7sat.noarch satellite-common-6.3.0-21.0.beta.el7sat.noarch # satellite-restore /tmp/satellite-backup/satellite-backup-20171102104207 WARNING: This script will drop and restore your database. Your existing installation will be replaced with the backup database. Once this operation is complete there is no going back. Are you sure(Y/N)? y Starting restore from /tmp/satellite-backup/satellite-backup-20171102104207: 2017-11-02 10:56:08 -0400 Setting file security Done. Resetting Katello yes | foreman-installer -v --reset --scenario satellite --disable-system-checks ... Success! * Satellite is running at https://<SATFQDN> * To install an additional Capsule on separate machine continue by running: capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar" * To upgrade an existing 6.2 Capsule to 6.3: Please see official documentation for steps and parameters to use when upgrading a 6.2 Capsule to 6.3. The full log is at /var/log/foreman-installer/satellite.log [ INFO 2017-11-02 11:04:15 verbose] pulp.conf is already present, skipping [ INFO 2017-11-02 11:04:15 verbose] All hooks in group post finished [ INFO 2017-11-02 11:04:15 verbose] Installer finished in 420.040311157 seconds Done. Stopping Katello services Redirecting to /bin/systemctl stop foreman-tasks.service Redirecting to /bin/systemctl stop httpd.service Redirecting to /bin/systemctl stop pulp_celerybeat.service Redirecting to /bin/systemctl stop foreman-proxy.service Redirecting to /bin/systemctl stop pulp_streamer.service Redirecting to /bin/systemctl stop pulp_resource_manager.service Redirecting to /bin/systemctl stop smart_proxy_dynflow_core.service Redirecting to /bin/systemctl stop pulp_workers.service Redirecting to /bin/systemctl stop tomcat.service Redirecting to /bin/systemctl stop squid.service Redirecting to /bin/systemctl stop qdrouterd.service Redirecting to /bin/systemctl stop qpidd.service Redirecting to /bin/systemctl stop postgresql.service Redirecting to /bin/systemctl stop mongod.service Done. Restoring Pulp data Migrating pulp databases Redirecting to /bin/systemctl start mongod.service Redirecting to /bin/systemctl start qpidd.service Redirecting to /bin/systemctl stop pulp_resource_manager.service Redirecting to /bin/systemctl stop pulp_workers.service Attempting to connect to localhost:27017 Attempting to connect to localhost:27017 Write concern for Mongo connection: {} Loading content types. Loading type descriptors [] Parsing type descriptors Validating type descriptor syntactic integrity Validating type descriptor semantic integrity Loading unit model: puppet_module = pulp_puppet.plugins.db.models:Module Loading unit model: docker_blob = pulp_docker.plugins.models:Blob Loading unit model: docker_manifest = pulp_docker.plugins.models:Manifest Loading unit model: docker_image = pulp_docker.plugins.models:Image Loading unit model: docker_tag = pulp_docker.plugins.models:Tag Loading unit model: erratum = pulp_rpm.plugins.db.models:Errata Loading unit model: distribution = pulp_rpm.plugins.db.models:Distribution Loading unit model: srpm = pulp_rpm.plugins.db.models:SRPM Loading unit model: package_group = pulp_rpm.plugins.db.models:PackageGroup Loading unit model: package_category = pulp_rpm.plugins.db.models:PackageCategory Loading unit model: iso = pulp_rpm.plugins.db.models:ISO Loading unit model: package_environment = pulp_rpm.plugins.db.models:PackageEnvironment Loading unit model: drpm = pulp_rpm.plugins.db.models:DRPM Loading unit model: package_langpacks = pulp_rpm.plugins.db.models:PackageLangpacks Loading unit model: rpm = pulp_rpm.plugins.db.models:RPM Loading unit model: yum_repo_metadata_file = pulp_rpm.plugins.db.models:YumMetadataFile Loading unit model: ostree = pulp_ostree.plugins.db.model:Branch Loading auxiliary model: erratum_pkglists = pulp_rpm.plugins.db.models:ErratumPkglist Updating the database with types [] Found the following type definitions that were not present in the update collection [puppet_module, docker_tag, ostree, docker_manifest, docker_blob, erratum, distribution, yum_repo_metadata_file, package_group, package_category, iso, package_environment, drpm, package_langpacks, rpm, srpm, docker_image] Updating the database with types [puppet_module, drpm, ostree, package_langpacks, erratum, docker_blob, docker_manifest, yum_repo_metadata_file, package_group, package_category, iso, package_environment, docker_tag, distribution, rpm, srpm, docker_image] Content types loaded. Ensuring the admin role and user are in place. Admin role and user are in place. Beginning database migrations. Migration package pulp.server.db.migrations is up to date at version 303 Migration package pulp_docker.plugins.migrations is up to date at version 300 Migration package pulp_puppet.plugins.migrations is up to date at version 5 Migration package pulp_rpm.plugins.migrations is up to date at version 304 Loading unit model: puppet_module = pulp_puppet.plugins.db.models:Module Loading unit model: docker_blob = pulp_docker.plugins.models:Blob Loading unit model: docker_manifest = pulp_docker.plugins.models:Manifest Loading unit model: docker_image = pulp_docker.plugins.models:Image Loading unit model: docker_tag = pulp_docker.plugins.models:Tag Loading unit model: erratum = pulp_rpm.plugins.db.models:Errata Loading unit model: distribution = pulp_rpm.plugins.db.models:Distribution Loading unit model: srpm = pulp_rpm.plugins.db.models:SRPM Loading unit model: package_group = pulp_rpm.plugins.db.models:PackageGroup Loading unit model: package_category = pulp_rpm.plugins.db.models:PackageCategory Loading unit model: iso = pulp_rpm.plugins.db.models:ISO Loading unit model: package_environment = pulp_rpm.plugins.db.models:PackageEnvironment Loading unit model: drpm = pulp_rpm.plugins.db.models:DRPM Loading unit model: package_langpacks = pulp_rpm.plugins.db.models:PackageLangpacks Loading unit model: rpm = pulp_rpm.plugins.db.models:RPM Loading unit model: yum_repo_metadata_file = pulp_rpm.plugins.db.models:YumMetadataFile Loading unit model: ostree = pulp_ostree.plugins.db.model:Branch Loading auxiliary model: erratum_pkglists = pulp_rpm.plugins.db.models:ErratumPkglist Database migrations complete. Done. Done. Ensuring all Katello processes are started Redirecting to /bin/systemctl start mongod.service Redirecting to /bin/systemctl start postgresql.service Redirecting to /bin/systemctl start qpidd.service Redirecting to /bin/systemctl start qdrouterd.service Redirecting to /bin/systemctl start squid.service Redirecting to /bin/systemctl start tomcat.service Redirecting to /bin/systemctl start pulp_workers.service Redirecting to /bin/systemctl start smart_proxy_dynflow_core.service Redirecting to /bin/systemctl start pulp_resource_manager.service Redirecting to /bin/systemctl start pulp_streamer.service Redirecting to /bin/systemctl start foreman-proxy.service Redirecting to /bin/systemctl start pulp_celerybeat.service Redirecting to /bin/systemctl start httpd.service Redirecting to /bin/systemctl start foreman-tasks.service Done. Done with restore: 2017-11-02 11:05:49 -0400 >>> satellite has been restored successfully
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/RHSA-2018:0336