** Description changed:

  [Impact]
- When users are upgrading their machines, we run the upgrade_lts_contract 
script to ensure that the services that were unable will keep being enable in 
the new ubuntu release the users are upgraded too.
+ When users are upgrading their machines, we run the upgrade_lts_contract 
script to ensure that the services that were enabled will keep being enabled in 
the new ubuntu release the users are upgraded to.
  
  Currently, if the user upgrades directly from Focal to Jammy, the script
  will error out because we are missing the entries for Focal and Impish
  on that script.
  
  Therefore, even though we might not have full support for some services
  in Jammy yet, we should not error out on that script and allow it to
  complete;
- 
  
  [Test Case]
  To reproduce the bug: follow these steps:
  
  1. Launch a jammy machine
  2. Attach to a valid UA token
  3. run `sudo python3 /usr/lib/ubuntu-advantage/upgrade_lts_contract.py`
  
  And to verify that the fix works:
  
  1. Upgrade UA to version 27.8
  2. re-run `sudo python3 /usr/lib/ubuntu-advantage/upgrade_lts_contract.py` 
and confirm no errors are raised
- 
  
  [Regression Potential]
  We are just adding the new releases into our support dict and providing 
better error messages if that problem happens again in the future. Therefore, 
we don't believe we have a big regression issue here.
  
  [Original Description]
  
  See this error
  https://errors.ubuntu.com/problem/864d1a4d38167a7b009ce993125030b58eb012d5
  
  When upgrading from focal -> impish or from impish -> jammy, a KeyError
  will occur in the upgrade_lts_contract.py script from ubuntu-advantage-
  tools. This happens because that script has not been kept up-to-date
  with new ubuntu series names since groovy.
  
  We plan to fix this bug in our next release of ubuntu-advantage-tools,
  which will be version 27.8 and should occur within the next month.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1968067

Title:
  upgrade_lts_contract.py exception on impish and later

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1968067/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to