Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 31 #2913

Merged
merged 149 commits into from
Feb 26, 2024
Merged

Release 31 #2913

merged 149 commits into from
Feb 26, 2024

Commits on Jan 8, 2024

  1. Configuration menu
    Copy the full SHA
    d49b1e0 View commit details
    Browse the repository at this point in the history
  2. messages: fix typos

    orndorffgrant committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    0a7cab6 View commit details
    Browse the repository at this point in the history
  3. update-pos

    orndorffgrant committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    ed87cbd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b46e9b4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fc86a07 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d74f214 View commit details
    Browse the repository at this point in the history
  7. refactor: simplify prerm to not import python

    LP: #2021988
    orndorffgrant committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    965f1a6 View commit details
    Browse the repository at this point in the history
  8. livepatch: better inform if command fails

    If the canonical-livepatch status command fails, we can mistakenly
    tell the users that Livepatch is disabled. This is an incorrect
    behavior as we should alert the users about the error. We are now
    reflecting that went wrong with the command on the output
    of pro status.
    
    LP: #2019997
    lucasmoura authored and orndorffgrant committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    d62863c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f6e9447 View commit details
    Browse the repository at this point in the history
  10. timer: make jobs-status file world readable

    When running collect-logs as non-root, we might fail
    trying to collect the jobs-status information. Since there
    is no private date in this file, we are making it world readable
    now.
    
    Fixes: #2601
    lucasmoura authored and orndorffgrant committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    1e13f59 View commit details
    Browse the repository at this point in the history
  11. github: add CI job to create issues on merge

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    af4f389 View commit details
    Browse the repository at this point in the history
  12. mypy: remove workaround for mypy bug

    The bug was fixed in mypy version 1.7
    orndorffgrant committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    538417f View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. tests: implement behave-any for all tests

    This extends the "behave-any" refactor to all integration tests. That means any combination of tests, regardless of the cloud/platform they run on, can be run with one command.  This allows consolidation of some tests since tests can now be parametrized by machine_type.
    
    There is still the capability to run the tests in a per release, per platform matrix via the run-integration-tests.py script. However, after this refactor we don't have to split the tests up that way.
    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    5cec532 View commit details
    Browse the repository at this point in the history
  2. messages: fix pluralization

    Fixes: #1579
    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    96027b2 View commit details
    Browse the repository at this point in the history
  3. update-pos

    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    d382f85 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6feddd6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a8ad334 View commit details
    Browse the repository at this point in the history
  6. update-pos

    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    4143d27 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4692888 View commit details
    Browse the repository at this point in the history
  8. po: remove fuzzy tag from translations

    Some brazilian portuguese translations are marked as fuzzy.
    We are removing the tag from the ones we believe are correct
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    9401e19 View commit details
    Browse the repository at this point in the history
  9. tests: don't run the disabled cloud-init test on jammy

    It involves enabling FIPS, which is not in 22.04 yet.
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    ebbcac6 View commit details
    Browse the repository at this point in the history
  10. tests: update expected messages in tests output

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    a9a7300 View commit details
    Browse the repository at this point in the history
  11. po: run update-pos

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    36b94da View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a661cc2 View commit details
    Browse the repository at this point in the history
  13. tests: update jammy tests for fips-updates

    The fips-updates service is now available for Jammy.
    We are now updating the Jammy tests to reflect that
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    0689055 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    5714046 View commit details
    Browse the repository at this point in the history
  15. fix: move plan specific logic to common module

    Move the plan API common logic into the appropriate module.
    
    Fixes: #2714
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    d5a2fa5 View commit details
    Browse the repository at this point in the history
  16. fix: only show livepatch text if CVE fixed by it

    When fixing a CVE that is already patched by livepatch,
    we should only relly on the specific livepatch message
    we display when we identify that the patch is already applied
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    6722e5d View commit details
    Browse the repository at this point in the history
  17. fix: remove redundant message for enable operation

    We we require an enable operation for the fix command,
    we are now displaying two messages if the enable part fails.
    One related to the actual error and a generic one mentioning
    that we need the service to install the packages. We are removing
    the generic one as it does add any new information to the user.
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    900ac1b View commit details
    Browse the repository at this point in the history
  18. fix: catch generic exception when fetching items

    When fetching USN/CVEs data, we should also handle the generic
    exception we raise if the data cannot be collected, otherwise
    the plan API will not be able to deliver that information
    on the JSON response
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    1db99a0 View commit details
    Browse the repository at this point in the history
  19. fix: remove security module

    Move all functions to the security API module and move
    all associated tests to other related test files
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    101a8b4 View commit details
    Browse the repository at this point in the history
  20. move fix logic to _common module

    Since we already have a common module, it is better to put
    the base fix logic inside that module instead of the fix module
    itself
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    4400d04 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    cae2bff View commit details
    Browse the repository at this point in the history
  22. Update imports on cve/usn endpoints

    We want users to import all necessary data objects
    directly from the cve/usn endpoint. To achieve that,
    we are moving some imports directly into those modules
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    1696eb5 View commit details
    Browse the repository at this point in the history
  23. api: allow plan imports through fix module

    Due to the backwards compatibility, we will still allow
    some plan API related objects to be imported through
    the fix module
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    6cbe5b9 View commit details
    Browse the repository at this point in the history
  24. test: fix unit test for usn headers

    Now that we are using the term Associated CVEs for the USN headers,
    we need to update the associated unit test
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    608be54 View commit details
    Browse the repository at this point in the history
  25. tests: fix missing mock in attach unit test

    _post_cli_attach must be mocked to avoid leaks. The JSON part of the
    test removed in this commit is covered in test_event_logger.
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    b4b7cbe View commit details
    Browse the repository at this point in the history
  26. tests: add unit test for _post_cli_attach

    testing only the relevant output
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    11d190d View commit details
    Browse the repository at this point in the history
  27. collect-logs: include esm-cache and apt-news services

    Fixes: #2860
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    324f62b View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    4886206 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    a79389e View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    a49eefb View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    47e8066 View commit details
    Browse the repository at this point in the history
  32. cli: retry grabbing the lock

    This helps when the timer job is running in the background and a cli
    command happens to collide with it. The timer job is usually over
    quickly, so retrying several times with a small sleep time should be
    sufficient.
    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    066a77a View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    e95baa8 View commit details
    Browse the repository at this point in the history
  34. fix: match integrations tests with new messages for FIPS

    This changes updates the integration tests to include new messages
    about checking subscription, disabling livepatch, etc.
    
    In line with normalization efforts, this change also converts many
    checks that were unnecessarily regex to substring matches.
    catmsred authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    fe1261d View commit details
    Browse the repository at this point in the history
  35. livepatch: don't raise error for livepatch not enabled

    Prior to this change, livepatch status for an unenabled machine
    that supported livepatch (which is always the case for FIPS
    enabled machines) would record an error in the logs on querying
    status.
    catmsred authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    e0f21d0 View commit details
    Browse the repository at this point in the history
  36. test: clean up test to match others

    Bringing this test is line with the format others are using
    catmsred authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    10615f4 View commit details
    Browse the repository at this point in the history
  37. style: refactor messages wording

    adjust messages for consistency; use the 'attach/detach/enable/disable'
    correct usage for 'subscription' and 'service'
    
    Fixes: #2788
    mm-cr authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    de177cc View commit details
    Browse the repository at this point in the history
  38. tests: fix integration tests to expect updated messages

    Recently some messages were updated to have more consistent terminology
    around the use of the words "service" and "subscription". This commit
    updates the related behave tests to expect the new messages.
    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    dd1788f View commit details
    Browse the repository at this point in the history
  39. tests: fix reboot_cmds.feature

    The test relies on downgrading the version of strongswan in focal. It
    was previously set to downgrade to the version in focal-updates, but
    that changed. After this commit, the test downgrades to the version in
    focal, which will not change.
    
    Fixes: #2863
    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    64357af View commit details
    Browse the repository at this point in the history
  40. release-update: drop lunar, add noble package build CI

    We can stop testing on lunar since our next release will go out after
    lunar EOL.
    
    Also configures CI to build package for noble, and run integration tests
    for on mantic.
    
    Fixes: #2871
    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    86a7b5f View commit details
    Browse the repository at this point in the history
  41. tests: fix mantic EOL date in the security-status test

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    617da73 View commit details
    Browse the repository at this point in the history
  42. tests: make sure logs start empty when testing user logs

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    895b22a View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    cd08b76 View commit details
    Browse the repository at this point in the history
  44. landscape: better UX for enable and disable

    * No longer assume landscape-client gets removed on disable
    * Leave client.conf in place instead of renaming
    * Require service to be running to consider "enabled"
    * New explanatory message when disabling
    
    Fixes: #2840
    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    f2ba480 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    fb0fe50 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    6f24e0e View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    a72367a View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    cf544a3 View commit details
    Browse the repository at this point in the history
  49. update-pos

    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    1230a39 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    0ea0bbe View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    87de894 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    a11a205 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    4b73be5 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    f22e43c View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    e5ac8f5 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    ce5beac View commit details
    Browse the repository at this point in the history
  57. Move temporary test files to /var/lib/ubuntu-advantage

    Due to the PrivateTmp=yes restriction set on the apt-news.service unit,
    tests that use the /tmp directory will fail.
    
    This happens because the unit will get a brand new and empty /tmp when
    it starts up, and anything it does in that /tmp will be gone when it
    terminates.
    panlinux authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    cbabfa3 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    78ba7a4 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    f4540f9 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    2c299be View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    3c2b620 View commit details
    Browse the repository at this point in the history
  62. systemd/apt-news.service: rename apparmor profile: ubuntu_advantage_a…

    …pt_news to ubuntu_pro_apt_news
    panlinux authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    8346590 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    763cf93 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    cac9659 View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    f3577a9 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    b72371c View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    68d683c View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    f61fc1f View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    315d7e2 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    fb9c2bd View commit details
    Browse the repository at this point in the history
  71. Move APPARMOR_PROFILES to defaults

    Most or all of the settings are defined there, and since that module
    doesn't import anything, this also avoids potential future dependencies.
    panlinux authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    cf7d620 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    c6a3880 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    bbd4047 View commit details
    Browse the repository at this point in the history
  74. Merge UrlError and ConnectivityError exceptions

    Since ConnectityError is only raised when we detect an UrlError
    exception, we have decided to merge those exceptios. Additionally,
    we have also updated the ConnectivityError message to be more explicit
    on what the actual error is.
    
    Fixes: #2647
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    cfb6dbd View commit details
    Browse the repository at this point in the history
  75. po: run tools/update-pos.sh

    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    77a0f4c View commit details
    Browse the repository at this point in the history
  76. tests: auto-attach in docker build using existing config cloud override

    This serves as integration test coverage for the
    settings_overrides.cloud_type feature since we didn't previously have
    coverage for it.
    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    dfc3387 View commit details
    Browse the repository at this point in the history
  77. auto-attach: allow cloud_override param in API

    This is useful in situations where for some reason, cloud-id does not
    return the correct cloud. One prominent case where this happens is
    inside docker builds.
    orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    7f80be8 View commit details
    Browse the repository at this point in the history
  78. api: fix enabled_services endpoint for usg

    When reporting enabled_services throught the API,
    for each enabled entitlement, we are reporting its name.
    This is problematic because today cis and usg share the same
    entitlement. To differentiate between them, we need to get
    the entitlement presentation_name instead.
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    44035eb View commit details
    Browse the repository at this point in the history
  79. api: add services with warning to enabled_services

    If a service has has a warning status, we are now returning that
    service as a enabled service through the enabled_services API.
    However, we are also creating a warning in the API response
    to let the user know that there is a required action for the
    service.
    
    Fixes: #2882
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    cedcb28 View commit details
    Browse the repository at this point in the history
  80. disable incompatible services with warning status

    When checking if a incompatible service is enabled,
    we must also take in consideration services whose status
    is a warning one. That is because they are still enabled
    in the system, even if they are properly running
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    5a2e0a4 View commit details
    Browse the repository at this point in the history
  81. tests: use API to check for services/attached info

    Instead of relying on pro status to check if a service
    is enabled/disabled or if the machine is attached to
    a Pro subscription, we are now relying on the enabled_services
    and is_attached APIs instead
    
    Fixes: #2851
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    800ba7f View commit details
    Browse the repository at this point in the history
  82. tests: check if service status is warning

    Use our API to check that a service status is warning instead
    of relying on pro status for that
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    d06ef6c View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    b8be5e6 View commit details
    Browse the repository at this point in the history
  84. fix: ignore LSNs when fetching CVE related USNs

    When fixing a CVE, we also fetch the related USNs tied to it.
    When doing that, we need to discard LSNs since they are not supported
    at the moment.
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    4e75659 View commit details
    Browse the repository at this point in the history
  85. fix: update how CVE descriptions are generated

    We fetch the CVE description from the USNs associated
    with the CVE. Before, we picked the first USN title as
    the CVE description. We are updating that logic to check
    first if at least one package related to the USN is installed
    in the system before using its description.
    
    Fixes: #2739
    lucasmoura authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    f2771a3 View commit details
    Browse the repository at this point in the history
  86. messages: suggest running apt instead of apt-get

    Fixes: #2798
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    828cea1 View commit details
    Browse the repository at this point in the history
  87. chore: remove unused message from unit tests

    This is tested in the integration tests, and the unit test
    which changed this was removed/changed already
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    77a3bb6 View commit details
    Browse the repository at this point in the history
  88. tests: standardize package installation on behave tests

    - use the step instead of running the command explicitly
    - use apt instead of apt-get
    - retry on exit 100
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    93599fa View commit details
    Browse the repository at this point in the history
  89. tests: standardize apt updates on behave tests

        - create a step instead of running the command explicitly
        - use apt instead of apt-get
        - retry on exit 100
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    dadceb9 View commit details
    Browse the repository at this point in the history
  90. tests: standardize dist-upgrades on behave tests

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    4fab1ce View commit details
    Browse the repository at this point in the history
  91. tests: standardize package removal on behave tests

    - create a step instead of running the command explicitly
    - use apt instead of apt-get
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    8312e85 View commit details
    Browse the repository at this point in the history
  92. tests: standardize apt upgrades on behave tests

    - create a step instead of running the command explicitly
    - cover the different options like dry runs and phased updates
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    fab5cee View commit details
    Browse the repository at this point in the history
  93. tests: standardize apt autoremove on behave tests

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    9a5939d View commit details
    Browse the repository at this point in the history
  94. tests: add machine_name as a parameter to retry_run

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    891a8ab View commit details
    Browse the repository at this point in the history
  95. tests: fix ambiguous step name

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    1e075d4 View commit details
    Browse the repository at this point in the history
  96. repoentitlement: define repo_file as a property

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    3cb6f0e View commit details
    Browse the repository at this point in the history
  97. util: add function to set filename extensions

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    924af2e View commit details
    Browse the repository at this point in the history
  98. apt: create deb822 .sources files for enablements on new releases

    Starting from noble, create deb822 files instead of the regular apt
    files when enabling services.
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    c6b06d4 View commit details
    Browse the repository at this point in the history
  99. Configuration menu
    Copy the full SHA
    b7d2bb9 View commit details
    Browse the repository at this point in the history
  100. apt: change private cache list files to deb822

    In this case we can do it for all releases, as there is no dependency on
    it outside of the client.
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    a7a8bbc View commit details
    Browse the repository at this point in the history
  101. lib: add post-dist-upgrade script to convert files to deb822

    The script noops in all releases but noble.
    On noble, it will convert valid entitlements repofiles to the new format.
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    5b6d9ab View commit details
    Browse the repository at this point in the history
  102. Configuration menu
    Copy the full SHA
    1eaa0fa View commit details
    Browse the repository at this point in the history
  103. Configuration menu
    Copy the full SHA
    a85d467 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. fix: don't include LSN in cve notices list

    When fetching the CVE notices list, we should exclude
    a LSNs, as they are not supported for the fix operation
    lucasmoura authored and orndorffgrant committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    b93f3a1 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2024

  1. prerm: also delete .sources files

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    a4747f0 View commit details
    Browse the repository at this point in the history
  2. tests: fix check for private esm cache in upgrade test

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    9549c4c View commit details
    Browse the repository at this point in the history
  3. deb822: try to update the .sources file if present

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    25aa222 View commit details
    Browse the repository at this point in the history
  4. chore: remove newline in deb822 template

    newlines indicate new stanzas, there is no need to confuse python3-apt
    
    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    05e7096 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. Configuration menu
    Copy the full SHA
    8b7f85e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b58663a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d61e0da View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0255d3a View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. Configuration menu
    Copy the full SHA
    cb35b90 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f8ff9c View commit details
    Browse the repository at this point in the history
  3. release 31

    orndorffgrant committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    335cd62 View commit details
    Browse the repository at this point in the history
  4. po: fix fuzzy translations

    Signed-off-by: Renan Rodrigo <[email protected]>
    renanrodrigo authored and orndorffgrant committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    b1a1f73 View commit details
    Browse the repository at this point in the history
  5. update-pos

    orndorffgrant committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    936954b View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2024

  1. Configuration menu
    Copy the full SHA
    d39a017 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b69ed2 View commit details
    Browse the repository at this point in the history
  3. debian: rename binary packages

    We're renaming the following packages using transitional packages to
    align the package names with the product naming:
    
     * ubuntu-advantage-tools -> ubuntu-pro-client
     * ubuntu-advantage-pro -> ubuntu-pro-image-auto-attach
    
    Because old versions of ubuntu-advantage-tools will break ESM upon
    removal, and ubuntu-pro-client "Breaks" ubuntu-advantage-tools <<31~,
    we need to force existing instances to upgrade to ubuntu-advantage-tools
    31 (the transitional package) in order to install the new
    ubuntu-pro-client package.
    
    Enforcing that is accomplished via a Depends: ubuntu-advantage-tools on
    existing Ubuntu releases. Future Ubuntu releases (Noble onward) will not have
    this Depends.
    
    Because of that, all previous package migrations (from versions
    older than 31) are left in ubuntu-advantage-tools.{preinst,postinst,postrm}.
    All future package migrations will happen in ubuntu-pro-client.{preinst,postinst,postrm}.
    orndorffgrant committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    6dc6704 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    01ba7bb View commit details
    Browse the repository at this point in the history
  5. update-pos

    orndorffgrant committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    c3c922b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    12e40da View commit details
    Browse the repository at this point in the history
  7. fixup: don't provide ubuntu-advantage-tools

    By removing "Provides: ubuntu-advantage-tools", we lower the chances of
    ubuntu-advantage-tools <31 being removed during an install of
    ubuntu-pro-client, becuase ubuntu-minimal (and ubuntu-cloud-minimal)
    Depend on ubuntu-advantage-tools. This removes the need for
    ubuntu-pro-client Depends: ubuntu-advantage-tools.
    orndorffgrant committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    35bc7d9 View commit details
    Browse the repository at this point in the history
  8. tests: add test for transition package

    Add integration test that install the ubuntu-advantage-tools
    transition package and checks that it also install the
    new ubuntu-pro-client package.
    
    We are also performing the same check for the ubuntu-advantage-pro
    package
    lucasmoura authored and orndorffgrant committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    f46eafe View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c3205fa View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ea506b6 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    238c2d9 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5f44b02 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2024

  1. logs: fix redaction filter

    The redaction filter was not correctly applied to our current logs.
    We are now fixing this by adding the redaction filter directly in
    the log file handler
    lucasmoura authored and orndorffgrant committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    cc8ee04 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. daemon: wait for cloud-config.service to complete in python

    When cloud-init gets "ubuntu_advantage" user-data, it may need to
    install or upgrade ubuntu-advantage-tools. This happens during
    cloud-config.service. The install/upgrade of ubuntu-advantage-tools
    triggers a "systemctl start ubuntu-advantage.service".
    ubuntu-advantage.service is configured with an
    "After=cloud-config.service", so it waits to start until
    cloud-config.service becomes "active". In this scenario,
    cloud-config.service cannot continue until ubuntu-advantage.service
    starts, creating deadlock.
    
    We get around this deadlock by removing the "After=cloud-config.service"
    from ubuntu-advantage.service. Instead we are moving the ordering dependency
    enforcement into the python code called by the service. This allows
    systemd to go ahead and start the service allowing the install of
    ubuntu-advantage-tools to finish and cloud-init to continue.
    ubuntu-advantage.service will wait until cloud-config.service is
    "active" to actually do anything.
    
    LP: #2050022
    orndorffgrant committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    26ecd2c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81f02f9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4e9a479 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Configuration menu
    Copy the full SHA
    ae56423 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ac0c7df View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. tests: remove stdlib detail from unit test

    This message is a detail of the stdlib and could change and it doesn't
    matter to us. The important thing that this test is testing is that
    base.UAEntitlement cannot be instantiated itself and will raise a
    TypeError.
    orndorffgrant committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    00aea08 View commit details
    Browse the repository at this point in the history
  2. changelog 31.1

    orndorffgrant committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    285e9dd View commit details
    Browse the repository at this point in the history