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

Update cluster provisioning image to fedora 36 #799

Merged

Conversation

brianmcarey
Copy link
Member

Fedora 31 is no longer supported so we should update to use Fedora 36.
This change also includes a bump to the dockerize version to the latest
release.

Signed-off-by: Brian Carey [email protected]

Fedora 31 is no longer supported so we should update to use Fedora 36.
This change also includes a bump to the dockerize version to the latest
release.

Signed-off-by: Brian Carey <[email protected]>
@kubevirt-bot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kubevirt-bot kubevirt-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels May 23, 2022
@kubevirt-bot kubevirt-bot requested review from dhiller and enp0s3 May 23, 2022 14:52
@brianmcarey
Copy link
Member Author

/test check-provision-k8s-1.23

@brianmcarey
Copy link
Member Author

/test check-provision-k8s-1.23

@brianmcarey brianmcarey marked this pull request as ready for review May 31, 2022 16:50
@kubevirt-bot kubevirt-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 31, 2022
@brianmcarey
Copy link
Member Author

/retest-required

@@ -150,6 +150,6 @@ exec qemu-system-x86_64 -enable-kvm -drive format=qcow2,file=${next},if=virtio,c
-append "$(cat /kernel.args) $(cat /additional.kernel.args) ${KERNEL_ARGS}" \
-vnc :${n} -cpu host,migratable=no,+invtsc -m ${MEMORY} -smp ${CPU} \
-serial pty -M q35,accel=kvm,kernel_irqchip=split \
-device intel-iommu,intremap=on,caching-mode=on -soundhw hda -soundhw ac97 \
-device intel-iommu,intremap=on,caching-mode=on -device intel-hda -device hda-duplex -device AC97 \
Copy link
Member

Choose a reason for hiding this comment

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

