Skip to content

Instantly share code, notes, and snippets.

@codenrhoden
Created April 30, 2017 21:02
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 codenrhoden/5a5870fe81bfd51af66aaf1e5538bc24 to your computer and use it in GitHub Desktop.
Save codenrhoden/5a5870fe81bfd51af66aaf1e5538bc24 to your computer and use it in GitHub Desktop.
rex volume ls fail due to supported output
[vagrant@ceph-admin ~]$ LIBSTORAGE_LOGGING_LEVEL=debug /var/lx-linux rbd supported
DEBU[0000] mkdir -p path=/home/vagrant/.libstorage time=1493585538176
DEBU[0000] mkdir -p path=/home/vagrant/.libstorage/etc time=1493585538176
DEBU[0000] mkdir -p path=/home/vagrant/.libstorage/etc/tls time=1493585538176
DEBU[0000] mkdir -p path=/home/vagrant/.libstorage/var/lib time=1493585538176
DEBU[0000] mkdir -p path=/home/vagrant/.libstorage/var/log time=1493585538176
DEBU[0000] mkdir -p path=/home/vagrant/.libstorage/var/run time=1493585538176
DEBU[0000] running command args=[modprobe rbd] time=1493585538179
[vagrant@ceph-admin ~]$ sudo ./rexray -s rbd -l debug volume ls
INFO[0000] updated log level logLevel=debug
DEBU[0000] os.args time=1493585387505 val=[./rexray -s rbd -l debug volume ls]
DEBU[0000] activating libStorage cmd=ls time=1493585387505
DEBU[0000] host is empty; initiliazing default services time=1493585387507
INFO[0000] libStorage auto service mode enabled driver=rbd time=1493585387507
DEBU[0000] starting embedded libStorage server time=1493585387509
DEBU[0000] created scoped scope new=libstorage.server parentScopes=rexray,
INFO[0000] configured logging libstorage.logging.httpRequests=false libstorage.logging.httpResponses=false libstorage.logging.level=debug server=laser-bard-ma time=1493585387524
DEBU[0000] parsed server auth property libstorage.server.auth.disabled=false server=laser-bard-ma time=1493585387529
DEBU[0000] parsed server auth property libstorage.server.auth.key= server=laser-bard-ma time=1493585387531
DEBU[0000] parsed server auth property libstorage.server.auth.alg=HS256 server=laser-bard-ma time=1493585387532
DEBU[0000] parsed server auth property libstorage.server.auth.allow=[] server=laser-bard-ma time=1493585387535
DEBU[0000] parsed server auth property libstorage.server.auth.deny=[] server=laser-bard-ma time=1493585387537
INFO[0000] configured global auth libstorage.server.auth.alg=HS256 libstorage.server.auth.allow=[] libstorage.server.auth.deny=[] libstorage.server.auth.disabled=false libstorage.server.auth.key= server=laser-bard-ma time=1493585387537
INFO[0000] initializing server server=laser-bard-ma time=1493585387537
INFO[0000] initializing default endpoint autoEndpointMode=unix server=laser-bard-ma time=1493585387539
INFO[0000] initializing auto unix endpoint endpoint=libstorage.server.endpoints.localhost server=laser-bard-ma time=1493585387542
DEBU[0000] endpoint info address=unix:///var/run/libstorage/830317064.sock endpoint=libstorage.server.endpoints.localhost server=laser-bard-ma time=1493585387543
DEBU[0000] created scoped scope new=libstorage.server.endpoints.localhost parentScopes=libstorage.server,rexray,
DEBU[0000] parsing tls config server=laser-bard-ma time=1493585387543
INFO[0000] configured endpoint address=unix:///var/run/libstorage/830317064.sock endpoint=localhost server=laser-bard-ma time=1493585387614
INFO[0000] server created server=laser-bard-ma time=1493585387614
INFO[0000] initialized endpoints server=laser-bard-ma time=1493585387614
INFO[0000] initializing server services server=laser-bard-ma time=1493585387614
DEBU[0000] configured result schema validation enabled=false server=laser-bard-ma time=1493585387615
DEBU[0000] got services map count=1 server=laser-bard-ma time=1493585387616
DEBU[0000] processing service config server=laser-bard-ma service=rbd time=1493585387616
DEBU[0000] getting scoped config for service scope=libstorage.server.services.rbd server=laser-bard-ma service=rbd time=1493585387616
DEBU[0000] created scoped scope new=libstorage.server.services.rbd parentScopes=libstorage.server,rexray,
DEBU[0000] got driver name driverName=rbd server=laser-bard-ma service=rbd time=1493585387617
INFO[0000] storage driver initialized server=laser-bard-ma service=rbd storageDriver=rbd time=1493585387617
DEBU[0000] parsed server auth property libstorage.server.auth.disabled=false server=laser-bard-ma service=rbd time=1493585387630
DEBU[0000] parsed server auth property libstorage.server.auth.key= server=laser-bard-ma service=rbd time=1493585387639
DEBU[0000] parsed server auth property libstorage.server.auth.alg=HS256 server=laser-bard-ma service=rbd time=1493585387647
DEBU[0000] parsed server auth property libstorage.server.auth.allow=[] server=laser-bard-ma service=rbd time=1493585387655
DEBU[0000] parsed server auth property libstorage.server.auth.deny=[] server=laser-bard-ma service=rbd time=1493585387663
INFO[0000] configured service auth libstorage.server.auth.alg=HS256 libstorage.server.auth.allow=[] libstorage.server.auth.deny=[] libstorage.server.auth.disabled=false libstorage.server.auth.key= server=laser-bard-ma service=rbd time=1493585387663
INFO[0000] created new service server=laser-bard-ma service=rbd time=1493585387663
INFO[0000] initialized services server=laser-bard-ma time=1493585387663
INFO[0000] initialized router len(routes)=3 router=executor-router server=laser-bard-ma time=1493585387663
INFO[0000] initialized router len(routes)=4 router=help-router server=laser-bard-ma time=1493585387663
INFO[0000] initialized router len(routes)=1 router=root-router server=laser-bard-ma time=1493585387663
INFO[0000] initialized router len(routes)=2 router=service-router server=laser-bard-ma time=1493585387663
INFO[0000] initialized router len(routes)=11 router=volume-router server=laser-bard-ma time=1493585387664
INFO[0000] initialized router len(routes)=6 router=snapshot-router server=laser-bard-ma time=1493585387664
INFO[0000] initialized router len(routes)=2 router=tasks-router server=laser-bard-ma time=1493585387664
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/executors queries=[] route=executors server=laser-bard-ma time=1493585387664 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/executors/{executor} queries=[] route=executorInspect server=laser-bard-ma time=1493585387664 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=HEAD path=/executors/{executor} queries=[] route=executorHead server=laser-bard-ma time=1493585387664 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/help queries=[] route=version server=laser-bard-ma time=1493585387664 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/help/config queries=[] route=version server=laser-bard-ma time=1493585387665 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/help/env queries=[] route=version server=laser-bard-ma time=1493585387666 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/help/version queries=[] route=version server=laser-bard-ma time=1493585387666 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/ queries=[] route=root server=laser-bard-ma time=1493585387666 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/services queries=[] route=services server=laser-bard-ma time=1493585387666 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/services/{service} queries=[] route=serviceInspect server=laser-bard-ma time=1493585387666 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/volumes queries=[] route=volumes server=laser-bard-ma time=1493585387666 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/volumes/{service} queries=[] route=volumesForService server=laser-bard-ma time=1493585387666 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/volumes/{service}/{volumeID} queries=[] route=volumeInspect server=laser-bard-ma time=1493585387666 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=2 method=POST path=/volumes/{service} queries=[detach ] route=volumesDetachForService server=laser-bard-ma time=1493585387667 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=POST path=/volumes/{service} queries=[] route=volumeCreate server=laser-bard-ma time=1493585387667 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=2 method=POST path=/volumes/{service}/{volumeID} queries=[copy ] route=volumeCopy server=laser-bard-ma time=1493585387667 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=2 method=POST path=/volumes/{service}/{volumeID} queries=[snapshot ] route=volumeSnapshot server=laser-bard-ma time=1493585387667 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=2 method=POST path=/volumes/{service}/{volumeID} queries=[attach ] route=volumeAttach server=laser-bard-ma time=1493585387668 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=2 method=POST path=/volumes queries=[detach ] route=volumesDetachAll server=laser-bard-ma time=1493585387668 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=2 method=POST path=/volumes/{service}/{volumeID} queries=[detach ] route=volumeDetach server=laser-bard-ma time=1493585387668 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=DELETE path=/volumes/{service}/{volumeID} queries=[] route=volumeRemove server=laser-bard-ma time=1493585387668 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/snapshots queries=[] route=snapshots server=laser-bard-ma time=1493585387668 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/snapshots/{service} queries=[] route=snapshotsForService server=laser-bard-ma time=1493585387668 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/snapshots/{service}/{snapshotID} queries=[] route=snapshotInspect server=laser-bard-ma time=1493585387669 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=2 method=POST path=/snapshots/{service}/{snapshotID} queries=[create ] route=snapshotCreate server=laser-bard-ma time=1493585387669 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=2 method=POST path=/snapshots/{service}/{snapshotID} queries=[copy ] route=snapshotCopy server=laser-bard-ma time=1493585387669 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=DELETE path=/snapshots/{service}/{snapshotID} queries=[] route=snapshotRemove server=laser-bard-ma time=1493585387669 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/tasks queries=[] route=tasks server=laser-bard-ma time=1493585387669 tls=false
DEBU[0000] registered route host=unix:///var/run/libstorage/830317064.sock len(queries)=0 method=GET path=/tasks/{taskID} queries=[] route=taskInspect server=laser-bard-ma time=1493585387669 tls=false
INFO[0000] api listening host=unix:///var/run/libstorage/830317064.sock server=laser-bard-ma time=1493585387669 tls=false
INFO[0000] waiting for err or close signal server=laser-bard-ma time=1493585387669
INFO[0001] server started server=laser-bard-ma time=1493585388669
DEBU[0001] got host from new server address host=unix:///var/run/libstorage/830317064.sock time=1493585388669
DEBU[0001] set host in context host=unix:///var/run/libstorage/830317064.sock time=1493585388669
DEBU[0001] set host in config host=unix:///var/run/libstorage/830317064.sock time=1493585388670
DEBU[0001] created spec file host=unix:///var/run/libstorage/830317064.sock path=/var/run/rexray/rexray.spec time=1493585388670
DEBU[0001] creating libStorage client cmd=ls host=unix:///var/run/libstorage/830317064.sock time=1493585388670
DEBU[0001] created scoped scope new=libstorage.client parentScopes=rexray,
INFO[0001] configured logging host=unix:///var/run/libstorage/830317064.sock libstorage.logging.httpRequests=false libstorage.logging.httpResponses=false libstorage.logging.level=debug time=1493585388692
DEBU[0001] got configured host address host=unix:///var/run/libstorage/830317064.sock service=rbd storageDriver=libstorage time=1493585388696
DEBU[0001] parsing tls config host=unix:///var/run/libstorage/830317064.sock service=rbd storageDriver=libstorage time=1493585388696
INFO[0001] created libStorage client clientType=integration disableKeepAlive=false enableInstanceIDHeaders=true enableLocalDevicesHeaders=true host=unix:///var/run/libstorage/830317064.sock logRequests=false logResponses=false lsxMutexPath=/var/run/libstorage/lsx.lock lsxPath=/var/lib/libstorage/lsx-linux service=rbd storageDriver=libstorage time=1493585388724
INFO[0001] registered custom context key externalID=Libstorage-Tx internalID=2 keyBitmask=2
INFO[0001] registered custom context key externalID=Libstorage-Instanceid internalID=3 keyBitmask=2
INFO[0001] registered custom context key externalID=Libstorage-Localdevices internalID=4 keyBitmask=2
INFO[0001] registered custom context key externalID=Authorization internalID=5 keyBitmask=2
DEBU[0001] successful connection host=unix:///var/run/libstorage/830317064.sock service=rbd storageDriver=libstorage time=1493585388724
INFO[0001] http request host=unix:///var/run/libstorage/830317064.sock route=services server=laser-bard-ma time=1493585388724 tls=false
DEBU[0001] added route middleware host=unix:///var/run/libstorage/830317064.sock middleware=schema-validator route=services server=laser-bard-ma time=1493585388724 tls=false
DEBU[0001] added route middleware host=unix:///var/run/libstorage/830317064.sock middleware=auth-svc-handler route=services server=laser-bard-ma time=1493585388724 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=transaction-handler route=services server=laser-bard-ma time=1493585388724 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=local-devices-handler route=services server=laser-bard-ma time=1493585388724 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=instanceIDs-handler route=services server=laser-bard-ma time=1493585388724 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=auth-global-handler route=services server=laser-bard-ma time=1493585388724 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=error-handler route=services server=laser-bard-ma time=1493585388725 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=transaction-handler route=services server=laser-bard-ma time=1493585388725 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=query-params-handler route=services server=laser-bard-ma time=1493585388725 tls=false
DEBU[0001] http header Libstorage-Tx=txID=d8952510-d264-40af-50ac-0f10fa968141, txCR=1493585388 host=unix:///var/run/libstorage/830317064.sock route=services server=laser-bard-ma time=1493585388725 tls=false
DEBU[0001] skipping global auth handler; empty allow & deny lists host=unix:///var/run/libstorage/830317064.sock route=services server=laser-bard-ma time=1493585388725 tls=false txCR=1493585388 txID=d8952510-d264-40af-50ac-0f10fa968141
DEBU[0001] http header Libstorage-Instanceid=[] host=unix:///var/run/libstorage/830317064.sock route=services server=laser-bard-ma time=1493585388725 tls=false txCR=1493585388 txID=d8952510-d264-40af-50ac-0f10fa968141
DEBU[0001] http header Libstorage-Localdevices=[] host=unix:///var/run/libstorage/830317064.sock route=services server=laser-bard-ma time=1493585388725 tls=false txCR=1493585388 txID=d8952510-d264-40af-50ac-0f10fa968141
DEBU[0001] skipping svc auth handler; empty allow & deny lists host=unix:///var/run/libstorage/830317064.sock route=services server=laser-bard-ma time=1493585388725 tls=false txCR=1493585388 txID=d8952510-d264-40af-50ac-0f10fa968141
DEBU[0001] validated all services access host=unix:///var/run/libstorage/830317064.sock route=services server=laser-bard-ma time=1493585388725 tls=false txCR=1493585388 txID=d8952510-d264-40af-50ac-0f10fa968141
INFO[0001] initializing executors cache host=unix:///var/run/libstorage/830317064.sock service=rbd storageDriver=libstorage time=1493585388726
INFO[0001] http request host=unix:///var/run/libstorage/830317064.sock route=executors server=laser-bard-ma time=1493585388727 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=transaction-handler route=executors server=laser-bard-ma time=1493585388727 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=local-devices-handler route=executors server=laser-bard-ma time=1493585388727 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=instanceIDs-handler route=executors server=laser-bard-ma time=1493585388727 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=auth-global-handler route=executors server=laser-bard-ma time=1493585388727 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=error-handler route=executors server=laser-bard-ma time=1493585388727 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=transaction-handler route=executors server=laser-bard-ma time=1493585388727 tls=false
DEBU[0001] added global middleware host=unix:///var/run/libstorage/830317064.sock middleware=query-params-handler route=executors server=laser-bard-ma time=1493585388727 tls=false
DEBU[0001] http header Libstorage-Tx=txID=93f31edc-b096-42dc-64e1-5c0aa06c3ec8, txCR=1493585388 host=unix:///var/run/libstorage/830317064.sock route=executors server=laser-bard-ma time=1493585388727 tls=false
DEBU[0001] skipping global auth handler; empty allow & deny lists host=unix:///var/run/libstorage/830317064.sock route=executors server=laser-bard-ma time=1493585388727 tls=false txCR=1493585388 txID=93f31edc-b096-42dc-64e1-5c0aa06c3ec8
DEBU[0001] http header Libstorage-Instanceid=[] host=unix:///var/run/libstorage/830317064.sock route=executors server=laser-bard-ma time=1493585388727 tls=false txCR=1493585388 txID=93f31edc-b096-42dc-64e1-5c0aa06c3ec8
DEBU[0001] http header Libstorage-Localdevices=[] host=unix:///var/run/libstorage/830317064.sock route=executors server=laser-bard-ma time=1493585388727 tls=false txCR=1493585388 txID=93f31edc-b096-42dc-64e1-5c0aa06c3ec8
DEBU[0001] updating executor host=unix:///var/run/libstorage/830317064.sock service=rbd storageDriver=libstorage time=1493585388728
DEBU[0001] waiting on executor lock host=unix:///var/run/libstorage/830317064.sock service=rbd storageDriver=libstorage time=1493585388728
DEBU[0001] executor exists, getting local checksum host=unix:///var/run/libstorage/830317064.sock service=rbd storageDriver=libstorage time=1493585388728
DEBU[0001] getting executor checksum host=unix:///var/run/libstorage/830317064.sock service=rbd storageDriver=libstorage time=1493585388728
DEBU[0001] got local executor checksum host=unix:///var/run/libstorage/830317064.sock localChecksum=2a11b19587a57cd47fa1cf54a6cae144 service=rbd storageDriver=libstorage time=1493585388753
DEBU[0001] signalling executor lock host=unix:///var/run/libstorage/830317064.sock service=rbd storageDriver=libstorage time=1493585388753
INFO[0001] initializing supported cache host=unix:///var/run/libstorage/830317064.sock server=laser-bard-ma service=rbd storageDriver=libstorage time=1493585388753
DEBU[0001] waiting on executor lock host=unix:///var/run/libstorage/830317064.sock server=laser-bard-ma service=rbd storageDriver=libstorage time=1493585388754 txCR=1493585388 txID=0684b8e4-ed29-452d-7603-9861f074d134
DEBU[0001] invoking executor cli args=[rbd supported] cmd=/var/lib/libstorage/lsx-linux host=unix:///var/run/libstorage/830317064.sock server=laser-bard-ma service=rbd storageDriver=libstorage time=1493585388754 txCR=1493585388 txID=0684b8e4-ed29-452d-7603-9861f074d134
DEBU[0001] signalling executor lock host=unix:///var/run/libstorage/830317064.sock server=laser-bard-ma service=rbd storageDriver=libstorage time=1493585388777 txCR=1493585388 txID=0684b8e4-ed29-452d-7603-9861f074d134
Oops, an error occured!
error initializing supported cache
To correct the error please review:
- Debug output by using the flag -l debug
- The REX-ray website at https://github.com/codedellemc/rexray
- The on↓ine he↓p be↓ow
List volumes
Usage:
rexray volume ls [flags]
Aliases:
ls, l, list, get, inspect
Examples:
rexray volume ls [OPTIONS] [VOLUME...]
Flags:
--attached A flag that indicates only volumes attached to this host should be returned
--available A flag that indicates only available volumes should be returned
--path A flag that indicates only volumes attached to this host should be returned, along with their path info
Global Flags:
-c, --config string The path to a custom REX-Ray configuration file
-n, --dryRun Show what action(s) will occur, but do not execute them
-f, --format string The output format (tmpl, json, jsonp) (default "tmpl")
-?, --help Help about the current command
-h, --host string The libStorage host.
-l, --logLevel string The log level (error, warn, info, debug) (default "warn")
-q, --quiet Suppress table headers
-s, --service string The libStorage service.
--template string The Go template to use when --format is set to 'tmpl'
--templateTabs Set to true to use a Go tab writer with the output template (default true)
-v, --verbose Print verbose help information
DEBU[0001] exiting with default error code 1, r=&{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment