Skip to content
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

fix: to_restart and to_config in get_hosted_entity_statuses #606

Closed
wants to merge 1 commit into from

Conversation

SteBaum
Copy link
Contributor

@SteBaum SteBaum commented Jun 27, 2024

Which issue(s) this PR fixes

Fixes None

The to_restart and to_config indicators must be true only if component is active, otherwise if it belongs to a node that has been decommissioned there is no point to restart or reconfigure it and it will fail anyways since the host is not there anymore. Therefore an additional condition has been put for these indicators to be true.

Additional comments

Agreements

@SteBaum SteBaum self-assigned this Jun 27, 2024
@SteBaum SteBaum requested review from PaulFarault and rpignolet June 27, 2024 14:21
@SteBaum SteBaum mentioned this pull request Jun 27, 2024
2 tasks
@PaulFarault
Copy link
Contributor

Seems ok, please add a comment and/or something in the docstring.

@SteBaum SteBaum force-pushed the stephan/fix/get_hosted_entity_statuses branch from c7bc163 to 6068d18 Compare July 17, 2024 07:33
@SteBaum
Copy link
Contributor Author

SteBaum commented Jul 17, 2024

Seems ok, please add a comment and/or something in the docstring.

Has been done.

@PaulFarault
Copy link
Contributor

Well, I spoke too soon. Why make the reading of the to_restart and to_config columns depend on the is_active column?

Can't we just use the filter_active filter to only select "truly" configurable/restartable components instead of altering values on read?

@SteBaum
Copy link
Contributor Author

SteBaum commented Jul 17, 2024

Well, I spoke too soon. Why make the reading of the to_restart and to_config columns depend on the is_active column?

Can't we just use the filter_active filter to only select "truly" configurable/restartable components instead of altering values on read?

Yes, it is possible to put the filter_active to True in the script of thetdp plan reconfigure command. However, the reason I put it in the query get_hosted_entity_statuses is that I thought it would always be illogical to restart or configure a component which is on a host that does not exist anymore so it was logical to condition the values of these two columns on whether the component actually exists or not.

@PaulFarault
Copy link
Contributor

Ok, just use the filter_active where it's needed then!

@SteBaum SteBaum force-pushed the stephan/fix/get_hosted_entity_statuses branch from 6068d18 to 3aebe92 Compare July 18, 2024 08:52
@SteBaum
Copy link
Contributor Author

SteBaum commented Jul 18, 2024

Ok, just use the filter_active where it's needed then!

Done

@SteBaum SteBaum marked this pull request as draft August 2, 2024 11:29
@SteBaum
Copy link
Contributor Author

SteBaum commented Nov 4, 2024

is_active column has been removed

@SteBaum SteBaum closed this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants