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 waiting on StatefulSet scale down #391

Conversation

gravesm
Copy link
Member

@gravesm gravesm commented Feb 23, 2022

SUMMARY

When scaling a StatefulSet down to 0 replicas the wait will fail
because some properties of the status (readyReplicas, updatedReplicas)
will not exist. These are probably defined as omitempty in the API and
since the value is zero are not present in the response.

Fixes #203

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

k8s_scale

ADDITIONAL INFORMATION

@Akasurde Akasurde self-requested a review February 23, 2022 15:24
@softwarefactory-project-zuul
Copy link

Build failed.

@Akasurde
Copy link
Member

recheck

@softwarefactory-project-zuul
Copy link

Build failed.

@gravesm
Copy link
Member Author

gravesm commented Mar 7, 2022

recheck

@softwarefactory-project-zuul
Copy link

Build failed.

@gravesm
Copy link
Member Author

gravesm commented Mar 7, 2022

recheck

@softwarefactory-project-zuul
Copy link

Build succeeded.

@gravesm gravesm added the mergeit label Mar 8, 2022
@softwarefactory-project-zuul
Copy link

Build failed (gate pipeline). For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

@gravesm
Copy link
Member Author

gravesm commented Mar 8, 2022

regate

@softwarefactory-project-zuul
Copy link

Build failed (gate pipeline). For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

@softwarefactory-project-zuul
Copy link

Build succeeded.

@softwarefactory-project-zuul
Copy link

Build succeeded (gate pipeline).

@softwarefactory-project-zuul
Copy link

Pull request merge failed: Pull Request is not mergeable

gravesm and others added 3 commits March 11, 2022 09:28
When scaling a StatefulSet down to 0 replicas the wait will fail
because some properties of the status (readyReplicas, updatedReplicas)
will not exist. These are probably defined as omitempty in the API and
since the value is zero are not present in the response.
@gravesm gravesm force-pushed the fix-statefulset-wait branch from 1392d62 to d1eee2e Compare March 11, 2022 14:30
@softwarefactory-project-zuul
Copy link

Build succeeded.

@softwarefactory-project-zuul
Copy link

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit d68dec3 into ansible-collections:main Mar 11, 2022
@gravesm gravesm deleted the fix-statefulset-wait branch March 11, 2022 17:49
gravesm added a commit to gravesm/kubernetes.core that referenced this pull request Jun 8, 2022
The ports commit d68dec3 to the refactored code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

k8s_scale doesn't honor wait_timeout
4 participants