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

Fixes for issues with retrieving agent_config when the server has issues while creating a pvpool #406

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

jackyalbo
Copy link
Contributor

@jackyalbo jackyalbo commented Sep 1, 2020

fix for overlooking a missing AGENT_CONFIG in pvpool secret
recheck for agent_config in case it wasn't available

Signed-off-by: jackyalbo [email protected]

recheck for agent_config in case it wasn't available

Signed-off-by: jackyalbo <[email protected]>
res, err := r.NBClient.GetHostsPoolAgentConfigAPI(nb.GetHostsPoolAgentConfigParams{
Name: r.BackingStore.Name,
})
if err != nil {
Copy link
Member

@dannyzaken dannyzaken Sep 1, 2020

Choose a reason for hiding this comment

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

not sure it's necessary here, but make sure you don't need to handle different errors in different ways (persistent vs. temp error)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well I'm currently unaware of any persistent error here. you think about anything specific? thinking about rpc failures that should be temporal - not sure about others... especially when the pool suppose to exist if we got here and it won't be any other type of pool other than hosts

@jackyalbo jackyalbo merged commit 6f67ca0 into noobaa:master Sep 1, 2020
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