Activity log for bug #1985863

Date Who What changed Old value New value Message
2022-08-12 04:29:52 Koen Dierckx bug added bug
2022-08-15 14:25:49 Grant Orndorff ubuntu-advantage-tools (Ubuntu): importance Undecided High
2022-08-15 14:26:05 Grant Orndorff ubuntu-advantage-tools (Ubuntu): status New In Progress
2022-08-18 17:44:04 Lucas Albuquerque Medeiros de Moura ubuntu-advantage-tools (Ubuntu): status In Progress Fix Released
2022-08-18 17:52:10 Lucas Albuquerque Medeiros de Moura ubuntu-advantage-tools (Ubuntu): status Fix Released Confirmed
2022-08-22 15:37:37 Grant Orndorff ubuntu-advantage-tools (Ubuntu): status Confirmed In Progress
2022-08-24 18:09:42 Lucas Albuquerque Medeiros de Moura ubuntu-advantage-tools (Ubuntu): status In Progress Fix Committed
2022-09-11 13:49:18 Renan Rodrigo description On some clients ubuntu advantage enable has stopped working When running with --debug flag we only get "Killed" as last output $ sudo ua --debug enable esm-infra --assume-yes DEBUG: Executed with sys.argv: ['/usr/bin/ua', '--debug', 'enable', 'esm-infra', '--assume-yes'] DEBUG: Reading file: /var/lib/ubuntu-advantage/private/lock Removing stale lock file previously held by 668502:ua enable DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/lock DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json One moment, checking your subscription first DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: File does not exist: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: URL [POST]: REDACTED DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-id DEBUG: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Writing file: /etc/apt/sources.list.d/ubuntu-esm-infra.list DEBUG: Reading file: /etc/apt/auth.conf.d/90ubuntu-advantage Killed [Impact] This bug impacts any user which, for any reason, enables/disables a service several times. It was initially reported because an automation script, misled by another bug in esm, (now fixed) has enabled a service many times in a row, causing /etc/apt/auth.conf.d/90ubuntu-advantage to grow exponentially. The growth happened because the client incorrectly appends to the auth file many times when it should not. The fix to the function makes sure the auth information for a service only gets inserted in the auth file once. [Test Case] To reproduce the bug, using `ubuntu-advantage-tools <= 27.10.1` , enable and disable the same service (esm-infra) and check that /etc/apt/auth.conf.d/90ubuntu-advantage grows more and more with each enablement. Doing the same in `27.11` will leave the file with the same size after the first enablement for any subsequent amount of calls. An automated test was added in `27.11` to cover this case, and it's execution using the package in `-proposed` will be appended to this bug. * Automated Test Results <TODO> [Regression Potential] There is no expected risk of regression, as the change was validated and covered by an integration test. [Original Description] On some clients ubuntu advantage enable has stopped working When running with --debug flag we only get "Killed" as last output $ sudo ua --debug enable esm-infra --assume-yes DEBUG: Executed with sys.argv: ['/usr/bin/ua', '--debug', 'enable', 'esm-infra', '--assume-yes'] DEBUG: Reading file: /var/lib/ubuntu-advantage/private/lock Removing stale lock file previously held by 668502:ua enable DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/lock DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json One moment, checking your subscription first DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: File does not exist: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: URL [POST]: REDACTED DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-id DEBUG: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Writing file: /etc/apt/sources.list.d/ubuntu-esm-infra.list DEBUG: Reading file: /etc/apt/auth.conf.d/90ubuntu-advantage Killed
2022-09-11 13:58:17 Renan Rodrigo description [Impact] This bug impacts any user which, for any reason, enables/disables a service several times. It was initially reported because an automation script, misled by another bug in esm, (now fixed) has enabled a service many times in a row, causing /etc/apt/auth.conf.d/90ubuntu-advantage to grow exponentially. The growth happened because the client incorrectly appends to the auth file many times when it should not. The fix to the function makes sure the auth information for a service only gets inserted in the auth file once. [Test Case] To reproduce the bug, using `ubuntu-advantage-tools <= 27.10.1` , enable and disable the same service (esm-infra) and check that /etc/apt/auth.conf.d/90ubuntu-advantage grows more and more with each enablement. Doing the same in `27.11` will leave the file with the same size after the first enablement for any subsequent amount of calls. An automated test was added in `27.11` to cover this case, and it's execution using the package in `-proposed` will be appended to this bug. * Automated Test Results <TODO> [Regression Potential] There is no expected risk of regression, as the change was validated and covered by an integration test. [Original Description] On some clients ubuntu advantage enable has stopped working When running with --debug flag we only get "Killed" as last output $ sudo ua --debug enable esm-infra --assume-yes DEBUG: Executed with sys.argv: ['/usr/bin/ua', '--debug', 'enable', 'esm-infra', '--assume-yes'] DEBUG: Reading file: /var/lib/ubuntu-advantage/private/lock Removing stale lock file previously held by 668502:ua enable DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/lock DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json One moment, checking your subscription first DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: File does not exist: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: URL [POST]: REDACTED DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-id DEBUG: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Writing file: /etc/apt/sources.list.d/ubuntu-esm-infra.list DEBUG: Reading file: /etc/apt/auth.conf.d/90ubuntu-advantage Killed [Impact] This bug impacts any user which, for any reason, enables/disables a service several times. It was initially reported because an automation script, misled by another bug in esm, (now fixed) has enabled a service many times in a row, causing /etc/apt/auth.conf.d/90ubuntu-advantage to grow exponentially. The growth happened because the client incorrectly appends to the auth file many times when it should not. The fix to the function makes sure the auth information for a service only gets inserted in the auth file once. [Test Case] To reproduce the bug, using `ubuntu-advantage-tools <= 27.10.1` , enable and disable the same service (esm-infra) and check that /etc/apt/auth.conf.d/90ubuntu-advantage grows more and more with each enablement. Doing the same in `27.11` will leave the file with the same size after the first enablement for any subsequent amount of calls. An automated test was added in `27.11` to cover this case, and its execution using the package in `-proposed` will be appended to this bug. * Automated Test Results <TODO> [Regression Potential] There is no expected risk of regression, as the change was validated and covered by an integration test. [Original Description] On some clients ubuntu advantage enable has stopped working When running with --debug flag we only get "Killed" as last output $ sudo ua --debug enable esm-infra --assume-yes DEBUG: Executed with sys.argv: ['/usr/bin/ua', '--debug', 'enable', 'esm-infra', '--assume-yes'] DEBUG: Reading file: /var/lib/ubuntu-advantage/private/lock Removing stale lock file previously held by 668502:ua enable DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/lock DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json One moment, checking your subscription first DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: File does not exist: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: URL [POST]: REDACTED DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-id DEBUG: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Writing file: /etc/apt/sources.list.d/ubuntu-esm-infra.list DEBUG: Reading file: /etc/apt/auth.conf.d/90ubuntu-advantage Killed
2022-09-22 18:16:38 Launchpad Janitor ubuntu-advantage-tools (Ubuntu): status Fix Committed Fix Released
2022-09-27 21:13:49 Robie Basak ubuntu-advantage-tools (Ubuntu Jammy): status New Fix Committed
2022-09-27 21:13:50 Robie Basak bug added subscriber Ubuntu Stable Release Updates Team
2022-09-27 21:13:51 Robie Basak bug added subscriber SRU Verification
2022-09-27 21:13:53 Robie Basak tags verification-needed verification-needed-jammy
2022-09-27 21:14:51 Robie Basak ubuntu-advantage-tools (Ubuntu Focal): status New Fix Committed
2022-09-27 21:14:54 Robie Basak tags verification-needed verification-needed-jammy verification-needed verification-needed-focal verification-needed-jammy
2022-09-27 21:15:27 Robie Basak ubuntu-advantage-tools (Ubuntu Bionic): status New Fix Committed
2022-09-27 21:15:31 Robie Basak tags verification-needed verification-needed-focal verification-needed-jammy verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy
2022-09-27 21:16:15 Robie Basak ubuntu-advantage-tools (Ubuntu Xenial): status New Fix Committed
2022-09-27 21:16:18 Robie Basak tags verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-xenial
2022-10-03 11:02:04 Renan Rodrigo description [Impact] This bug impacts any user which, for any reason, enables/disables a service several times. It was initially reported because an automation script, misled by another bug in esm, (now fixed) has enabled a service many times in a row, causing /etc/apt/auth.conf.d/90ubuntu-advantage to grow exponentially. The growth happened because the client incorrectly appends to the auth file many times when it should not. The fix to the function makes sure the auth information for a service only gets inserted in the auth file once. [Test Case] To reproduce the bug, using `ubuntu-advantage-tools <= 27.10.1` , enable and disable the same service (esm-infra) and check that /etc/apt/auth.conf.d/90ubuntu-advantage grows more and more with each enablement. Doing the same in `27.11` will leave the file with the same size after the first enablement for any subsequent amount of calls. An automated test was added in `27.11` to cover this case, and its execution using the package in `-proposed` will be appended to this bug. * Automated Test Results <TODO> [Regression Potential] There is no expected risk of regression, as the change was validated and covered by an integration test. [Original Description] On some clients ubuntu advantage enable has stopped working When running with --debug flag we only get "Killed" as last output $ sudo ua --debug enable esm-infra --assume-yes DEBUG: Executed with sys.argv: ['/usr/bin/ua', '--debug', 'enable', 'esm-infra', '--assume-yes'] DEBUG: Reading file: /var/lib/ubuntu-advantage/private/lock Removing stale lock file previously held by 668502:ua enable DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/lock DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json One moment, checking your subscription first DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: File does not exist: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: URL [POST]: REDACTED DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-id DEBUG: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Writing file: /etc/apt/sources.list.d/ubuntu-esm-infra.list DEBUG: Reading file: /etc/apt/auth.conf.d/90ubuntu-advantage Killed [Impact] This bug impacts any user which, for any reason, enables/disables a service several times. It was initially reported because an automation script, misled by another bug in esm, (now fixed) has enabled a service many times in a row, causing /etc/apt/auth.conf.d/90ubuntu-advantage to grow exponentially. The growth happened because the client incorrectly appends to the auth file many times when it should not. The fix to the function makes sure the auth information for a service only gets inserted in the auth file once. [Test Case] To reproduce the bug, using `ubuntu-advantage-tools <= 27.10.1` , enable and disable the same service (esm-infra) and check that /etc/apt/auth.conf.d/90ubuntu-advantage grows more and more with each enablement. Doing the same in `27.11` will leave the file with the same size after the first enablement for any subsequent amount of calls. An automated test was added in `27.11` to cover this case, and its execution using the package in `-proposed` will be appended to this bug. * Automated Test Results Our integration test suite has now a test to cover this behavior. The output of that test, executed using the package from -proposed, was added to the bug as a comment. The automated test is executed on Xenial, and the behavior can be reproduced in any LTS alike. I am marking this bug as verified. [Regression Potential] There is no expected risk of regression, as the change was validated and covered by an integration test. [Original Description] On some clients ubuntu advantage enable has stopped working When running with --debug flag we only get "Killed" as last output $ sudo ua --debug enable esm-infra --assume-yes DEBUG: Executed with sys.argv: ['/usr/bin/ua', '--debug', 'enable', 'esm-infra', '--assume-yes'] DEBUG: Reading file: /var/lib/ubuntu-advantage/private/lock Removing stale lock file previously held by 668502:ua enable DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/lock DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json One moment, checking your subscription first DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: File does not exist: /var/lib/ubuntu-advantage/services-once-enabled DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json DEBUG: URL [POST]: REDACTED DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-id DEBUG: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b'' DEBUG: Writing file: /etc/apt/sources.list.d/ubuntu-esm-infra.list DEBUG: Reading file: /etc/apt/auth.conf.d/90ubuntu-advantage Killed
2022-10-03 11:06:12 Renan Rodrigo tags verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-xenial verification-done verification-done-bionic verification-done-focal verification-done-jammy verification-done-xenial
2022-10-05 12:06:22 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Xenial): status Fix Committed Fix Released
2022-10-05 12:06:29 Steve Langasek removed subscriber Ubuntu Stable Release Updates Team
2022-10-05 12:06:52 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Bionic): status Fix Committed Fix Released
2022-10-05 12:07:07 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Focal): status Fix Committed Fix Released
2022-10-05 12:07:24 Launchpad Janitor ubuntu-advantage-tools (Ubuntu Jammy): status Fix Committed Fix Released