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

[Linux] Upgrade cloud-init in Oracle Linux 8.7 and 9.1 for cloud-init GOSC #449

Merged
merged 1 commit into from
Apr 10, 2023
Merged
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
34 changes: 34 additions & 0 deletions linux/guest_customization/linux_gosc_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,40 @@
package_state: "present"
when: guest_os_ansible_distribution != "VMware Photon OS"

# Need to install the latest cloud-init to Oracle Linux 8.7, 9.1 and pass the GOSC tests in Ansible
- name: "Update cloud-init GOSC in OracleLinux 8.7 & 9.1"
block:
keirazhang marked this conversation as resolved.
Show resolved Hide resolved
- name: "Known issue - failure of cloud-init GOSC in Oracle Linux 8.7 and 9.1"
ansible.builtin.debug:
msg:
- "Cloud-init guest customization would fail because cloud-init-local.service couldn't start when using cloud-init 22.1-5.0.1."
- "The issue has been resolved in cloud-init 22.1-6.0.1. Here will upgrade cloud-init to latest version for resolution."
- "Please refer to https://bugzilla.oracle.com/bugzilla/show_bug.cgi?id=18115 for details."
tags:
- known_issue

- name: "Uninstall current cloud-init"
include_tasks: ../utils/install_uninstall_package.yml
vars:
package_list: ["cloud-init"]
package_state: "absent"

- name: "Remove /etc/cloud dir before install the latest cloud-init"
ansible.builtin.shell: |
if [ -e "/etc/cloud" ] ; then
rm -rf "/etc/cloud";
fi
delegate_to: "{{ vm_guest_ip }}"

- name: "Install latest cloud-init version"
include_tasks: ../utils/install_uninstall_package.yml
vars:
package_list: ["cloud-init"]
package_state: "latest"
when:
- guest_os_ansible_distribution == "OracleLinux"
- guest_os_ansible_distribution_ver in ['8.7', '9.1']

# Check whether cloud-init version meets cloud-init GOSC requirements
# Debian 10 and 11 cloud-init GOSC requires cloud-init 22.1 or later installed.
# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008039
Expand Down