-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Mark the DataUpload/DataDownload CRs with the node name for easy debugging #6563
Comments
Yes, the information is already in the two CRs. And if you run |
Seems that the node info isn't set for the failed dataupload/datadownload:
|
A dataupload/datadownload is assigned to one node only after the Prepare stage, if the failure happens before it, no node will be filled to the CR. Otherwise, if the CR fails during InProgress phase but the node name is not there, this is a bug. |
As the discussion, let's add a label to the DUCR/DDCR |
Why is there a label if there is a field? |
@shawn-hurley |
I wonder if an event may be better for this? Would there be a need to query all DataUpload/DataDownload that are prepared by a node? |
The current implementation is already event driven -- the controller doesn't need to query all the CRs and it doesn't need to react to all the events of a CR either, just watches the events it is interested in. |
Sorry if I was not clear, I am suggesting creating events that can be attached to the DataUpload/DataDownload CR to give this information. Creating Events is what I was referring to, not that the reconciliation needs to watch for informer-based changes. I hope this helps. |
Signed-off-by: Ming Qiu <[email protected]>
@shawn-hurley The current requirement is to record the node in which the controller prepared the CR. This is a static information and once set, it is not changed. Therefore, if the label could meet the requirement, I think we will not need to use the Events mechanisms. |
On the other hand, this Events mechanism reminds me another requirement:
I feel the Events mechanism is suitable to fulfill this requirement:
I've opened a separate issue #6606 for any further discussion about this |
I am pretty sure this is the exact use case for when pods are scheduled, and that is an event. What I am worried about is that in the future, you want to remove the label, but folks become used to using it to determine the location rather than the field. I think you can see an example of this with the default snapshot class labels in CSI. I think we even recently had a bug open about it that @sseago responded to. All that said, I think that adding events so that many things (node agent, controller, third party DM) can give some high level of what the user is seeing is worth looking into for 1.13. I understand if we want to do a simple thing for 1.12 and revert it in 1.13 but just something to consider. |
@shawn-hurley Then my proposal is as below:
|
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
…6600 Signed-off-by: Ming Qiu <[email protected]>
Is it possible that mark the
DataUpload
andDataDownload
CRs with the node name so that we can know which node-agent handles it. It is easier for debugging.Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: