canonical / charm-openstack-service-checks

Collection of Nagios checks and other utilities that can be used to verify the operation of an OpenStack cluster
0 stars 2 forks source link

Cinder v2 returns capitalized X-Openstack-Request-Id header #92

Closed sudeephb closed 7 months ago

sudeephb commented 7 months ago

This is kind of a mirror of LP#1828765.

'-d x-openstack-request-id' should actually be '-d X-Openstack-Request-Id'

$ /usr/lib/nagios/plugins/check_http -H REDACTED -p 8776 -u /v2 -e Unauthorized -d x-openstack-request-id -S -v GET /v2 HTTP/1.1 User-Agent: check_http/v2.1.2 (monitoring-plugins 2.1.2) Connection: close Host: REDACTED:8776

https://REDACTED:8776/v2 is 343 characters STATUS: HTTP/1.1 401 Unauthorized HEADER Date: Tue, 30 Jul 2019 13:03:20 GMT Server: Apache/2.4.18 (Ubuntu) Content-Type: text/html; charset=UTF-8 Content-Length: 23 Www-Authenticate: Keystone uri='https://REDACTED:5000' X-Openstack-Request-Id: req-81208248-95f3-4c5d-acbe-4b5d78851699 Connection: close CONTENT Authentication required Status line output matched "Unauthorized" - HTTP CRITICAL: Status line output matched "Unauthorized" - header 'x-openstack-request-id' not found on 'https://REDACTED:8776/v2' - 343 bytes in 0.013 second response time |time=0.013277s;;;0.000000 size=343B;;;0


Imported from Launchpad using lp2gh.

sudeephb commented 7 months ago

(by aieri) Nevermind, in some clouds it's capitalized, in others it is not. I think at this point check_http should be extended to allow for case-insensitive matching.

sudeephb commented 7 months ago

(by eric-chen) This charm is no longer being actively maintained. Please consider using the new Canonical Observability Stack instead. (https://charmhub.io/topics/canonical-observability-stack) I will close this feature request