Activity log for bug #2019997

Date Who What changed Old value New value Message
2023-05-17 19:40:01 Jeremy Bícha bug added bug
2023-05-18 12:42:43 Renan Rodrigo ubuntu-advantage-tools (Ubuntu): status New Triaged
2023-05-18 13:06:37 Grant Orndorff bug task added canonical-livepatch-client
2023-05-18 13:19:37 Kian Parvin bug watch added https://github.com/canonical/microk8s/issues/2194
2023-08-15 13:35:13 Grant Orndorff ubuntu-advantage-tools (Ubuntu): importance Undecided Low
2023-10-10 13:34:00 Grant Orndorff ubuntu-advantage-tools (Ubuntu): assignee Lucas Albuquerque Medeiros de Moura (lamoura)
2024-01-11 01:49:52 Grant Orndorff description livepatch shows as disabled when `pro status` is run as a normal user, but enabled when run with sudo. $ pro status SERVICE ENTITLED STATUS DESCRIPTION esm-apps yes enabled Expanded Security Maintenance for Applications esm-infra yes enabled Expanded Security Maintenance for Infrastructure livepatch yes disabled Canonical Livepatch service $ sudo pro status SERVICE ENTITLED STATUS DESCRIPTION esm-apps yes enabled Expanded Security Maintenance for Applications esm-infra yes enabled Expanded Security Maintenance for Infrastructure livepatch yes enabled Canonical Livepatch service This is probably a separate issue, but similarly (with a few numbers I have replaced by <censored>: $ canonical-livepatch status internal error, please report: running "canonical-livepatch" failed: transient scope could not be started, job /org/freedesktop/systemd1/job/235 finished with result failed $ sudo canonical-livepatch status last check: 35 minutes ago kernel: <censored> server check-in: succeeded kernel state: ✓ kernel is supported by Canonical. patch state: ✓ all applicable livepatch modules inserted patch version: <censored> tier: stable ubuntu-advantage-tools 27.14.4~22.04 Ubuntu 22.04.2 LTS [ Impact ] pro status shows livepatch as "disabled" when "canonical-livepatch" returns an error. This can be misleading. It would be more helpful to propagate the error message up to the user through pro status; that is what the fix does. [ Test Plan ] In a multipass VM: ``` # attach to pro sudo pro attach # hack canonical-livepatch to return an error cat > error.sh <<EOF #!/bin/sh echo "this is a simulated error" >&2 false EOF sudo rm /snap/bin/canonical-livepatch sudo ln -s /home/ubuntu/error.sh /snap/bin/canonical-livepatch # check livepatch's status according to pro pro status ``` Without the fix, livepatch will show as "disabled". With the fix, livepatch will show as "warning", and there will be a notice that says "Error running canonical-livepatch status: this is a simulated error" [ Where problems could occur ] Since this changes how the status of livepatch is displayed, then a mistake could lead to livepatch's status being incorrect [Original Description] livepatch shows as disabled when `pro status` is run as a normal user, but enabled when run with sudo. $ pro status SERVICE ENTITLED STATUS DESCRIPTION esm-apps yes enabled Expanded Security Maintenance for Applications esm-infra yes enabled Expanded Security Maintenance for Infrastructure livepatch yes disabled Canonical Livepatch service $ sudo pro status SERVICE ENTITLED STATUS DESCRIPTION esm-apps yes enabled Expanded Security Maintenance for Applications esm-infra yes enabled Expanded Security Maintenance for Infrastructure livepatch yes enabled Canonical Livepatch service This is probably a separate issue, but similarly (with a few numbers I have replaced by <censored>: $ canonical-livepatch status internal error, please report: running "canonical-livepatch" failed: transient scope could not be started, job /org/freedesktop/systemd1/job/235 finished with result failed $ sudo canonical-livepatch status last check: 35 minutes ago kernel: <censored> server check-in: succeeded kernel state: ✓ kernel is supported by Canonical. patch state: ✓ all applicable livepatch modules inserted patch version: <censored> tier: stable ubuntu-advantage-tools 27.14.4~22.04 Ubuntu 22.04.2 LTS
2024-02-15 15:44:29 Ubuntu Archive Robot bug added subscriber Paride Legovini
2024-02-19 00:51:22 Launchpad Janitor ubuntu-advantage-tools (Ubuntu): status Triaged Fix Released
2024-02-21 12:55:20 Robie Basak ubuntu-advantage-tools (Ubuntu Mantic): status New Fix Committed
2024-02-21 12:55:21 Robie Basak bug added subscriber Ubuntu Stable Release Updates Team
2024-02-21 12:55:26 Robie Basak bug added subscriber SRU Verification
2024-02-21 12:55:28 Robie Basak tags verification-needed verification-needed-mantic
2024-02-21 12:56:36 Robie Basak ubuntu-advantage-tools (Ubuntu Jammy): status New Fix Committed
2024-02-21 12:56:38 Robie Basak tags verification-needed verification-needed-mantic verification-needed verification-needed-jammy verification-needed-mantic
2024-02-21 12:57:10 Robie Basak ubuntu-advantage-tools (Ubuntu Focal): status New Fix Committed
2024-02-21 12:57:13 Robie Basak tags verification-needed verification-needed-jammy verification-needed-mantic verification-needed verification-needed-focal verification-needed-jammy verification-needed-mantic
2024-02-21 12:57:46 Robie Basak ubuntu-advantage-tools (Ubuntu Bionic): status New Fix Committed
2024-02-21 12:57:49 Robie Basak tags verification-needed verification-needed-focal verification-needed-jammy verification-needed-mantic verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-mantic
2024-02-21 12:58:28 Robie Basak ubuntu-advantage-tools (Ubuntu Xenial): status New Fix Committed
2024-02-21 12:58:30 Robie Basak tags verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-mantic verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-mantic verification-needed-xenial
2024-03-08 21:44:43 Grant Orndorff description [ Impact ] pro status shows livepatch as "disabled" when "canonical-livepatch" returns an error. This can be misleading. It would be more helpful to propagate the error message up to the user through pro status; that is what the fix does. [ Test Plan ] In a multipass VM: ``` # attach to pro sudo pro attach # hack canonical-livepatch to return an error cat > error.sh <<EOF #!/bin/sh echo "this is a simulated error" >&2 false EOF sudo rm /snap/bin/canonical-livepatch sudo ln -s /home/ubuntu/error.sh /snap/bin/canonical-livepatch # check livepatch's status according to pro pro status ``` Without the fix, livepatch will show as "disabled". With the fix, livepatch will show as "warning", and there will be a notice that says "Error running canonical-livepatch status: this is a simulated error" [ Where problems could occur ] Since this changes how the status of livepatch is displayed, then a mistake could lead to livepatch's status being incorrect [Original Description] livepatch shows as disabled when `pro status` is run as a normal user, but enabled when run with sudo. $ pro status SERVICE ENTITLED STATUS DESCRIPTION esm-apps yes enabled Expanded Security Maintenance for Applications esm-infra yes enabled Expanded Security Maintenance for Infrastructure livepatch yes disabled Canonical Livepatch service $ sudo pro status SERVICE ENTITLED STATUS DESCRIPTION esm-apps yes enabled Expanded Security Maintenance for Applications esm-infra yes enabled Expanded Security Maintenance for Infrastructure livepatch yes enabled Canonical Livepatch service This is probably a separate issue, but similarly (with a few numbers I have replaced by <censored>: $ canonical-livepatch status internal error, please report: running "canonical-livepatch" failed: transient scope could not be started, job /org/freedesktop/systemd1/job/235 finished with result failed $ sudo canonical-livepatch status last check: 35 minutes ago kernel: <censored> server check-in: succeeded kernel state: ✓ kernel is supported by Canonical. patch state: ✓ all applicable livepatch modules inserted patch version: <censored> tier: stable ubuntu-advantage-tools 27.14.4~22.04 Ubuntu 22.04.2 LTS [ Impact ] pro status shows livepatch as "disabled" when "canonical-livepatch" returns an error. This can be misleading. It would be more helpful to propagate the error message up to the user through pro status; that is what the fix does. [ Test Plan ] In a multipass VM: ``` # attach to pro sudo pro attach # hack canonical-livepatch to return an error cat > error.sh <<EOF #!/bin/sh echo "this is a simulated error" >&2 false EOF chmod +x error.sh sudo rm /snap/bin/canonical-livepatch sudo ln -s /home/ubuntu/error.sh /snap/bin/canonical-livepatch # check livepatch's status according to pro pro status ``` Without the fix, livepatch will show as "disabled". With the fix, livepatch will show as "warning", and there will be a notice that says "Error running canonical-livepatch status: this is a simulated error" [ Where problems could occur ] Since this changes how the status of livepatch is displayed, then a mistake could lead to livepatch's status being incorrect [Original Description] livepatch shows as disabled when `pro status` is run as a normal user, but enabled when run with sudo. $ pro status SERVICE ENTITLED STATUS DESCRIPTION esm-apps yes enabled Expanded Security Maintenance for Applications esm-infra yes enabled Expanded Security Maintenance for Infrastructure livepatch yes disabled Canonical Livepatch service $ sudo pro status SERVICE ENTITLED STATUS DESCRIPTION esm-apps yes enabled Expanded Security Maintenance for Applications esm-infra yes enabled Expanded Security Maintenance for Infrastructure livepatch yes enabled Canonical Livepatch service This is probably a separate issue, but similarly (with a few numbers I have replaced by <censored>: $ canonical-livepatch status internal error, please report: running "canonical-livepatch" failed: transient scope could not be started, job /org/freedesktop/systemd1/job/235 finished with result failed $ sudo canonical-livepatch status last check: 35 minutes ago kernel: <censored> server check-in: succeeded kernel state: ✓ kernel is supported by Canonical. patch state: ✓ all applicable livepatch modules inserted patch version: <censored> tier: stable ubuntu-advantage-tools 27.14.4~22.04 Ubuntu 22.04.2 LTS
2024-03-08 22:07:29 Grant Orndorff attachment added 2019997.tar.gz https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2019997/+attachment/5754198/+files/2019997.tar.gz
2024-03-08 22:07:47 Grant Orndorff tags verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-mantic verification-needed-xenial verification-done verification-done-bionic verification-done-focal verification-done-jammy verification-done-mantic verification-done-xenial
2024-03-12 16:19:43 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Mantic): status Fix Committed Fix Released
2024-03-12 16:19:53 Andreas Hasenack removed subscriber Ubuntu Stable Release Updates Team
2024-03-12 16:20:24 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Jammy): status Fix Committed Fix Released
2024-03-12 16:20:43 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Focal): status Fix Committed Fix Released
2024-03-12 16:21:06 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Bionic): status Fix Committed Fix Released
2024-03-12 16:21:42 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Xenial): status Fix Committed Fix Released