Created
April 15, 2017 19:51
-
-
Save shuwens/6a373398a59ffc1f4ea21d87d3b282f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@cluster centos(keystone_admin)]# cinder --profile 123 create --name peter 1 | |
+--------------------------------+--------------------------------------+ | |
| Property | Value | | |
+--------------------------------+--------------------------------------+ | |
| attachments | [] | | |
| availability_zone | nova | | |
| bootable | false | | |
| consistencygroup_id | None | | |
| created_at | 2017-04-15T19:48:41.000000 | | |
| description | None | | |
| encrypted | False | | |
| id | dadd87e8-849b-4962-ab06-f2a6a22f840b | | |
| 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 | d9a6869b528d4c6ab500cd68da8fc7db | | |
| replication_status | None | | |
| size | 1 | | |
| snapshot_id | None | | |
| source_volid | None | | |
| status | creating | | |
| user_id | 7a0a1fc91d91428a8c335929fea2a0ad | | |
| volume_type | iscsi | | |
+--------------------------------+--------------------------------------+ | |
Trace ID: 3497456e-4625-43da-ad62-6161b686497a | |
To display trace use next command: | |
osprofiler trace show --html 3497456e-4625-43da-ad62-6161b686497a | |
[root@cluster centos(keystone_admin)]# cinder list | |
+--------------------------------------+-----------+-------+------+-------------+----------+-------------+ | |
| ID | Status | Name | Size | Volume Type | Bootable | Attached to | | |
+--------------------------------------+-----------+-------+------+-------------+----------+-------------+ | |
| dadd87e8-849b-4962-ab06-f2a6a22f840b | available | peter | 1 | iscsi | false | | | |
+--------------------------------------+-----------+-------+------+-------------+----------+-------------+ | |
[root@cluster centos(keystone_admin)]# osprofiler trace show --html 3497456e-4625-43da-ad62-6161b686497a | |
Something has gone wrong. See ceilometer logs for more details | |
[root@cluster centos(keystone_admin)]# osprofiler trace show --json 3497456e-4625-43da-ad62-6161b686497a --out list_test --connection-string mongodb://192.168.0.70:27017/ceilometer | |
Trace with UUID 3497456e-4625-43da-ad62-6161b686497a not found. There are 3 possible reasons: | |
1) You are using not admin credentials | |
2) You specified wrong trace id | |
3) You specified wrong HMAC Key in original calling | |
4) Ceilometer didn't enable profiler notification topic | |
[root@cluster centos(keystone_admin)]# osprofiler trace show --json 3497456e-4625-43da-ad62-6161b686497a --out list_test --connection-string mongodb://192.168.0.70:27017 | |
Trace with UUID 3497456e-4625-43da-ad62-6161b686497a not found. There are 3 possible reasons: | |
1) You are using not admin credentials | |
2) You specified wrong trace id | |
3) You specified wrong HMAC Key in original calling | |
4) Ceilometer didn't enable profiler notification topic | |
[root@cluster centos(keystone_admin)]# osprofiler trace show --json 3497456e-4625-43da-ad62-6161b686497a --out list_test --connection-string mongodb://192.168.0.70:2701/osprofiler | |
Traceback (most recent call last): | |
File "/bin/osprofiler", line 10, in <module> | |
sys.exit(main()) | |
File "/usr/lib/python2.7/site-packages/osprofiler/cmd/shell.py", line 239, in main | |
OSProfilerShell(args) | |
File "/usr/lib/python2.7/site-packages/osprofiler/cmd/shell.py", line 65, in __init__ | |
args.func(args) | |
File "/usr/lib/python2.7/site-packages/osprofiler/cmd/commands.py", line 62, in show | |
trace = engine.get_report(args.trace) | |
File "/usr/lib/python2.7/site-packages/osprofiler/drivers/mongodb.py", line 80, in get_report | |
for n in self.db.profiler.find({"base_id": base_id}, {"_id": 0}): | |
File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 1114, in next | |
if len(self.__data) or self._refresh(): | |
File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 1036, in _refresh | |
self.__collation)) | |
File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 873, in __send_message | |
**kwargs) | |
File "/usr/lib64/python2.7/site-packages/pymongo/mongo_client.py", line 888, in _send_message_with_response | |
server = topology.select_server(selector) | |
File "/usr/lib64/python2.7/site-packages/pymongo/topology.py", line 214, in select_server | |
address)) | |
File "/usr/lib64/python2.7/site-packages/pymongo/topology.py", line 189, in select_servers | |
self._error_message(selector)) | |
pymongo.errors.ServerSelectionTimeoutError: 192.168.0.70:2701: [Errno 111] Connection refused |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment