Avoid stopping services on upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
Undecided
|
Unassigned | ||
landscape-client (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Committed
|
Undecided
|
Unassigned | ||
Jammy |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
debian/rules override_
Patching this will allow users to upgrade Landscape Client to this version (and future versions) and transition to the new version without interruption of the service.
The patch fixes this by using the default dh_installsystemd behaviour combined with a service ExecCondition that checks the registration status of Landscape Client. If registered, the service must be running, and so should be started again after upgrade.
[ Test Plan ]
The following tests will be performed, in addition to the ones laid out in https:/
On jammy and focal:
test 1: install version 19.12, register with Landscape Server, service is running, upgrade to version 23
expected behaviour: landscape-client service restarts, running the new version (23).
test 2: install version 19.12, register with Landscape Server, systemctl stop landscape-client, upgrade to version 23
expected behaviour: landscape-client service restarts, running the new version (23).
test 3: install version 19.12, register with Landscape Server, systemctl stop landscape-client, systemctl disable landscape-client, upgrade to version 23
expected-behaviour: landscape-client service does not start (as it is disabled), but when enabled, the new version (23) is running.
test 4: install version 19.23, do not register with Landscape Server, service is not running, upgrade to version 23
expected-behaviour: landscape-client service never runs, registration has not occurred.
[ Where problems could occur ]
As this is a change to the systemd unit behaviour, problems would probably present as the service failing to start after upgrade, or failing to stop, continuing to run the previous version.
description: | updated |
Fixed in https:/ /github. com/canonical/ landscape- client/ pull/111