You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> sudo rexray install
Generating server self-signed certificate...
Created cert file /etc/libstorage/tls/libstorage.crt and key /etc/libstorage/tls/libstorage.key
REX-Ray is now installed. Before starting it please check http://github.com/codedellemc/rexray for instructions on how to configure it.
Once configured the REX-Ray service can be started with the command 'sudo systemctl start rexray'.
REX-Ray command (fail)
> sudo rexray device ls -l debug
INFO[0000] updated log level logLevel=debug
DEBU[0000] os.args time=1493696451248 val=[rexray device ls -l debug]
DEBU[0000] activating libStorage cmd=ls time=1493696451248
DEBU[0000] is local tcp server active port=7979 time=1493696451250
DEBU[0000] starting embedded libStorage server time=1493696451250
DEBU[0000] created scoped scope new=libstorage.server parentScopes=rexray,
INFO[0000] configured logging libstorage.logging.httpRequests=true libstorage.logging.httpResponses=false libstorage.logging.level=debug server=boulder-kitten-nz time=1493696451261
DEBU[0000] parsed server auth property libstorage.server.auth.disabled=false server=boulder-kitten-nz time=1493696451264
DEBU[0000] parsed server auth property libstorage.server.auth.key= server=boulder-kitten-nz time=1493696451266
DEBU[0000] parsed server auth property libstorage.server.auth.alg=HS256 server=boulder-kitten-nz time=1493696451267
DEBU[0000] parsed server auth property libstorage.server.auth.allow=[] server=boulder-kitten-nz time=1493696451270
DEBU[0000] parsed server auth property libstorage.server.auth.deny=[] server=boulder-kitten-nz time=1493696451272
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=boulder-kitten-nz time=1493696451272
INFO[0000] initializing server server=boulder-kitten-nz time=1493696451272
DEBU[0000] endpoint info address=tcp://:7979 endpoint=libstorage.server.endpoints.public server=boulder-kitten-nz time=1493696451273
DEBU[0000] created scoped scope new=libstorage.server.endpoints.public parentScopes=libstorage.server,rexray,
DEBU[0000] parsing tls config server=boulder-kitten-nz time=1493696451273
INFO[0000] tls enabled libstorage.tls.keyFile=/etc/libstorage/tls/libstorage.key server=boulder-kitten-nz time=1493696451331
DEBU[0000] tls field set libstorage.tls.keyFile=/etc/libstorage/tls/libstorage.key server=boulder-kitten-nz time=1493696451331
DEBU[0000] tls field set libstorage.tls.certFile=/etc/libstorage/tls/libstorage.crt server=boulder-kitten-nz time=1493696451331
INFO[0000] configured endpoint address=tcp://:7979 endpoint=public libstorage.tls.certFile=/etc/libstorage/tls/libstorage.crt libstorage.tls.keyFile=/etc/libstorage/tls/libstorage.key server=boulder-kitten-nz time=1493696451332
INFO[0000] server created server=boulder-kitten-nz time=1493696451332
INFO[0000] initialized endpoints server=boulder-kitten-nz time=1493696451332
INFO[0000] initializing server services server=boulder-kitten-nz time=1493696451332
DEBU[0000] configured result schema validation enabled=false server=boulder-kitten-nz time=1493696451333
DEBU[0000] got services map count=1 server=boulder-kitten-nz time=1493696451333
DEBU[0000] processing service config server=boulder-kitten-nz service=vfs time=1493696451334
DEBU[0000] getting scoped config for service scope=libstorage.server.services.vfs server=boulder-kitten-nz service=vfs time=1493696451334
DEBU[0000] created scoped scope new=libstorage.server.services.vfs parentScopes=libstorage.server,rexray,
DEBU[0000] got driver name driverName=vfs server=boulder-kitten-nz service=vfs time=1493696451335
INFO[0000] vfs.root server=boulder-kitten-nz service=vfs storageDriver=vfs time=1493696451339 vfs.root.path=/tmp/rexray/vfs
DEBU[0000] parsed server auth property libstorage.server.auth.disabled=false server=boulder-kitten-nz service=vfs time=1493696451349
DEBU[0000] parsed server auth property libstorage.server.auth.key= server=boulder-kitten-nz service=vfs time=1493696451354
DEBU[0000] parsed server auth property libstorage.server.auth.alg=HS256 server=boulder-kitten-nz service=vfs time=1493696451359
DEBU[0000] parsed server auth property libstorage.server.auth.allow=[] server=boulder-kitten-nz service=vfs time=1493696451364
DEBU[0000] parsed server auth property libstorage.server.auth.deny=[] server=boulder-kitten-nz service=vfs time=1493696451370
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=boulder-kitten-nz service=vfs time=1493696451370
INFO[0000] created new service server=boulder-kitten-nz service=vfs time=1493696451371
INFO[0000] initialized services server=boulder-kitten-nz time=1493696451371
INFO[0000] initialized router len(routes)=3 router=executor-router server=boulder-kitten-nz time=1493696451371
INFO[0000] initialized router len(routes)=4 router=help-router server=boulder-kitten-nz time=1493696451372
INFO[0000] initialized router len(routes)=1 router=root-router server=boulder-kitten-nz time=1493696451372
INFO[0000] initialized router len(routes)=2 router=service-router server=boulder-kitten-nz time=1493696451372
INFO[0000] initialized router len(routes)=11 router=volume-router server=boulder-kitten-nz time=1493696451373
INFO[0000] initialized router len(routes)=6 router=snapshot-router server=boulder-kitten-nz time=1493696451373
INFO[0000] initialized router len(routes)=2 router=tasks-router server=boulder-kitten-nz time=1493696451373
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/executors queries=[] route=executors server=boulder-kitten-nz time=1493696451373 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/executors/{executor} queries=[] route=executorInspect server=boulder-kitten-nz time=1493696451374 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=HEAD path=/executors/{executor} queries=[] route=executorHead server=boulder-kitten-nz time=1493696451374 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/help queries=[] route=version server=boulder-kitten-nz time=1493696451374 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/help/config queries=[] route=version server=boulder-kitten-nz time=1493696451375 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/help/env queries=[] route=version server=boulder-kitten-nz time=1493696451375 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/help/version queries=[] route=version server=boulder-kitten-nz time=1493696451377 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/ queries=[] route=root server=boulder-kitten-nz time=1493696451377 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/services queries=[] route=services server=boulder-kitten-nz time=1493696451377 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/services/{service} queries=[] route=serviceInspect server=boulder-kitten-nz time=1493696451378 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/volumes queries=[] route=volumes server=boulder-kitten-nz time=1493696451378 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/volumes/{service} queries=[] route=volumesForService server=boulder-kitten-nz time=1493696451378 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/volumes/{service}/{volumeID} queries=[] route=volumeInspect server=boulder-kitten-nz time=1493696451379 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=2 method=POST path=/volumes/{service} queries=[detach ] route=volumesDetachForService server=boulder-kitten-nz time=1493696451379 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=POST path=/volumes/{service} queries=[] route=volumeCreate server=boulder-kitten-nz time=1493696451379 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=2 method=POST path=/volumes/{service}/{volumeID} queries=[copy ] route=volumeCopy server=boulder-kitten-nz time=1493696451380 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=2 method=POST path=/volumes/{service}/{volumeID} queries=[snapshot ] route=volumeSnapshot server=boulder-kitten-nz time=1493696451380 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=2 method=POST path=/volumes/{service}/{volumeID} queries=[attach ] route=volumeAttach server=boulder-kitten-nz time=1493696451380 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=2 method=POST path=/volumes queries=[detach ] route=volumesDetachAll server=boulder-kitten-nz time=1493696451381 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=2 method=POST path=/volumes/{service}/{volumeID} queries=[detach ] route=volumeDetach server=boulder-kitten-nz time=1493696451381 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=DELETE path=/volumes/{service}/{volumeID} queries=[] route=volumeRemove server=boulder-kitten-nz time=1493696451381 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/snapshots queries=[] route=snapshots server=boulder-kitten-nz time=1493696451382 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/snapshots/{service} queries=[] route=snapshotsForService server=boulder-kitten-nz time=1493696451382 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/snapshots/{service}/{snapshotID} queries=[] route=snapshotInspect server=boulder-kitten-nz time=1493696451382 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=2 method=POST path=/snapshots/{service}/{snapshotID} queries=[create ] route=snapshotCreate server=boulder-kitten-nz time=1493696451383 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=2 method=POST path=/snapshots/{service}/{snapshotID} queries=[copy ] route=snapshotCopy server=boulder-kitten-nz time=1493696451383 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=DELETE path=/snapshots/{service}/{snapshotID} queries=[] route=snapshotRemove server=boulder-kitten-nz time=1493696451383 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/tasks queries=[] route=tasks server=boulder-kitten-nz time=1493696451384 tls=true
DEBU[0000] registered route host=tcp://:7979 len(queries)=0 method=GET path=/tasks/{taskID} queries=[] route=taskInspect server=boulder-kitten-nz time=1493696451384 tls=true
INFO[0000] api listening host=tcp://:7979 server=boulder-kitten-nz time=1493696451384 tls=true
INFO[0000] waiting for err or close signal server=boulder-kitten-nz time=1493696451384
INFO[0001] server started server=boulder-kitten-nz time=1493696452385
DEBU[0001] set host in context host=tcp://localhost:7979 time=1493696452385
DEBU[0001] set host in config host=tcp://localhost:7979 time=1493696452386
DEBU[0001] created spec file host=tcp://localhost:7979 path=/var/run/rexray/rexray.spec time=1493696452387
DEBU[0001] creating libStorage client cmd=ls host=tcp://localhost:7979 time=1493696452387
DEBU[0001] created scoped scope new=libstorage.client parentScopes=rexray,
INFO[0001] configured logging host=tcp://localhost:7979 libstorage.logging.httpRequests=true libstorage.logging.httpResponses=false libstorage.logging.level=debug time=1493696452407
DEBU[0001] got configured host address host=tcp://localhost:7979 service= storageDriver=libstorage time=1493696452410
DEBU[0001] parsing tls config host=tcp://localhost:7979 service= storageDriver=libstorage time=1493696452411
INFO[0001] tls enabled host=tcp://localhost:7979 libstorage.tls.keyFile=/etc/libstorage/tls/libstorage.key service= storageDriver=libstorage time=1493696452432
DEBU[0001] tls field set host=tcp://localhost:7979 libstorage.tls.keyFile=/etc/libstorage/tls/libstorage.key service= storageDriver=libstorage time=1493696452432
DEBU[0001] tls field set host=tcp://localhost:7979 libstorage.tls.certFile=/etc/libstorage/tls/libstorage.crt service= storageDriver=libstorage time=1493696452432
INFO[0001] created libStorage client clientType=integration disableKeepAlive=false enableInstanceIDHeaders=true enableLocalDevicesHeaders=true host=tcp://localhost:7979 libstorage.tls.certFile=/etc/libstorage/tls/libstorage.crt libstorage.tls.keyFile=/etc/libstorage/tls/libstorage.key logRequests=true logResponses=false lsxMutexPath=/var/run/libstorage/lsx.lock lsxPath=/var/lib/libstorage/lsx-linux service= storageDriver=libstorage time=1493696452437
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
INFO[0001]
INFO[0001] -------------------------- HTTP REQUEST (CLIENT) -------------------------
INFO[0001] GET /services HTTP/1.1
INFO[0001] Host: localhost:7979
INFO[0001] Libstorage-Tx: txID=1aecea87-0235-4f57-522e-9faf9b7f16bb, txCR=1493696452
INFO[0001]
Oops, an error occured!
ERRO[0001] http: TLS handshake error from [::1]:59516: remote error: tls: bad certificate
Get http://localhost:7979/services: x509: certificate signed by unknown authority
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
Get a device's mount(s)
Usage:
rexray device ls [flags]
Aliases:
ls, get, list
Flags:
--deviceName string
-f, --format string The output format (tmpl, json, jsonp) (default "tmpl")
--mountPoint string
--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)
Global Flags:
-c, --config string The path to a custom REX-Ray configuration file
-?, --help Help about the current command
-h, --host string The libStorage host.
-l, --logLevel string The log level (error, warn, info, debug) (default "warn")
-s, --service string The libStorage service.
-v, --verbose Print verbose help information
DEBU[0001] exiting with default error code 1, r=&{}