Skip to content

Instantly share code, notes, and snippets.

multi machine vagrant env
############################ on the minion nginx is deployed on, directly checking the service shows it is working fine
[vagrant@openshift-minion-2 ~]$ openssl s_client -servername www.example.com -connect 10.244.2.2:443 | grep 'subject\|issuer'
depth=1 C = US, ST = SC, L = Default City, O = Default Company Ltd, OU = Test CA, CN = www.exampleca.com, emailAddress = example@example.com
verify error:num=19:self signed certificate in certificate chain
verify return:0
subject=/CN=www.example.com/ST=SC/C=US/emailAddress=example@example.com/O=Example/OU=Example
[pweil@localhost origin]$ vagrant test-openshift3 --all
***************************************************
Running ARTIFACT_DIR=/tmp/origin/e2e/artifacts LOG_DIR=/tmp/origin/e2e/logs make test...
hack/build-go.sh
++ Building go targets for linux/amd64: cmd/openshift
++ Placing binaries
hack/test-go.sh
...snip...
for i in "${LOGS[@]}"
do
FINDER="LOG_${i}_FILE"..
FILE=${!FINDER}
if [ -z "$FILE" ]
then
addIssue "no file for $i exists"
else
[pweil@localhost etc]$ docker run -i -t pweil/ubuntu-mysql /bin/sh
# ls /etc/mysql
ca.pem conf.d debian-start debian.cnf example.key example.pem my.cnf
# /usr/bin/mysqld_safe --ssl-ca=/etc/mysql/ca.pem --ssl-cert=/etc/mysql/example.pem --ssl-key=/etc/mysql/example.key
150206 15:58:56 mysqld_safe Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect.
150206 15:58:56 mysqld_safe Logging to '/var/log/mysql/error.log'.
150206 15:58:56 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
^Z[1] + Stopped /usr/bin/mysqld_safe --ssl-ca=/etc/mysql/ca.pem --ssl-cert=/etc/mysql/example.pem --ssl-key=/etc/mysql/example.key
# exit
You have stopped jobs.
I0210 11:23:10.265653 6654 proxier.go:556] Opened iptables from-containers portal for service "database" on TCP 172.30.17.233:5434
I0210 11:23:10.279412 6654 proxier.go:567] Opened iptables from-host portal for service "database" on TCP 172.30.17.233:5434
I0210 11:23:10.415849 6654 rest.go:88] Creating deploymentConfig with namespace::Name: ns1::database
I0210 11:23:11.571004 6654 proxier.go:579] Closed iptables portals for service "database"
I0210 11:23:11.589418 6654 proxier.go:556] Opened iptables from-containers portal for service "database" on TCP 172.30.17.15:5434
I0210 11:23:11.610391 6654 proxier.go:567] Opened iptables from-host portal for service "database" on TCP 172.30.17.15:5434
I0210 11:23:11.758293 6654 rest.go:88] Creating deploymentConfig with namespace::Name: ns2::database
[vagrant@openshiftdev origin]$ export OPENSHIFT_CA_DATA=$(</data/src/github.com/openshift/origin/openshift.local.certificates/master/root.crt)
# using the reencrypt route:
in echo server
Error reading socket: EOF
got data:
done echo server
# deleted the reencrypt route and used a passthrough route:
in echo server
got data: secure-Hello
done echo server
export OS_ROOT=/home/pweil/codebase/openshiftgo/src/github.com/openshift/origin
94 export OS_BIN=${OS_ROOT}/_output/local/bin/linux/amd64/:${OS_ROOT}/_output/go/bin
95 export GOPATH=${OS_ROOT}/Godeps/_workspace:/home/pweil/codebase/openshiftgo
96 export PATH=$PATH:~/bin:$GOPATH/bin:/usr/local/go/bin:${OS_BIN}:/opt/etcd
97
98 alias cbo='cd ${OS_ROOT}'
99 alias linkos="ln -s ${OS_ROOT}/_output/local/bin/linux/amd64/openshift ${OS_ROOT}/_output/local/bin/linux/amd64/osc"
100 alias buildos="cbo; make clean && make; linkos"
101 alias cleanos="c
[pweil@localhost openshift]$ osc get -t '{{index .labels "name"}}' pod hello-websocket
hello-websocket[pweil@localhost openshift]$ osc get -t '{{.id}}' pod hello-websocket
hello-websocket[pweil@localhost openshift]$
os_http_be.map and os_sni_passthrough.map are both just empty files