Skip to content

Commit bb23a05

Browse files
keichwaLana Brindley
andauthored
Uyuni server upgrade keichwa (#385)
* adjust uyuni server upgrade intro section * remove already commented section about the update script. * re-add pg-10to12 and reboot * Update modules/upgrade/pages/server-intro-uyuni.adoc Co-authored-by: Lana Brindley <[email protected]>
1 parent f59e7b0 commit bb23a05

File tree

5 files changed

+36
-56
lines changed

5 files changed

+36
-56
lines changed

modules/upgrade/nav-upgrade-guide.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ include::./branding/pdf/entities.adoc[]
99
endif::[]
1010

1111
* xref:upgrade-overview.adoc[Upgrade Guide]
12-
** xref:server-intro.adoc[Upgrade the Server]
1312
ifeval::[{suma-content} == true]
13+
** xref:server-intro.adoc[Upgrade the Server]
1414
*** xref:server-x.adoc[Server - X Upgrade]
1515
*** xref:server-y.adoc[Server - Y Upgrade]
1616
**** xref:server-y-yast.adoc[With YaST]
1717
**** xref:server-y-zypper.adoc[With Zypper]
1818
*** xref:server-z.adoc[Server - Z Upgrade]
1919
endif::[]
2020
ifeval::[{uyuni-content} == true]
21+
** xref:server-intro-uyuni.adoc[Upgrade the Server]
2122
*** xref:server-minor-upgrade-uyuni.adoc[Server - Minor Upgrade]
2223
*** xref:server-major-upgrade-uyuni.adoc[Server - Major Upgrade]
2324
endif::[]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[[server-upgrade-intro]]
2+
= Upgrade the Server
3+
4+
{productname} uses a rolling release versioning schema.
5+
Check the release notes for information about which upgrade strategy to use to upgrade to the next version:
6+
7+
Minor Upgrades::
8+
You can consider minor upgrades as regular upgrades.
9+
For more information, see xref:upgrade:server-minor-upgrade-uyuni.adoc[].
10+
11+
Major Upgrades::
12+
You can consider major upgrades as special upgrades.
13+
In this case components such as the base operating system, Salt, or the PostgreSQL database will be upgraded.
14+
For more information, see xref:upgrade:server-major-upgrade-uyuni.adoc[].

modules/upgrade/pages/server-major-upgrade-uyuni.adoc

Lines changed: 5 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -28,53 +28,6 @@ zypper up susemanager
2828
. Run the [command]``/usr/lib/susemanager/bin/server-migrator.sh`` script to upgrade the base OS and {productname} Server.
2929
// During migration the script will stop the spacewalk services.
3030

31-
. After the migration is complete, you will need to manually reboot the {productname} Server.
32-
33-
[IMPORTANT]
34-
====
35-
You will not be able to fix issues that arise during the migration.
36-
Ensure you have created a backup before you start the migration.
37-
If you are running {productname} Server on a virtual machine, we recommend that you create a snapshot before you start.
38-
====
39-
40-
////
41-
== The Migration Script
42-
.Procedure: Migrating to {productname} 4.1
43-
44-
The script runs as [systemitem]``root`` and performs these actions:
45-
46-
47-
. Stop the spacewalk services:
48-
+
49-
----
50-
spacewalk-service stop
51-
----
52-
53-
. Move away the old repository configuration:
54-
+
55-
----
56-
mv /etc/zypp/repos.d /etc/zypp/repos.d.old
57-
mkdir /etc/zypp/repos.d
58-
----
59-
60-
. Enable and refresh new repositories:
61-
+
62-
----
63-
zypper ar -n "Main Repository" http://download.opensuse.org/distribution/leap/15.2/repo/oss repo-oss
64-
zypper ar -n "Main Update Repository" http://download.opensuse.org/update/leap/15.2/oss repo-update
65-
zypper ar -n "Non-OSS Repository" http://download.opensuse.org/distribution/leap/15.2/repo/non-oss repo-non-oss
66-
zypper ar -n "Update Repository (Non-Oss)" http://download.opensuse.org/update/leap/15.2/non-oss/ repo-update-non-oss
67-
zypper ar -n "Uyuni Server Stable" https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/images/repo/Uyuni-Server-POOL-x86_64-Media1/ uyuni-server-stable
68-
69-
zypper ref
70-
----
71-
72-
. Perform the distribution upgrade:
73-
+
74-
----
75-
zypper -n dup --allow-vendor-change
76-
----
77-
7831
. To migrate the database to PostgreSQL 12 run the migrate script:
7932
+
8033
----
@@ -84,17 +37,15 @@ zypper -n dup --allow-vendor-change
8437
For more information about PostgreSQL database migration, see xref:db-migration-12.adoc[].
8538

8639

87-
Finally reboot the system.
88-
This is not part of the script.
89-
Initiate the reboot manually:
40+
. After the migration is complete, you will need to manually reboot the {productname} Server:
9041

9142
----
9243
shutdown -r now
9344
----
9445

95-
[NOTE]
46+
[IMPORTANT]
9647
====
97-
[command]``spacewalk-schema-upgrade`` is not needed anymore.
98-
It will be run during [command]``spacewalk-service start`` automatically.
48+
You will not be able to fix issues that arise during the migration.
49+
Ensure you have created a backup before you start the migration.
50+
If you are running {productname} Server on a virtual machine, we recommend that you create a snapshot before you start.
9951
====
100-
////

modules/upgrade/pages/server-minor-upgrade-uyuni.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,15 @@ spacewalk-service start
4343
+
4444
Reboot the server if a patch update recommends rebooting.
4545

46+
// We can remove the version info when 4.1 / 2020.07 is released
4647
[NOTE]
4748
====
49+
ifeval::[{suma-content} == true]
4850
Starting with {productname} 4.1, [command]``spacewalk-schema-upgrade`` is not needed anymore.
51+
endif::[]
52+
ifeval::[{uyuni-content} == true]
53+
Starting with {productname} 2020.04 [command]``spacewalk-schema-upgrade`` is not needed anymore.
54+
endif::[]
4955
The schema upgrade is run automatically when the spacewalk service is started with [command]``spacewalk-service start``.
5056
====
5157

modules/upgrade/pages/upgrade-overview.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ It is possible to automate some of the upgrades, but others need to be performed
1313
This guide is not intended to be read cover to cover.
1414
Instead, navigate to the component you want to upgrade, then identify the versions you are upgrading from and to.
1515
====
16-
// FIXME 2020-05-04, ke: Uyuni uses YYYY.MM
16+
17+
ifeval::[{suma-content} == true]
1718
{productname} uses an [literal]``X.Y.Z`` versioning schema.
1819
To determine which upgrade procedure you need, look at which part of the version number is changing.
1920

@@ -31,6 +32,13 @@ Upgrading within the same minor version.
3132
This is often referred to as a maintenance update.
3233
For example, upgrading from 4.0.0 to 4.0.2.
3334

35+
If you are updating a {productname} Server, see xref:upgrade:server-intro.adoc[].
36+
endif::[]
37+
ifeval::[{uyuni-content} == true]
38+
{productname} uses an [literal]``YYYY.MM`` versioning schema suitable for rolling releases.
39+
If you are updating a {productname} Server, see xref:upgrade:server-intro-uyuni.adoc[].
40+
endif::[]
41+
3442
If you are updating a {productname} Proxy, see xref:upgrade:proxy-intro.adoc[].
3543

3644
If you are updating clients, see xref:upgrade:client-intro.adoc[].

0 commit comments

Comments
 (0)