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 1919336: Check if datastore belongs to a datastore cluster #28
Bug 1919336: Check if datastore belongs to a datastore cluster #28
Conversation
@gnufied: This pull request references Bugzilla bug 1919336, which is invalid:
Comment 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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gnufied 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 |
/bugzilla refresh |
@gnufied: This pull request references Bugzilla bug 1919336, 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. |
@gnufied: This pull request references Bugzilla bug 1919336, which is invalid:
Comment 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. |
84f7a2c
to
ad4d8a3
Compare
/bugzilla refresh |
@gnufied: This pull request references Bugzilla bug 1919336, which is valid. 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. |
pkg/check/datastore.go
Outdated
} | ||
} | ||
} | ||
klog.V(2).Infof("Checked datastore %s for SRDS - no problems found", dataStoreName) |
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.
This is called for every StorageClass and might be too noisy.
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.
increased the log level.
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.
You increased it at wrong place, see above
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.
yikes. fixed.
return nil | ||
} | ||
|
||
func checkForDatastoreCluster(ctx *CheckContext, dataStoreName string) error { |
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.
Perhaps for a subsequent PR: This is called for every StorageClass and loads non-trivial amount of data from vSphere. Would it be possible to call it only once per dataStorageName
? I.e. with a cache somewhere in CheckStorageClasses
? It's not that easy, because there is CheckDefaultDatastore too...
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.
Yes we could. I think it might be worth caching the information within the same run. but once all the checks are run -we can automatically expire the cache, so as they aren't reused in next run.
Ensure that datastore check gets called Add unit tests for the same
fix test data to have datastore cluster
e9ed0d3
to
07c8536
Compare
Also add comments that explains when alerts gets ignored
07c8536
to
687d0f1
Compare
pkg/check/datastore.go
Outdated
} | ||
} | ||
} | ||
klog.V(2).Infof("Checked datastore %s for SRDS - no problems found", dataStoreName) |
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.
You increased it at wrong place, see above
@jsafrane fixed the comments. PTAL |
/lgtm |
@gnufied: All pull requests linked via external trackers have merged: Bugzilla bug 1919336 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. |
fixes https://bugzilla.redhat.com/show_bug.cgi?id=1919336
Output after the change: