Skip to content

Ubuntu Jammy upgrade fixes #1161

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

Merged
merged 3 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions etc/kayobe/ansible/ubuntu-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
hosts: overcloud:infra-vms:seed:seed-hypervisor
vars:
ansible_python_interpreter: /usr/bin/python3
reboot_timeout_s: "{{ 20 * 60 }}"
tasks:
- name: Assert that hosts are running Ubuntu Focal
assert:
Expand Down Expand Up @@ -37,7 +38,7 @@

- name: Reboot to apply updates
reboot:
reboot_timeout: 1200
reboot_timeout: "{{ reboot_timeout_s }}"
connect_timeout: 600
become: true
when: file_status.stat.exists
Expand Down Expand Up @@ -81,16 +82,24 @@
hosts: overcloud:infra-vms:seed:seed-hypervisor
vars:
ansible_python_interpreter: /usr/bin/python3
reboot_timeout_s: "{{ 20 * 60 }}"
tasks:
- name: Ensure Jammy repo definitions do not exist in sources.list
blockinfile:
path: /etc/apt/sources.list
state: absent
become: true

- name: Ensure Kolla Ansible Docker repo definition does not exist
file:
path: /etc/apt/sources.list.d/docker.list
state: absent
become: true
when: apt_repositories | selectattr('url', 'match', '.*docker-ce.*') | list | length > 0

- name: Reboot and wait
reboot:
reboot_timeout: 1200
reboot_timeout: "{{ reboot_timeout_s }}"
connect_timeout: 600
become: true

Expand Down
6 changes: 5 additions & 1 deletion etc/kayobe/apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,29 @@ stackhpc_apt_repositories:
suites: "{{ ansible_facts.distribution_release }} {{ ansible_facts.distribution_release }}-updates {{ ansible_facts.distribution_release }}-backports"
components: main restricted universe multiverse
architecture: amd64
required: true
- url: "{{ stackhpc_repo_ubuntu_focal_security_url if ansible_facts.distribution_release == 'focal' else stackhpc_repo_ubuntu_jammy_security_url }}"
suites: "{{ ansible_facts.distribution_release }}-security"
components: main restricted universe multiverse
architecture: amd64
required: true
- url: "{{ stackhpc_repo_ubuntu_jammy_cve_2024_6387_url }}"
suites: "pulp"
components: upload
architecture: amd64
trusted: yes
required: "{{ ansible_facts.distribution_release == 'jammy' }}"
- url: "{{ stackhpc_repo_docker_ce_ubuntu_focal_url if ansible_facts.distribution_release == 'focal' else stackhpc_repo_docker_ce_ubuntu_jammy_url }}"
suites: "{{ ansible_facts.distribution_release }}"
components: stable
signed_by: docker.asc
architecture: amd64
required: true

# Do not replace apt configuration for non-overcloud hosts. This can result in
# errors if apt reconfiguration is performed before local repository mirrors
# are deployed.
apt_repositories: "{{ stackhpc_apt_repositories if 'overcloud' in group_names else [] }}"
apt_repositories: "{{ stackhpc_apt_repositories | selectattr('required') | list if 'overcloud' in group_names else [] }}"

# Whether to disable repositories in /etc/apt/sources.list. This may be used
# when replacing the distribution repositories via apt_repositories.
Expand Down
Loading