[uyuni-devel] Re: [uyuni-announce] Upgrade Question from Beta to Stable
Hi Bernd, First of all, thanks for trying out Uyuni! I am moving this thread to uyuni-devel since list is supposed to be only for announces. Best regards. On jueves, 1 de noviembre de 2018 10:55:38 (CET) Bernd Helber wrote:
Hi Uyuni Team,
impressed by the Stability of the Beta Product,
i tried to give the Upgrade from Beta to Stable a Shot.
What i did so far...
1st removed the Beta Repos
2nd added the Uyuni Stable Reps
3rd Database Hot Backup from the Existing Installation.
smdba backup-hot --backup-dir=/var/spacewalk/db-backup
zypper dup (Vendor got changed succesfully)
spacewalk-service stop
Postgres was running as it should be.
THe issue i had to face covers the Topic Schema Upgrade.
# spacewalk-schema-upgrade Schema upgrade: [susemanager-schema-3.2.10-320.1.2.develHead] -> [susemanager-schema-4.0.2-1.1] Searching for upgrade path to: [susemanager-schema-4.0.2-1.1] Searching for upgrade path to: [susemanager-schema-4.0.2] Searching for start path: [susemanager-schema-3.2.10-320.1.2] Searching for start path: [susemanager-schema-3.2.10] Was not able to find upgrade path in directory [/etc/sysconfig/rhn/schema-upgrade].
Do you guys have an Advice for me, to get this fixed?
With kind regards.
Bernd Helber
--
Julio González Gil
Hi again, I guess you are trying to update from the packages and repositories that were hosted at https://beta.suse.com (that where basically a rebranded SUSE Manager 3.2 Beta) Those were intended as a preview until we had the first Uyuni release (that we published last Friday, as you can see at https://www.uyuni-project.org/stable-version.html), but without possibility of upgrading to final versions (same happens to the Devel versions) I strongly recommend you install the Stable 4.0.0 version. ******************** WARNING: UNSUPPORTED ******************** On paper there is something that you could do to migrate, but keep in mind it can fail and it's not supported at all. What you need is a migration path between schema 3.2.10 and schema 4.0.0 (notice that those versions are not always related to the version you see at the webUI, as such versions make reference to the susemanager-schema RPM versions) At the server run, as root: mkdir /etc/sysconfig/rhn/schema-upgrade/susemanager-schema-3.2.10-to-susemanager-schema-4.0.0 If you reapply 'spacewalk-schema-upgrade' the schema upgrade should work and update the schema to 4.0.2. I inspected both packages from beta.suse.com and from Stable 4.0.0. It seems nothing is missing or was changed betweek 3.2.10 and 4.0.0, so unless I am missing something or we did something to previous schema versions, this should work fine. ************************************************************ But again: keep in mind that this could fail, or provoke problems in the future, so I strongly suggest you setup Stable 4.0.0 from scratch! :-) Best regards. On jueves, 1 de noviembre de 2018 15:31:56 (CET) Julio González Gil wrote:
Hi Bernd,
First of all, thanks for trying out Uyuni!
I am moving this thread to uyuni-devel since list is supposed to be only for announces.
Best regards.
On jueves, 1 de noviembre de 2018 10:55:38 (CET) Bernd Helber wrote:
Hi Uyuni Team,
impressed by the Stability of the Beta Product,
i tried to give the Upgrade from Beta to Stable a Shot.
What i did so far...
1st removed the Beta Repos
2nd added the Uyuni Stable Reps
3rd Database Hot Backup from the Existing Installation.
smdba backup-hot --backup-dir=/var/spacewalk/db-backup
zypper dup (Vendor got changed succesfully)
spacewalk-service stop
Postgres was running as it should be.
THe issue i had to face covers the Topic Schema Upgrade.
# spacewalk-schema-upgrade
Schema upgrade: [susemanager-schema-3.2.10-320.1.2.develHead] -> [susemanager-schema-4.0.2-1.1] Searching for upgrade path to: [susemanager-schema-4.0.2-1.1] Searching for upgrade path to: [susemanager-schema-4.0.2] Searching for start path: [susemanager-schema-3.2.10-320.1.2] Searching for start path: [susemanager-schema-3.2.10] Was not able to find upgrade path in directory [/etc/sysconfig/rhn/schema-upgrade].
Do you guys have an Advice for me, to get this fixed?
With kind regards.
Bernd Helber
--
Julio González Gil
First thanks for the Hint. The path: [susemanager-schema-3.2.10] -> [susemanager-schema-4.0.0] -> [susemanager-schema-4.0.1] -> [susemanager-schema-4.0.2] Planning to run schema upgrade with dir '/var/log/spacewalk/schema-upgrade/schema-from-20181101-155956' Hit Enter to continue or Ctrl+C to interrupt: Executing spacewalk-sql, the log is in [/var/log/spacewalk/schema-upgrade/schema-from-20181101-155956-to-susemanager-schema-4.0.2.log]. (8/8) apply upgrade [schema-from-20181101-155956/99_9999-upgrade-end.sql] _avdl_mod_trig.sql.postgresql] tgresql] The database schema was upgraded to version [susemanager-schema-4.0.2-1.1]. /etc/sysconfig/rhn/schema-upgrade # First impression.... The upgrade worked, there seems nothing to be borked in the Userinterface. My Homeggrown legacy Spacewalk Scripts are workin. Core functionality is fine, i will have a closer Look, until i start a complete reinstall within the next weeks. Thanks very much for the hint and your time. Am 01.11.18 um 15:57 schrieb Julio González Gil:
Hi again,
I guess you are trying to update from the packages and repositories that were hosted at https://beta.suse.com (that where basically a rebranded SUSE Manager 3.2 Beta)
Those were intended as a preview until we had the first Uyuni release (that we published last Friday, as you can see at https://www.uyuni-project.org/stable-version.html), but without possibility of upgrading to final versions (same happens to the Devel versions)
I strongly recommend you install the Stable 4.0.0 version.
******************** WARNING: UNSUPPORTED ******************** On paper there is something that you could do to migrate, but keep in mind it can fail and it's not supported at all.
What you need is a migration path between schema 3.2.10 and schema 4.0.0 (notice that those versions are not always related to the version you see at the webUI, as such versions make reference to the susemanager-schema RPM versions)
At the server run, as root:
mkdir /etc/sysconfig/rhn/schema-upgrade/susemanager-schema-3.2.10-to-susemanager-schema-4.0.0
If you reapply 'spacewalk-schema-upgrade' the schema upgrade should work and update the schema to 4.0.2.
I inspected both packages from beta.suse.com and from Stable 4.0.0.
It seems nothing is missing or was changed betweek 3.2.10 and 4.0.0, so unless I am missing something or we did something to previous schema versions, this should work fine. ************************************************************
But again: keep in mind that this could fail, or provoke problems in the future, so I strongly suggest you setup Stable 4.0.0 from scratch! :-)
Best regards.
On jueves, 1 de noviembre de 2018 15:31:56 (CET) Julio González Gil wrote:
Hi Bernd,
First of all, thanks for trying out Uyuni!
I am moving this thread to uyuni-devel since list is supposed to be only for announces.
Best regards.
On jueves, 1 de noviembre de 2018 10:55:38 (CET) Bernd Helber wrote:
Hi Uyuni Team,
impressed by the Stability of the Beta Product,
i tried to give the Upgrade from Beta to Stable a Shot.
What i did so far...
1st removed the Beta Repos
2nd added the Uyuni Stable Reps
3rd Database Hot Backup from the Existing Installation.
smdba backup-hot --backup-dir=/var/spacewalk/db-backup
zypper dup (Vendor got changed succesfully)
spacewalk-service stop
Postgres was running as it should be.
THe issue i had to face covers the Topic Schema Upgrade.
# spacewalk-schema-upgrade
Schema upgrade: [susemanager-schema-3.2.10-320.1.2.develHead] -> [susemanager-schema-4.0.2-1.1] Searching for upgrade path to: [susemanager-schema-4.0.2-1.1] Searching for upgrade path to: [susemanager-schema-4.0.2] Searching for start path: [susemanager-schema-3.2.10-320.1.2] Searching for start path: [susemanager-schema-3.2.10] Was not able to find upgrade path in directory [/etc/sysconfig/rhn/schema-upgrade].
Do you guys have an Advice for me, to get this fixed?
With kind regards.
Bernd Helber
-- with kind regards Bernd Helber Helber IT Services GmbH • Filsstraße 20 D-73329 Kuchen Phone.: +49 (0)7331/824189 Mobile: +49 (0)49 177 7494439 Email bernd@helber-it-services.com • Internet www.helber-it-services.com Handelsregister B Amtsgericht Ulm, HRB 735311 Geschäftsführer: Bernd Helber Ust.-IdNr. DE : 62049/08890 _.-|-/\-._ \-' '-. / /\ /\ \/ \/ < . > ./. \/ _ / < > /___\ |. .< \ / < /\ > ( #) |#) | | < /\ -. __\ \ < < V > )./_._(\ .)/\ < < .- / \_'_) )-.. \ < ./ / > > /._./ /\ < '-' > > / '-._ < v > _.-' / '-.______.·' \ \/ *********************************************************** -- To unsubscribe, e-mail: uyuni-devel+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-devel+owner@opensuse.org
participants (2)
-
Bernd Helber
-
Julio González Gil