Skip to content

Instantly share code, notes, and snippets.

@codenrhoden
Created April 25, 2017 20:17
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/e136b19625063338adc44ac5b7c51d4c to your computer and use it in GitHub Desktop.
Save codenrhoden/e136b19625063338adc44ac5b7c51d4c to your computer and use it in GitHub Desktop.
rexray wwith openstack driver
trhoden@instance-1:~$ cat /etc/rexray/config.yml
rexray:
logLevel: debug
libstorage:
service: openstack
openstack:
authURL: http://10.138.0.2/identity_admin
userName: demo
password: rexray
tenantName: demo
# domainName: default
# availabilityZoneName: nova
# regionName: RegionOne
trhoden@instance-1:~$ sudo ./rexray volume ls
INFO[0000] registered custom context key externalID=Libstorage-Tx internalID=1 keyBitmask=2
INFO[0000] registered custom context key externalID=Libstorage-Instanceid internalID=2 keyBitmask=2
INFO[0000] registered custom context key externalID=Libstorage-Localdevices internalID=3 keyBitmask=2
INFO[0000] registered custom context key externalID=Authorization internalID=4 keyBitmask=2
INFO[0000] registered custom context key externalID=signal internalID=5 keyBitmask=1
INFO[0000] updated log level logLevel=debug
DEBU[0000] os.args time=1493151358359 val=[./rexray volume ls]
DEBU[0000] activating libStorage cmd=ls time=1493151358359
DEBU[0000] host is empty; initiliazing default services time=1493151358361
INFO[0000] libStorage auto service mode enabled driver=openstack time=1493151358362
DEBU[0000] starting embedded libStorage server time=1493151358363
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=fish-boa-um time=1493151358380
DEBU[0000] parsed server auth property libstorage.server.auth.disabled=false server=fish-boa-um time=1493151358385
DEBU[0000] parsed server auth property libstorage.server.auth.key= server=fish-boa-um time=1493151358387
DEBU[0000] parsed server auth property libstorage.server.auth.alg=HS256 server=fish-boa-um time=1493151358389
DEBU[0000] parsed server auth property libstorage.server.auth.allow=[] server=fish-boa-um time=1493151358393
DEBU[0000] parsed server auth property libstorage.server.auth.deny=[] server=fish-boa-um time=1493151358396
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=fish-boa-um time=1493151358396
INFO[0000] initializing server server=fish-boa-um time=1493151358396
INFO[0000] initializing default endpoint autoEndpointMode=unix server=fish-boa-um time=1493151358399
INFO[0000] initializing auto unix endpoint endpoint=libstorage.server.endpoints.localhost server=fish-boa-um time=1493151358401
DEBU[0000] endpoint info address=unix:///var/run/libstorage/251355418.sock endpoint=libstorage.server.endpoints.localhost server=fish-boa-um time=1493151358401
DEBU[0000] created scoped scope new=libstorage.server.endpoints.localhost parentScopes=libstorage.server,rexray,
DEBU[0000] parsing tls config server=fish-boa-um time=1493151358401
INFO[0000] tls not configured server=fish-boa-um time=1493151358407
INFO[0000] configured endpoint address=unix:///var/run/libstorage/251355418.sock endpoint=localhost server=fish-boa-um time=1493151358407
INFO[0000] server created server=fish-boa-um time=1493151358407
INFO[0000] initialized endpoints server=fish-boa-um time=1493151358407
INFO[0000] initializing server services server=fish-boa-um time=1493151358408
DEBU[0000] configured result schema validation enabled=false server=fish-boa-um time=1493151358408
DEBU[0000] got services map count=1 server=fish-boa-um time=1493151358409
DEBU[0000] processing service config server=fish-boa-um service=openstack time=1493151358409
DEBU[0000] getting scoped config for service scope=libstorage.server.services.openstack server=fish-boa-um service=openstack time=1493151358409
DEBU[0000] created scoped scope new=libstorage.server.services.openstack parentScopes=libstorage.server,rexray,
DEBU[0000] got driver name driverName=openstack server=fish-boa-um service=openstack time=1493151358411
ERRO[0000] error starting libStorage server error.inner.Offset=5 error.availabilityZone= error.userId= error.tenantName=demo error.tenantId= error.identityEndpoint="http://10.138.0.2/identity_admin" error.userName=demo error.domainName= error.region= error.trustId= error.provider=openstack error.password="******" error.tokenId= error.domainId= time=1493151358620
Oops, an error occured!
error authenticating
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[0000] 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