Bug 1628137 - openstack metric measures show --aggregation max returns error
Summary: openstack metric measures show --aggregation max returns error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-gnocchiclient
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 14.0 (Rocky)
Assignee: Mehdi ABAAKOUK
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-12 11:00 UTC by Sasha Smolyak
Modified: 2019-01-11 11:53 UTC (History)
4 users (show)

Fixed In Version: python-gnocchiclient-7.0.4-0.20180823073245.64814b9.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-11 11:52:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github gnocchixyz python-gnocchiclient pull 91 0 None closed exeptions: fix matching when description is a dict 2020-09-23 02:50:00 UTC
Red Hat Product Errata RHEA-2019:0045 0 None None None 2019-01-11 11:53:12 UTC

Description Sasha Smolyak 2018-09-12 11:00:12 UTC
Description of problem:

Possible regression:

Rerunning an old script testing gnocchi, suddenly get an error on a line that always worked:
(overcloud) [stack@undercloud-0 ~]$ openstack metric measures show --aggregation max --resource-id <instanceID> cpu

The error is: "expected string or buffer"

When trying 
(overcloud) [stack@undercloud-0 ~]$ openstack metric measures show --resource-id <instanceID> cpu
works OK and returns a non-empty table.

Defining aggregation like that worked till now, including RHOS13

Version-Release number of selected component (if applicable):
python-gnocchi-4.2.6-0.20180619162839.c98ac78.el7ost.noarch
python2-gnocchiclient-7.0.2-0.20180621114111.a45c275.el7ost.noarch
puppet-gnocchi-13.2.0-0.20180725210839.23d4b81.el7ost.noarch
gnocchi-common-4.2.6-0.20180619162839.c98ac78.el7ost.noarch
gnocchi-api-4.2.6-0.20180619162839.c98ac78.el7ost.noarch
gnocchi-metricd-4.2.6-0.20180619162839.c98ac78.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Switch to overcloud
2. Deploy an instance
3. Try so see the cpu measures for that instance with parameter --aggregation max

Actual results:
expected string or buffer

Expected results:
Table of measures

Additional info:

Comment 1 Sasha Smolyak 2018-09-12 14:03:13 UTC
Running with --debug:

(overcloud) [stack@undercloud-0 ~]$ openstack metric measures show --resource-id ce6917b3-fe97-4d45-ace3-c8e5fccce7d7 cpu --aggregation max --debug
START with options: [u'metric', u'measures', u'show', u'--resource-id', u'ce6917b3-fe97-4d45-ace3-c8e5fccce7d7', u'cpu', u'--aggregation', u'max', u'--debug']
options: Namespace(access_token='***', access_token_endpoint='', access_token_type='', aodh_endpoint='', application_credential_id='', application_credential_name='', application_credential_secret='***', auth_type='password', auth_url='https://10.0.0.101:13000/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, inspector_api_version='1', inspector_url=None, interface='', key='', log_file=None, openid_scope='', os_alarming_api_version='2', os_baremetal_api_version='1.46', os_beta_command=False, os_compute_api_version='', os_container_infra_api_version='1', os_data_processing_api_version='1.1', os_data_processing_url='', os_database_api_version='1', os_dns_api_version='2', os_event_api_version='2', os_identity_api_version='3', os_image_api_version='2', os_key_manager_api_version='1', os_loadbalancer_api_version='2.0', os_metrics_api_version='1', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_queues_api_version='2', os_tripleoclient_api_version='1', os_volume_api_version='3', os_workflow_api_version='2', passcode='', password='***', profile='', project_domain_id='', project_domain_name='Default', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='', remote_project_domain_id='', remote_project_domain_name='', remote_project_id='', remote_project_name='', roles='', service_provider='', service_provider_endpoint='', service_provider_entity_id='', system_scope='', timing=False, token='***', trust_id='', url='', user='', user_domain_id='', user_domain_name='Default', user_id='', username='admin', verbose_level=3, verify=None)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'https://10.0.0.101:13000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', u'clustering_api_version': u'1', 'verify': True, 'event_api_version': '2', 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.46', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', u'interface': None, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': '3', 'username': 'admin', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'alarming_api_version': '2', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', u'metering_api_version': u'2', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, u'interface': None, u'dns_api_version': u'2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': u'1', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'workflow_api_version': u'2', u'baremetal_status_code_retries': 5, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', u'orchestration_api_version': '1', u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'https://10.0.0.101:13000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', u'clustering_api_version': u'1', 'verify': True, 'event_api_version': '2', u'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.46', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', 'debug': True, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', u'baremetal_status_code_retries': '5', u'block_storage_api_version': u'2', u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': '3', 'username': 'admin', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'alarming_api_version': '2', u'container_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 3, cmd group openstack.volume.v3
identity API version 3, cmd group openstack.identity.v3
object_store API version 1, cmd group openstack.object_store.v1
key_manager API version 1, cmd group openstack.key_manager.v1
orchestration API version 1, cmd group openstack.orchestration.v1
messaging API version 2, cmd group openstack.messaging.v2
baremetal API version 1.46, cmd group openstack.baremetal.v1
neutronclient API version 2, cmd group openstack.neutronclient.v2
baremetal_introspection API version 1, cmd group openstack.baremetal_introspection.v1
load_balancer API version 2.0, cmd group openstack.load_balancer.v2
data_processing API version 1.1, cmd group openstack.data_processing.v1
alarming API version 2, cmd group openstack.alarming.v2
container_infra API version 1, cmd group openstack.container_infra.v1
dns API version 2, cmd group openstack.dns.v2
workflow_engine API version 2, cmd group openstack.workflow_engine.v2
database API version 1, cmd group openstack.database.v1
tripleoclient API version 1, cmd group openstack.tripleoclient.v1
metric API version 1, cmd group openstack.metric.v1
event API version 2, cmd group openstack.event.v2
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'https://10.0.0.101:13000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', u'clustering_api_version': u'1', 'verify': True, 'event_api_version': '2', 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.46', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', u'interface': None, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': '3', 'username': 'admin', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'alarming_api_version': '2', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'https://10.0.0.101:13000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', u'clustering_api_version': u'1', 'verify': True, 'event_api_version': '2', 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.46', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', u'interface': None, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': '3', 'username': 'admin', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'alarming_api_version': '2', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
command: metric measures show -> gnocchiclient.v1.metric_cli.CliMeasuresShow (auth=True)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'https://10.0.0.101:13000/v3', 'additional_user_agent': [('osc-lib', '1.11.0')], u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', u'clustering_api_version': u'1', 'verify': True, 'event_api_version': '2', 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.46', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', u'interface': None, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', u'baremetal_status_code_retries': '5', u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': '3', 'username': 'admin', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'alarming_api_version': '2', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
Using auth plugin: password
Using parameters {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'https://10.0.0.101:13000/v3', 'password': '***', 'project_domain_name': 'Default'}
Get auth_ref
REQ: curl -g -i -X GET https://10.0.0.101:13000/v3 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.17.1 keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5"
Starting new HTTPS connection (1): 10.0.0.101
https://10.0.0.101:13000 "GET /v3 HTTP/1.1" 200 192
RESP: [200] Content-Encoding: gzip Content-Length: 192 Content-Type: application/json Date: Wed, 12 Sep 2018 14:01:24 GMT Server: Apache Vary: X-Auth-Token,Accept-Encoding x-openstack-request-id: req-b27747bb-dd5c-4b86-a4dc-3e957549aeae
RESP BODY: {"version": {"status": "stable", "updated": "2018-02-28T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.10", "links": [{"href": "https://10.0.0.101:13000/v3/", "rel": "self"}]}}
GET call to https://10.0.0.101:13000/v3 used request id req-b27747bb-dd5c-4b86-a4dc-3e957549aeae
Making authentication request to https://10.0.0.101:13000/v3/auth/tokens
https://10.0.0.101:13000 "POST /v3/auth/tokens HTTP/1.1" 201 9029
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "e44b7983af324c45a6795c549912675c", "name": "admin"}, {"id": "9aa217e54acf44059f6411630e0d2ef8", "name": "reader"}, {"id": "ebe78e0f19994473989ba24146fc7d55", "name": "member"}], "expires_at": "2018-09-12T15:01:24.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "25799b541dcc4e92a6ca25fa7875c014", "name": "admin"}, "catalog": [{"endpoints": [{"url": "https://10.0.0.101:13042", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "08b374041f934fcfb5d7daa81e3d266b"}, {"url": "http://172.17.1.30:8042", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "cdc7fa454d5b45659da9e8662fdaac2f"}, {"url": "http://172.17.1.30:8042", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "d24ee11b1b8a4304b53655c67bc3ecf3"}], "type": "alarming", "id": "3d8dce5754dc4ca8a7bd908b4a91bd8e", "name": "aodh"}, {"endpoints": [{"url": "http://172.17.1.30:8000/v1", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "decdef44b6d646c5a4181ec14df195a4"}, {"url": "https://10.0.0.101:13005/v1", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "e7dea1dfb42c4296aa56ed41cd43b98a"}, {"url": "http://172.17.1.30:8000/v1", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "f3decb1096264cb89e9ab7af4305dafc"}], "type": "cloudformation", "id": "49e9b6a51aae45c89dc58f7677c20baa", "name": "heat-cfn"}, {"endpoints": [{"url": "http://172.17.1.30:8778/placement", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "3c91ef1e45e1498687569ac6d11bedcb"}, {"url": "https://10.0.0.101:13778/placement", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "dc4ae7055a5d4df7b3b22e29346bc473"}, {"url": "http://172.17.1.30:8778/placement", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "f8c989163feb4782b6ec2efa7a7d12bf"}], "type": "placement", "id": "4e3e74f3b5434bd0b217d2fc0e71a624", "name": "placement"}, {"endpoints": [{"url": "http://172.17.1.30:5000", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "33c6191960064e0685fcffa29b2079d9"}, {"url": "http://192.168.24.8:35357", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "4a34d5bb3ea74fef8d62d0f223a35804"}, {"url": "https://10.0.0.101:13000", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "911d0415cd964691acbd193c29c362d5"}], "type": "identity", "id": "51c06a30536942958bf68af5946caffb", "name": "keystone"}, {"endpoints": [{"url": "https://10.0.0.101:13808/v1/AUTH_25799b541dcc4e92a6ca25fa7875c014", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "6efe46a4801448e3b981574ba119a30e"}, {"url": "http://172.17.3.14:8080/v1/AUTH_25799b541dcc4e92a6ca25fa7875c014", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "c215c5f0632f4f259a67ff04b3e67123"}, {"url": "http://172.17.3.14:8080", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "e58b23508f3a4a3786408fd3d8dadfa3"}], "type": "object-store", "id": "529fb84b13b14e3b986e69f92b9288c1", "name": "swift"}, {"endpoints": [{"url": "http://172.17.1.30:8774/v2.1", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "19478883fe8148298f40390bf30911b0"}, {"url": "https://10.0.0.101:13774/v2.1", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "4df7b29b2a284f20bfa15301de019658"}, {"url": "http://172.17.1.30:8774/v2.1", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "d0d0f3d0f8474a63bc477bf70414b2fe"}], "type": "compute", "id": "67d42ae0ccd74b5cae5e4aedd160abf2", "name": "nova"}, {"endpoints": [{"url": "http://172.17.1.30:9292", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "d5d086510f394e2ebc1096579760a136"}, {"url": "http://172.17.1.30:9292", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "f1903c40ec324526b1f42e69bd0e4269"}, {"url": "https://10.0.0.101:13292", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "ffbc6d7bd8ec442f892574e7a96abee3"}], "type": "image", "id": "6e8ee69a416749e0b77415146a8aefac", "name": "glance"}, {"endpoints": [{"url": "http://172.17.1.30:8977", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "4fd7ac08b4864006911fd8c72d8a1c31"}, {"url": "https://10.0.0.101:13977", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "7bdfc1dbcb114a63added7c451915728"}, {"url": "http://172.17.1.30:8977", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "ee911dd894a64f879d1fffb99a1bcd1c"}], "type": "event", "id": "80c8ee6c268046c88d09e79a5fe90f36", "name": "panko"}, {"endpoints": [{"url": "http://172.17.1.30:8776/v2/25799b541dcc4e92a6ca25fa7875c014", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "452b56a0316048b9aba9f1c2136d12fc"}, {"url": "http://172.17.1.30:8776/v2/25799b541dcc4e92a6ca25fa7875c014", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "45b89033eacd42dea7ecf22868e2a900"}, {"url": "https://10.0.0.101:13776/v2/25799b541dcc4e92a6ca25fa7875c014", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "89809a69bf934e3a8181a089533b8029"}], "type": "volumev2", "id": "898018d8b98c4356b22c69040f2a41aa", "name": "cinderv2"}, {"endpoints": [{"url": "https://10.0.0.101:13004/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "7ca1379eef304cea95dacc6a1a10a0f9"}, {"url": "http://172.17.1.30:8004/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "ed10036fb852499cb88e329e18c0e3c5"}, {"url": "http://172.17.1.30:8004/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "f1f1c0bd02f7455fb9164de1d8bdb9d3"}], "type": "orchestration", "id": "a9fa82fec3fa4543b70b45cc2bf10e3c", "name": "heat"}, {"endpoints": [{"url": "http://172.17.1.30:9696", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "7a2f43da11de460fbcfb0ce895d794f0"}, {"url": "https://10.0.0.101:13696", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "c4e20572c9ab49048e06e8b5b58139b7"}, {"url": "http://172.17.1.30:9696", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "d7022859f5fe4b738bd9c3b91aed85bf"}], "type": "network", "id": "b1af2e76b30e47e5a8e8fe59bc841761", "name": "neutron"}, {"endpoints": [{"url": "https://10.0.0.101:13776/v3/25799b541dcc4e92a6ca25fa7875c014", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "187e22a5a88a4a2cb6af66fdafe41be0"}, {"url": "http://172.17.1.30:8776/v3/25799b541dcc4e92a6ca25fa7875c014", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "d9f5aed62bf14ba4b8c3c5331d6a4f3d"}, {"url": "http://172.17.1.30:8776/v3/25799b541dcc4e92a6ca25fa7875c014", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "f08adf44384a4d899b9d2a14936100d2"}], "type": "volumev3", "id": "b48b4cb668c64ae78ccc32f26c9983a6", "name": "cinderv3"}, {"endpoints": [{"url": "http://172.17.1.30:8041", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "52add9869367443287585f0f10ea4e10"}, {"url": "http://172.17.1.30:8041", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "9d6fe46f24a84204855ca9219d79cfe5"}, {"url": "https://10.0.0.101:13041", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "cf17b227b6a9408a8af94968b3b66cf2"}], "type": "metric", "id": "c4af5df750e14b3bb05a27deb57fb740", "name": "gnocchi"}, {"endpoints": [], "type": "metering", "id": "c84d007e4a244bdf924cee51b10d2937", "name": "ceilometer"}, {"endpoints": [{"url": "http://172.17.1.30:8776/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "2128eae6f6db40d39a17c3dcd983c9f0"}, {"url": "http://172.17.1.30:8776/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "28bdad5f9792481083b3a771792f08c8"}, {"url": "https://10.0.0.101:13776/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "53087f7f81b840d7bd57aba9b92ee399"}], "type": "volume", "id": "f914439ef0ed461ba2d7120fba15177d", "name": "cinder"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "133ceccc51474c46be9c12f83ff4034a"}, "audit_ids": ["_JSeE9czSjar6Cje15bldQ"], "issued_at": "2018-09-12T14:01:24.000000Z"}}
Making authentication request to https://10.0.0.101:13000/v3/auth/tokens
https://10.0.0.101:13000 "POST /v3/auth/tokens HTTP/1.1" 201 9029
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "e44b7983af324c45a6795c549912675c", "name": "admin"}, {"id": "9aa217e54acf44059f6411630e0d2ef8", "name": "reader"}, {"id": "ebe78e0f19994473989ba24146fc7d55", "name": "member"}], "expires_at": "2018-09-12T15:01:25.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "25799b541dcc4e92a6ca25fa7875c014", "name": "admin"}, "catalog": [{"endpoints": [{"url": "https://10.0.0.101:13042", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "08b374041f934fcfb5d7daa81e3d266b"}, {"url": "http://172.17.1.30:8042", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "cdc7fa454d5b45659da9e8662fdaac2f"}, {"url": "http://172.17.1.30:8042", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "d24ee11b1b8a4304b53655c67bc3ecf3"}], "type": "alarming", "id": "3d8dce5754dc4ca8a7bd908b4a91bd8e", "name": "aodh"}, {"endpoints": [{"url": "http://172.17.1.30:8000/v1", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "decdef44b6d646c5a4181ec14df195a4"}, {"url": "https://10.0.0.101:13005/v1", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "e7dea1dfb42c4296aa56ed41cd43b98a"}, {"url": "http://172.17.1.30:8000/v1", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "f3decb1096264cb89e9ab7af4305dafc"}], "type": "cloudformation", "id": "49e9b6a51aae45c89dc58f7677c20baa", "name": "heat-cfn"}, {"endpoints": [{"url": "http://172.17.1.30:8778/placement", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "3c91ef1e45e1498687569ac6d11bedcb"}, {"url": "https://10.0.0.101:13778/placement", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "dc4ae7055a5d4df7b3b22e29346bc473"}, {"url": "http://172.17.1.30:8778/placement", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "f8c989163feb4782b6ec2efa7a7d12bf"}], "type": "placement", "id": "4e3e74f3b5434bd0b217d2fc0e71a624", "name": "placement"}, {"endpoints": [{"url": "http://172.17.1.30:5000", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "33c6191960064e0685fcffa29b2079d9"}, {"url": "http://192.168.24.8:35357", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "4a34d5bb3ea74fef8d62d0f223a35804"}, {"url": "https://10.0.0.101:13000", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "911d0415cd964691acbd193c29c362d5"}], "type": "identity", "id": "51c06a30536942958bf68af5946caffb", "name": "keystone"}, {"endpoints": [{"url": "https://10.0.0.101:13808/v1/AUTH_25799b541dcc4e92a6ca25fa7875c014", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "6efe46a4801448e3b981574ba119a30e"}, {"url": "http://172.17.3.14:8080/v1/AUTH_25799b541dcc4e92a6ca25fa7875c014", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "c215c5f0632f4f259a67ff04b3e67123"}, {"url": "http://172.17.3.14:8080", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "e58b23508f3a4a3786408fd3d8dadfa3"}], "type": "object-store", "id": "529fb84b13b14e3b986e69f92b9288c1", "name": "swift"}, {"endpoints": [{"url": "http://172.17.1.30:8774/v2.1", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "19478883fe8148298f40390bf30911b0"}, {"url": "https://10.0.0.101:13774/v2.1", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "4df7b29b2a284f20bfa15301de019658"}, {"url": "http://172.17.1.30:8774/v2.1", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "d0d0f3d0f8474a63bc477bf70414b2fe"}], "type": "compute", "id": "67d42ae0ccd74b5cae5e4aedd160abf2", "name": "nova"}, {"endpoints": [{"url": "http://172.17.1.30:9292", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "d5d086510f394e2ebc1096579760a136"}, {"url": "http://172.17.1.30:9292", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "f1903c40ec324526b1f42e69bd0e4269"}, {"url": "https://10.0.0.101:13292", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "ffbc6d7bd8ec442f892574e7a96abee3"}], "type": "image", "id": "6e8ee69a416749e0b77415146a8aefac", "name": "glance"}, {"endpoints": [{"url": "http://172.17.1.30:8977", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "4fd7ac08b4864006911fd8c72d8a1c31"}, {"url": "https://10.0.0.101:13977", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "7bdfc1dbcb114a63added7c451915728"}, {"url": "http://172.17.1.30:8977", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "ee911dd894a64f879d1fffb99a1bcd1c"}], "type": "event", "id": "80c8ee6c268046c88d09e79a5fe90f36", "name": "panko"}, {"endpoints": [{"url": "http://172.17.1.30:8776/v2/25799b541dcc4e92a6ca25fa7875c014", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "452b56a0316048b9aba9f1c2136d12fc"}, {"url": "http://172.17.1.30:8776/v2/25799b541dcc4e92a6ca25fa7875c014", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "45b89033eacd42dea7ecf22868e2a900"}, {"url": "https://10.0.0.101:13776/v2/25799b541dcc4e92a6ca25fa7875c014", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "89809a69bf934e3a8181a089533b8029"}], "type": "volumev2", "id": "898018d8b98c4356b22c69040f2a41aa", "name": "cinderv2"}, {"endpoints": [{"url": "https://10.0.0.101:13004/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "7ca1379eef304cea95dacc6a1a10a0f9"}, {"url": "http://172.17.1.30:8004/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "ed10036fb852499cb88e329e18c0e3c5"}, {"url": "http://172.17.1.30:8004/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "f1f1c0bd02f7455fb9164de1d8bdb9d3"}], "type": "orchestration", "id": "a9fa82fec3fa4543b70b45cc2bf10e3c", "name": "heat"}, {"endpoints": [{"url": "http://172.17.1.30:9696", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "7a2f43da11de460fbcfb0ce895d794f0"}, {"url": "https://10.0.0.101:13696", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "c4e20572c9ab49048e06e8b5b58139b7"}, {"url": "http://172.17.1.30:9696", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "d7022859f5fe4b738bd9c3b91aed85bf"}], "type": "network", "id": "b1af2e76b30e47e5a8e8fe59bc841761", "name": "neutron"}, {"endpoints": [{"url": "https://10.0.0.101:13776/v3/25799b541dcc4e92a6ca25fa7875c014", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "187e22a5a88a4a2cb6af66fdafe41be0"}, {"url": "http://172.17.1.30:8776/v3/25799b541dcc4e92a6ca25fa7875c014", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "d9f5aed62bf14ba4b8c3c5331d6a4f3d"}, {"url": "http://172.17.1.30:8776/v3/25799b541dcc4e92a6ca25fa7875c014", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "f08adf44384a4d899b9d2a14936100d2"}], "type": "volumev3", "id": "b48b4cb668c64ae78ccc32f26c9983a6", "name": "cinderv3"}, {"endpoints": [{"url": "http://172.17.1.30:8041", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "52add9869367443287585f0f10ea4e10"}, {"url": "http://172.17.1.30:8041", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "9d6fe46f24a84204855ca9219d79cfe5"}, {"url": "https://10.0.0.101:13041", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "cf17b227b6a9408a8af94968b3b66cf2"}], "type": "metric", "id": "c4af5df750e14b3bb05a27deb57fb740", "name": "gnocchi"}, {"endpoints": [], "type": "metering", "id": "c84d007e4a244bdf924cee51b10d2937", "name": "ceilometer"}, {"endpoints": [{"url": "http://172.17.1.30:8776/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "2128eae6f6db40d39a17c3dcd983c9f0"}, {"url": "http://172.17.1.30:8776/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "28bdad5f9792481083b3a771792f08c8"}, {"url": "https://10.0.0.101:13776/v1/25799b541dcc4e92a6ca25fa7875c014", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "53087f7f81b840d7bd57aba9b92ee399"}], "type": "volume", "id": "f914439ef0ed461ba2d7120fba15177d", "name": "cinder"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "133ceccc51474c46be9c12f83ff4034a"}, "audit_ids": ["OD6ZPZX1TJGAxWZAWaiaxw"], "issued_at": "2018-09-12T14:01:25.000000Z"}}
REQ: curl -g -i -X GET "https://10.0.0.101:13041/v1/resource/generic/ce6917b3-fe97-4d45-ace3-c8e5fccce7d7/metric/cpu/measures?start=None&granularity=None&resample=None&stop=None&aggregation=max&refresh=False" -H "Accept: application/json, */*" -H "User-Agent: openstacksdk/0.17.1 keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" -H "X-Auth-Token: {SHA1}9f2436b3b13e107591c5bed320a229ad1578d4c6"
Starting new HTTPS connection (1): 10.0.0.101
https://10.0.0.101:13041 "GET /v1/resource/generic/ce6917b3-fe97-4d45-ace3-c8e5fccce7d7/metric/cpu/measures?aggregation=max&refresh=False HTTP/1.1" 404 205
RESP: [404] Content-Length: 205 Content-Type: application/json Date: Wed, 12 Sep 2018 14:01:25 GMT Server: Apache
RESP BODY: {"code": 404, "description": {"cause": "Aggregation method does not exist for this metric", "detail": {"aggregation_method": "max", "metric": "d0a0cf2b-6c9d-4102-b4ee-ede0a9362207"}}, "title": "Not Found"}
expected string or buffer
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 402, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/gnocchiclient/v1/metric_cli.py", line 226, in take_action
    resample=parsed_args.resample
  File "/usr/lib/python2.7/site-packages/gnocchiclient/v1/metric.py", line 279, in get_measures
    measures = self._get(url, params=params).json()
  File "/usr/lib/python2.7/site-packages/gnocchiclient/v1/base.py", line 37, in _get
    return self.client.api.get(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 328, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/gnocchiclient/client.py", line 52, in request
    raise exceptions.from_response(resp, method)
  File "/usr/lib/python2.7/site-packages/gnocchiclient/exceptions.py", line 241, in from_response
    if enhanced_cls.match.match(desc):
TypeError: expected string or buffer
clean_up CliMeasuresShow: expected string or buffer
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 281, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 175, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 402, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/gnocchiclient/v1/metric_cli.py", line 226, in take_action
    resample=parsed_args.resample
  File "/usr/lib/python2.7/site-packages/gnocchiclient/v1/metric.py", line 279, in get_measures
    measures = self._get(url, params=params).json()
  File "/usr/lib/python2.7/site-packages/gnocchiclient/v1/base.py", line 37, in _get
    return self.client.api.get(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 328, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/gnocchiclient/client.py", line 52, in request
    raise exceptions.from_response(resp, method)
  File "/usr/lib/python2.7/site-packages/gnocchiclient/exceptions.py", line 241, in from_response
    if enhanced_cls.match.match(desc):
TypeError: expected string or buffer

END return value: 1

Comment 5 Sasha Smolyak 2018-10-18 09:22:17 UTC
Verified, no more errors like that

Comment 7 errata-xmlrpc 2019-01-11 11:52:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045


Note You need to log in before you can comment on or make changes to this bug.