Bug 1529449
Summary: | RHOSP11 metric collection stuck with error: Fog::Metric::OpenStack::NotFound | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Sachin <sacpatil> | |
Component: | C&U Capacity and Utilization | Assignee: | Marek Aufart <maufart> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Jad Haj Yahya <jhajyahy> | |
Severity: | high | Docs Contact: | ||
Priority: | medium | |||
Version: | 5.8.0 | CC: | cpelland, jhajyahy, maufart, niroy, obarenbo, simaishi, slucidi | |
Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
Target Release: | 5.10.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1578388 1578391 1578575 (view as bug list) | Environment: | ||
Last Closed: | 2018-08-01 02:49:20 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | Openstack | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1578388, 1578391, 1578575 |
Description
Sachin
2017-12-28 07:18:30 UTC
Related BZ#1425947 Update: I see more (specific) error after leaving env for ~2 hrs. ~~~ [----] E, [2017-12-28T04:32:03.316456 #13573:ff512c] ERROR -- : MIQ(MiqQueue#deliver) Message id: [78000006298424], Error: [Expected(200) <=> Actual(404 Not Found) excon.error.response :body => "{\"code\": 404, \"description\": \"Granularity '300.0' for metric b0c2219b-4b42-44bf-be80-b079d5b31ee3 does not exist\", \"title\": \"Not Found\"}" :cookies => [ ] :headers => { "Connection" => "close" "Content-Length" => "136" "Content-Type" => "application/json; charset=UTF-8" "Date" => "Thu, 28 Dec 2017 04:02:01 GMT" "Server" => "Apache/2.4.6 (Red Hat Enterprise Linux)" } :host => "IPADDRESS" :local_address => "ipaddress" :local_port => 38528 :path => "/v1/resource/generic/3df21098-37ef-47bc-bf07-4bdcc5d4c160/metric/disk.write.bytes/measures" :port => 8041 :reason_phrase => "Not Found" :remote_ip => "IPADDRES" :status => 404 :status_line => "HTTP/1.1 404 Not Found\r\n" ] [----] E, [2017-12-28T04:32:03.316658 #13573:ff512c] ERROR -- : [Fog::Metric::OpenStack::NotFound]: Expected(200) <=> Actual(404 Not Found) excon.error.response :body => "{\"code\": 404, \"description\": \"Granularity '300.0' for metric b0c2219b-4b42-44bf-be80-b079d5b31ee3 does not exist\", \"title\": \"Not Found\"}" :cookies => [ ] :headers => { "Connection" => "close" "Content-Length" => "136" "Content-Type" => "application/json; charset=UTF-8" "Date" => "Thu, 28 Dec 2017 04:02:01 GMT" "Server" => "Apache/2.4.6 (Red Hat Enterprise Linux)" } :host => "10.X.X.X" :local_address => "10.X.X.X" :local_port => 38528 :path => "/v1/resource/generic/3df21098-37ef-47bc-bf07-4bdcc5d4c160/metric/disk.write.bytes/measures" :port => 8041 :reason_phrase => "Not Found" :remote_ip => "10.X.X.X" :status => 404 :status_line => "HTTP/1.1 404 Not Found\r\n" Method:[rescue in deliver] [----] E, [2017-12-28T04:32:03.316758 #13573:ff512c] ERROR -- : /opt/rh/cfme-gemset/gems/excon-0.55.0/lib/excon/middlewares/expects.rb:7:in `response_call' ~~~ ~~~ # openstack metric metric list -c id -c name O/P truncated | b0c2219b-4b42-44bf-be80-b079d5b31ee3 | disk.write.bytes | ~~~ But metrics disk.write.bytes don't have granularity of 300, I see granularity of 3600, 60 & 1 The 300.0s Gnocchi default granularity is actually hard-coded [1]. If it is needed to change it, we can make it configurable. For quick demo, it should be possible change it manually i source code on the appliance (part of manageiq-gems-pending gem) or adjust Customer Gnocchi config to use 300.0 granularity. [1] https://github.com/ManageIQ/manageiq-gems-pending/blob/fine/lib/gems/pending/openstack/openstack_handle/metric_delegate.rb#L37 Adding a PR with possibility configure gnocchi granularity in Settings https://github.com/ManageIQ/manageiq-providers-openstack/pull/267 |