foreman icon indicating copy to clipboard operation
foreman copied to clipboard

Fixes #38948 - Add power state bulk action to new host overview page

Open EnigmaXV opened this issue 1 month ago โ€ข 0 comments

  • Implemented both backend and frontend parts of the bulk power state feature
  • Added backend unit tests
  • Implemented new endpoint for changing the power state
  • Synced power state updates with the power status icon

EnigmaXV avatar Dec 09 '25 22:12 EnigmaXV

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 avatar Nov 30 '25 08:11 kubevirt-bot

Hi @alaypatel07 Fyi please

is it fine for the non network DRA devices as well ? if it isn't we will need both

oshoval avatar Dec 02 '25 09:12 oshoval

cc @SchSeba can you review please ?

oshoval avatar Dec 02 '25 10:12 oshoval

@oshoval This PR needs to wait for this issue to be resolved: https://github.com/kubernetes/kubernetes/issues/134569

There is a PR open for it https://github.com/kubernetes/enhancements/pull/5669 awaiting reviews. Once this PR is merged, we can start using this attribute.

alaypatel07 avatar Dec 02 '25 14:12 alaypatel07

@oshoval This PR needs to wait for this issue to be resolved: kubernetes/kubernetes#134569

There is a PR open for it kubernetes/enhancements#5669 awaiting reviews. Once this PR is merged, we can start using this attribute.

Thanks @alaypatel07 since it is behind a FG, and will help advancing meanwhile, maybe lets merge the current PR meanwhile, and if needed rename it to pciBusID on both Kubevirt and once needed https://github.com/k8snetworkplumbingwg/dra-driver-sriov ? as long as it doesn't affect other DRA devices, it should be safe imho

oshoval avatar Dec 02 '25 14:12 oshoval

@oshoval yeah it makes sense to iterate faster, in that case can you avoid taking a dependency on "k8s.io/dynamic-resource-allocation/deviceattribute" and hardcode the name like it was before?

alaypatel07 avatar Dec 02 '25 14:12 alaypatel07

@oshoval yeah it makes sense to iterate faster, in that case can you avoid taking a dependency on "k8s.io/dynamic-resource-allocation/deviceattribute" and hardcode the name like it was before?

since we use the dependency only for the prefix resource.kubernetes.io atm we will need it either way it seems in the future, so it is fine to keep it imho, wdyt ? if not, you prefer to hardcode it as resource.kubernetes.io/pciAddress ?

We already doing same on dra driver, so this is another reason it is better to have official consts

oshoval avatar Dec 02 '25 14:12 oshoval

if not, you prefer to hardcode it as resource.kubernetes.io/pciAddress ?

yes this would be my preference, out of abundance of safety. This is to make sure that others dont start building stuff around the official unmerged open PRs. And while you are at this, can you also change the hardcoded resource.kubernetes.io/mDevUUID to mdevUUID, ref: https://kubernetes.slack.com/archives/C0409NGC1TK/p1764687884228119?thread_ts=1764687710.269999&cid=C0409NGC1TK

alaypatel07 avatar Dec 02 '25 15:12 alaypatel07

if not, you prefer to hardcode it as resource.kubernetes.io/pciAddress ?

yes this would be my preference, out of abundance of safety. This is to make sure that others dont start building stuff around the official unmerged open PRs. And while you are at this, can you also change the hardcoded resource.kubernetes.io/mDevUUID to mdevUUID, ref: https://kubernetes.slack.com/archives/C0409NGC1TK/p1764687884228119?thread_ts=1764687710.269999&cid=C0409NGC1TK

done ptal

oshoval avatar Dec 02 '25 15:12 oshoval

done https://github.com/kubevirt/kubevirt/pull/16249#discussion_r2581676112

oshoval avatar Dec 02 '25 15:12 oshoval

@alaypatel07 about the mDevUUID are you sure to remove the prefix? should it contain any prefix?

SchSeba avatar Dec 02 '25 15:12 SchSeba

/retest-required /lgtm

alaypatel07 avatar Dec 02 '25 19:12 alaypatel07

/hold

seems it doesnt work with pciBusID, checking maybe it is just because of the kubelet bug

note please that i didnt test the mDevUUID, maybe better to delegate it to a follow-up

oshoval avatar Dec 03 '25 11:12 oshoval

/hold cancel

it works, my mistake

oshoval avatar Dec 03 '25 12:12 oshoval

@iholder101 / @xpivarc can you guys please bless this PR, its a small one, thanks!

alaypatel07 avatar Dec 03 '25 15:12 alaypatel07

@SchSeba: changing LGTM is restricted to collaborators

In response to this:

LGTM nice work :)

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-sigs/prow repository.

kubevirt-bot avatar Dec 04 '25 10:12 kubevirt-bot

/approve Attribute was accepted into KEP - https://github.com/kubernetes/enhancements/pull/5669

enp0s3 avatar Dec 14 '25 11:12 enp0s3

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enp0s3

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 avatar Dec 14 '25 11:12 kubevirt-bot

Required labels detected, running phase 2 presubmits: /test pull-kubevirt-e2e-k8s-1.34-windows2016 /test pull-kubevirt-e2e-kind-1.33-vgpu /test pull-kubevirt-e2e-kind-sriov /test pull-kubevirt-e2e-k8s-1.34-ipv6-sig-network /test pull-kubevirt-e2e-k8s-1.32-sig-network /test pull-kubevirt-e2e-k8s-1.32-sig-storage /test pull-kubevirt-e2e-k8s-1.32-sig-compute /test pull-kubevirt-e2e-k8s-1.32-sig-operator /test pull-kubevirt-e2e-k8s-1.33-sig-network /test pull-kubevirt-e2e-k8s-1.33-sig-storage /test pull-kubevirt-e2e-k8s-1.33-sig-compute /test pull-kubevirt-e2e-k8s-1.33-sig-operator

kubevirt-commenter-bot avatar Dec 14 '25 11:12 kubevirt-commenter-bot

@oshoval Thank you!

enp0s3 avatar Dec 14 '25 11:12 enp0s3

Thanks for the help here Sebastian, all

oshoval avatar Dec 14 '25 11:12 oshoval

/lgtm

alaypatel07 avatar Dec 14 '25 13:12 alaypatel07

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

kubevirt-commenter-bot avatar Dec 14 '25 16:12 kubevirt-commenter-bot

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

kubevirt-commenter-bot avatar Dec 15 '25 01:12 kubevirt-commenter-bot

โœ‹๐Ÿงข

/hold

Dear @oshoval

โš ๏ธ this pull request exceeds the number of retests that are allowed per individual commit.

๐Ÿ”Ž Please check that the changes you committed are fine and that there are no infrastructure issues present!

Checklist:

๐Ÿ’ฌ How we calculate the number of retests: The number of retest comments are the number of /test or /retest comments after the latest commit only.

๐Ÿ‘Œ After all issues have been resolved, you can remove the hold on this pull request by commenting /unhold on it.

๐Ÿ™‡ Thank you, your friendly referee automation, on behalf of the @sig-buildsystem and the KubeVirt community!

kubevirt-commenter-bot avatar Dec 15 '25 01:12 kubevirt-commenter-bot

/hold cancel

all is passing

oshoval avatar Dec 15 '25 07:12 oshoval