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

CNV-41590: sysprep volume missing on creation of a VM with Sysprep #1998

Merged

Conversation

avivtur
Copy link
Member

@avivtur avivtur commented Jun 4, 2024

📝 Description

On create VM with IT flow (quick create) the sysprep was done after the VM was created, hence it wasn't added to the VM.

🎥 Demo

After:

sysprep-volume-and-disk.mp4

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Jun 4, 2024

@avivtur: This pull request references CNV-41590 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.17.0" version, but no target version was set.

In response to this:

📝 Description

On create VM with IT flow (quick create) the sysprep was done after the VM was created, hence it wasn't added to the VM.

🎥 Demo

Please add a video or an image of the behavior/changes

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from metalice and pcbailey June 4, 2024 10:44
@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label Jun 4, 2024
@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Jun 4, 2024

@avivtur: This pull request references CNV-41590 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.17.0" version, but no target version was set.

In response to this:

📝 Description

On create VM with IT flow (quick create) the sysprep was done after the VM was created, hence it wasn't added to the VM.

🎥 Demo

After:

sysprep-volume-and-disk.mp4

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 openshift-eng/jira-lifecycle-plugin repository.

@avivtur
Copy link
Member Author

avivtur commented Jun 4, 2024

/retest

@@ -47,6 +48,9 @@ type GenerateNewSysprepConfigInputType = {
withOwnerReference?: boolean;
};

export const generateSysprepConfigMapName = (vmName: string) =>
Copy link
Member

Choose a reason for hiding this comment

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

we have generate pretty name and u can send a prefix

namespace: vm?.metadata?.namespace,
ownerReferences: withOwnerReference
? [buildOwnerReference(vm, { blockOwnerDeletion: false })]
: null,
},
});

type GenerateNewSysprepConfigInputType2 = {
Copy link
Member

Choose a reason for hiding this comment

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

inputtype2?

@@ -4,6 +4,9 @@ import { useK8sWatchResource, WatchK8sResult } from '@openshift-console/dynamic-

import { AUTOUNATTEND, UNATTEND } from '../sysprep-utils';

const checkEqualCaseInsensitive = (a: string, b: string) =>
a.localeCompare(b, 'en', { sensitivity: 'base' }) === 0; // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare
Copy link
Member

Choose a reason for hiding this comment

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

this is instead of toLowerString?

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

});

try {
await k8sCreate({ data: configMap, model: ConfigMapModel });
Copy link
Member

Choose a reason for hiding this comment

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

should create after vm managed to create

@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Jun 5, 2024
Signed-off-by: Aviv Turgeman <aturgema@redhat.com>
@openshift-ci openshift-ci bot removed the lgtm Passed code review, ready for merge label Jun 5, 2024
@pcbailey
Copy link
Member

pcbailey commented Jun 5, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Jun 5, 2024
Copy link
Contributor

openshift-ci bot commented Jun 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: avivtur, metalice, pcbailey

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:
  • OWNERS [avivtur,metalice,pcbailey]

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

@openshift-merge-bot openshift-merge-bot bot merged commit d56f2f4 into kubevirt-ui:main Jun 5, 2024
10 checks passed
@gouyang
Copy link
Member

gouyang commented Jun 5, 2024

/cherry-pick release-4.16

@openshift-cherrypick-robot
Copy link
Collaborator

@gouyang: new pull request created: #2005

In response to this:

/cherry-pick release-4.16

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This issue is something we want to fix jira/valid-reference lgtm Passed code review, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants