|
| 1 | +[[retail-migration-from-43]] |
| 2 | += Migrating from {productbranch} 4.3 |
| 3 | +:revdate: 2025-11-12 |
| 4 | +:page-revdate: {revdate} |
| 5 | + |
| 6 | +This guide describes a procedure how to migrate one or more {productbranch} Servers from {susemgr} Branch Server 4.3 to the {productbranch} 5.1 |
| 7 | + |
| 8 | +== Overview |
| 9 | + |
| 10 | +* Synchronize {productbranch} channels |
| 11 | +* Backup existing {productname} {smr} 4.3 Branch Server Proxy |
| 12 | +* Validate branch objects were created |
| 13 | +* Migrate Branch Server Proxy host |
| 14 | +* Validate proxy functionality |
| 15 | + |
| 16 | +== Backup existing {productbranch} 4.3 |
| 17 | + |
| 18 | +{productname} {smr} 5.1.2 includes automated backup-migration procedure for both kinds of {productproxy} variants. This procedure collects all required data and uploads them to the {productname} Server. For {productbranch} this tool also creates and migrates {saltboot} related entities. |
| 19 | + |
| 20 | +There are multiple ways how to initiate {productbranch} 4.3 migration: |
| 21 | + |
| 22 | +* API call [literal]``mgrctl api post proxy.backup id=$proxyid`` |
| 23 | +* {salt} call [literal]``salt $proxy proxy.backup`` |
| 24 | + |
| 25 | +[IMPORTANT] |
| 26 | +==== |
| 27 | +{productbranch} can still be used after backup step as before, however because some formulas were disabled by the backup/migration step, next highstate or image-sync state application will not work properly. |
| 28 | +
|
| 29 | +Migrate the server host as soon as possible after backup step is performed. |
| 30 | +==== |
| 31 | + |
| 32 | +== Validate branch objects were created for migrated branches |
| 33 | + |
| 34 | +Backup/migration step will create new Saltboot objects: |
| 35 | + |
| 36 | +- [literal]``Saltboot Group`` formula with settings from the original formulas is assigned to the branch group. |
| 37 | +- New cobbler profile is created for the branch group: |
| 38 | ++ |
| 39 | +[code] |
| 40 | +==== |
| 41 | +# mgrctl exec -- cobbler profile report --name $branchid:S:$orgid:$orgname |
| 42 | +==== |
| 43 | +- New cobbler systems are created for all assigned terminals: |
| 44 | ++ |
| 45 | +[code] |
| 46 | +==== |
| 47 | +# mgrctl exec -- cobbler system find --kernel-options "MINION_ID_PREFIX=$branchid" |
| 48 | +==== |
| 49 | + |
| 50 | +== Migrate {productbranch} host |
| 51 | + |
| 52 | +Create and use AutoYAST profiles to migrate or reinstall proxy host. |
| 53 | + |
| 54 | +=== Prepare autoinstallation distribution based on {sles} 15 SP7 |
| 55 | + |
| 56 | +- Download or obtain {sles} 15 SP7 installation ISO to the server host |
| 57 | +- Use [literal]``mgradm distribution copy $path_to_the_iso`` to copy installation files to the container |
| 58 | +- Register the autoinstallation distribution, see see xref:client-configuration:autoinst-distributions.adoc[]. |
| 59 | + |
| 60 | +=== Prepare autoinstallation profile |
| 61 | + |
| 62 | +For more information, see xref:client-configuration:autoinst-profiles.adoc[]. |
| 63 | + |
| 64 | +- Create an autoinstallation profile based previously created distribution. |
| 65 | +As a profile use profile provided at https://github.com/SUSE/manager-build-profiles/blob/master/AutoYaST/SUSE%20Multi-Linux%20Manager%20Proxy/MLM_RBS-51-SLES-Upgrade.xml |
| 66 | +- Once profile is created, switch to [menuitem]``Variables`` tab and fill in required variables: |
| 67 | ++ |
| 68 | +[code] |
| 69 | +==== |
| 70 | +org='organization_id' |
| 71 | +distrotree='autoinstallation_distribution_label_from_previous_step' |
| 72 | +channel_prefix='clm_channel_prefix' or blank for SCC channels |
| 73 | +registration_key='activation_key_for_post_upgrade' |
| 74 | +==== |
| 75 | +- In tab [menuitem]``Autoinstallation File`` you can see complete rendered profile for additional inspection |
| 76 | + |
| 77 | +=== Provision autoinstallation of the proxy |
| 78 | + |
| 79 | +Schedule an autoinstallation on the old {susemgr} Branch Server 4.3 using the profile created in previous step. |
| 80 | + |
| 81 | +- Use Web UI interface [menuitem]``Provisioning`` tab at the [menuitem]``System`` view of migrating branch server |
| 82 | +// TODO add API call option |
| 83 | + |
| 84 | +== Validate proxy functionality |
| 85 | + |
| 86 | +After migration is finished and salt is started first time, backed up proxy configuration is automatically deployed during [literal]``Hardware refresh`` step. |
| 87 | + |
| 88 | +After finishing all onboarding steps, validate required proxy functionality |
0 commit comments