Skip to content

Instantly share code, notes, and snippets.

View codenrhoden's full-sized avatar

Travis Rhoden codenrhoden

  • Boulder, CO
View GitHub Profile
@codenrhoden
codenrhoden / log.sh
Created November 10, 2017 17:08
rex 0.11 startup no docker
INFO[0000] DockerLegacyMode enabled=false time=1510333624557
DEBU[0000] trapped signals time=1510333624558
DEBU[0000] loading config buildType=client+agent+controller configFileName=rexray globalConfigFileExists=false globalConfigFilePath=/etc/rexray/rexray.yml ignoreExists=false time=1510333624558 userConfigFileExists=false userConfigFilePath=/root/.rexray/rexray.yml
DEBU[0000] cannot find global or user file buildType=client+agent+controller configFileName=rexray globalConfigFileExists=false globalConfigFilePath=/etc/rexray/rexray.yml ignoreExists=false time=1510333624558 userConfigFileExists=false userConfigFilePath=/root/.rexray/rexray.yml
DEBU[0000] loading config buildType=client+agent+controller configFileName=config globalConfigFileExists=true globalConfigFilePath=/etc/rexray/config.yml ignoreExists=true time=1510333624558 userConfigFileExists=false userConfigFilePath=
time="2017-05-25T12:04:24-07:00" level=debug msg="mkdir -p" path="/" time=1495739064931
time="2017-05-25T12:04:24-07:00" level=debug msg="lsx binary name" lsx=lsx-darwin time=1495739064932
time="2017-05-25T12:04:24-07:00" level=debug msg="mkdir -p" path="/etc/libstorage" time=1495739064932
time="2017-05-25T12:04:24-07:00" level=debug msg="mkdir -p" path="/etc/libstorage/tls" time=1495739064932
time="2017-05-25T12:04:24-07:00" level=debug msg="mkdir -p" path="/var/lib/libstorage" time=1495739064932
time="2017-05-25T12:04:24-07:00" level=debug msg="mkdir -p" path="/var/log/libstorage" time=1495739064932
time="2017-05-25T12:04:24-07:00" level=debug msg="mkdir -p" path="/var/run/libstorage" time=1495739064932
time="2017-05-25T12:04:24-07:00" level=debug msg="trapped signals" time=1495739064933
time="2017-05-25T12:04:24-07:00" level=debug msg="loading config" buildType="client+agent+controller" configFileName=rexray globalConfigFileExists=false globalConfigFilePath="/etc/rexray/rexray.yml" ignoreExists=fal
@codenrhoden
codenrhoden / log-earlier-debug.sh
Last active May 2, 2017 23:12
rex startup fail with TLS
May 02 23:10:49 rex systemd[1]: Starting rexray...
-- Subject: Unit rexray.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rexray.service has begun starting up.
May 02 23:10:52 rex rexray[17969]: time="2017-05-02T23:10:52Z" level=debug msg="mkdir -p" path="/" time=1493766652913
May 02 23:10:52 rex rexray[17969]: time="2017-05-02T23:10:52Z" level=debug msg="mkdir -p" path="/etc/libstorage" time=1493766652915
May 02 23:10:52 rex rexray[17969]: time="2017-05-02T23:10:52Z" level=debug msg="mkdir -p" path="/etc/libstorage/tls" time=1493766652915
May 02 23:10:52 rex rexray[17969]: time="2017-05-02T23:10:52Z" level=debug msg="mkdir -p" path="/var/lib/libstorage" time=1493766652916
@codenrhoden
codenrhoden / rex.sh
Created May 2, 2017 21:13
Auto TLS over Unix socket
[root@rex ~]# rexray -l debug volume ls
INFO[0002] updated log level logLevel=debug
DEBU[0002] os.args time=1493759085543 val=[rexray -l debug volume ls]
DEBU[0002] activating libStorage cmd=ls time=1493759085544
DEBU[0002] read spec file host=unix:///var/run/libstorage/919670668.sock path=/var/run/rexray/rexray.spec time=1493759085618
DEBU[0002] is local unix server active sock=/var/run/libstorage/919670668.sock time=1493759085619
INFO[0002] removed invalid sock file sockFile=/var/run/libstorage/919670668.sock time=1493759085621
INFO[0002] removed invalid spec file specFile=/var/run/rexray/rexray.spec time=1493759085622
DEBU[0002] host is empty; initiliazing default services time=1493759085623
INFO[0002] libStorage auto service mode enabled driver=cinder time=1493759085676
@codenrhoden
codenrhoden / lsx-linux.sh
Created April 30, 2017 21:02
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
@codenrhoden
codenrhoden / output.sh
Created April 25, 2017 20:17
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
@codenrhoden
codenrhoden / output.sh
Created April 25, 2017 20:13
openstack.test with openrc
trhoden@instance-1:~$ source devstack/openrc demo
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
trhoden@instance-1:~$ env | grep OS_
OS_PROJECT_DOMAIN_ID=default
OS_REGION_NAME=RegionOne
OS_USER_DOMAIN_ID=default
OS_PROJECT_NAME=demo
OS_IDENTITY_API_VERSION=3
OS_PASSWORD=rexray
OS_AUTH_URL=http://10.138.0.2/identity_admin
@codenrhoden
codenrhoden / log.txt
Created February 22, 2017 20:35
digital ocean detach fail
INFO[0334] http request host=unix:///var/run/libstorage/374435422.sock route=volumeDetach server=snapdragon-knight-fm time=1487795493891 tls=false
DEBU[0334] added route middleware host=unix:///var/run/libstorage/374435422.sock middleware=post-args-handler route=volumeDetach server=snapdragon-knight-fm time=1487795493891 tls=false
DEBU[0334] added route middleware host=unix:///var/run/libstorage/374435422.sock middleware=schema-validator route=volumeDetach server=snapdragon-knight-fm time=1487795493892 tls=false
DEBU[0334] added route middleware host=unix:///var/run/libstorage/374435422.sock middleware=storage-session-handler route=volumeDetach server=snapdragon-knight-fm time=1487795493892 tls=false
DEBU[0334] added route middleware host=unix:///var/run/libstorage/374435422.sock middleware=service-validator route=volumeDetach server=snapdragon-knight-fm time=1487795493892 tls=false
DEB
@codenrhoden
codenrhoden / shell.sh
Created January 4, 2017 18:10
unavailable volumes returned
[root@libstorage-rbd-test-admin ~]# LIBSTORAGE_LOGGING_HTTPRESPONSES=true LIBSTORAGE_LOGGING_HTTPREQUESTS=true rexray -l debug volume mount test
INFO[0000] updated log level logLevel=debug
DEBU[0000] os.args time=1482942511061 val=[rexray -l debug volume mount test]
DEBU[0000] activating libStorage cmd=mount time=1482942511061
DEBU[0000] host is empty; initiliazing default services time=1482942511064
INFO[0000] libStorage auto service mode enabled driver=rbd time=1482942511066
DEBU[0000] starting embedded libStorage server time=1482942511066
DEBU[0000] created scoped scope new=libstorage.server parentScopes=rexray,
INFO[0000] configured logging libstorage.logging.httpRequests=true libstorage.logging.httpResponses=true libstorage.logging.level=debug server=big-ripper-ai time=1482942511086
INFO[0000] initializing server server
@codenrhoden
codenrhoden / cfdiego.sh
Last active March 2, 2016 23:22
Vagrant Based CloudFoundry-Mesos deployment
#!/usr/bin/env bash
set -x
set -e
BOSH_STEMCELL_FILE=bosh-lite-stemcell-latest.tgz
GARDEN_LINUX_FILE=garden-linux-release-v0.307.0.tgz
ETCD_FILE=etcd-release-latest.tgz
gem install bosh_cli bundler --no-ri --no-rdoc