Skip to content

nova: Show stdout/stderr when "openstack flavor list" fails#2134

Merged
toabctl merged 1 commit into
crowbar:stable/5.0-pikefrom
toabctl:stable-5.0-flavor-list-debug-output
May 20, 2019
Merged

nova: Show stdout/stderr when "openstack flavor list" fails#2134
toabctl merged 1 commit into
crowbar:stable/5.0-pikefrom
toabctl:stable-5.0-flavor-list-debug-output

Conversation

@toabctl

@toabctl toabctl commented May 20, 2019

Copy link
Copy Markdown
Contributor

When running into the problem that the "openstack flavor list" command
fails, we want to know the error and not only see a comment that the
nova api might be down.
This is useful for debugging.

(cherry picked from commit b8776b6)

When running into the problem that the "openstack flavor list" command
fails, we want to know the error and not only see a comment that the
nova api might be down.
This is useful for debugging.

(cherry picked from commit b8776b6)
Comment thread chef/cookbooks/nova/recipes/flavors.rb
@jsuchome jsuchome requested a review from skazi0 May 20, 2019 05:53
@skazi0

skazi0 commented May 20, 2019

Copy link
Copy Markdown
Member

@toabctl please add the orignal PR link to the description

@toabctl

toabctl commented May 20, 2019

Copy link
Copy Markdown
Contributor Author

Ok. Now we see the real failure:

10:52:02 [2019-05-20T08:51:49+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
10:52:02 [2019-05-20T08:51:49+00:00] FATAL: RuntimeError: ruby_block[Get current flavors] (nova::flavors line 107) had an error: RuntimeError: Flavor list not obtained, is the nova-api down?
10:52:02 
10:52:02 Certificate did not match expected hostname: public.cluster-data.vm2.cloud.suse.de. Certificate: {'subjectAltName': [('DNS', 'cluster-data.vm2.cloud.suse.de'), ('DNS', 'public-cluster-data.vm2.cloud.suse.de')], 'subject': ((('commonName', u'cluster-data.vm2.cloud.suse.de'),),)}
10:52:02 Unable to establish connection to https://public.cluster-data.vm2.cloud.suse.de:8774/v2.1/a914f5a21c23499a967f1464a43e2183/flavors/detail: HTTPSConnectionPool(host='public.cluster-data.vm2.cloud.suse.de', port=8774): Max retries exceeded with url: /v2.1/a914f5a21c23499a967f1464a43e2183/flavors/detail (Caused by SSLError(CertificateError("hostname 'public.cluster-data.vm2.cloud.suse.de' doesn't match either of 'cluster-data.vm2.cloud.suse.de', 'public-cluster-data.vm2.cloud.suse.de'",),))
10:52:02 

@toabctl toabctl merged commit 5260c13 into crowbar:stable/5.0-pike May 20, 2019
@toabctl toabctl deleted the stable-5.0-flavor-list-debug-output branch May 20, 2019 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants