5.5 Using AutoYaST for an OES 2018 SP1 Upgrade

If you are a system administrator who needs to upgrade different versions of multiple OES servers, it can be time-consuming and inconvenient to repeat the process of swapping installation discs and providing necessary upgrade information. You can now use AutoYaST to upgrade an existing OES server to OES 2018 SP1 with no user intervention.

IMPORTANT:Information provided in this section is critical. Failing to meet the prerequisites and follow the procedures as outlined might result in loss of data or the OES server becoming unrecoverable. Before performing these procedures in a live environment, we strongly recommend that you try them in a test environment to become familiar with the unattended upgrade process.

5.5.1 Prerequisites

  • Identify the 64-bit OES 11 SP2, OES 11 SP3, OES 2015 SP1, or OES 2018 server that you want to upgrade, and ensure that the latest patches are applied before starting the upgrade. Ensure that you meet all the OES 2018 SP1 upgrade requirements specified in Section 5.3, Meeting the Upgrade Requirements.

  • Ensure that you have the eDirectory replica server IP address and eDirectory credentials.

  • Ensure that the replica server is reachable over the network.

  • Ensure that the correct eDirectory replica server's IP address is present in the eDirectory install configuration file (for OES 11 SP2, the file name is edir_oes11_sp2; for OES 11 SP3, it is edir_oes11_sp3; for OES 2015 SP1, it is edir_oes2015_sp1; and for OES 2018, it is edir_oes2018) at /etc/sysconfig/novell/ as shown below:

    CONFIG_EDIR_REPLICA_SERVER=" <specify the eDirectory Replica IP> "

  • Create an answer file that provides the eDirectory password. For more information, see Section 5.5.2, Creating an Answer File to Provide the eDirectory and DSfW Passwords.

5.5.2 Creating an Answer File to Provide the eDirectory and DSfW Passwords

During an AutoYaST upgrade, the system requires user input only to provide the eDirectory and DSfW passwords. This intervention can be eliminated with the help of an answer file.

WARNING:During the answer file creation, no validation is performed on the passwords you enter. If the wrong password is entered, the upgrade will fail and the server that you are upgrading will become unrecoverable.

To create an answer file, use any one of the following methods:

Directly Generating the Answer Key File

  1. Log in to your source OES server as a root user and execute the following command:

    On OES 2015 SP1 or earlier server:

    yast2 /usr/share/YaST2/clients/create-answer-file.ycp <eDirectory password> [<DsfW Administrator Password for a DsfW server upgrade>]

    On OES 2018 server:

    yast2 /usr/share/YaST2/clients/create-answer-file.rb <eDirectory password> [<DsfW Administrator Password for a DsfW server upgrade>]

    NOTE:This method is not recommended because the passwords are stored in the y2log file in clear text.

Exporting the Passwords to Variables

  1. In the terminal window, type the following commands:

    • export OES_EDIR_DATA=<specify eDirectory Administrator Password>

    • export OES_DSFW_DATA=<specify the DsfW Administrator Password for a DsfW server upgrade>

    • (On OES 2015 SP1 or earlier) yast2 /usr/share/YaST2/clients/create-answer-file.ycp

      (On OES 2018) yast2 /usr/share/YaST2/clients/create-answer-file.rb

Using the GUI

  1. In the terminal window, type the following command:

    (On OES 2015 SP1 or earlier) yast2 /usr/share/YaST2/clients/create-answer-file.ycp

    (On OES 2018) yast2 /usr/share/YaST2/clients/create-answer-file.rb

  2. In the YaST2 dialog, provide the eDirectory and DSfW passwords, then click OK.

NOTE:DSfW password should be specified only if you are upgrading a DSfW server.

Once you have successfully generated the answer key file using any of the above stated methods, copy it from the current working directory to /opt/novell/oes-install/. For example, cp answer /opt/novell/oes-install/.

HINT:To invoke help for creating the answer key file, in the terminal window, type yast2 /usr/share/YaST2/clients/create-answer-file.ycp --help on OES 2015 SP1 or earlier server and yast2 /usr/share/YaST2/clients/create-answer-file.rb --help on OES 2018 server.

5.5.3 Upgrading an OES 11 SP2, OES 11 SP3, OES 2015 SP1, or OES 2018 Server to OES 2018 SP1

Ensure that you have met all the requirements listed in Section 5.5.1, Prerequisites.

  1. Use the integrated ISO (OES2018-SP1-x86_64-DVD1.iso) to boot the OES 11 SP2, OES 11 SP3, OES 2015 SP1, or OES 2018 machine that you want to upgrade.

  2. In the installation screen, select Install, and specify the following information in the Boot Options:

    autoupgrade=1 autoyast=file:///autoupgrade.xml

  3. Press Enter.

    The upgrade proceeds without any user intervention.

5.5.4 Upgrading an OES 11 SP2, OES 11 SP3, OES 2015 SP1, and OES 2018 XEN Guest Server to OES 2018 SP1

Ensure that you have met all the requirements listed in Section 5.5.1, Prerequisites.

  1. Shut down the guest machine.

  2. Open the guest machine's XML file at /etc/xen/vm, delete the boot loader entry if any exist, then save the file.

  3. Use the following command to delete the guest machine:

    xm delete <guest machine>
  4. Use the following command to start the virtual manager GUI:

                  vm-install --vm-settings /etc/xen/vm/<guest>.xml --os-type=sles12 --source=<the installation source path> --os-settings <the autoupgrade.xml source path> --name=<guest name>
                
  5. In the Operating System Installation screen, select the appropriate SLES 12 options as shown in the following image.

    By default, the autoupgrade.xml path is populated for the AutoYaST file.

    NOTE:If you choose to upgrade using an ISO, in the Virtual Disk, select the path where the integrated ISO exists. If you choose to upgrade using a URL, specify the HTTP path where the integrated installation source exists in Network URL.

  6. In the Additional Arguments text box, specify the parameter information for the host IP, gateway IP, and netmask.

    For example:

    autoupgrade=1 netsetup=hostip hostip=192.168.1.1 netmask=255.255.254.0 gateway=192.168.1.254
  7. Click Apply.

    The upgrade proceeds without any user intervention.

5.5.5 Troubleshooting an AutoYaST Upgrade

Providing the Correct eDirectory and DSfW Administrator Password

There is no validation for the passwords that you enter while creating the answer file. If you do not specify the correct passwords, the upgrade will not be successful and the server that you are upgrading will become unrecoverable.

For a Domain Services for Windows (DSfW) server upgrade, specify the DSfW Administrator password after the eDirectory password. For more information, see Section 5.5.2, Creating an Answer File to Provide the eDirectory and DSfW Passwords

Unattended Upgrade Scenarios That Require User Input

If you have not created the answer file, you will be prompted for the eDirectory and DSfW administrator passwords.

If the eDirectory replica server's IP address is not present in the eDirectory install configuration file (for OES 11 SP2, the file name is edir_oes11_sp2; for OES 11 SP3, it is edir_oes11_sp3; for OES 2015 SP1, it is edir_oes2015_sp1 and for OES 2018, it is edir_oes2018) at /etc/sysconfig/novell/, you will be prompted for the same. For more information, see Section 5.5.1, Prerequisites.