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

[OCTRL-777] Environment declared as failed during the deployment #627

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

justonedev1
Copy link
Collaborator

I was able to trigger "no resources" error on my openstack setup. The problem was that variables were not reset correctly when we were deploying and failing in retry loop. Moreover I moved reporting of UNDEPLOYABLE status after whole retry loop is done. With these changes we are able to successfully retry deployment, if we fail for the first time without involvement of shifter.

Moreover I improved logging a bit, I sent also the error reports to Roberto whether he is fine with the amount of errors reported in this case + the messaging. So please don't merge this yet.

@justonedev1 justonedev1 requested a review from teo October 21, 2024 13:38
teo
teo previously approved these changes Oct 21, 2024
@@ -326,6 +326,14 @@ func (m *Manager) RefreshClasses(taskClassesRequired []string) (err error) {
return
}

// prefix will be prepended before name of descriptor
func logDescriptors(prefix string, logFunc func(format string, args ...interface{}), descriptos Descriptors) {
for _, desc := range descriptos {
Copy link
Member

Choose a reason for hiding this comment

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

descriptors

@teo teo merged commit c6df054 into master Oct 22, 2024
2 checks passed
@teo teo deleted the OCTRL-777 branch October 22, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants