image-builder icon indicating copy to clipboard operation
image-builder copied to clipboard

Adding support for Kubevirt capi images

Open isaacdorfman opened this issue 3 years ago • 9 comments

What this PR does / why we need it: Add support for kubevirt images(structured as qemu file in a container image) using the command "make build-kubevirt-qemu-ubuntu-2004" inside "images/capi".

Which issue(s) this PR fixes (optional, in fixes #(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #

Additional context Add any other context for the reviewers

isaacdorfman avatar Mar 28 '22 14:03 isaacdorfman

Welcome @isaacdorfman!

It looks like this is your first PR to kubernetes-sigs/image-builder 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/image-builder has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. :smiley:

k8s-ci-robot avatar Mar 28 '22 14:03 k8s-ci-robot

Hi @isaacdorfman. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Mar 28 '22 14:03 k8s-ci-robot

/ok-to-test

kkeshavamurthy avatar Apr 05 '22 18:04 kkeshavamurthy

Another thought. The PR https://github.com/kubernetes-sigs/image-builder/pull/829 removes the flatcar as a second builder in packer.json but rather uses a separate file to define it. https://github.com/kubernetes-sigs/image-builder/pull/829#pullrequestreview-935225813

Do you think this would be suitable for this PR too?

seanschneeweiss avatar Apr 27 '22 21:04 seanschneeweiss

@seanschneeweiss anything else that needs to be done for this pr?

davidvossel avatar May 31 '22 14:05 davidvossel

@isaacdorfman can you follow up on this PR so we can get this merged

davidvossel avatar Jul 21 '22 19:07 davidvossel

@seanschneeweiss Hi, I rebased the PR and I think your comments got resolved after the rebase.

isaacdorfman avatar Jul 26 '22 14:07 isaacdorfman

@seanschneeweiss Hi, I rebased the PR and I think your comments got resolved after the rebase.

I think the open comments are still valid. Content was added to images/capi/packer/qemu/packer.json that was actually removed in a prior PR #829.

seanschneeweiss avatar Jul 27 '22 07:07 seanschneeweiss

@isaacdorfman please follow up on this

davidvossel avatar Aug 25 '22 12:08 davidvossel

The pull-azure-sigs tests fail on the error:

==> sig-flatcar: Error: network.VirtualNetworksClient#Delete: Failure sending request: StatusCode=400 -- Original Error: Code="InUseSubnetCannotBeDeleted" Message="Subnet pkrsn2tgdnpoxoh is in use by /subscriptions/0e46bd28-a80f-4d3a-8200-d9eb8d80cb2e/resourceGroups/pkr-Resource-Group-2tgdnpoxoh/providers/Microsoft.Network/networkInterfaces/pkrni2tgdnpoxoh/ipConfigurations/ipconfig and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet." Details=[] ==> sig-flatcar:[0m

This seems like a problem in the environment.

isaacdorfman avatar Aug 29 '22 13:08 isaacdorfman

/retest-required

isaacdorfman avatar Aug 29 '22 13:08 isaacdorfman

/retest

isaacdorfman avatar Aug 29 '22 13:08 isaacdorfman

/retest

isaacdorfman avatar Aug 29 '22 16:08 isaacdorfman

@seanschneeweiss @davidvossel I fixed the comments and rebased. Please take a look.

isaacdorfman avatar Aug 30 '22 08:08 isaacdorfman

/retest-required

isaacdorfman avatar Sep 12 '22 14:09 isaacdorfman

/retest-required

isaacdorfman avatar Sep 12 '22 15:09 isaacdorfman

/test pull-azure-sigs

isaacdorfman avatar Sep 12 '22 15:09 isaacdorfman

@seanschneeweiss @davidvossel All tests pass and I fixed all comments.

isaacdorfman avatar Sep 12 '22 15:09 isaacdorfman

@davidvossel @seanschneeweiss I deleted the guest agent and moved it's addition into a separate PR: https://github.com/kubernetes-sigs/image-builder/pull/980

isaacdorfman avatar Sep 20 '22 12:09 isaacdorfman

/retest

isaacdorfman avatar Sep 20 '22 13:09 isaacdorfman

/retest

isaacdorfman avatar Sep 20 '22 14:09 isaacdorfman

/test pull-azure-sigs

isaacdorfman avatar Sep 20 '22 17:09 isaacdorfman

@seanschneeweiss @davidvossel All tests pass

isaacdorfman avatar Sep 20 '22 19:09 isaacdorfman

/approve

kkeshavamurthy avatar Sep 22 '22 21:09 kkeshavamurthy

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: isaacdorfman, kkeshavamurthy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Sep 22 '22 21:09 k8s-ci-robot

/test pull-ova-all

isaacdorfman avatar Sep 22 '22 22:09 isaacdorfman

Thanks a lot. /lgtm

seanschneeweiss avatar Sep 25 '22 15:09 seanschneeweiss

Ova pull seems to fail due to

[1;31m==> vsphere-clone: bash: curl: command not found[0m
[1;31m==> vsphere-clone: bash: wget: command not found[0m
[1;31m==> vsphere-clone: chmod: cannot access '/tmp/goss-0.3.16-linux-amd64': No such file or directory[0m

This seems to be related to https://github.com/kubernetes-sigs/image-builder/pull/983 Probably a rebase fixes this.

seanschneeweiss avatar Sep 25 '22 15:09 seanschneeweiss

@seanschneeweiss @davidvossel Tests pass

isaacdorfman avatar Sep 28 '22 15:09 isaacdorfman