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
Bug 1874055: report errors when v2v-vmware ConfigMap is not available #6480
Bug 1874055: report errors when v2v-vmware ConfigMap is not available #6480
Conversation
atiratree
commented
Aug 31, 2020
- either due to permission issues or if missing
- show if required ConfigMap attributes are missing per each provider
Signed-off-by: Ido Rosenzwig <irosenzw@redhat.com>
@suomiy: This pull request references Bugzilla bug 1874055, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
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. |
@irosenzw @glekner @yaacov @matthewcarleton Please review this PR builds on #6437 and also fixes https://bugzilla.redhat.com/show_bug.cgi?id=1871109 |
d21f853
to
8ef2dcf
Compare
It might be more useful to swap the text here. The first thing they'll probably want to see is that they need to contact their admin and then see the info why.
Nit: Should say "cannot be found in any of"
No period in title
No period in title I'm not sure we need to hide things in the expand area for these. It seems better to not require the user to click to understand things better IMO. |
kubevirtVmwareConfigMap = await getVmwareConfigMap(); | ||
} catch (error) { | ||
if (error?.json.code === 403) { | ||
throw new K8sDetailError({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
who catches the error ? isn't it the catch
in line 169 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, that is just a catch to test the presence of the deployment. The error will get caught in vmware/ovirt provider actions and saved to redux.
- either due to permission issues or if missing - show if required ConfigMap attributes are missing per each provider
8ef2dcf
to
3b283e2
Compare
v2v-vmware is the name of the config map. There is an effort to rename it, but not in this release |
I generalized the approach to 403 errors so it can be reused by any user of cleanupAndGetResults |
k8sGet: (kind: K8sKind, name: string, namespace: string) => Promise<K8sResourceKind>, | ||
counter: number = 30, | ||
) => { | ||
const waitForUploadReady = async (dataVolume: K8sResourceKind, counter: number = 30) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@glekner I noticed EnhancedK8sMethods are used in cdi upload even though their functionality is never triggered so I reverted back to normal K8s* methods. Let me know if I missed something and they are indeed needed.
...reate-vm-wizard/tabs/import-providers-tab/providers/vm-import-provider-controller-errors.tsx
Outdated
Show resolved
Hide resolved
providerType === VMImportProvider.VMWARE ? VMWARE_DOCURL : OVIRT_DOCURL; | ||
|
||
const resolveUIMessageTemplating = (message: string, provider: VMImportProvider) => { | ||
if (!message) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if message is null
or undefined
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that shouldn't be an issue as it will just pass through any empty value without a change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
- add another option to cleanupAndGetResults
a650afe
to
031814e
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: irosenzw, suomiy 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 |
@suomiy: All pull requests linked via external trackers have merged: Bugzilla bug 1874055 has been moved to the MODIFIED state. In response to this:
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. |