-
Notifications
You must be signed in to change notification settings - Fork 381
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
backend.list does not return all backends when labels are used #2127
Comments
Currently the dependency information is not available outside vclprog. |
Right - any idea when this will amended? |
@michbsd I cannot give you a date but hopefully this will be reviewed at the next bugwash either this or next week, so sit tight! |
More details on the actual problem here: this is not a bug unless we decide it's one, and I don't think this was discussed properly during the bugwash. This is rather an open question: when we run Should we broaden the meaning of active in the context of VCL switching using labels? Another possibility could be to add a flag like |
From my point of view this is a bug and we should treat it as such. Any backend used directly or indirectly in the active VCL should be displayed following pre-labels |
I am going to blackball this ticket. Yes, it sounds obvious and intuitive up front, but once you start to think through details, for instance related to backend.list patterns, it becomes very hairy, very fast. I will also argue that at this point we do not have sufficient operational experience with labels to make the right decisions with any reasonable probability. (This should also be viewed through the prism of the "global backends" we have been talking about at VDDs, but not gotten around to implement yet.) |
Backport review: Labels are 5.0 only, and there were no commits. |
PHK wrote:
I am reopening this ticket now, hoping that we have gained enough experience with labels, and can find a better solution for this. Some points:
For the reasons above I consider this a bug. If we can agree on what the correct behavior should be, then I can attempt a pull request for its implementation. My current view is that the first column of the output of |
That sounds like something we can work with. Unanswered: Should/Does backend.set_health (and other commands) work through labels ? |
Summary from discussion at bugwash:
|
Just a note: I think I said in the bugwash that the label is resolved when the command I have looked over the code this morning, and I do not think that causes any problems. I can't quite make up my mind if I think it is more or less POLA that you can change the active VCL with a I think I lean retaining current behaviour. |
We decided that vcl.use should resolve labels when executed. |
...and looking at the code, there seems to be no locking penalty for active vcl being a label, so I dont think changing harmless behaviour which people may depend on is a good idea. |
Bugwash: summary above is consensus, move ticket to vip, close here. |
I think it goes against the original intent and against operations to do that. If by resolving you mean having the target VCL as the active VCL instead of the label. That means that if your A net loss. It's as if you said |
@bsdphk I agree with @dridi's last feedback, label assignments need to be dynamic, anything else contradicts the reason we got labels in the first place. OK? |
Reported by @michbsd on IRC.
Test:
The text was updated successfully, but these errors were encountered: