Comments (5)
This seems to be a result of changes in the Nova API after version 2.87. The gophercloud code tries to fetch the cpu_info
output from the os-hypervisor/detail
API route. However, this doesn't exist anymore so the type is None causing an error from the SDK.
This causes the SDK to error and ultimately the Nova collector in openstack-exporter also errors meaning the metrics here fail. We've worked around this by setting prometheus_openstack_exporter_compute_api_version = 2.87
in Kolla Ansible (which sets OS_COMPUTE_API_VERSION=2.87
in the environment for openstack-exporter).
The 2.87 version of the Nova API still contains the cpu_info
output meaning the error doesn't get thrown. Ideally, the Nova API changes following 2.87 need to be supported by the gophercloud SDK.
from openstack-exporter.
I have this problem too. (msg="Failed to collect metric for exporter: nova, error: failed to collect metric: running_vms, error: CPUInfo has unexpected type: " source="exporter.go:123") after update to wallaby.
from openstack-exporter.
same problem on Zed
level=error msg="Failed to collect metric for exporter: nova, error: failed to collect metric: running_vms, error: CPUInfo has unexpected type: " source="exporter .go:123"
from openstack-exporter.
@adamoswick
Thanks. This was very helpful.
from openstack-exporter.
On latest main I get this similar error output:
ts=2024-04-03T23:09:00.715Z caller=exporter.go:126 level=error err="Failed to collect metric for exporter" exporter=nova error="failed to collect metric: running_vms, error: CPUInfo has unexpected type: <nil>"
Confirming that setting OS_COMPUTE_API_VERSION=2.87
in the environment fixes the issue.
Also note that when this error happens, it also causes metrics to not be written for all the other metrics in the ListHypervisors function:
openstack-exporter/exporters/nova.go
Lines 200 to 225 in f1a2af1
from openstack-exporter.
Related Issues (20)
- seg fault with the glance service. HOT 1
- Add Manila support HOT 2
- Installation Guide HOT 4
- Any new binary releases HOT 11
- Running with --disable-metric=nova-server_status crashes the exporter
- Missing metrics for OpenStack agent monitoring
- extract `enabled` label from `openstack_identity_project_info` as a new metric
- Domain Names are not listing in Openstack Metrics
- Looking for more Nova and Neutron metrics
- Additional openstack_cinder_snapshot_gb metric
- 'GLIBC_2.34' error after go version update: 1.19 -> 1.22 HOT 1
- snapcraft CI release HOT 1
- Add ability to list users
- Provide a snap service HOT 1
- [Feature Request] Cache mechanism HOT 3
- os-client-config file is not checked on start
- Inefficient listing of L3 agents for routers HOT 1
- [Snap] Set the snap package version using git tag instead of `VERSION` file
- openstack_nova_flavors only shows public flavors
- clouds.yaml is read many times
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openstack-exporter.