Skip to content

Instantly share code, notes, and snippets.

@jethrosun
Created February 14, 2017 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jethrosun/259d78a5fe68a5929992a0f6447d000e to your computer and use it in GitHub Desktop.
Save jethrosun/259d78a5fe68a5929992a0f6447d000e to your computer and use it in GitHub Desktop.
logs the error msgs
stack@xavier:~/devstack$ openstack endpoint list
+----------------------------------+-----------+--------------+----------------+
| ID | Region | Service Name | Service Type |
+----------------------------------+-----------+--------------+----------------+
| 6798e10622ea4da8acfdd9136133cdd1 | RegionOne | keystone | identity |
| ee816cd6252b4644ad02c9ea983d515e | RegionOne | cinder | volume |
| 90ca66ea425b4bd48a97d552efa9ade2 | RegionOne | cinderv3 | volumev3 |
| 1057563e3ee04d29952a037a8bb3acc6 | RegionOne | neutron | network |
| ff9c5320c839411ebed0826318781fe1 | RegionOne | nova_legacy | compute_legacy |
| 2776bcf809dc4b0084669ac2efba5331 | RegionOne | nova | compute |
| 0bd9ee8e7ad641f8a0f4eb908c6a4e39 | RegionOne | cinderv2 | volumev2 |
| 6d1895a0a04d4d828c2ffac0b1584ea1 | RegionOne | glance | image |
+----------------------------------+-----------+--------------+----------------+
stack@xavier:~/devstack$ cinder --profile SECRET_KEY create --name peter 1
+--------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2017-02-08T20:28:27.000000 |
| description | None |
| encrypted | False |
| id | e5e7a8d3-6a5b-4043-94b7-2d9ec4fd7423 |
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | peter |
| os-vol-host-attr:host | None |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | c3c5f226e1be42629b0ce765ff41be31 |
| replication_status | disabled |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | None |
| user_id | e07c73306358498ab3005a438014257c |
| volume_type | lvmdriver-1 |
+--------------------------------+--------------------------------------+
Trace ID: 5203ceae-b97b-438f-ba48-66b8ae98d911
To display trace use next command:
osprofiler trace show --html 5203ceae-b97b-438f-ba48-66b8ae98d911
stack@xavier:~/devstack$ stack@xavier:~/devstack$ osprofiler trace show --html
5203ceae-b97b-438f-ba48-66b8ae98d911
Traceback (most recent call last):
File "/usr/local/bin/osprofiler", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/osprofiler/cmd/shell.py", line
236, in main
OSProfilerShell(args)
File "/usr/local/lib/python2.7/dist-packages/osprofiler/cmd/shell.py", line
62, in __init__
args.func(args)
File "/usr/local/lib/python2.7/dist-packages/osprofiler/cmd/commands.py", line
53, in show
trace = engine.get_report(args.trace)
File
"/usr/local/lib/python2.7/dist-packages/osprofiler/drivers/ceilometer.py", line
60, in get_report
limit=100000)]
File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/v2/events.py",
line 35, in list
return self._list(options.build_url(path, q, params))
File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/common/base.py",
line 63, in _list
resp = self.api.get(url)
File
"/usr/local/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py",
line 355, in get
return self.client_request("GET", url, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py",
line 345, in client_request
self, method, url, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py",
line 244, in client_request
self.authenticate()
File
"/usr/local/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py",
line 315, in authenticate
self.auth_plugin.authenticate(self)
File
"/usr/local/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/auth.py",
line 203, in authenticate
self._do_authenticate(http_client)
File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/client.py", line
192, in _do_authenticate
endpoint = _get_endpoint(ks_session, **ks_kwargs)
File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/client.py", line
162, in _get_endpoint
region_name=kwargs.get('region_name'))
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line
795, in get_endpoint
return auth.get_endpoint(self, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py",
line 216, in get_endpoint
service_name=service_name)
File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line
101, in inner
return wrapped(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/keystoneauth1/access/service_catalog.py",
line 228, in url_for
raise exceptions.EndpointNotFound(msg)
keystoneauth1.exceptions.catalog.EndpointNotFound: publicURL endpoint for
metering service in RegionOne region not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment