Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am adamschaub on github.
  • I am adamschaub (https://keybase.io/adamschaub) on keybase.
  • I have a public key whose fingerprint is C8EE 2823 6D77 8670 8FCD EDB1 1559 C53E C567 861D

To claim this, I am signing this object:

package main
import (
"fmt"
"bufio"
"os"
"strconv"
"strings"
)
type Node struct {
$ oc get pods
NAME READY STATUS RESTARTS AGE
consul-xzepb 1/1 Running 0 15m
couchbase-n5vzz 1/1 Running 0 15m
hekad-mmvpu 1/1 Running 0 15m
kube2consu-i256t 1/1 Running 0 15m
logstash-0xqb0 1/1 Running 0 15m
rabbitmq-5gs6k 1/1 Running 0 15m
redis-u2n7j 1/1 Running 0 15m
------------------------------------------------------------------------------
|,------. ,--. ,--. ,---. ,--. |
|| .--. '| ,---. `--'' .-' ,---. ,--.--.,--. ,--.`--' ,---. ,---. |
|| '--' || .-. |,--.`. `-. | .-. :| .--' \ `' / ,--.| .--'| .-. : |
|| | --' | | | || |.-' |\ --.| | \ / | |\ `--.\ --. |
|`--' `--' `--'`--'`-----' `----'`--' `--' `--' `---' `----' |
| |
| ,---. ,--. |
|' .-' ,---. ,--.--.,--. ,--.`--' ,---. ,---. |
|`. `-. | .-. :| .--' \ `' / ,--.| .--'| .-. : |
+ exec app
I1114 18:17:28.431917 1 main.go:122] [Attempt: 1] Attempting access to Consul after 5 second sleep
I1114 18:18:03.434910 1 main.go:122] [Attempt: 2] Attempting access to Consul after 5 second sleep
...
F1114 18:23:53.472101 1 main.go:127] Failed to connect to Consul: Get http://172.30.4.122:8500/v1/agent/self: dial tcp 172.30.4.122:8500: i/o timeout
$ VBoxManage -v
5.0.28r111378
$ vagrant version
Installed Version: 1.8.7
Latest Version: 1.8.7
$ vagrant plugin list
vagrant-cachier (1.2.1)
vagrant-openstack-provider (0.7.2)
2016-12-01 06:20:01.936 ERROR 6 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sleuthRxJavaSchedulersHook' defined in class path resource [org/springframework/cloud/sleuth/instrument/rxjava/RxJavaAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.sleuth.instrument.rxjava.SleuthRxJavaSchedulersHook]: Factory method 'sleuthRxJavaSchedulersHook' threw exception; nested exception is java.lang.IllegalAccessError: tried to access method rx.plugins.RxJavaPlugins.reset()V from class org.springframework.cloud.sleuth.instrument.rxjava.SleuthRxJavaSchedulersHook
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractA
2016-12-08 06:15:04.532 WARN 6 --- [ cb-io-1-1] c.c.client.core.endpoint.Endpoint : [null][KeyValueEndpoint]: Authentication Failure.
2016-12-08 06:15:04.587 WARN 6 --- [ cb-io-1-2] c.c.c.c.e.ResponseStatusConverter : Unknown ResponseStatus with Protocol HTTP: 401
2016-12-08 06:15:04.614 WARN 6 --- [ cb-io-1-3] c.c.c.c.e.ResponseStatusConverter : Unknown ResponseStatus with Protocol HTTP: 401
2016-12-08 06:15:04.626 WARN 6 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'swaggerConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mangofactory.swagger.configuration.SpringSwaggerConfig com.cisco.phisphere.samplemicroservice.config.swagger.SwaggerConfiguration.springSwag
# If using the RTP cluster, replace:
# <couchbase-ip>:8091 -> couchbase-ivpp.apps.vmware.openshift.wwva.ciscolabs.com
# <couchbase-ip>:8092 -> couchbase-xdcr-ivpp.apps.vmware.openshift.wwva.ciscolabs.com
# To see all of the buckets on the server.
curl -u Administrator:password -XGET http://<couchbase-ip>:8091/pools/default/buckets
# To delete an existing bucket.
curl -u Administrator:password -XDELETE http://<couchbase-ip>:8091/pools/default/buckets/<bucket-name>
apiVersion: v1
id: service-textindexservice
kind: Template
metadata:
name: service-textindexservice
objects:
- apiVersion: v1
id: textindexservice
kind: Service
metadata: