-
Notifications
You must be signed in to change notification settings - Fork 87
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
Adjust clusteroperator msgs to https://github.com/openshift/cluster-v… #70
Adjust clusteroperator msgs to https://github.com/openshift/cluster-v… #70
Conversation
137f4b7
to
15983d3
Compare
getting ci setup errors so far, but have some changes coming based on local testing /hold |
yeah @bparees @smarterclayton don't bother reviewing until I push my next commit and announce this is viable |
sorry, didn't see this in time :) |
On Tue, Dec 18, 2018 at 5:56 PM Ben Parees ***@***.***> wrote:
yeah @bparees <https://github.com/bparees> @smarterclayton
<https://github.com/smarterclayton> don't bother reviewing until I push
my next commit and announce this is viable
sorry, didn't see this in time :)
no worries ... I was a bit tardy in posting it ... and as a suggestion,
read
and cross reference with @smarterclayton 's examples at
https://github.com/openshift/cluster-version-operator/blob/master/docs/dev/clusteroperator.md#conditions
Hopefully it helps explain some of the choices made here (assuming you and
I interpret that doc the same way).
… —
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#70 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADbadAjyUBteKU8195Nsqn1aaF3Ployaks5u6XKDgaJpZM4ZY544>
.
|
15983d3
to
8ae1a7d
Compare
OK the installer (both aws and libvirt) quit working for me between the office and home, so I couldn't finish testing, but I think I got far enough along to at least start reviewing. Hopefully I can test tomorrow AM in conjunction with iterating over any review we get to over PTO (which starts tomorrow PM for me, but I plan on spending some cycles over PTO). @bparees ^^ |
got cluster install working again @bparees but have found some things that need to fix ... so please consider "paused" again until I update |
8ae1a7d
to
c97f4c8
Compare
OK things look good in my local testing now. Both initial startup and release upgrade flows. @bparees ptal whenever you have the chance |
c97f4c8
to
a8ea52b
Compare
OK I've pushed updates @bparees .
|
bump @bparees .... happy new year |
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.
i'm loving all these comments :)
// scheduled imports for example to fail ... the imagestream "state" could | ||
// be sufficiently compromised, so we'll flag false there | ||
if needCreds { | ||
return falseRC, falseMsg |
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.
still not clear on why this isn't based on whether the samplesexist==true && importcomplete? isn't that what can resolve whether the imagestream state actually is compromised or not?
(sorry if i'm dragging us back into a discussion we resolved pre-holiday)
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.
(or per your comments below, shouldn't it be checking notAtAnyVersionYet? (if we're at some version, then we're available, even if we currently "needCreds" to move to the desired version)
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.
Hmmmmmm ... so in a) taking in your point, and b) rereading (yet again) https://github.com/openshift/cluster-version-operator/blob/master/docs/dev/clusteroperator.md#conditions, I think there are these considerations here:
- An API error during the initial install
- We have installed at least once, are still at the installed version, but now have an error of some sort (could be bad api server interactions, needs creds for rhel, or the config is invalid
- Item 2), but are migrating to a new version vs. staying at the installed version
For 1), I'll keep the empty message, and false ... details in the other two conditions
For 3), per the guideline, we need to set available to false, with the unable to reach message
For 2), as you say, we should set available to true, with the ok at the version in question, where again the error will show up in the failing/progressing messages
To get to this behavior, I think we
- add spec.Version/status.Version comparison, accounting for not initially installed, to determine if we are migrating versions
- if migrating, ANY error condition means we return false with the unable to reach message
- if not migrating, we just leverage not any version, etc. as you note below
Thoughts? ... I'll work on the update if we agree here ...
thanks
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.
per hallway discussion we'll revisit this after there is org-wide agreement on how failing/progressing/available should be used.
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 assuming openshift/cluster-version-operator#73 holds up, scenario 3) goes away @bparees
If so, I'll create a new PR to get rid of the apiError and needsCreds conditionals.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bparees, gabemontero 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 |
1 similar comment
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bparees, gabemontero 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
…ersion-operator/blob/master/docs/dev/clusteroperator.md#what-should-an-operator-report-with-clusteroperator-custom-resource
Fixes #69
@bparees @smarterclayton