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

Deployment problems now returned with instance_group #2451

Merged
merged 1 commit into from Jul 5, 2023

Conversation

selzoc
Copy link
Member

@selzoc selzoc commented Jul 3, 2023

What is this change about?

This will allow for display/sorting of problems via this value in the CLI.

Please provide contextual information.

In support of the bosh recover work (story), which asks users for desired problem resolutions on a per-instance-group basis. Prior to this change, there was no way for the CLI to have the value of the instance group of a problem.

bosh create-recovery-plan PR

How should this change be described in bosh release notes?

List problems endpoint now returns the instance group of each problem.

Does this PR introduce a breaking change?

No

This will allow for sorting of problems via this value in the CLI.

[#185483613]

Authored-by: Chris Selzo <cselzo@vmware.com>
@selzoc selzoc changed the title Deployment problems now include instance_group Deployment problems now returned with instance_group Jul 3, 2023
Copy link
Contributor

@nouseforaname nouseforaname left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jpalermo
Copy link
Member

jpalermo commented Jul 4, 2023

Is "unknown job" already used somewhere? I know we've eliminated most external conflation of the original job => instance group rename even though a lot of the internal code still had the old names.

@selzoc
Copy link
Member Author

selzoc commented Jul 4, 2023

@jpalermo I don't think so - in fact there's a db constraint that the job name not be null for an instance. However, I just mirrored the logic that's in the description functions, which all have job = @instance.job || 'unknown job'.

@selzoc selzoc merged commit 803f651 into main Jul 5, 2023
4 checks passed
@selzoc selzoc deleted the add-instance-group-to-problems-185483613 branch July 5, 2023 20:49
@jpalermo
Copy link
Member

jpalermo commented Jul 6, 2023

It's not "great" that we're spreading misinformation. If a user gets back an "unknown job" message at some point, it feels actively unhelpful since "job" here refers to the 2015 notion of a job rather than "unknown instance group" which might give them a clue.

But I've no idea if this is ever even supposed to happen or it's just the exception case that will never occur. If it does surface to users at some point, we should probably go around and update the strings to be helpful.

@beyhan
Copy link
Member

beyhan commented Jul 6, 2023

I agree with @jpalermo that we should go for unknown instance group here because unknown job is confusing.

@selzoc
Copy link
Member Author

selzoc commented Jul 6, 2023

I would propose a follow-on issue to cleanse the codebase for uknown job then, as it's out of the scope of this PR.

@jpalermo afaict, this will never occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants