Activity log for bug #1951705

Date Who What changed Old value New value Message
2021-11-20 22:23:17 Steve Langasek bug added bug
2021-11-21 19:02:54 Launchpad Janitor ubuntu-advantage-tools (Ubuntu): status New Confirmed
2021-11-21 23:53:29 Oli D bug added subscriber Oli D
2021-11-22 12:45:56 Renan Rodrigo ubuntu-advantage-tools (Ubuntu): status Confirmed Incomplete
2021-11-22 19:53:45 Renan Rodrigo ubuntu-advantage-tools (Ubuntu): status Incomplete In Progress
2021-11-23 12:35:20 Lucas Albuquerque Medeiros de Moura ubuntu-advantage-tools (Ubuntu): status In Progress Fix Committed
2021-11-23 19:00:30 Lucas Albuquerque Medeiros de Moura description I noticed this on an upgrade in focal: Setting up ubuntu-advantage-tools (27.4.1~20.04.1) ... Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ... Traceback (most recent call last): File "<string>", line 10, in <module> KeyError: 'status' Traceback (most recent call last): File "<string>", line 10, in <module> KeyError: 'status' It's clearly nonfatal, but we shouldn't see python tracebacks in upgrade logs. [Original bug description] I noticed this on an upgrade in focal: Setting up ubuntu-advantage-tools (27.4.1~20.04.1) ... Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ... Traceback (most recent call last):   File "<string>", line 10, in <module> KeyError: 'status' Traceback (most recent call last):   File "<string>", line 10, in <module> KeyError: 'status' It's clearly nonfatal, but we shouldn't see python tracebacks in upgrade logs. [Impact] This releases will guarantee that unattached users installing ubuntu-advantage-tools in an architecture that is different from i386 and amd64 will no longer see the KeyError issue. Additionally, this will guarantee that the postinst flow where this error is triggered will be finished. However, this should not impact users that saw this bug, since the function was cleaning up old apt sources for esm-infra and esm-apps. However, since the user is unattached, that cleanup should have already happened if those service were once enabled. [Test Case] 1.Launch an ubuntu machine: $ lxc launch ubuntu-daily:xenial dev-x 2. SSH into the machine and update ubuntu-advantage-tools to 27.4.1 3. Run ua status 4. Go into /var/lib/dpkg/info/ubuntu-advantage-tools.postinst and change the ESM_SUPPORTED_ARCHS variable to be empty 5. Run dpkg-reconfigure ubuntu-advantage-tools 6. Confirm that the expected error is there 7. Install the new UA package 27.4.2 https://launchpad.net/~ua-client/+archive/ubuntu/staging/ 8. Go into /var/lib/dpkg/info/ubuntu-advantage-tools.postinst and change the ESM_SUPPORTED_ARCHS variable to be empty 9. Run the dpkg command again and verify that no errors are shown <TODO After released to -proposed: attach integration test artifacts> [Regression Potential] We currently don't see any regression potential, we are just making the code more resilient to potential errors on unattached scenarios. [Discussion] Even though this will not affect all architecturse, we believe it is safer to address this as soon as possible, since we don't know when our next major release will be. [Changelog] * d/tools.postinst: - Fix check_service_is_enabled function when the machine is unattached (LP: #1951705)
2021-11-23 19:14:33 Lucas Albuquerque Medeiros de Moura summary traceback from postinst on upgrade ubuntu-advantage-tools (27.4.1 -> 27.4.2) Xenial, Bionic, Focal, Hirsute, Impish
2021-11-23 19:15:09 Launchpad Janitor merge proposal linked https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/412296
2021-11-23 19:20:08 Launchpad Janitor merge proposal linked https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/412297
2021-11-24 21:51:49 Launchpad Janitor ubuntu-advantage-tools (Ubuntu): status Fix Committed Fix Released
2021-11-26 00:37:41 Robie Basak description [Original bug description] I noticed this on an upgrade in focal: Setting up ubuntu-advantage-tools (27.4.1~20.04.1) ... Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ... Traceback (most recent call last):   File "<string>", line 10, in <module> KeyError: 'status' Traceback (most recent call last):   File "<string>", line 10, in <module> KeyError: 'status' It's clearly nonfatal, but we shouldn't see python tracebacks in upgrade logs. [Impact] This releases will guarantee that unattached users installing ubuntu-advantage-tools in an architecture that is different from i386 and amd64 will no longer see the KeyError issue. Additionally, this will guarantee that the postinst flow where this error is triggered will be finished. However, this should not impact users that saw this bug, since the function was cleaning up old apt sources for esm-infra and esm-apps. However, since the user is unattached, that cleanup should have already happened if those service were once enabled. [Test Case] 1.Launch an ubuntu machine: $ lxc launch ubuntu-daily:xenial dev-x 2. SSH into the machine and update ubuntu-advantage-tools to 27.4.1 3. Run ua status 4. Go into /var/lib/dpkg/info/ubuntu-advantage-tools.postinst and change the ESM_SUPPORTED_ARCHS variable to be empty 5. Run dpkg-reconfigure ubuntu-advantage-tools 6. Confirm that the expected error is there 7. Install the new UA package 27.4.2 https://launchpad.net/~ua-client/+archive/ubuntu/staging/ 8. Go into /var/lib/dpkg/info/ubuntu-advantage-tools.postinst and change the ESM_SUPPORTED_ARCHS variable to be empty 9. Run the dpkg command again and verify that no errors are shown <TODO After released to -proposed: attach integration test artifacts> [Regression Potential] We currently don't see any regression potential, we are just making the code more resilient to potential errors on unattached scenarios. [Discussion] Even though this will not affect all architecturse, we believe it is safer to address this as soon as possible, since we don't know when our next major release will be. [Changelog] * d/tools.postinst: - Fix check_service_is_enabled function when the machine is unattached (LP: #1951705) [Original bug description] I noticed this on an upgrade in focal: Setting up ubuntu-advantage-tools (27.4.1~20.04.1) ... Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ... Traceback (most recent call last):   File "<string>", line 10, in <module> KeyError: 'status' Traceback (most recent call last):   File "<string>", line 10, in <module> KeyError: 'status' It's clearly nonfatal, but we shouldn't see python tracebacks in upgrade logs. [Impact] This releases will guarantee that unattached users installing ubuntu-advantage-tools in an architecture that is different from i386 and amd64 will no longer see the KeyError issue. Additionally, this will guarantee that the postinst flow where this error is triggered will be finished. However, this should not impact users that saw this bug, since the function was cleaning up old apt sources for esm-infra and esm-apps. However, since the user is unattached, that cleanup should have already happened if those service were once enabled. [Test Case] 1.Launch an ubuntu machine:   $ lxc launch ubuntu-daily:xenial dev-x 2. SSH into the machine and update ubuntu-advantage-tools to 27.4.1 3. Run ua status 4. Go into /var/lib/dpkg/info/ubuntu-advantage-tools.postinst and    change the ESM_SUPPORTED_ARCHS variable to be empty 5. Run dpkg-reconfigure ubuntu-advantage-tools 6. Confirm that the expected error is there 7. Install the new UA package 27.4.2    https://launchpad.net/~ua-client/+archive/ubuntu/staging/ 8. Go into /var/lib/dpkg/info/ubuntu-advantage-tools.postinst and    change the ESM_SUPPORTED_ARCHS variable to be empty 9. Run the dpkg command again and verify that no errors are shown <TODO After released to -proposed: attach integration test artifacts> [Regression Potential] We currently don't see any regression potential, we are just making the code more resilient to potential errors on unattached scenarios. [racb] We're adjusting the postinst, so if something goes wrong, it's likely to manifest in the console at install or upgrade time. [Discussion] Even though this will not affect all architecturse, we believe it is safer to address this as soon as possible, since we don't know when our next major release will be. [Changelog]      * d/tools.postinst:        - Fix check_service_is_enabled function when the machine is          unattached (LP: #1951705)
2021-11-26 00:39:32 Robie Basak description [Original bug description] I noticed this on an upgrade in focal: Setting up ubuntu-advantage-tools (27.4.1~20.04.1) ... Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ... Traceback (most recent call last):   File "<string>", line 10, in <module> KeyError: 'status' Traceback (most recent call last):   File "<string>", line 10, in <module> KeyError: 'status' It's clearly nonfatal, but we shouldn't see python tracebacks in upgrade logs. [Impact] This releases will guarantee that unattached users installing ubuntu-advantage-tools in an architecture that is different from i386 and amd64 will no longer see the KeyError issue. Additionally, this will guarantee that the postinst flow where this error is triggered will be finished. However, this should not impact users that saw this bug, since the function was cleaning up old apt sources for esm-infra and esm-apps. However, since the user is unattached, that cleanup should have already happened if those service were once enabled. [Test Case] 1.Launch an ubuntu machine:   $ lxc launch ubuntu-daily:xenial dev-x 2. SSH into the machine and update ubuntu-advantage-tools to 27.4.1 3. Run ua status 4. Go into /var/lib/dpkg/info/ubuntu-advantage-tools.postinst and    change the ESM_SUPPORTED_ARCHS variable to be empty 5. Run dpkg-reconfigure ubuntu-advantage-tools 6. Confirm that the expected error is there 7. Install the new UA package 27.4.2    https://launchpad.net/~ua-client/+archive/ubuntu/staging/ 8. Go into /var/lib/dpkg/info/ubuntu-advantage-tools.postinst and    change the ESM_SUPPORTED_ARCHS variable to be empty 9. Run the dpkg command again and verify that no errors are shown <TODO After released to -proposed: attach integration test artifacts> [Regression Potential] We currently don't see any regression potential, we are just making the code more resilient to potential errors on unattached scenarios. [racb] We're adjusting the postinst, so if something goes wrong, it's likely to manifest in the console at install or upgrade time. [Discussion] Even though this will not affect all architecturse, we believe it is safer to address this as soon as possible, since we don't know when our next major release will be. [Changelog]      * d/tools.postinst:        - Fix check_service_is_enabled function when the machine is          unattached (LP: #1951705) [Original bug description] I noticed this on an upgrade in focal: Setting up ubuntu-advantage-tools (27.4.1~20.04.1) ... Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ... Traceback (most recent call last):   File "<string>", line 10, in <module> KeyError: 'status' Traceback (most recent call last):   File "<string>", line 10, in <module> KeyError: 'status' It's clearly nonfatal, but we shouldn't see python tracebacks in upgrade logs. [Impact] This releases will guarantee that unattached users installing ubuntu-advantage-tools in an architecture that is different from i386 and amd64 will no longer see the KeyError issue. Additionally, this will guarantee that the postinst flow where this error is triggered will be finished. However, this should not impact users that saw this bug, since the function was cleaning up old apt sources for esm-infra and esm-apps. However, since the user is unattached, that cleanup should have already happened if those service were once enabled. [Test Case] 1.Launch an ubuntu machine:   $ lxc launch ubuntu-daily:xenial dev-x 2. SSH into the machine and update ubuntu-advantage-tools to 27.4.1 3. Run ua status 4. Go into /var/lib/dpkg/info/ubuntu-advantage-tools.postinst and    change the ESM_SUPPORTED_ARCHS variable to be empty 5. Run dpkg-reconfigure ubuntu-advantage-tools 6. Confirm that the expected error is there 7. Install the new UA package 27.4.2    https://launchpad.net/~ua-client/+archive/ubuntu/staging/ 8. Go into /var/lib/dpkg/info/ubuntu-advantage-tools.postinst and    change the ESM_SUPPORTED_ARCHS variable to be empty 9. Run the dpkg command again and verify that no errors are shown <TODO After released to -proposed: attach integration test artifacts> [Regression Potential] We currently don't see any regression potential, we are just making the code more resilient to potential errors on unattached scenarios. [racb] We're adjusting the postinst, so if something goes wrong, it's likely to manifest in the console at package install or upgrade time. [racb] Sometimes existing issues get exacerbated by issuing an update that causes the postinst to run again. [Discussion] Even though this will not affect all architecturse, we believe it is safer to address this as soon as possible, since we don't know when our next major release will be. [Changelog]      * d/tools.postinst:        - Fix check_service_is_enabled function when the machine is          unattached (LP: #1951705)
2021-11-26 00:41:16 Robie Basak summary ubuntu-advantage-tools (27.4.1 -> 27.4.2) Xenial, Bionic, Focal, Hirsute, Impish traceback from postinst on upgrade
2021-11-26 00:42:46 Robie Basak ubuntu-advantage-tools (Ubuntu Impish): status New Fix Committed
2021-11-26 00:42:48 Robie Basak bug added subscriber Ubuntu Stable Release Updates Team
2021-11-26 00:42:50 Robie Basak bug added subscriber SRU Verification
2021-11-26 00:42:54 Robie Basak tags verification-needed verification-needed-impish
2021-11-26 00:43:33 Robie Basak ubuntu-advantage-tools (Ubuntu Hirsute): status New Fix Committed
2021-11-26 00:43:39 Robie Basak tags verification-needed verification-needed-impish verification-needed verification-needed-hirsute verification-needed-impish
2021-11-26 00:45:37 Robie Basak ubuntu-advantage-tools (Ubuntu Focal): status New Fix Committed
2021-11-26 00:45:43 Robie Basak tags verification-needed verification-needed-hirsute verification-needed-impish verification-needed verification-needed-focal verification-needed-hirsute verification-needed-impish
2021-11-26 00:45:59 Robie Basak ubuntu-advantage-tools (Ubuntu Bionic): status New Fix Committed
2021-11-26 00:46:04 Robie Basak tags verification-needed verification-needed-focal verification-needed-hirsute verification-needed-impish verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-impish
2021-11-26 00:48:11 Robie Basak ubuntu-advantage-tools (Ubuntu Xenial): status New Fix Committed
2021-11-26 00:48:16 Robie Basak tags verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-impish verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-impish verification-needed-xenial
2021-11-26 13:50:41 Lucas Albuquerque Medeiros de Moura attachment added release-27.4.2-test-results.tar.xz https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1951705/+attachment/5543613/+files/release-27.4.2-test-results.tar.xz
2021-11-26 13:51:14 Lucas Albuquerque Medeiros de Moura tags verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-impish verification-needed-xenial verification-done verification-done-bionic verification-done-focal verification-done-hirsute verification-done-impish verification-done-xenial
2021-12-06 15:37:04 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Impish): status Fix Committed Fix Released
2021-12-06 15:37:10 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2021-12-06 15:38:50 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Hirsute): status Fix Committed Fix Released
2021-12-06 15:41:44 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Focal): status Fix Committed Fix Released
2021-12-06 15:42:14 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Bionic): status Fix Committed Fix Released
2021-12-06 15:44:14 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Xenial): status Fix Committed Fix Released