[Bug 1686183] Re: Ship ubuntu-advantage in ubuntu-minimal
To summarize, as expected, all non-precise releases behave the same: a) enable-esm fails with a valid token because ESM is not available for non-precise ubuntu releases. That causes apt-get update to fail with a 404. The situation is resolved by running the disable-esm command. b) MOTD gets no ubuntu-advantage or esm related messages, regardless if esm is enabled or not. This is correct, since esm is only available for precise, and ubuntu-advantage has no other functionality. After having done the above passes on trusty, xenial and zesty, I decided to take another pass and verify that if ca-certificates or apt- transport-https are missing, that ubuntu-advantage would install them. This already happens on precise, but maybe the package names or dependencies changed in other releases. To properly test this I configured apt to not install recommends by default, otherwise just by installing apt-transport-https we would already get ca-certificates. I'm going to update the [Test Case] section of this SRU about this extra test and its preparation: $ cat /etc/apt/apt.conf.d/no-recommends APT::Install-Recommends "false"; Here are the results: a) zesty: ubuntu@zesty-ubuntu-advantage:~$ sudo ubuntu-advantage enable-esm Installing missing dependency apt-transport-https Installing missing dependency ca-certificates Running apt-get update... (...) b) xenial: ubuntu@xenial-ubuntu-advantage:~$ sudo ubuntu-advantage enable-esm Installing missing dependency apt-transport-https Installing missing dependency ca-certificates Running apt-get update... (...) c) trusty: ubuntu@trusty-ubuntu-advantage-1686183:~$ sudo ubuntu-advantage enable-esm Installing missing dependency apt-transport-https Installing missing dependency ca-certificates Running apt-get update... (...) ** Description changed: The ubuntu-advantage-tools package is a bit odd as it was first landed in precise to support the ESM effort inside canonical. [0] In order to bring this package up to date across other series in ubuntu, it has been recommended by the Ubuntu Foundations team to land into trusty next, then forward-port pocket-copy to all supported series until we get to the devel release. The version here: https://github.com/CanonicalLtd/ubuntu-advantage-script/releases/tag/v2 ... has all on-disk bits correctly working, for all series, but no-ops on any release other than precise (ESM is only for "unsupported" LTS releases as it were). This is a request to land ubuntu-advantage-tools into trusty, then pocket-copy it to supported series of ubuntu once that is finished. [Impact] * Allow ubuntu-advantage users to access the extended security maintenance script with a simple command line tool. This script needs to hit precise machines and be easy for ubuntu-advantage customers to enable, thus basefiles was chosen as a home. [Test Case] * Run ubuntu-advantage, it should print out help - * Run sudo ubuntu-advantage enable (without sudo it will warn you), but you need to be an ubuntu-advantage customer to get that token. In the end, the script simply adds and removes an /etc/apt/sources.list.d entry. - * Verify that the MOTD does not contain any mention of ubuntu-advantage esm or precise and its end of life - * you can contact me (d...@canonical.com) if you would like a token for test purposes. + + * Run sudo ubuntu-advantage enable (without sudo it will warn + you), but you need to be an ubuntu-advantage customer to get that token. + In the end, the script simply adds and removes an + /etc/apt/sources.list.d entry. + + * Verify that the MOTD does not contain any mention of ubuntu-advantage + esm or precise and its end of life + + * Verify that ubuntu-advantage enable-esm installs needed dependencies: + - create the following file and its contents to have apt not install recommended packages by default: + $ cat /etc/apt/apt.conf.d/no-recommends + APT::Install-Recommends "false"; + - remove ca-certificates and apt-transport-https: + $ sudo apt remove ca-certificates apt-transport-https + - run sudo ubuntu-advantage enable-esm and verify that the two removed packages are reinstalled + + * you can contact me (d...@canonical.com) if you would like a token for + test purposes. [Regression Potential] * Low, this is a new script, not included in any automated startup paths. [Other Info] * http://blog.dustinkirkland.com/2017/03/ubuntu-1204-esm.html [0] https://insights.ubuntu.com/2017/03/14/introducing-ubuntu-12-04-esm- extended-security-maintenance/ -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ubuntu-advantage-tools in Ubuntu. https://bugs.launchpad.net/bugs/1686183 Title: Ship ubuntu-advantage in ubuntu-minimal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1686183/+subscriptions -- Ubuntu-serve
[Bug 1686183] Re: Ship ubuntu-advantage in ubuntu-minimal
Zesty verification with ubuntu-advantage-tools 2 from zesty-proposed: *** 2 500 500 http://br.archive.ubuntu.com/ubuntu zesty-proposed/main amd64 Packages a) Since there is no ESM for zesty, the enable-esm command fails with a 404 Not found error: $ sudo ubuntu-advantage enable-esm Running apt-get update... W: The repository 'https://esm.ubuntu.com/ubuntu zesty Release' does not have a Release file. E: Failed to fetch https://esm.ubuntu.com/ubuntu/dists/zesty/main/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. apt-get update will remain in this state until esm is disabled. This will probably affect the "package update count" message that is displayed in the MOTD (unrelated to ubuntu-advantage or ESM), since apt- get update is erroring. b) No ubuntu-advantage related messages are shown in MOTD, regardless if esm is enabled or not, which is correct for non-precise releases of Ubuntu. ** Tags removed: verification-needed-zesty ** Tags added: verification-done-zesty ** Tags removed: verification-needed-xenial ** Tags added: verification-done-xenial -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ubuntu-advantage-tools in Ubuntu. https://bugs.launchpad.net/bugs/1686183 Title: Ship ubuntu-advantage in ubuntu-minimal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1686183/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1686183] Re: Ship ubuntu-advantage in ubuntu-minimal
Xenial verification with ubuntu-advantage-tools 2 from xenial-proposed: *** 2 500 500 http://br.archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages a) Since there is no ESM avaiable for xenial, enabling esm fails: ubuntu@xenial-ubuntu-advantage:~$ sudo ubuntu-advantage enable-esm Running apt-get update... W: The repository 'https://esm.ubuntu.com/ubuntu xenial Release' does not have a Release file. E: Failed to fetch https://esm.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. ubuntu@xenial-ubuntu-advantage:~$ echo $? 100 apt-get update commands will continue to fail like above until ESM is disabled with "sudo ubuntu-advantage disable-esm". b) MOTD is unaffected by esm, enabled or not, since we are not running on precise. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ubuntu-advantage-tools in Ubuntu. https://bugs.launchpad.net/bugs/1686183 Title: Ship ubuntu-advantage in ubuntu-minimal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1686183/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1686183] Re: Ship ubuntu-advantage in ubuntu-minimal
Trusty verification using the ubuntu-advantage-tools package from trusty-proposed: *** 2 0 500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages a) enabling esm Installation works, but enabling esm is not a good experience: """ $ sudo ubuntu-advantage enable-esm Running apt-get update... W: Failed to fetch https://esm.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages HttpError404 E: Some index files failed to download. They have been ignored, or old ones used instead. $ echo $? 100 """ Since there is no ESM for non-precise Ubuntu releases, it fails correctly with a 404 error. Is that acceptable? b) MOTD There is no mention of ESM, precise, or looming end-of-life in the MOTD when logging in, so that's good. ** Tags removed: verification-needed-trusty ** Tags added: verification-done-trusty ** Description changed: The ubuntu-advantage-tools package is a bit odd as it was first landed in precise to support the ESM effort inside canonical. [0] In order to bring this package up to date across other series in ubuntu, it has been recommended by the Ubuntu Foundations team to land into trusty next, then forward-port pocket-copy to all supported series until we get to the devel release. The version here: https://github.com/CanonicalLtd/ubuntu-advantage-script/releases/tag/v2 ... has all on-disk bits correctly working, for all series, but no-ops on any release other than precise (ESM is only for "unsupported" LTS releases as it were). This is a request to land ubuntu-advantage-tools into trusty, then pocket-copy it to supported series of ubuntu once that is finished. [Impact] * Allow ubuntu-advantage users to access the extended security maintenance script with a simple command line tool. This script needs to hit precise machines and be easy for ubuntu-advantage customers to enable, thus basefiles was chosen as a home. [Test Case] * Run ubuntu-advantage, it should print out help * Run sudo ubuntu-advantage enable (without sudo it will warn you), but you need to be an ubuntu-advantage customer to get that token. In the end, the script simply adds and removes an /etc/apt/sources.list.d entry. + * Verify that the MOTD does not contain any mention of ubuntu-advantage esm or precise and its end of life * you can contact me (d...@canonical.com) if you would like a token for test purposes. [Regression Potential] * Low, this is a new script, not included in any automated startup paths. [Other Info] * http://blog.dustinkirkland.com/2017/03/ubuntu-1204-esm.html [0] https://insights.ubuntu.com/2017/03/14/introducing-ubuntu-12-04-esm- extended-security-maintenance/ -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ubuntu-advantage-tools in Ubuntu. https://bugs.launchpad.net/bugs/1686183 Title: Ship ubuntu-advantage in ubuntu-minimal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1686183/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1686183] Re: Ship ubuntu-advantage in ubuntu-minimal
This is bit of a funky SRU (IMO). It seems like we want version 2 (from the linked repository) in all releases > 12.04. However, given that is not yet present in any release != 12.04, I'm not sure we need to worry about the exact version (that is, they can all be 2?). My immediate feedback is the debian/changelog from the linked repo should be for artful, not precise. Then that can be backported (I think) to all releases != 12.04. If this already existed, it seems like it would say "trusty" and then have been copied forward. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ubuntu-advantage-tools in Ubuntu. https://bugs.launchpad.net/bugs/1686183 Title: Ship ubuntu-advantage in ubuntu-minimal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1686183/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs