Merge ~lamoura/ubuntu/+source/ubuntu-advantage-tools:upload-29.4-mantic into ubuntu/+source/ubuntu-advantage-tools:ubuntu/devel

Proposed by Lucas Albuquerque Medeiros de Moura
Status: Merged
Merged at revision: 1bec70b5ccbe93ecdc479cae9563d1746823c51f
Proposed branch: ~lamoura/ubuntu/+source/ubuntu-advantage-tools:upload-29.4-mantic
Merge into: ubuntu/+source/ubuntu-advantage-tools:ubuntu/devel
Diff against target: 929 lines (+112/-133)
19 files modified
debian/changelog (+7/-0)
dev/null (+0/-10)
features/airgapped.feature (+2/-2)
features/anbox.feature (+0/-14)
features/api_packages.feature (+1/-1)
features/attach_validtoken.feature (+4/-3)
features/attached_commands.feature (+1/-1)
features/attached_enable.feature (+20/-24)
features/attached_status.feature (+5/-1)
features/cloud.py (+2/-2)
features/enable_fips_vm.feature (+6/-6)
features/livepatch.feature (+2/-0)
features/proxy_config.feature (+6/-0)
features/ubuntu_pro.feature (+21/-21)
features/ubuntu_pro_fips.feature (+24/-24)
features/unattached_status.feature (+9/-21)
setup.py (+0/-1)
tools/run-integration-tests.py (+1/-1)
uaclient/version.py (+1/-1)
Reviewer Review Type Date Requested Status
Andreas Hasenack Approve
Canonical Server Reporter Pending
Review via email: mp+451117@code.launchpad.net

Description of the change

Release 29.4 of the Pro client. This release only removes the pin files for the ESM services

To post a comment you must log in.
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The diff is comprised of the reverts, and some test changes.

The package builds find, and I checked upgrades. In mantic, we get the expected conf file prompt when upgrading to the current version in mantic, and when upgrading further to this branch's version, no further prompts and things are left as they were.

The sru/release-29 directory still contains a test for the pinning that is being dropped here, but the tests in the sru directory are not part of an automated test suite, and are only run manually when the SRU verification time comes, so this particular test can be skipped this time without issues.

+1

I will hold off on the mantic upload because the cpc team still needs the 29.3 version in the archive to test their fix for LP: #2033308.

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Uploaded to lunar, jammy, focal, bionic, and xenial, with .changes file starting on version 29.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 308c1d7..e37337b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1ubuntu-advantage-tools (29.4) mantic; urgency=medium
2
3 * esm: remove static config file that pin packages from esm-infra
4 and esm-apps
5
6 -- Lucas Moura <lucas.moura@canonical.com> Wed, 06 Sep 2023 10:50:50 -0300
7
1ubuntu-advantage-tools (29.3) mantic; urgency=medium8ubuntu-advantage-tools (29.3) mantic; urgency=medium
29
3 * api: fix circular import that prevents enabled_services10 * api: fix circular import that prevents enabled_services
diff --git a/features/airgapped.feature b/features/airgapped.feature
index 2f7d806..0547b74 100644
--- a/features/airgapped.feature
+++ b/features/airgapped.feature
@@ -41,11 +41,11 @@ Feature: Performing attach using ua-airgapped
41 When I run `apt-cache policy hello` with sudo41 When I run `apt-cache policy hello` with sudo
42 Then stdout matches regexp:42 Then stdout matches regexp:
43 """43 """
44 510 .*:9000/ubuntu jammy-apps-security/main44 500 .*:9000/ubuntu jammy-apps-security/main
45 """45 """
46 And stdout matches regexp:46 And stdout matches regexp:
47 """47 """
48 510 .*:8000/ubuntu jammy-infra-security/main48 500 .*:8000/ubuntu jammy-infra-security/main
49 """49 """
50 Then I verify that running `pro refresh` `with sudo` exits `0`50 Then I verify that running `pro refresh` `with sudo` exits `0`
5151
diff --git a/features/anbox.feature b/features/anbox.feature
index 424b575..4c4db4d 100644
--- a/features/anbox.feature
+++ b/features/anbox.feature
@@ -74,20 +74,6 @@ Feature: Enable anbox on Ubuntu
74 Given a `<release>` machine with ubuntu-advantage-tools installed74 Given a `<release>` machine with ubuntu-advantage-tools installed
75 When I attach `contract_token` with sudo and options `--no-auto-enable`75 When I attach `contract_token` with sudo and options `--no-auto-enable`
76 And I run `snap remove lxd` with sudo76 And I run `snap remove lxd` with sudo
77 And I set the machine token overlay to the following yaml
78 """
79 machineTokenInfo:
80 contractInfo:
81 resourceEntitlements:
82 - type: anbox-cloud
83 directives:
84 requiredSnaps:
85 - name: lxd
86 channel: 5.0/stable
87 - name: amc
88 - name: anbox-cloud-appliance
89 classicConfinementSupport: true
90 """
91 And I run `pro enable anbox-cloud --access-only --assume-yes` with sudo77 And I run `pro enable anbox-cloud --access-only --assume-yes` with sudo
92 Then I will see the following on stdout:78 Then I will see the following on stdout:
93 """79 """
diff --git a/features/api_packages.feature b/features/api_packages.feature
index daef767..3123d62 100644
--- a/features/api_packages.feature
+++ b/features/api_packages.feature
@@ -35,4 +35,4 @@ Feature: Package related API endpoints
35 | bionic | libcurl4 | 7.58.0-2ubuntu3 | standard-security |35 | bionic | libcurl4 | 7.58.0-2ubuntu3 | standard-security |
36 | focal | libcurl4 | 7.68.0-1ubuntu2 | standard-security |36 | focal | libcurl4 | 7.68.0-1ubuntu2 | standard-security |
37 | jammy | libcurl4 | 7.81.0-1 | standard-security |37 | jammy | libcurl4 | 7.81.0-1 | standard-security |
38 | lunar | libcurl4 | 7.88.1-8ubuntu1 | standard-updates |38 | lunar | libcurl4 | 7.88.1-8ubuntu1 | standard-security |
diff --git a/features/attach_validtoken.feature b/features/attach_validtoken.feature
index d987db0..77da4b3 100644
--- a/features/attach_validtoken.feature
+++ b/features/attach_validtoken.feature
@@ -28,6 +28,7 @@ Feature: Command behaviour when attaching a machine to an Ubuntu Pro
28 esm-infra +yes +n/a +Expanded Security Maintenance for Infrastructure28 esm-infra +yes +n/a +Expanded Security Maintenance for Infrastructure
29 fips +yes +n/a +NIST-certified core packages29 fips +yes +n/a +NIST-certified core packages
30 fips-updates +yes +n/a +NIST-certified core packages with priority security updates30 fips-updates +yes +n/a +NIST-certified core packages with priority security updates
31 landscape +yes +<landscape> +Management and administration tool for Ubuntu
31 livepatch +yes +n/a +Canonical Livepatch service32 livepatch +yes +n/a +Canonical Livepatch service
32 """33 """
33 And stdout does not match regexp:34 And stdout does not match regexp:
@@ -36,9 +37,9 @@ Feature: Command behaviour when attaching a machine to an Ubuntu Pro
36 """37 """
3738
38 Examples: ubuntu release39 Examples: ubuntu release
39 | release |40 | release | landscape |
40 | lunar |41 | lunar | n/a |
41 | mantic |42 | mantic | yes |
4243
43 @series.lts44 @series.lts
44 @uses.config.machine_type.lxd-container45 @uses.config.machine_type.lxd-container
diff --git a/features/attached_commands.feature b/features/attached_commands.feature
index 932ffce..6f5c45f 100644
--- a/features/attached_commands.feature
+++ b/features/attached_commands.feature
@@ -263,7 +263,7 @@ Feature: Command behaviour when attached to an Ubuntu Pro subscription
263 Examples: ubuntu release263 Examples: ubuntu release
264 | release | anbox | esm-apps | cc-eal | cis | fips | fips-update | ros | cis_or_usg | realtime-kernel |264 | release | anbox | esm-apps | cc-eal | cis | fips | fips-update | ros | cis_or_usg | realtime-kernel |
265 | xenial | no | yes | yes | yes | yes | yes | yes | cis | no |265 | xenial | no | yes | yes | yes | yes | yes | yes | cis | no |
266 | bionic | yes | yes | yes | yes | yes | yes | yes | cis | no |266 | bionic | no | yes | yes | yes | yes | yes | yes | cis | no |
267 | focal | yes | yes | no | yes | yes | yes | no | usg | no |267 | focal | yes | yes | no | yes | yes | yes | no | usg | no |
268 | jammy | yes | yes | no | yes | no | no | no | usg | yes |268 | jammy | yes | yes | no | yes | no | no | no | usg | yes |
269269
diff --git a/features/attached_enable.feature b/features/attached_enable.feature
index a779da4..7501b19 100644
--- a/features/attached_enable.feature
+++ b/features/attached_enable.feature
@@ -233,20 +233,16 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
233 See: sudo pro status233 See: sudo pro status
234 """234 """
235 When I run `apt-cache policy` with sudo235 When I run `apt-cache policy` with sudo
236 Then apt-cache policy for the following url has permission `510`236 Then apt-cache policy for the following url has permission `500`
237 """237 """
238 <esm-infra-url> <release>-infra-updates/main amd64 Packages238 <esm-infra-url> <release>-infra-updates/main amd64 Packages
239 """239 """
240 And apt-cache policy for the following url has permission `510`
241 """
242 <esm-infra-url> <release>-infra-security/main amd64 Packages
243 """
244 And I verify that running `apt update` `with sudo` exits `0`240 And I verify that running `apt update` `with sudo` exits `0`
245 When I run `apt install -y <infra-pkg>` with sudo, retrying exit [100]241 When I run `apt install -y <infra-pkg>` with sudo, retrying exit [100]
246 And I run `apt-cache policy <infra-pkg>` as non-root242 And I run `apt-cache policy <infra-pkg>` as non-root
247 Then stdout matches regexp:243 Then stdout matches regexp:
248 """244 """
249 \s*510 <esm-infra-url> <release>-infra-security/main amd64 Packages245 \s*500 <esm-infra-url> <release>-infra-security/main amd64 Packages
250 """246 """
251247
252 Examples: ubuntu release248 Examples: ubuntu release
@@ -573,7 +569,7 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
573 esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure569 esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure
574 fips +yes +disabled +NIST-certified core packages570 fips +yes +disabled +NIST-certified core packages
575 fips-updates +yes +disabled +NIST-certified core packages with priority security updates571 fips-updates +yes +disabled +NIST-certified core packages with priority security updates
576 livepatch +yes +enabled +Canonical Livepatch service572 livepatch +yes +<livepatch_status> +Canonical Livepatch service
577 """573 """
578 When I run `pro disable livepatch` with sudo574 When I run `pro disable livepatch` with sudo
579 Then I verify that running `canonical-livepatch status` `with sudo` exits `1`575 Then I verify that running `canonical-livepatch status` `with sudo` exits `1`
@@ -599,9 +595,9 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
599 """595 """
600596
601 Examples: ubuntu release597 Examples: ubuntu release
602 | release |598 | release | livepatch_status |
603 | xenial |599 | xenial | warning |
604 | bionic |600 | bionic | enabled |
605601
606 @series.xenial602 @series.xenial
607 @series.bionic603 @series.bionic
@@ -661,7 +657,7 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
661 When I run `pro status` with sudo657 When I run `pro status` with sudo
662 Then stdout matches regexp:658 Then stdout matches regexp:
663 """659 """
664 livepatch +yes +enabled660 livepatch +yes +<livepatch_status>
665 """661 """
666 When I run `canonical-livepatch status` with sudo662 When I run `canonical-livepatch status` with sudo
667 Then stdout matches regexp:663 Then stdout matches regexp:
@@ -670,9 +666,9 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
670 """666 """
671667
672 Examples: ubuntu release668 Examples: ubuntu release
673 | release |669 | release | livepatch_status |
674 | xenial |670 | xenial | warning |
675 | bionic |671 | bionic | enabled |
676672
677 @series.xenial673 @series.xenial
678 @uses.config.machine_type.lxd-vm674 @uses.config.machine_type.lxd-vm
@@ -687,12 +683,12 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
687 When I run `pro status` with sudo683 When I run `pro status` with sudo
688 Then stdout matches regexp:684 Then stdout matches regexp:
689 """685 """
690 livepatch +yes +enabled686 livepatch +yes +warning
691 """687 """
692 When I run `pro api u.pro.security.status.reboot_required.v1` with sudo688 When I run `pro api u.pro.security.status.reboot_required.v1` with sudo
693 Then stdout matches regexp:689 Then stdout matches regexp:
694 """690 """
695 {"_schema_version": "v1", "data": {"attributes": {"livepatch_enabled": true, "livepatch_enabled_and_kernel_patched": true, "livepatch_state": "applied", "livepatch_support": "supported", "reboot_required": "no", "reboot_required_packages": {"kernel_packages": null, "standard_packages": null}}, "meta": {"environment_vars": \[\]}, "type": "RebootRequired"}, "errors": \[\], "result": "success", "version": ".*", "warnings": \[\]}691 {"_schema_version": "v1", "data": {"attributes": {"livepatch_enabled": true, "livepatch_enabled_and_kernel_patched": true, "livepatch_state": "applied", "livepatch_support": "kernel-upgrade-required", "reboot_required": "no", "reboot_required_packages": {"kernel_packages": null, "standard_packages": null}}, "meta": {"environment_vars": \[\]}, "type": "RebootRequired"}, "errors": \[\], "result": "success", "version": ".*", "warnings": \[\]}
696 """692 """
697 When I run `pro system reboot-required` as non-root693 When I run `pro system reboot-required` as non-root
698 Then I will see the following on stdout:694 Then I will see the following on stdout:
@@ -703,7 +699,7 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
703 And I run `pro api u.pro.security.status.reboot_required.v1` as non-root699 And I run `pro api u.pro.security.status.reboot_required.v1` as non-root
704 Then stdout matches regexp:700 Then stdout matches regexp:
705 """701 """
706 {"_schema_version": "v1", "data": {"attributes": {"livepatch_enabled": true, "livepatch_enabled_and_kernel_patched": true, "livepatch_state": "applied", "livepatch_support": "supported", "reboot_required": "yes", "reboot_required_packages": {"kernel_packages": \[\], "standard_packages": \["libc6"\]}}, "meta": {"environment_vars": \[\]}, "type": "RebootRequired"}, "errors": \[\], "result": "success", "version": ".*", "warnings": \[\]}702 {"_schema_version": "v1", "data": {"attributes": {"livepatch_enabled": true, "livepatch_enabled_and_kernel_patched": true, "livepatch_state": "applied", "livepatch_support": "kernel-upgrade-required", "reboot_required": "yes", "reboot_required_packages": {"kernel_packages": \[\], "standard_packages": \["libc6"\]}}, "meta": {"environment_vars": \[\]}, "type": "RebootRequired"}, "errors": \[\], "result": "success", "version": ".*", "warnings": \[\]}
707 """703 """
708 When I run `pro system reboot-required` as non-root704 When I run `pro system reboot-required` as non-root
709 Then I will see the following on stdout:705 Then I will see the following on stdout:
@@ -720,18 +716,18 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
720 And I run `pro api u.pro.security.status.reboot_required.v1` as non-root716 And I run `pro api u.pro.security.status.reboot_required.v1` as non-root
721 Then stdout matches regexp:717 Then stdout matches regexp:
722 """718 """
723 {"_schema_version": "v1", "data": {"attributes": {"livepatch_enabled": true, "livepatch_enabled_and_kernel_patched": true, "livepatch_state": "applied", "livepatch_support": "supported", "reboot_required": "yes-kernel-livepatches-applied", "reboot_required_packages": {"kernel_packages": \["linux-base"\], "standard_packages": \[\]}}, "meta": {"environment_vars": \[\]}, "type": "RebootRequired"}, "errors": \[\], "result": "success", "version": ".*", "warnings": \[\]}719 {"_schema_version": "v1", "data": {"attributes": {"livepatch_enabled": true, "livepatch_enabled_and_kernel_patched": true, "livepatch_state": "applied", "livepatch_support": "kernel-upgrade-required", "reboot_required": "yes", "reboot_required_packages": {"kernel_packages": \["linux-base"\], "standard_packages": \[\]}}, "meta": {"environment_vars": \[\]}, "type": "RebootRequired"}, "errors": \[\], "result": "success", "version": ".*", "warnings": \[\]}
724 """720 """
725 When I run `pro system reboot-required` as non-root721 When I run `pro system reboot-required` as non-root
726 Then I will see the following on stdout:722 Then I will see the following on stdout:
727 """723 """
728 yes-kernel-livepatches-applied724 yes
729 """725 """
730 When I run `apt-get install dbus -y` with sudo726 When I run `apt-get install dbus -y` with sudo
731 And I run `pro api u.pro.security.status.reboot_required.v1` with sudo727 And I run `pro api u.pro.security.status.reboot_required.v1` with sudo
732 Then stdout matches regexp:728 Then stdout matches regexp:
733 """729 """
734 {"_schema_version": "v1", "data": {"attributes": {"livepatch_enabled": true, "livepatch_enabled_and_kernel_patched": true, "livepatch_state": "applied", "livepatch_support": "supported", "reboot_required": "yes", "reboot_required_packages": {"kernel_packages": \["linux-base"\], "standard_packages": \["dbus"\]}}, "meta": {"environment_vars": \[\]}, "type": "RebootRequired"}, "errors": \[\], "result": "success", "version": ".*", "warnings": \[\]}730 {"_schema_version": "v1", "data": {"attributes": {"livepatch_enabled": true, "livepatch_enabled_and_kernel_patched": true, "livepatch_state": "applied", "livepatch_support": "kernel-upgrade-required", "reboot_required": "yes", "reboot_required_packages": {"kernel_packages": \["linux-base"\], "standard_packages": \["dbus"\]}}, "meta": {"environment_vars": \[\]}, "type": "RebootRequired"}, "errors": \[\], "result": "success", "version": ".*", "warnings": \[\]}
735 """731 """
736 When I run `pro system reboot-required` as non-root732 When I run `pro system reboot-required` as non-root
737 Then I will see the following on stdout:733 Then I will see the following on stdout:
@@ -1128,11 +1124,11 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
1128 """1124 """
1129 And I verify that running `apt update` `with sudo` exits `0`1125 And I verify that running `apt update` `with sudo` exits `0`
1130 When I run `apt-cache policy` as non-root1126 When I run `apt-cache policy` as non-root
1131 Then apt-cache policy for the following url has permission `510`1127 Then apt-cache policy for the following url has permission `500`
1132 """1128 """
1133 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages1129 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages
1134 """1130 """
1135 And apt-cache policy for the following url has permission `510`1131 And apt-cache policy for the following url has permission `500`
1136 """1132 """
1137 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages1133 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
1138 """1134 """
@@ -1142,8 +1138,8 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
1142 Then stdout matches regexp:1138 Then stdout matches regexp:
1143 """1139 """
1144 Version table:1140 Version table:
1145 \s*\*\*\* .* 5101141 \s*\*\*\* .* 500
1146 \s*510 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages1142 \s*500 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
1147 """1143 """
1148 When I verify that running `pro enable esm-apps` `with sudo` exits `1`1144 When I verify that running `pro enable esm-apps` `with sudo` exits `1`
1149 Then stdout matches regexp1145 Then stdout matches regexp
diff --git a/features/attached_status.feature b/features/attached_status.feature
index b59f0bd..a6bcd07 100644
--- a/features/attached_status.feature
+++ b/features/attached_status.feature
@@ -116,6 +116,7 @@ Feature: Attached status
116 esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure116 esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure
117 fips +yes +disabled +NIST-certified core packages117 fips +yes +disabled +NIST-certified core packages
118 fips-updates +yes +disabled +NIST-certified core packages with priority security updates118 fips-updates +yes +disabled +NIST-certified core packages with priority security updates
119 landscape +yes +n/a +Management and administration tool for Ubuntu
119 livepatch +yes +n/a +Canonical Livepatch service120 livepatch +yes +n/a +Canonical Livepatch service
120 realtime-kernel +yes +n/a +Ubuntu kernel with PREEMPT_RT patches integrated121 realtime-kernel +yes +n/a +Ubuntu kernel with PREEMPT_RT patches integrated
121 ros +yes +disabled +Security Updates for the Robot Operating System122 ros +yes +disabled +Security Updates for the Robot Operating System
@@ -139,6 +140,7 @@ Feature: Attached status
139 Then stdout matches regexp:140 Then stdout matches regexp:
140 """141 """
141 SERVICE +ENTITLED +STATUS +DESCRIPTION142 SERVICE +ENTITLED +STATUS +DESCRIPTION
143 anbox-cloud +yes +disabled +.*
142 esm-apps +yes +enabled +Expanded Security Maintenance for Applications144 esm-apps +yes +enabled +Expanded Security Maintenance for Applications
143 esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure145 esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure
144 fips +yes +disabled +NIST-certified core packages146 fips +yes +disabled +NIST-certified core packages
@@ -153,12 +155,13 @@ Feature: Attached status
153 Then stdout matches regexp:155 Then stdout matches regexp:
154 """156 """
155 SERVICE +ENTITLED +STATUS +DESCRIPTION157 SERVICE +ENTITLED +STATUS +DESCRIPTION
156 anbox-cloud +yes +n/a +.*158 anbox-cloud +yes +disabled +.*
157 cc-eal +yes +n/a +Common Criteria EAL2 Provisioning Packages159 cc-eal +yes +n/a +Common Criteria EAL2 Provisioning Packages
158 esm-apps +yes +enabled +Expanded Security Maintenance for Applications160 esm-apps +yes +enabled +Expanded Security Maintenance for Applications
159 esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure161 esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure
160 fips +yes +disabled +NIST-certified core packages162 fips +yes +disabled +NIST-certified core packages
161 fips-updates +yes +disabled +NIST-certified core packages with priority security updates163 fips-updates +yes +disabled +NIST-certified core packages with priority security updates
164 landscape +yes +n/a +Management and administration tool for Ubuntu
162 livepatch +yes +n/a +Canonical Livepatch service165 livepatch +yes +n/a +Canonical Livepatch service
163 realtime-kernel +yes +n/a +Ubuntu kernel with PREEMPT_RT patches integrated166 realtime-kernel +yes +n/a +Ubuntu kernel with PREEMPT_RT patches integrated
164 ros +yes +n/a +Security Updates for the Robot Operating System167 ros +yes +n/a +Security Updates for the Robot Operating System
@@ -201,6 +204,7 @@ Feature: Attached status
201 esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure204 esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure
202 fips +yes +n/a +NIST-certified core packages205 fips +yes +n/a +NIST-certified core packages
203 fips-updates +yes +n/a +NIST-certified core packages with priority security updates206 fips-updates +yes +n/a +NIST-certified core packages with priority security updates
207 landscape +yes +n/a +Management and administration tool for Ubuntu
204 livepatch +yes +n/a +Canonical Livepatch service208 livepatch +yes +n/a +Canonical Livepatch service
205 realtime-kernel +yes +n/a +Ubuntu kernel with PREEMPT_RT patches integrated209 realtime-kernel +yes +n/a +Ubuntu kernel with PREEMPT_RT patches integrated
206 ├ generic +yes +n/a +Generic version of the RT kernel \(default\)210 ├ generic +yes +n/a +Generic version of the RT kernel \(default\)
diff --git a/features/cloud.py b/features/cloud.py
index 8f3bcb0..cef4719 100644
--- a/features/cloud.py
+++ b/features/cloud.py
@@ -327,9 +327,9 @@ class EC2(Cloud):
327 An AWS cloud provider instance327 An AWS cloud provider instance
328 """328 """
329 if not image_name:329 if not image_name:
330 if series == "xenial" and "pro" not in machine_type:330 if series in ("xenial", "bionic") and "pro" not in machine_type:
331 logging.debug(331 logging.debug(
332 "defaulting to non-daily image for awsgeneric-16.04"332 "defaulting to non-daily image for awsgeneric-[16|18].04"
333 )333 )
334 daily = False334 daily = False
335 else:335 else:
diff --git a/features/enable_fips_vm.feature b/features/enable_fips_vm.feature
index f27a5e9..5724375 100644
--- a/features/enable_fips_vm.feature
+++ b/features/enable_fips_vm.feature
@@ -285,7 +285,7 @@ Feature: FIPS enablement in lxd VMs
285 """285 """
286 Then stdout matches regexp:286 Then stdout matches regexp:
287 """287 """
288 livepatch +yes enabled288 livepatch +yes +<livepatch_status>
289 """289 """
290 When I run `pro enable fips-updates --assume-yes` with sudo290 When I run `pro enable fips-updates --assume-yes` with sudo
291 Then stdout matches regexp:291 Then stdout matches regexp:
@@ -302,7 +302,7 @@ Feature: FIPS enablement in lxd VMs
302 """302 """
303 Then stdout matches regexp:303 Then stdout matches regexp:
304 """304 """
305 livepatch +yes enabled305 livepatch +yes +<livepatch_status>
306 """306 """
307 When I reboot the machine307 When I reboot the machine
308 And I run `uname -r` as non-root308 And I run `uname -r` as non-root
@@ -322,12 +322,12 @@ Feature: FIPS enablement in lxd VMs
322 """322 """
323 Then stdout matches regexp:323 Then stdout matches regexp:
324 """324 """
325 livepatch +yes enabled325 livepatch +yes +enabled
326 """326 """
327 Examples: ubuntu release327 Examples: ubuntu release
328 | release |328 | release | livepatch_status |
329 | xenial |329 | xenial | warning |
330 | bionic |330 | bionic | enabled |
331331
332 @slow332 @slow
333 @series.focal333 @series.focal
diff --git a/features/livepatch.feature b/features/livepatch.feature
index 4899ce0..7388ea1 100644
--- a/features/livepatch.feature
+++ b/features/livepatch.feature
@@ -8,6 +8,8 @@ Feature: Livepatch
8 Given a `<release>` `<machine_type>` machine with ubuntu-advantage-tools installed8 Given a `<release>` `<machine_type>` machine with ubuntu-advantage-tools installed
9 When I change config key `livepatch_url` to use value `<livepatch_url>`9 When I change config key `livepatch_url` to use value `<livepatch_url>`
10 Then I verify that no files exist matching `/home/ubuntu/.cache/ubuntu-pro/livepatch-kernel-support-cache.json`10 Then I verify that no files exist matching `/home/ubuntu/.cache/ubuntu-pro/livepatch-kernel-support-cache.json`
11 # This is needed because `apt update` creates this file before, and we need to make sure it is created correctly later
12 When I delete the file `/run/ubuntu-advantage/livepatch-kernel-support-cache.json`
11 When I run `pro status` as non-root13 When I run `pro status` as non-root
12 Then I verify that files exist matching `/home/ubuntu/.cache/ubuntu-pro/livepatch-kernel-support-cache.json`14 Then I verify that files exist matching `/home/ubuntu/.cache/ubuntu-pro/livepatch-kernel-support-cache.json`
13 Then I verify that no files exist matching `/run/ubuntu-advantage/livepatch-kernel-support-cache.json`15 Then I verify that no files exist matching `/run/ubuntu-advantage/livepatch-kernel-support-cache.json`
diff --git a/features/proxy_config.feature b/features/proxy_config.feature
index 755f5dc..73f432e 100644
--- a/features/proxy_config.feature
+++ b/features/proxy_config.feature
@@ -123,6 +123,7 @@ Feature: Proxy configuration
123 """123 """
124 \"http://host:port\" is not a valid url. Not setting as proxy124 \"http://host:port\" is not a valid url. Not setting as proxy
125 """125 """
126 When I run `apt install python3-pycurl -y` with sudo
126 And I verify that running `pro config set ua_apt_https_proxy=https://localhost:12345` `with sudo` exits `1`127 And I verify that running `pro config set ua_apt_https_proxy=https://localhost:12345` `with sudo` exits `1`
127 Then stderr matches regexp:128 Then stderr matches regexp:
128 """129 """
@@ -231,6 +232,7 @@ Feature: Proxy configuration
231 "https_proxy": "invalidurls"232 "https_proxy": "invalidurls"
232 }233 }
233 """234 """
235 And I run `apt install python3-pycurl -y` with sudo
234 And I verify that running `pro refresh config` `with sudo` exits `1`236 And I verify that running `pro refresh config` `with sudo` exits `1`
235 Then stderr matches regexp:237 Then stderr matches regexp:
236 """238 """
@@ -509,6 +511,7 @@ Feature: Proxy configuration
509 "ua_apt_https_proxy": "https://localhost:12345"511 "ua_apt_https_proxy": "https://localhost:12345"
510 }512 }
511 """513 """
514 And I run `apt install python3-pycurl -y` with sudo
512 And I verify that running `pro refresh config` `with sudo` exits `1`515 And I verify that running `pro refresh config` `with sudo` exits `1`
513 Then stderr matches regexp:516 Then stderr matches regexp:
514 """517 """
@@ -604,6 +607,7 @@ Feature: Proxy configuration
604 "ua_apt_https_proxy": "http://wronguser:wrongpassword@$behave_var{machine-ip proxy}:3128"607 "ua_apt_https_proxy": "http://wronguser:wrongpassword@$behave_var{machine-ip proxy}:3128"
605 }608 }
606 """609 """
610 And I run `apt install python3-pycurl -y` with sudo
607 And I verify that running `pro refresh config` `with sudo` exits `1`611 And I verify that running `pro refresh config` `with sudo` exits `1`
608 Then stderr matches regexp:612 Then stderr matches regexp:
609 """613 """
@@ -745,6 +749,7 @@ Feature: Proxy configuration
745 """749 """
746 \"http://host:port\" is not a valid url. Not setting as proxy750 \"http://host:port\" is not a valid url. Not setting as proxy
747 """751 """
752 When I run `apt install python3-pycurl -y` with sudo
748 And I verify that running `pro config set global_apt_https_proxy=https://localhost:12345` `with sudo` exits `1`753 And I verify that running `pro config set global_apt_https_proxy=https://localhost:12345` `with sudo` exits `1`
749 Then stderr matches regexp:754 Then stderr matches regexp:
750 """755 """
@@ -1151,6 +1156,7 @@ Feature: Proxy configuration
1151 Acquire::http::Proxy \".*:3128\";1156 Acquire::http::Proxy \".*:3128\";
1152 Acquire::https::Proxy \".*:3128\";1157 Acquire::https::Proxy \".*:3128\";
1153 """1158 """
1159 When I run `apt install python3-pycurl -y` with sudo
1154 And I verify that running `pro config set apt_https_proxy=https://localhost:12345` `with sudo` exits `1`1160 And I verify that running `pro config set apt_https_proxy=https://localhost:12345` `with sudo` exits `1`
1155 Then stdout matches regexp:1161 Then stdout matches regexp:
1156 """1162 """
diff --git a/features/ubuntu_pro.feature b/features/ubuntu_pro.feature
index d7578d4..a5f1b98 100644
--- a/features/ubuntu_pro.feature
+++ b/features/ubuntu_pro.feature
@@ -289,19 +289,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
289 To use a different subscription first run: sudo pro detach.289 To use a different subscription first run: sudo pro detach.
290 """290 """
291 When I run `apt-cache policy` with sudo291 When I run `apt-cache policy` with sudo
292 Then apt-cache policy for the following url has permission `510`292 Then apt-cache policy for the following url has permission `500`
293 """293 """
294 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages294 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
295 """295 """
296 And apt-cache policy for the following url has permission `510`296 And apt-cache policy for the following url has permission `500`
297 """297 """
298 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages298 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages
299 """299 """
300 And apt-cache policy for the following url has permission `510`300 And apt-cache policy for the following url has permission `500`
301 """301 """
302 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages302 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages
303 """303 """
304 And apt-cache policy for the following url has permission `510`304 And apt-cache policy for the following url has permission `500`
305 """305 """
306 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages306 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
307 """307 """
@@ -310,7 +310,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
310 And I run `apt-cache policy <infra-pkg>` as non-root310 And I run `apt-cache policy <infra-pkg>` as non-root
311 Then stdout matches regexp:311 Then stdout matches regexp:
312 """312 """
313 \s*510 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages313 \s*500 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
314 """314 """
315 And stdout matches regexp:315 And stdout matches regexp:
316 """316 """
@@ -321,8 +321,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
321 Then stdout matches regexp:321 Then stdout matches regexp:
322 """322 """
323 Version table:323 Version table:
324 \s*\*\*\* .* 510324 \s*\*\*\* .* 500
325 \s*510 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages325 \s*500 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
326 """326 """
327 When I create the file `/var/lib/ubuntu-advantage/marker-reboot-cmds-required` with the following:327 When I create the file `/var/lib/ubuntu-advantage/marker-reboot-cmds-required` with the following:
328 """328 """
@@ -416,19 +416,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
416 To use a different subscription first run: sudo pro detach.416 To use a different subscription first run: sudo pro detach.
417 """417 """
418 When I run `apt-cache policy` with sudo418 When I run `apt-cache policy` with sudo
419 Then apt-cache policy for the following url has permission `510`419 Then apt-cache policy for the following url has permission `500`
420 """420 """
421 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages421 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
422 """422 """
423 And apt-cache policy for the following url has permission `510`423 And apt-cache policy for the following url has permission `500`
424 """424 """
425 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages425 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages
426 """426 """
427 And apt-cache policy for the following url has permission `510`427 And apt-cache policy for the following url has permission `500`
428 """428 """
429 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages429 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages
430 """430 """
431 And apt-cache policy for the following url has permission `510`431 And apt-cache policy for the following url has permission `500`
432 """432 """
433 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages433 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
434 """434 """
@@ -437,7 +437,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
437 And I run `apt-cache policy <infra-pkg>` as non-root437 And I run `apt-cache policy <infra-pkg>` as non-root
438 Then stdout matches regexp:438 Then stdout matches regexp:
439 """439 """
440 \s*510 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages440 \s*500 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
441 """441 """
442 And stdout matches regexp:442 And stdout matches regexp:
443 """443 """
@@ -448,8 +448,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
448 Then stdout matches regexp:448 Then stdout matches regexp:
449 """449 """
450 Version table:450 Version table:
451 \s*\*\*\* .* 510451 \s*\*\*\* .* 500
452 \s*510 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages452 \s*500 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
453 """453 """
454 When I create the file `/var/lib/ubuntu-advantage/marker-reboot-cmds-required` with the following:454 When I create the file `/var/lib/ubuntu-advantage/marker-reboot-cmds-required` with the following:
455 """455 """
@@ -542,19 +542,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
542 To use a different subscription first run: sudo pro detach.542 To use a different subscription first run: sudo pro detach.
543 """543 """
544 When I run `apt-cache policy` with sudo544 When I run `apt-cache policy` with sudo
545 Then apt-cache policy for the following url has permission `510`545 Then apt-cache policy for the following url has permission `500`
546 """546 """
547 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages547 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
548 """548 """
549 And apt-cache policy for the following url has permission `510`549 And apt-cache policy for the following url has permission `500`
550 """550 """
551 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages551 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages
552 """552 """
553 And apt-cache policy for the following url has permission `510`553 And apt-cache policy for the following url has permission `500`
554 """554 """
555 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages555 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages
556 """556 """
557 And apt-cache policy for the following url has permission `510`557 And apt-cache policy for the following url has permission `500`
558 """558 """
559 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages559 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
560 """560 """
@@ -563,7 +563,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
563 And I run `apt-cache policy <infra-pkg>` as non-root563 And I run `apt-cache policy <infra-pkg>` as non-root
564 Then stdout matches regexp:564 Then stdout matches regexp:
565 """565 """
566 \s*510 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages566 \s*500 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
567 """567 """
568 And stdout matches regexp:568 And stdout matches regexp:
569 """569 """
@@ -574,8 +574,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
574 Then stdout matches regexp:574 Then stdout matches regexp:
575 """575 """
576 Version table:576 Version table:
577 \s*\*\*\* .* 510577 \s*\*\*\* .* 500
578 \s*510 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages578 \s*500 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
579 """579 """
580 When I create the file `/var/lib/ubuntu-advantage/marker-reboot-cmds-required` with the following:580 When I create the file `/var/lib/ubuntu-advantage/marker-reboot-cmds-required` with the following:
581 """581 """
diff --git a/features/ubuntu_pro_fips.feature b/features/ubuntu_pro_fips.feature
index df764cf..729e5f4 100644
--- a/features/ubuntu_pro_fips.feature
+++ b/features/ubuntu_pro_fips.feature
@@ -60,19 +60,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image
60 To use a different subscription first run: sudo pro detach.60 To use a different subscription first run: sudo pro detach.
61 """61 """
62 When I run `apt-cache policy` with sudo62 When I run `apt-cache policy` with sudo
63 Then apt-cache policy for the following url has permission `510`63 Then apt-cache policy for the following url has permission `500`
64 """64 """
65 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages65 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
66 """66 """
67 And apt-cache policy for the following url has permission `510`67 And apt-cache policy for the following url has permission `500`
68 """68 """
69 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages69 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages
70 """70 """
71 And apt-cache policy for the following url has permission `510`71 And apt-cache policy for the following url has permission `500`
72 """72 """
73 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages73 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages
74 """74 """
75 And apt-cache policy for the following url has permission `510`75 And apt-cache policy for the following url has permission `500`
76 """76 """
77 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages77 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
78 """78 """
@@ -85,11 +85,11 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image
85 And I run `apt-cache policy <infra-pkg>` as non-root85 And I run `apt-cache policy <infra-pkg>` as non-root
86 Then stdout matches regexp:86 Then stdout matches regexp:
87 """87 """
88 \s*510 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages88 \s*500 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages
89 """89 """
90 Then stdout matches regexp:90 Then stdout matches regexp:
91 """91 """
92 \s*510 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages92 \s*500 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
93 """93 """
94 And stdout matches regexp:94 And stdout matches regexp:
95 """95 """
@@ -100,8 +100,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image
100 Then stdout matches regexp:100 Then stdout matches regexp:
101 """101 """
102 Version table:102 Version table:
103 \s*\*\*\* .* 510103 \s*\*\*\* .* 500
104 \s*510 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages104 \s*500 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
105 """105 """
106 When I run `pro enable fips-updates --assume-yes` with sudo106 When I run `pro enable fips-updates --assume-yes` with sudo
107 Then I will see the following on stdout:107 Then I will see the following on stdout:
@@ -280,19 +280,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image
280 To use a different subscription first run: sudo pro detach.280 To use a different subscription first run: sudo pro detach.
281 """281 """
282 When I run `apt-cache policy` with sudo282 When I run `apt-cache policy` with sudo
283 Then apt-cache policy for the following url has permission `510`283 Then apt-cache policy for the following url has permission `500`
284 """284 """
285 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages285 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
286 """286 """
287 And apt-cache policy for the following url has permission `510`287 And apt-cache policy for the following url has permission `500`
288 """288 """
289 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages289 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages
290 """290 """
291 And apt-cache policy for the following url has permission `510`291 And apt-cache policy for the following url has permission `500`
292 """292 """
293 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages293 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages
294 """294 """
295 And apt-cache policy for the following url has permission `510`295 And apt-cache policy for the following url has permission `500`
296 """296 """
297 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages297 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
298 """298 """
@@ -305,11 +305,11 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image
305 And I run `apt-cache policy <infra-pkg>` as non-root305 And I run `apt-cache policy <infra-pkg>` as non-root
306 Then stdout matches regexp:306 Then stdout matches regexp:
307 """307 """
308 \s*510 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages308 \s*500 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages
309 """309 """
310 Then stdout matches regexp:310 Then stdout matches regexp:
311 """311 """
312 \s*510 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages312 \s*500 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
313 """313 """
314 And stdout matches regexp:314 And stdout matches regexp:
315 """315 """
@@ -320,8 +320,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image
320 Then stdout matches regexp:320 Then stdout matches regexp:
321 """321 """
322 Version table:322 Version table:
323 \s*\*\*\* .* 510323 \s*\*\*\* .* 500
324 \s*510 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages324 \s*500 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
325 """325 """
326 When I run `pro enable fips-updates --assume-yes` with sudo326 When I run `pro enable fips-updates --assume-yes` with sudo
327 Then I will see the following on stdout:327 Then I will see the following on stdout:
@@ -553,19 +553,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image
553 To use a different subscription first run: sudo pro detach.553 To use a different subscription first run: sudo pro detach.
554 """554 """
555 When I run `apt-cache policy` with sudo555 When I run `apt-cache policy` with sudo
556 Then apt-cache policy for the following url has permission `510`556 Then apt-cache policy for the following url has permission `500`
557 """557 """
558 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages558 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
559 """559 """
560 And apt-cache policy for the following url has permission `510`560 And apt-cache policy for the following url has permission `500`
561 """561 """
562 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages562 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages
563 """563 """
564 And apt-cache policy for the following url has permission `510`564 And apt-cache policy for the following url has permission `500`
565 """565 """
566 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages566 https://esm.ubuntu.com/apps/ubuntu <release>-apps-updates/main amd64 Packages
567 """567 """
568 And apt-cache policy for the following url has permission `510`568 And apt-cache policy for the following url has permission `500`
569 """569 """
570 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages570 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
571 """571 """
@@ -578,11 +578,11 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image
578 And I run `apt-cache policy <infra-pkg>` as non-root578 And I run `apt-cache policy <infra-pkg>` as non-root
579 Then stdout matches regexp:579 Then stdout matches regexp:
580 """580 """
581 \s*510 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages581 \s*500 https://esm.ubuntu.com/infra/ubuntu <release>-infra-security/main amd64 Packages
582 """582 """
583 Then stdout matches regexp:583 Then stdout matches regexp:
584 """584 """
585 \s*510 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages585 \s*500 https://esm.ubuntu.com/infra/ubuntu <release>-infra-updates/main amd64 Packages
586 """586 """
587 And stdout matches regexp:587 And stdout matches regexp:
588 """588 """
@@ -593,8 +593,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image
593 Then stdout matches regexp:593 Then stdout matches regexp:
594 """594 """
595 Version table:595 Version table:
596 \s*\*\*\* .* 510596 \s*\*\*\* .* 500
597 \s*510 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages597 \s*500 https://esm.ubuntu.com/apps/ubuntu <release>-apps-security/main amd64 Packages
598 """598 """
599 When I run `pro enable fips-updates --assume-yes` with sudo599 When I run `pro enable fips-updates --assume-yes` with sudo
600 Then I will see the following on stdout:600 Then I will see the following on stdout:
diff --git a/features/unattached_status.feature b/features/unattached_status.feature
index 6eea754..80a35e9 100644
--- a/features/unattached_status.feature
+++ b/features/unattached_status.feature
@@ -58,7 +58,6 @@ Feature: Unattached status
58 esm-infra +yes +Expanded Security Maintenance for Infrastructure58 esm-infra +yes +Expanded Security Maintenance for Infrastructure
59 fips +yes +NIST-certified core packages59 fips +yes +NIST-certified core packages
60 fips-updates +yes +NIST-certified core packages with priority security updates60 fips-updates +yes +NIST-certified core packages with priority security updates
61 landscape +yes +Management and administration tool for Ubuntu
62 livepatch +yes +(Canonical Livepatch service|Current kernel is not supported)61 livepatch +yes +(Canonical Livepatch service|Current kernel is not supported)
63 ros +yes +Security Updates for the Robot Operating System62 ros +yes +Security Updates for the Robot Operating System
64 ros-updates +yes +All Updates for the Robot Operating System63 ros-updates +yes +All Updates for the Robot Operating System
@@ -80,7 +79,7 @@ Feature: Unattached status
80 esm-infra +yes +Expanded Security Maintenance for Infrastructure79 esm-infra +yes +Expanded Security Maintenance for Infrastructure
81 fips +yes +NIST-certified core packages80 fips +yes +NIST-certified core packages
82 fips-updates +yes +NIST-certified core packages with priority security updates81 fips-updates +yes +NIST-certified core packages with priority security updates
83 landscape +yes +Management and administration tool for Ubuntu82 landscape +no +Management and administration tool for Ubuntu
84 livepatch +yes +(Canonical Livepatch service|Current kernel is not supported)83 livepatch +yes +(Canonical Livepatch service|Current kernel is not supported)
85 realtime-kernel +no +Ubuntu kernel with PREEMPT_RT patches integrated84 realtime-kernel +no +Ubuntu kernel with PREEMPT_RT patches integrated
86 ros +yes +Security Updates for the Robot Operating System85 ros +yes +Security Updates for the Robot Operating System
@@ -106,7 +105,6 @@ Feature: Unattached status
106 esm-infra +yes +Expanded Security Maintenance for Infrastructure105 esm-infra +yes +Expanded Security Maintenance for Infrastructure
107 fips +yes +NIST-certified core packages106 fips +yes +NIST-certified core packages
108 fips-updates +yes +NIST-certified core packages with priority security updates107 fips-updates +yes +NIST-certified core packages with priority security updates
109 landscape +yes +Management and administration tool for Ubuntu
110 livepatch +yes +(Canonical Livepatch service|Current kernel is not supported)108 livepatch +yes +(Canonical Livepatch service|Current kernel is not supported)
111 ros +yes +Security Updates for the Robot Operating System109 ros +yes +Security Updates for the Robot Operating System
112 ros-updates +yes +All Updates for the Robot Operating System110 ros-updates +yes +All Updates for the Robot Operating System
@@ -139,7 +137,6 @@ Feature: Unattached status
139 esm-infra +yes +Expanded Security Maintenance for Infrastructure137 esm-infra +yes +Expanded Security Maintenance for Infrastructure
140 fips +yes +NIST-certified core packages138 fips +yes +NIST-certified core packages
141 fips-updates +yes +NIST-certified core packages with priority security updates139 fips-updates +yes +NIST-certified core packages with priority security updates
142 landscape +yes +Management and administration tool for Ubuntu
143 livepatch +yes +Canonical Livepatch service140 livepatch +yes +Canonical Livepatch service
144 usg +yes +Security compliance and audit tools141 usg +yes +Security compliance and audit tools
145142
@@ -159,7 +156,7 @@ Feature: Unattached status
159 esm-infra +yes +Expanded Security Maintenance for Infrastructure156 esm-infra +yes +Expanded Security Maintenance for Infrastructure
160 fips +yes +NIST-certified core packages157 fips +yes +NIST-certified core packages
161 fips-updates +yes +NIST-certified core packages with priority security updates158 fips-updates +yes +NIST-certified core packages with priority security updates
162 landscape +yes +Management and administration tool for Ubuntu159 landscape +no +Management and administration tool for Ubuntu
163 livepatch +yes +Canonical Livepatch service160 livepatch +yes +Canonical Livepatch service
164 realtime-kernel +no +Ubuntu kernel with PREEMPT_RT patches integrated161 realtime-kernel +no +Ubuntu kernel with PREEMPT_RT patches integrated
165 ros +no +Security Updates for the Robot Operating System162 ros +no +Security Updates for the Robot Operating System
@@ -184,7 +181,6 @@ Feature: Unattached status
184 esm-infra +yes +Expanded Security Maintenance for Infrastructure181 esm-infra +yes +Expanded Security Maintenance for Infrastructure
185 fips +yes +NIST-certified core packages182 fips +yes +NIST-certified core packages
186 fips-updates +yes +NIST-certified core packages with priority security updates183 fips-updates +yes +NIST-certified core packages with priority security updates
187 landscape +yes +Management and administration tool for Ubuntu
188 livepatch +yes +Canonical Livepatch service184 livepatch +yes +Canonical Livepatch service
189 usg +yes +Security compliance and audit tools185 usg +yes +Security compliance and audit tools
190186
@@ -213,7 +209,6 @@ Feature: Unattached status
213 anbox-cloud +yes +.*209 anbox-cloud +yes +.*
214 esm-apps +yes +Expanded Security Maintenance for Applications210 esm-apps +yes +Expanded Security Maintenance for Applications
215 esm-infra +yes +Expanded Security Maintenance for Infrastructure211 esm-infra +yes +Expanded Security Maintenance for Infrastructure
216 landscape +yes +Management and administration tool for Ubuntu
217 livepatch +yes +Canonical Livepatch service212 livepatch +yes +Canonical Livepatch service
218 realtime-kernel +yes +Ubuntu kernel with PREEMPT_RT patches integrated213 realtime-kernel +yes +Ubuntu kernel with PREEMPT_RT patches integrated
219 usg +yes +Security compliance and audit tools214 usg +yes +Security compliance and audit tools
@@ -234,7 +229,7 @@ Feature: Unattached status
234 esm-infra +yes +Expanded Security Maintenance for Infrastructure229 esm-infra +yes +Expanded Security Maintenance for Infrastructure
235 fips +no +NIST-certified core packages230 fips +no +NIST-certified core packages
236 fips-updates +no +NIST-certified core packages with priority security updates231 fips-updates +no +NIST-certified core packages with priority security updates
237 landscape +yes +Management and administration tool for Ubuntu232 landscape +no +Management and administration tool for Ubuntu
238 livepatch +yes +Canonical Livepatch service233 livepatch +yes +Canonical Livepatch service
239 realtime-kernel +yes +Ubuntu kernel with PREEMPT_RT patches integrated234 realtime-kernel +yes +Ubuntu kernel with PREEMPT_RT patches integrated
240 ros +no +Security Updates for the Robot Operating System235 ros +no +Security Updates for the Robot Operating System
@@ -257,7 +252,6 @@ Feature: Unattached status
257 anbox-cloud +yes +.*252 anbox-cloud +yes +.*
258 esm-apps +yes +Expanded Security Maintenance for Applications253 esm-apps +yes +Expanded Security Maintenance for Applications
259 esm-infra +yes +Expanded Security Maintenance for Infrastructure254 esm-infra +yes +Expanded Security Maintenance for Infrastructure
260 landscape +yes +Management and administration tool for Ubuntu
261 livepatch +yes +Canonical Livepatch service255 livepatch +yes +Canonical Livepatch service
262 realtime-kernel +yes +Ubuntu kernel with PREEMPT_RT patches integrated256 realtime-kernel +yes +Ubuntu kernel with PREEMPT_RT patches integrated
263 usg +yes +Security compliance and audit tools257 usg +yes +Security compliance and audit tools
@@ -292,7 +286,6 @@ Feature: Unattached status
292 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure286 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure
293 fips +yes +yes +no +NIST-certified core packages287 fips +yes +yes +no +NIST-certified core packages
294 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates288 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates
295 landscape +yes +yes +no +Management and administration tool for Ubuntu
296 livepatch +yes +yes +yes +Canonical Livepatch service289 livepatch +yes +yes +yes +Canonical Livepatch service
297 """290 """
298 When I do a preflight check for `contract_token` with the all flag291 When I do a preflight check for `contract_token` with the all flag
@@ -306,7 +299,7 @@ Feature: Unattached status
306 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure299 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure
307 fips +yes +yes +no +NIST-certified core packages300 fips +yes +yes +no +NIST-certified core packages
308 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates301 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates
309 landscape +yes +yes +no +Management and administration tool for Ubuntu302 landscape +no +yes +no +Management and administration tool for Ubuntu
310 livepatch +yes +yes +yes +Canonical Livepatch service303 livepatch +yes +yes +yes +Canonical Livepatch service
311 realtime-kernel +no +yes +no +Ubuntu kernel with PREEMPT_RT patches integrated304 realtime-kernel +no +yes +no +Ubuntu kernel with PREEMPT_RT patches integrated
312 ros +yes +yes +no +Security Updates for the Robot Operating System305 ros +yes +yes +no +Security Updates for the Robot Operating System
@@ -355,7 +348,6 @@ Feature: Unattached status
355 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure348 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure
356 fips +yes +yes +no +NIST-certified core packages349 fips +yes +yes +no +NIST-certified core packages
357 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates350 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates
358 landscape +yes +yes +no +Management and administration tool for Ubuntu
359 livepatch +yes +yes +yes +Canonical Livepatch service351 livepatch +yes +yes +yes +Canonical Livepatch service
360 usg +yes +yes +no +Security compliance and audit tools352 usg +yes +yes +no +Security compliance and audit tools
361 """353 """
@@ -369,7 +361,7 @@ Feature: Unattached status
369 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure361 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure
370 fips +yes +yes +no +NIST-certified core packages362 fips +yes +yes +no +NIST-certified core packages
371 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates363 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates
372 landscape +yes +yes +no +Management and administration tool for Ubuntu364 landscape +no +yes +no +Management and administration tool for Ubuntu
373 livepatch +yes +yes +yes +Canonical Livepatch service365 livepatch +yes +yes +yes +Canonical Livepatch service
374 realtime-kernel +no +yes +no +Ubuntu kernel with PREEMPT_RT patches integrated366 realtime-kernel +no +yes +no +Ubuntu kernel with PREEMPT_RT patches integrated
375 ros +no +yes +no +Security Updates for the Robot Operating System367 ros +no +yes +no +Security Updates for the Robot Operating System
@@ -417,7 +409,6 @@ Feature: Unattached status
417 anbox-cloud +yes +.*409 anbox-cloud +yes +.*
418 esm-apps +yes +yes +yes +Expanded Security Maintenance for Applications410 esm-apps +yes +yes +yes +Expanded Security Maintenance for Applications
419 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure411 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure
420 landscape +yes +yes +no +Management and administration tool for Ubuntu
421 livepatch +yes +yes +yes +Canonical Livepatch service412 livepatch +yes +yes +yes +Canonical Livepatch service
422 realtime-kernel +yes +yes +no +Ubuntu kernel with PREEMPT_RT patches integrated413 realtime-kernel +yes +yes +no +Ubuntu kernel with PREEMPT_RT patches integrated
423 usg +yes +yes +no +Security compliance and audit tools414 usg +yes +yes +no +Security compliance and audit tools
@@ -432,7 +423,7 @@ Feature: Unattached status
432 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure423 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure
433 fips +no +yes +no +NIST-certified core packages424 fips +no +yes +no +NIST-certified core packages
434 fips-updates +no +yes +no +NIST-certified core packages with priority security updates425 fips-updates +no +yes +no +NIST-certified core packages with priority security updates
435 landscape +yes +yes +no +Management and administration tool for Ubuntu426 landscape +no +yes +no +Management and administration tool for Ubuntu
436 livepatch +yes +yes +yes +Canonical Livepatch service427 livepatch +yes +yes +yes +Canonical Livepatch service
437 realtime-kernel +yes +yes +no +Ubuntu kernel with PREEMPT_RT patches integrated428 realtime-kernel +yes +yes +no +Ubuntu kernel with PREEMPT_RT patches integrated
438 ros +no +yes +no +Security Updates for the Robot Operating System429 ros +no +yes +no +Security Updates for the Robot Operating System
@@ -507,8 +498,7 @@ Feature: Unattached status
507 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure498 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure
508 fips +yes +yes +no +NIST-certified core packages499 fips +yes +yes +no +NIST-certified core packages
509 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates500 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates
510 (landscape +(yes|no) +yes +no +Management and administration tool for Ubuntu)?501 livepatch +yes +yes +yes +Canonical Livepatch service
511 ?livepatch +yes +yes +yes +Canonical Livepatch service
512 ros +yes +no +no +Security Updates for the Robot Operating System502 ros +yes +no +no +Security Updates for the Robot Operating System
513 ros-updates +yes +no +no +All Updates for the Robot Operating System503 ros-updates +yes +no +no +All Updates for the Robot Operating System
514 """504 """
@@ -553,8 +543,7 @@ Feature: Unattached status
553 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure543 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure
554 fips +yes +yes +no +NIST-certified core packages544 fips +yes +yes +no +NIST-certified core packages
555 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates545 fips-updates +yes +yes +no +NIST-certified core packages with priority security updates
556 (landscape +(yes|no) +yes +no +Management and administration tool for Ubuntu)?546 livepatch +yes +yes +yes +Canonical Livepatch service
557 ?livepatch +yes +yes +yes +Canonical Livepatch service
558 usg +yes +yes +no +Security compliance and audit tools547 usg +yes +yes +no +Security compliance and audit tools
559 """548 """
560549
@@ -596,8 +585,7 @@ Feature: Unattached status
596 esm-apps +yes +no +no +Expanded Security Maintenance for Applications585 esm-apps +yes +no +no +Expanded Security Maintenance for Applications
597 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure586 esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure
598 fips +yes +yes +no +NIST-certified core packages587 fips +yes +yes +no +NIST-certified core packages
599 (landscape +(yes|no) +yes +no +Management and administration tool for Ubuntu)?588 livepatch +yes +yes +yes +Canonical Livepatch service
600 ?livepatch +yes +yes +yes +Canonical Livepatch service
601 """589 """
602590
603 Examples: ubuntu release591 Examples: ubuntu release
diff --git a/preferences.d/ubuntu-pro-esm-apps b/preferences.d/ubuntu-pro-esm-apps
604deleted file mode 100644592deleted file mode 100644
index 5ded6f8..0000000
--- a/preferences.d/ubuntu-pro-esm-apps
+++ /dev/null
@@ -1,11 +0,0 @@
1# This file is used by Ubuntu Pro and supplied by the ubuntu-advantage-tools
2# package. It has no effect if Ubuntu Pro services are not in use since no
3# other apt repositories are expected to match o=UbuntuESMApps.
4#
5# Pin esm-apps packages to a slightly higher value than the default,
6# so those are preferred over a non-ESM package from the archive when the
7# service is enabled.
8
9Package: *
10Pin: release o=UbuntuESMApps
11Pin-Priority: 510
diff --git a/preferences.d/ubuntu-pro-esm-infra b/preferences.d/ubuntu-pro-esm-infra
12deleted file mode 1006440deleted file mode 100644
index e956e0a..0000000
--- a/preferences.d/ubuntu-pro-esm-infra
+++ /dev/null
@@ -1,10 +0,0 @@
1# This file is used by Ubuntu Pro and supplied by the ubuntu-advantage-tools
2# package. It has no effect if Ubuntu Pro services are not in use since no
3# other apt repositories are expected to match o=UbuntuESM.
4#
5# Pin esm-infra packages to a slightly higher value than the default,
6# so those are preferred over a non-ESM package from the archive when the
7# service is enabled.
8Package: *
9Pin: release o=UbuntuESM
10Pin-Priority: 510
diff --git a/setup.py b/setup.py
index bccdfed..a1105f2 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,6 @@ def _get_data_files():
40 "/etc/update-manager/release-upgrades.d/",40 "/etc/update-manager/release-upgrades.d/",
41 ["release-upgrades.d/ubuntu-advantage-upgrades.cfg"],41 ["release-upgrades.d/ubuntu-advantage-upgrades.cfg"],
42 ),42 ),
43 ("/etc/apt/preferences.d", glob.glob("preferences.d/*")),
44 (defaults.CONFIG_DEFAULTS["data_dir"], []),43 (defaults.CONFIG_DEFAULTS["data_dir"], []),
45 ("/lib/systemd/system", glob.glob("systemd/*")),44 ("/lib/systemd/system", glob.glob("systemd/*")),
46 (45 (
diff --git a/tools/run-integration-tests.py b/tools/run-integration-tests.py
index ed16645..cc373ce 100644
--- a/tools/run-integration-tests.py
+++ b/tools/run-integration-tests.py
@@ -24,7 +24,7 @@ TOKEN_TO_ENVVAR = {
24}24}
2525
26PLATFORM_SERIES_TESTS = {26PLATFORM_SERIES_TESTS = {
27 "azuregeneric": ["xenial", "bionic", "focal", "jammy"],27 "azuregeneric": ["xenial", "bionic", "focal", "jammy", "lunar"],
28 "azurepro": ["xenial", "bionic", "focal", "jammy"],28 "azurepro": ["xenial", "bionic", "focal", "jammy"],
29 "azurepro-fips": ["xenial", "bionic", "focal"],29 "azurepro-fips": ["xenial", "bionic", "focal"],
30 "awsgeneric": ["xenial", "bionic", "focal", "jammy"],30 "awsgeneric": ["xenial", "bionic", "focal", "jammy"],
diff --git a/uaclient/version.py b/uaclient/version.py
index 4d61635..fc599da 100644
--- a/uaclient/version.py
+++ b/uaclient/version.py
@@ -15,7 +15,7 @@ from uaclient.defaults import CANDIDATE_CACHE_PATH, UAC_RUN_PATH
15from uaclient.exceptions import ProcessExecutionError15from uaclient.exceptions import ProcessExecutionError
16from uaclient.system import subp16from uaclient.system import subp
1717
18__VERSION__ = "29.3"18__VERSION__ = "29.4"
19PACKAGED_VERSION = "@@PACKAGED_VERSION@@"19PACKAGED_VERSION = "@@PACKAGED_VERSION@@"
2020
21CANDIDATE_REGEX = r"Candidate: (?P<candidate>.*?)\n"21CANDIDATE_REGEX = r"Candidate: (?P<candidate>.*?)\n"

Subscribers

People subscribed via source and target branches

to status/vote changes: