Upgrade a Landscape 19.10 Quickstart Installation to Landscape 22.10 Beta

The best approach is to perform new manual installation and copy over the database and configuration files from your Quickstart install. As a matter of convenience, it is possible to perform a quickstart upgrade in-place. The following guide outlines your 2 options for doing so:

Quickstart Upgrade: Option 1

This method is somewhat basic, but could be complicated depending on how much customization has happened after the landscape-server-quickstart install. It is strongly recommended that you backup the database before performing an upgrade this way.

Setup

2 LXD containers for Landscape

  • landscape-app-bionic (bionic) where Landscape 19.10 stable is running
  • landscape-app-focal (focal) where Landscape 22.10 beta is running

1 LXD container that we are managing in Landscape, for demonstration purposes

  • landscape-client (focal) is a machine enrolled in Landscape

Steps

  1. Install landscape-server-quickstart on landscape-app-bionic according to the quickstart install instructions
  2. Install landscape-client on landscape-client and register with server
  3. Stop all Landscape services on landscape-app-bionic with this command:
    sudo lsctl stop
    
  4. Backup all landscape- database tables using pg_dump
  5. Install landscape-server-quickstart on landscape-app-focal from the beta PPA
  6. Stop all Landscape services on landscape-app-focal with this command:
    sudo lsctl stop
    
  7. Restore database data using this command:
    psql -d <database> -f <file.sql>
    
  8. Run the setup command to do db schema migrations, if any:
    sudo setup-landscape-server
    
  9. Start Landscape services using this command:
    sudo lsctl start
    
  10. Made minor edits to /etc/apache2/sites-available landscape conf to correct the domain name, it should match what domain name you use for the Landscape Server
  11. If you are using a self-signed SSL certificate, copy the new SSL cert to landscape-client. It may be prudent to copy the old SSL certificate from landscape-app-bionic to landscape-app-focal, because the Quickstart creates one based on the machine’s hostname. There is a chance this hostname could be different when you were setting it up landscape-app-focal.
  12. Restart the landscape-client LXD machine to ensure everything is working

Quickstart Upgrade: Option 2

This method leverages do-release-upgrade and is not recommended, because configuration files differ from one Ubuntu LTS to the next. For those motivated to go this route, it is possible:

Setup

1 LXD container for Landscape

  • landscape-app-bionic (bionic)

Steps

  1. Install landscape-server-quickstart on landscape-app-bionic according to the quickstart install instructions
  2. Backup all landscape- database tables using pg_dump
  3. Perform a PPA purge with this command:
    sudo ppa-purge ppa:landscape/19.10
    
  4. The postgres package blocks do-release-upgrade because it is not marked for removal through that process:
    sudo apt remove postgresql-10-debversion
    
  5. Perform the release upgrade:
    sudo do-release-upgrade
    
  6. Add the Landscape Beta PPA:
    sudo add-apt-repository ppa:landscape/self-hosted-beta
    
  7. Perform the Quickstart install
    sudo apt install landscape-server-quickstart