RedHatSatellite / satellite-clone

Utility to assist cloning an existing Satellite 6 server to a new host
GNU General Public License v3.0
37 stars 31 forks source link

Prevent cloning a backup to the wrong satellite version #324

Closed johnpmitsch closed 2 years ago

johnpmitsch commented 6 years ago

We should prevent users from cloning a backup to the wrong Satellite version. i.e. 6.2 repos are enabled, but the user is using a 6.3 backup

sideangleside commented 6 years ago

👍 This issue bit me hard (and with a rather cryptic error)

sthirugn commented 6 years ago

Perhaps we can use the metadata created by katello-backup to find if the backup is 6.2 or 6.3. We can keep the old logic to identify the 6.1 backup.

cat /backup/satellite-backup-20180216115757/metadata.yml | grep '^- satellite-6.3'
cat /backup/satellite-backup-20180216115757/metadata.yml | grep '^- satellite-6.2'
evgeni commented 2 years ago

Given sat-clone knows (and enables) the right repos today, I am going to close this one :)