now that -shoundhw is gone, -device AC97 is more opaque; but why do we need audio on kubernetes nodes? Can it be dropped (on another PR?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry I removed these too soon - soundhw is only removed qemu 7.1[1]. Fedora 36 has qemu 6.2. I have added the soundhw flags back in as they are more descriptive of what the device is. These soundcards are used for testing scenarios with the Kubevirt device plugin - #734

[1] https://github.com/qemu/qemu/blob/master/docs/about/removed-features.rst#creating-sound-card-devices-using--soundhw-removed-in-71

Copy link
Contributor

Choose a reason for hiding this comment

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

Just note please that we do have this warning

qemu-system-x86_64: warning: '-soundhw ac97' is deprecated, please use '-device AC97' instead
qemu-system-x86_64: warning: '-soundhw hda' is deprecated, please use '-device intel-hda -device hda-duplex' instead

Copy link
Member Author

Choose a reason for hiding this comment

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

This should remove those warnings:
#828

The manifest directories have to be in place before carrying out the
copy with scp.

If the directories are not in place, the scp command will fail due to
not being able to find the directories.

Signed-off-by: Brian Carey <[email protected]>
@brianmcarey brianmcarey force-pushed the cluster-provision-fedora-version branch from a922172 to b0c2120 Compare June 2, 2022 12:40
@brianmcarey
Copy link
Member Author

/test check-provision-k8s-1.23

@brianmcarey
Copy link
Member Author

/test check-provision-k8s-1.24

@dhiller
Copy link
Contributor

dhiller commented Jun 8, 2022

@brianmcarey looks like we at are beyond capacity again, thus the job doesn't get started...

Copy link
Contributor

@dhiller dhiller left a comment

Choose a reason for hiding this comment

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

/approve
/hold

Unhold whenever it suits best.

@kubevirt-bot kubevirt-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 14, 2022
@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 14, 2022
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhiller

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 14, 2022
@kubevirt-bot kubevirt-bot added size/M and removed lgtm Indicates that a PR is ready to be merged. size/S labels Jun 17, 2022
@brianmcarey brianmcarey force-pushed the cluster-provision-fedora-version branch from bb98cde to b0c2120 Compare June 17, 2022 14:08
@brianmcarey
Copy link
Member Author

/unhold

@kubevirt-bot kubevirt-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 20, 2022

ARG centos_version

RUN dnf -y update nettle && dnf -y install jq iptables iproute dnsmasq qemu openssh-clients screen && dnf clean all
RUN dnf -y install jq iptables iproute dnsmasq qemu openssh-clients screen && dnf clean all
Copy link
Contributor

@oshoval oshoval Jun 20, 2022

Choose a reason for hiding this comment

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

Can you explain why nettle is not required ?
(in PR desc / commit preferably if possible please)

Ah its update, maybe the shipped version is good enough ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes - when I was running this - the dnf update was not actually updating anything - nothing to update.

@brianmcarey
Copy link
Member Author

Copy link
Contributor

@oshoval oshoval left a comment

Choose a reason for hiding this comment

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

Thanks

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 29, 2022
@kubevirt-commenter-bot
Copy link

/retest-required
This bot automatically retries required jobs that failed/flaked on approved PRs.
Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

@kubevirt-bot kubevirt-bot merged commit 5842a3c into kubevirt:main Jun 30, 2022
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Jul 5, 2022
[da6af04 kind providers: Support Podman auto detection](kubevirt/kubevirtci#826)
[5842a3c Update cluster provisioning image to fedora 36](kubevirt/kubevirtci#799)

```release-note
NONE
```

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Jul 6, 2022
[111fd50 cnao, Bump to v0.77.0 on all supported providers](kubevirt/kubevirtci#817)
[010a2ec podman: Support non root user via root socket](kubevirt/kubevirtci#824)
[da6af04 kind providers: Support Podman auto detection](kubevirt/kubevirtci#826)
[5842a3c Update cluster provisioning image to fedora 36](kubevirt/kubevirtci#799)

```release-note
NONE
```

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Jul 7, 2022
[111fd50 cnao, Bump to v0.77.0 on all supported providers](kubevirt/kubevirtci#817)
[010a2ec podman: Support non root user via root socket](kubevirt/kubevirtci#824)
[da6af04 kind providers: Support Podman auto detection](kubevirt/kubevirtci#826)
[5842a3c Update cluster provisioning image to fedora 36](kubevirt/kubevirtci#799)

```release-note
NONE
```

Signed-off-by: kubevirt-bot <[email protected]>
@jean-edouard
Copy link
Contributor

jean-edouard commented Jul 29, 2022

$ docker pull quay.io/fedora/fedora@sha256:38813cf0913241b7f13c7057e122f7c3cfa2e7c427dca3194f933d94612e280b
Error response from daemon: manifest for quay.io/fedora/fedora@sha256:38813cf0913241b7f13c7057e122f7c3cfa2e7c427dca3194f933d94612e280b not found: manifest unknown: manifest unknown

Am I doing something wrong? Also, any reason not to use quay.io/fedora/fedora:36?

@brianmcarey
Copy link
Member Author

Am I doing something wrong? Also, any reason not to use quay.io/fedora/fedora:36?

It looks like old fedora images get cleaned up over time from quay. I would be in favour of just using quay.io/fedora/fedora:36 - it would prevent us from falling too far behind.

I see that it has been updated to use the kubevirtci mirror - #849 - but there could still be some value in pulling the latest f36 from quay.

@oshoval
Copy link
Contributor

oshoval commented Aug 3, 2022

Am I doing something wrong? Also, any reason not to use quay.io/fedora/fedora:36?

It looks like old fedora images get cleaned up over time from quay. I would be in favour of just using quay.io/fedora/fedora:36 - it would prevent us from falling too far behind.

It might break with unknown errors from time to time, and less deterministic between reprovisions
especially when we are using something very new
we might want to have some cron update job that runs one a month ?
so it will be deterministic
see #847 (comment)
or to use only patch versions if possible but pin the major + minor

If the owners would tag the versions it wont get deleted - if we can ask them that ?

I see that it has been updated to use the kubevirtci mirror - #849 - but there could still be some value in pulling the latest f36 from quay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants