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

feat: Support creating Ubuntu 22.04 OVA (vSphere) image #1170

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

dlipovetsky
Copy link
Collaborator

What problem does this PR solve?:
Adds support for creating an Ubuntu 22.04 OVA (vSphere) image.

Which issue(s) does this PR fix?:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@dlipovetsky dlipovetsky added runs-vsphere-tests runs the vsphere e2e tests and removed feature labels Sep 12, 2024
@supershal supershal added runs-vsphere-tests runs the vsphere e2e tests and removed runs-vsphere-tests runs the vsphere e2e tests labels Sep 13, 2024
@dlipovetsky
Copy link
Collaborator Author

@dlipovetsky
Copy link
Collaborator Author

The e2e tests, which provision an image, but do not create a snapshot, passed, with once exception: Ubuntu 22.04.

    vsphere-clone.kib_image: TASK [packages : install apt-transport-https deb package] **********************
    vsphere-clone.kib_image: FAILED - RETRYING: [default]: install apt-transport-https deb package (3 retries left).
    vsphere-clone.kib_image: FAILED - RETRYING: [default]: install apt-transport-https deb package (2 retries left).
    vsphere-clone.kib_image: FAILED - RETRYING: [default]: install apt-transport-https deb package (1 retries left).
    vsphere-clone.kib_image: fatal: [default]: FAILED! => {"attempts": 3, "cache_update_time": 1726520746, "cache_updated": true, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"       install 'apt-transport-https=2.4.13'' failed: E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3071 (unattended-upgr)\nE: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?\n", "rc": 100, "stderr": "E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3071 (unattended-upgr)\nE: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?\n", "stderr_lines": ["E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3071 (unattended-upgr)", "E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?"], "stdout": "", "stdout_lines": []}
    vsphere-clone.kib_image:
    vsphere-clone.kib_image: PLAY RECAP *********************************************************************
    vsphere-clone.kib_image: default                    : ok=24   changed=11   unreachable=0    failed=1    skipped=153  rescued=0    ignored=0

It looks like something acquires the dpkg lock in the background while ansible is running. A known upstream issue is a conflict with Ubuntu's automated, period upgrades: ansible/ansible#51663

@dlipovetsky
Copy link
Collaborator Author

dlipovetsky commented Sep 18, 2024

I'm going to pull the apt fix into its own PR; we'll need to backport.

Update: #1177

@dlipovetsky dlipovetsky force-pushed the dlipovetsky/ubuntu-22.04 branch from 72dfa7d to 9139aba Compare September 18, 2024 17:58
@dlipovetsky
Copy link
Collaborator Author

dlipovetsky commented Sep 18, 2024

@dlipovetsky dlipovetsky merged commit 7fdf913 into main Sep 18, 2024
16 of 18 checks passed
@dlipovetsky dlipovetsky deleted the dlipovetsky/ubuntu-22.04 branch September 18, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-backport runs-vsphere-tests runs the vsphere e2e tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants