Skip to content

Instantly share code, notes, and snippets.

View stevekuznetsov's full-sized avatar

Steve Kuznetsov stevekuznetsov

  • Microsoft
  • United States
  • 02:16 (UTC -06:00)
View GitHub Profile
SUCCESS after 254.870s: test/cmd/newapp.sh:226: executing 'oc new-app installable:file --loglevel=8' expecting failure
There was no output from the command.
Standard error from the command:
I0413 10:39:37.537463 2135 loader.go:242] Config loaded from file /tmp/openshift/test-cmd//openshift.local.home/.kube/non-default-config
I0413 10:39:37.537835 2135 round_trippers.go:264] GET https://127.0.0.1:28443/oapi
I0413 10:39:37.537840 2135 round_trippers.go:271] Request Headers:
I0413 10:39:37.537843 2135 round_trippers.go:274] Accept: application/json, */*
I0413 10:39:37.537845 2135 round_trippers.go:274] User-Agent: oc/v1.1.6 (linux/amd64) openshift/baf4504
I0413 10:39:37.537848 2135 round_trippers.go:274] Authorization: Bearer S39FEmvjES6lLHjp6xjTAuzZ9QnkL1tiF2GxDEIx_LU
I0413 10:39:37.560351 2135 round_trippers.go:289] Response Status: 200 OK in 22 milliseconds
@stevekuznetsov
stevekuznetsov / test-integration.sh
Created April 18, 2016 17:58
integration test using vagrant-openshift
rm -rf * .vagrant
vagrant origin-local-checkout --replace
if [ -n "$ORIGIN_PULL_ID" ]; then
set +x
echo "
*****Locally Merging Pull Request: https://github.com/openshift/origin/pull/$ORIGIN_PULL_ID"
set -x
test_pull_requests --local_merge_pull_request $ORIGIN_PULL_ID --repo origin --config ~/.test_pull_requests_origin.json
fi
$ hack/test-go.sh pkg/generate/git/
==================
WARNING: DATA RACE
Read by goroutine 12:
github.com/openshift/origin/pkg/generate/git.timedCommand()
github.com/openshift/origin/pkg/generate/git/_test/_obj_test/repository.go:479 +0x19b6
github.com/openshift/origin/pkg/generate/git.TestListRemoteTimeout.func2()
/home/stevekuznetsov/go/src/github.com/openshift/origin/pkg/generate/git/list_remote_timeout_test.go:25 +0x173
Previous write by goroutine 13:
@stevekuznetsov
stevekuznetsov / init.sh
Last active May 9, 2016 15:12
readonly source failures
#!/bin/bash
function init() {
source readonly.sh
echo "inside init: ${MY_VAR[*]}" # success
}
init
echo "after init: ${MY_VAR[*]}" # failure
@stevekuznetsov
stevekuznetsov / conformance.sh
Last active June 2, 2016 19:37
conformance test using vagrant
vagrant plugin install vagrant-openshift
vagrant plugin install vagrant-aws
git clone git@github.com:openshift/origin.git
cd origin
vagrant origin-init --stage inst --os rhel7 --instance-type m4.large origin_${JOB_NAME}_${BUILD_NUMBER}
vagrant up --provider aws
vagrant sync-origin -s
vagrant test-origin --extended "conformance" -d --skip-check --skip-image-cleanup --image-registry ci.dev.openshift.redhat.com:5000
@stevekuznetsov
stevekuznetsov / vagrant-script.sh
Last active June 3, 2016 19:54
docker scripts
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
tmp_root="/home/skuznets/vagrant-boxes"
rm -rf "${tmp_root}"
mkdir -p "${tmp_root}"
@stevekuznetsov
stevekuznetsov / errors.log
Created June 7, 2016 15:31
vagrant errors
$ ./spawn-conformance-boxes.sh
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets
@stevekuznetsov
stevekuznetsov / failure.log
Created June 21, 2016 14:50
failed TestAuthorizationResolution
This file has been truncated, but you can view the full file.
Jun 21 09:36:53 Running TestAuthorizationResolution...
Jun 21 09:40:53 failed TestAuthorizationResolution
Jun 21 09:40:53 I0621 09:36:53.144661 25720 plugins.go:46] Registered cloud provider "aws"
Jun 21 09:40:53 I0621 09:36:53.144831 25720 plugins.go:46] Registered cloud provider "gce"
Jun 21 09:40:53 I0621 09:36:53.144987 25720 plugins.go:46] Registered cloud provider "mesos"
Jun 21 09:40:53 I0621 09:36:53.145033 25720 plugins.go:46] Registered cloud provider "openstack"
Jun 21 09:40:53 I0621 09:36:53.145043 25720 plugins.go:46] Registered cloud provider "ovirt"
Jun 21 09:40:53 I0621 09:36:53.145057 25720 plugins.go:46] Registered cloud provider "rackspace"
Jun 21 09:40:53 I0621 09:36:53.145473 25720 plugins.go:74] Registered admission plugin "NamespaceLifecycle"
Jun 21 09:40:53 I0621 09:36:53.145489 25720 plugins.go:74] Registered admission plugin "ServiceAccount"
@stevekuznetsov
stevekuznetsov / rebase.py
Last active March 11, 2017 21:20
Rebase Script for OSE
#!/usr/bin/env python
from __future__ import print_function
import sys
_DROP_PREFIX = '[DROP]'
_SQUASH_PREFIX = '[SQUASH]'
_CARRY_PREFIX = '[CARRY]'
_SPEC_SUBJECT = _CARRY_PREFIX + '[BUILD] Specfile updates'
_TITO_PREFIX = 'Automatic commit of package'
@stevekuznetsov
stevekuznetsov / filter.py
Created June 15, 2018 14:45
branch filtering
#!/usr/bin/env python
import yaml
import sys
prow_config_file = sys.argv[1]
prow_config = {}
with open(prow_config_file) as prow_config_data:
prow_config = yaml.load(prow_config_data)