Skip to content

Instantly share code, notes, and snippets.

View jsanda's full-sized avatar

John Sanda jsanda

View GitHub Profile
{"level":"error","ts":1544457442.08013,"caller":"fanout/fanout_handler.go:108","msg":"Fanout had an error","error":"Unable to complete request unexpected HTTP response, expected 2xx, got 500","stacktrace":"github.com/knative/eventing/pkg/sidecar/fanout.(*Handler).dispatch\n\t/go/src/github.com/knative/eventing/pkg/sidecar/fanout/fanout_handler.go:108\ngithub.com/knative/eventing/pkg/sidecar/fanout.createReceiverFunction.func1\n\t/go/src/github.com/knative/eventing/pkg/sidecar/fanout/fanout_handler.go:86\ngithub.com/knative/eventing/pkg/provisioners.(*MessageReceiver).HandleRequest\n\t/go/src/github.com/knative/eventing/pkg/provisioners/message_receiver.go:119\ngithub.com/knative/eventing/pkg/sidecar/fanout.(*Handler).ServeHTTP\n\t/go/src/github.com/knative/eventing/pkg/sidecar/fanout/fanout_handler.go:91\ngithub.com/knative/eventing/pkg/sidecar/multichannelfanout.(*Handler).ServeHTTP\n\t/go/src/github.com/knative/eventing/pkg/sidecar/multichannelfanout/multi_channel_fanout_handler.go:120\ngithub.com/knative/e
2018-12-06T22:19:01.613514Z info Version [email protected]/istio-1.0.2-d639408fded355fb906ef2a1f9e8ffddc24c3d64-Clean
2018-12-06T22:19:01.613580Z info Proxy role: model.Proxy{ClusterID:"", Type:"sidecar", IPAddress:"172.17.0.34", ID:"urbanobservatory-event-source-876mq-f7c754f5f-vcvmb.myproject", Domain:"myproject.svc.cluster.local", Metadata:map[string]string(nil)}
2018-12-06T22:19:01.613596Z info Attempting to lookup address: istio-statsd-prom-bridge.istio-system
2018-12-06T22:19:01.615692Z info Addr resolved to: 172.30.96.168:9125
2018-12-06T22:19:01.615719Z info Finished lookup of address: istio-statsd-prom-bridge.istio-system
2018-12-06T22:19:01.616208Z info Effective config: binaryPath: /usr/local/bin/envoy
configPath: /etc/istio/proxy
connectTimeout: 10s
controlPlaneAuthPolicy: MUTUAL_TLS
discoveryAddress: istio-pilot.istio-system:15005
#!/bin/bash
#
#
# This script is based on https://goo.gl/rZJ62b. It assumes the following:
#
# - minishift is installed
# - oc is installed
# - Go is installed
# - $GOPATH environment variable is set
# - knative/serving repo lives under $GOPATH/src
$ oc get all -n knative-build -o yaml
apiVersion: v1
items:
- apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"operators.coreos.com/v1alpha1","kind":"Subscription","metadata":{"annotations":{},"generateName":"knative-build-","name":"knative-build-subscription","namespace":"knative-build"},"spec":{"channel":"alpha","name":"knative-build","source":"knative-operators","startingCSV":"knative-build.v0.2.0"}}
creationTimestamp: 2018-11-14T20:53:10Z
@jsanda
jsanda / pods.out
Created November 14, 2018 21:14
all pods
[jsanda@localhost knative-operators]$ oc get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
default docker-registry-1-mtpf4 1/1 Running 0 28m
default persistent-volume-setup-j6jkw 0/1 Completed 0 27m
default persistent-volume-setup-jc95p 0/1 Error 0 29m
default router-1-2sfj6 1/1 Running 0 28m
istio-operator istio-operator-d7fd5ff96-6zwkr 1/1 Running 0 27m
istio-system elasticsearch-0 1/1 Runn
@jsanda
jsanda / install.out
Created November 14, 2018 21:05
knative minishift install via operators
jsanda@localhost knative-operators]$ ./etc/scripts/install.sh
+++ dirname ./etc/scripts/install.sh
++ cd ./etc/scripts
++ pwd
+ DIR=/home/jsanda/Development/redhat/openshift-cloud-functions/knative-operators/etc/scripts
+ REPO_DIR=/home/jsanda/Development/redhat/openshift-cloud-functions/knative-operators/etc/scripts/.repos
+ rm -rf /home/jsanda/Development/redhat/openshift-cloud-functions/knative-operators/etc/scripts/.repos
+ mkdir -p /home/jsanda/Development/redhat/openshift-cloud-functions/knative-operators/etc/scripts/.repos
+ minishift profile delete knative --force
Profile 'knative' deleted successfully.
@jsanda
jsanda / init_knative_env.sh
Created November 8, 2018 15:32
initializes knative env vars for minishift/minikube
#!/bin/bash
#
# This script sets up environment variables needed for knative development. See
# https://github.com/knative/serving/blob/master/DEVELOPMENT.md for more info.
#
# Note that the script assumes that either minishift or minikube is running.
if minishift status | grep -q "Running" ; then
eval $(minishift oc-env)
eval $(minishift docker-env)
```
TASK [Validate python version - ans_dist is fedora and python is v3] ********************************************************************************
task path: /home/jsanda/Development/redhat/openshift/openshift-ansible/playbooks/common/openshift-cluster/initialize_facts.yml:47
Tuesday 10 October 2017 16:01:11 -0400 (0:00:00.104) 0:00:05.721 *******
fatal: [ose3-master1-ansible.test.example.com]: FAILED! => {
"changed": false,
"failed": true,
"msg": "openshift-ansible requires Python 3 for Fedora;\nFor information on enabling Python 3 with Ansible, see https://docs.ansible.com/ansible/python_3_support.html\n"
}
fatal: [ose3-master2-ansible.test.example.com]: FAILED! => {
@Test
public void findAllMetricIdentifiersShouldReturnDistinctResult() throws Exception {
String tenant = "DISTINCT";
String metric = "METRIC";
long timestamp = now().getMillis();
String tempTable1 = dataAccess.getTempTableName(timestamp);
String tempTable2 = dataAccess.getTempTableName(now().minusHours(3).getMillis());
session.execute("insert into " + tempTable1 + " (tenant_id, type, metric, time) values ('" + tenant +
"', 0, '" + metric + "', " + timestamp + ")");
// and then the age of enlightenment
private Map<String,String> getMappingTable() {
// You only want to prepare the query once. Best to do it when you initialize the session.
PreparedStatement findMappings = session.prepare(
"SELECT project_id, project_name " +
"FROM openshift_metrics.metrics_mappings " +
"WHERE token(project_id) > ? AND token(project_id) <= ?");
RxSession rxSession = new RxSessionImpl(session);