Skip to content

Ubuntu Focal to Jammy migration support#902

Merged
Alex-Welsh merged 17 commits intostackhpc/yogafrom
ubuntu-migration
Feb 15, 2024
Merged

Ubuntu Focal to Jammy migration support#902
Alex-Welsh merged 17 commits intostackhpc/yogafrom
ubuntu-migration

Conversation

@seunghun1ee
Copy link
Copy Markdown
Member

Add playbook and shell scripts to support automated Ubuntu migration.

@seunghun1ee seunghun1ee requested a review from a team as a code owner January 30, 2024 09:15
@seunghun1ee seunghun1ee added the yoga Targets the Yoga OpenStack release label Jan 30, 2024
@priteau priteau requested a review from technowhizz January 30, 2024 10:14
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml Outdated
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml Outdated
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml
@technowhizz
Copy link
Copy Markdown
Contributor

Overall, Good job guys @seunghun1ee @Alex-Welsh

Comment thread etc/kayobe/ansible/scripts/overcloud-ubuntu-upgrade.sh Outdated
technowhizz
technowhizz previously approved these changes Jan 31, 2024
Copy link
Copy Markdown
Contributor

@technowhizz technowhizz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Thank you for the changes @seunghun1ee

Copy link
Copy Markdown
Contributor

@markgoddard markgoddard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to see some docs for this, but they can come later.

Comment thread etc/kayobe/ansible/scripts/seed-ubuntu-upgrade.sh Outdated
Comment thread etc/kayobe/ansible/scripts/overcloud-ubuntu-upgrade.sh
Comment thread etc/kayobe/ansible/scripts/seed-ubuntu-upgrade.sh Outdated
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml Outdated
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml Outdated
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml Outdated
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml Outdated
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml Outdated
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml Outdated
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml
Copy link
Copy Markdown
Contributor

@markgoddard markgoddard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be sensible to set os_release to jammy at the beginning of the procedure, as we do for RL9. It's generally used as the 'target' release. This would avoid needing to pass in additional variables to pulp sync, host configure, etc.

@Alex-Welsh
Copy link
Copy Markdown
Member

Would be nice to see some docs for this, but they can come later.

We have a wiki page for now. Docs are a bit awkward to update quickly. I'd like to have something more official in skc docs once it's stable though
https://wiki.stackhpc.com/doc/migrating-to-ubuntu-jammy-qtQNt9yw1m

@technowhizz
Copy link
Copy Markdown
Contributor

@Alex-Welsh When approved and ready to merge, I think it would be a good idea to squash merge this PR so that it can easily be cherry picked

@Alex-Welsh
Copy link
Copy Markdown
Member

Alex-Welsh commented Feb 5, 2024

Error with latest compute node:

TASK [Do release upgrade] ***********************************************************************************************************************************************************************************************************│···································································································································································································
Monday 05 February 2024  11:46:20 +0000 (0:00:00.531)       0:00:58.421 *******                                                                                                                                                      │···································································································································································································
fatal: [ts-hcomp01]: FAILED! => changed=true                                                                                                                                                                                         │···································································································································································································
  cmd:                                                                                                                                                                                                                               │···································································································································································································
  - do-release-upgrade                                                                                                                                                                                                               │···································································································································································································
  - -f                                                                                                                                                                                                                               │···································································································································································································
  - DistUpgradeViewNonInteractive                                                                                                                                                                                                    │···································································································································································································
  delta: '0:00:02.624216'                                                                                                                                                                                                            │···································································································································································································
  end: '2024-02-05 11:46:23.248756'                                                                                                                                                                                                  │···································································································································································································
  msg: non-zero return code                                                                                                                                                                                                          │···································································································································································································
  rc: 1                                                                                                                                                                                                                              │···································································································································································································
  start: '2024-02-05 11:46:20.624540'                                                                                                                                                                                                │···································································································································································································
  stderr: ''                                                                                                                                                                                                                         │···································································································································································································
  stderr_lines: <omitted>                                                                                                                                                                                                            │···································································································································································································
  stdout: |-                                                                                                                                                                                                                         │···································································································································································································
    Checking for a new Ubuntu release                                                                                                                                                                                                │···································································································································································································
    You have not rebooted after updating a package which requires a reboot. Please reboot before upgrading.                                                                                                                          │···································································································································································································
  stdout_lines: <omitted> 

Not sure if it's the node or the change to the ordering

@seunghun1ee
Copy link
Copy Markdown
Member Author

Error with updated ordering:

TASK [Do release upgrade] ***********************************************************************************************************************************************************************************************************│···································································································································································································
Monday 05 February 2024  11:46:20 +0000 (0:00:00.531)       0:00:58.421 *******                                                                                                                                                      │···································································································································································································
fatal: [ts-hcomp01]: FAILED! => changed=true                                                                                                                                                                                         │···································································································································································································
  cmd:                                                                                                                                                                                                                               │···································································································································································································
  - do-release-upgrade                                                                                                                                                                                                               │···································································································································································································
  - -f                                                                                                                                                                                                                               │···································································································································································································
  - DistUpgradeViewNonInteractive                                                                                                                                                                                                    │···································································································································································································
  delta: '0:00:02.624216'                                                                                                                                                                                                            │···································································································································································································
  end: '2024-02-05 11:46:23.248756'                                                                                                                                                                                                  │···································································································································································································
  msg: non-zero return code                                                                                                                                                                                                          │···································································································································································································
  rc: 1                                                                                                                                                                                                                              │···································································································································································································
  start: '2024-02-05 11:46:20.624540'                                                                                                                                                                                                │···································································································································································································
  stderr: ''                                                                                                                                                                                                                         │···································································································································································································
  stderr_lines: <omitted>                                                                                                                                                                                                            │···································································································································································································
  stdout: |-                                                                                                                                                                                                                         │···································································································································································································
    Checking for a new Ubuntu release                                                                                                                                                                                                │···································································································································································································
    You have not rebooted after updating a package which requires a reboot. Please reboot before upgrading.                                                                                                                          │···································································································································································································
  stdout_lines: <omitted> 

This probably means that the host got newer version of kernel in current release.
As far as I know, rebooting with newly installed kernel will clear this issue.

Alex-Welsh and others added 2 commits February 5, 2024 12:18
Reboot prepatory apt update when required and always set -e
os_release=jammy for the upgrade playbook
Comment thread etc/kayobe/ansible/ubuntu-upgrade.yml
@Alex-Welsh Alex-Welsh enabled auto-merge (squash) February 13, 2024 10:39
Comment thread tools/ubuntu-upgrade-infra-vm.sh Outdated
Co-authored-by: Mark Goddard <mark@stackhpc.com>
@Alex-Welsh Alex-Welsh merged commit 3818ff9 into stackhpc/yoga Feb 15, 2024
@Alex-Welsh Alex-Welsh deleted the ubuntu-migration branch February 15, 2024 14:16
This was referenced Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

yoga Targets the Yoga OpenStack release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants