Skip to content

Instantly share code, notes, and snippets.

View smarterclayton's full-sized avatar

Clayton Coleman smarterclayton

View GitHub Profile
@smarterclayton
smarterclayton / blue-green.json
Created November 16, 2016 18:55
Blue Green OpenShift Jenkins example from a pipeline
{
"kind": "Template",
"apiVersion": "v1",
"metadata": {
"name": "jenkins-pipeline-example",
"creationTimestamp": null,
"annotations": {
"description": "This example showcases the new Jenkins Pipeline integration in OpenShift, which performs continuous integration and deployment right on the platform. The template contains a Jenkinsfile - a definition of a multi-stage CI/CD process - that leverages the underlying OpenShift platform for dynamic and scalable builds. OpenShift integrates the status of your pipeline builds into the web console allowing you to see your entire application lifecycle in a single view.",
"iconClass": "icon-jenkins",
"tags": "instant-app,jenkins"
ent[2280]: /builddir/build/BUILD/docker-e80bc9def9eb45d3fa0539ded5108051d2e1d9bc/_build/src/github.com/docker/dock
rent[2280]: github.com/docker/docker/pkg/devicemapper.UdevWait(0xc837f51f70, 0x0, 0x0)
rent[2280]: /builddir/build/BUILD/docker-e80bc9def9eb45d3fa0539ded5108051d2e1d9bc/_build/src/github.com/docker/dock
rent[2280]: github.com/docker/docker/pkg/devicemapper.activateDevice(0xc838138480, 0x26, 0xc837cb3d40, 0x56, 0x162,
rent[2280]: /builddir/build/BUILD/docker-e80bc9def9eb45d3fa0539ded5108051d2e1d9bc/_build/src/github.com/docker/dock
rent[2280]: github.com/docker/docker/pkg/devicemapper.ActivateDevice(0xc838138480, 0x26, 0xc837cb3d40, 0x56, 0x162,
rent[2280]: /builddir/build/BUILD/docker-e80bc9def9eb45d3fa0539ded5108051d2e1d9bc/_build/src/github.com/docker/dock
rent[2280]: github.com/docker/docker/daemon/graphdriver/devmapper.(*DeviceSet).activateDeviceIfNeeded(0xc820462340,
rent[2280]: /builddir/build/BUILD/docker-e80bc9def9eb45d3fa0539ded5108051d2e1d9bc/_build/src/github.com/docker/dock
rent[2280]
This file has been truncated, but you can view the full file.
Collecting git+https://github.com/openshift/origin-ci-tool.git
Cloning https://github.com/openshift/origin-ci-tool.git to /private/var/folders/zw/j6656mbn1rv4fnqqdggss8h80000gn/T/pip-7T6Krl-build
Running command git clone -q https://github.com/openshift/origin-ci-tool.git /private/var/folders/zw/j6656mbn1rv4fnqqdggss8h80000gn/T/pip-7T6Krl-build
Running command git submodule update --init --recursive -q
Running setup.py (path:/private/var/folders/zw/j6656mbn1rv4fnqqdggss8h80000gn/T/pip-7T6Krl-build/setup.py) egg_info for package from git+https://github.com/openshift/origin-ci-tool.git
Running command python setup.py egg_info
running egg_info
creating pip-egg-info/oct.egg-info
writing requirements to pip-egg-info/oct.egg-info/requires.txt
writing pip-egg-info/oct.egg-info/PKG-INFO
TASK [refresh-subscriptions : Refresh subscription-manager certificates on the instances] ***
Tuesday 17 January 2017 18:58:51 +0000 (0:00:00.370) 0:03:14.700 *******
fatal: [ci-prtest91-ig-n-39fs]: FAILED! => {"changed": true, "cmd": ["subscription-manager", "refresh"], "delta": "0:00:24.540062", "end": "2017-01-17 18:59:16.473866", "failed": true, "rc": 70, "start": "2017-01-17 18:58:51.933804", "stderr": "Runtime Error org.hibernate.exception.LockAcquisitionException: could not execute statement at sun.reflect.GeneratedConstructorAccessor231.newInstance:-1", "stdout": "", "stdout_lines": [], "warnings": []}
...ignoring
fatal: [ci-prtest91-ig-n-fj46]: FAILED! => {"changed": true, "cmd": ["subscription-manager", "refresh"], "delta": "0:00:31.038021", "end": "2017-01-17 18:59:23.033653", "failed": true, "rc": 70, "start": "2017-01-17 18:58:51.995632", "stderr": "Runtime Error org.hibernate.exception.LockAcquisitionException: could not execute statement at sun.reflect.GeneratedConstructorAccessor219.ne
--- Building component 'hack/../fluentd' with docker tag 'docker.io/openshift/origin-logging-fluentd:v1.4.0' ---
Sending build context to Docker daemon 57.34 kB
Step 1 : FROM centos:centos7
---> 67591570dd29
Step 2 : MAINTAINER OpenShift Development <[email protected]>
---> Using cache
---> 6a2b66bc20df
Step 3 : ENV HOME /opt/app-root/src PATH /opt/app-root/src/bin:/opt/app-root/bin:$PATH RUBY_VERSION 2.0 FLUENTD_VERSION 0.12.29 GEM_HOME /opt/app-root/src
---> Running in 8ca6df3e4a0e
---> f3a5118bef36
14:20:28 PLAY [localhost] ***************************************************************
14:20:28
14:20:28 TASK [setup] *******************************************************************
14:20:28 Tuesday 07 March 2017 19:20:28 +0000 (0:00:00.277) 0:03:16.368 *********
14:20:33 ok: [localhost]
14:20:39 ERROR! Attempted to execute "/usr/share/ansible/openshift-ansible-gce/inventory.sh" as inventory script: Inventory script (/usr/share/ansible/openshift-ansible-gce/inventory.sh) had an execution error: Traceback (most recent call last):
14:20:39 File "/usr/share/ansible/openshift-ansible-gce/inventory/gce/hosts/gce.py", line 400, in <module>
14:20:39 GceInventory()
14:20:39 File "/usr/share/ansible/openshift-ansible-gce/inventory/gce/hosts/gce.py", line 132, in __init__
14:20:39 print(self.json_format_dict(self.group_instances(zones),
set -euxo pipefail
# git reset --hard 3248d1db5b12bc71e82bb190918bf146862505ea
# find . -name zz_generated.deepcopy.go | xargs rm
files_to_convert=$( mktemp )
grep -lR --include=*.go -E "ObjectMeta" pkg test federation plugin cmd > "${files_to_convert}"
2017/04/27 15:32:25 openshift.go:365: 403 GET https://api.free-int.openshift.com/apis/user.openshift.io/v1/users/~ {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "scopes [user:info user:check-access] prevent this action; User \"[email protected]\" cannot get user.openshift.io.users at the cluster scope",
"reason": "Forbidden",
"details": {
"name": "~",
"group": "user.openshift.io",
var watchEvent watch.Event
switch {
case curObjPasses && !oldObjPasses:
object, err := c.copier.Copy(event.Object)
if err != nil {
utilruntime.HandleError(fmt.Errorf("unexpected copy error: %v", err))
return
}
watchEvent = watch.Event{Type: watch.Added, Object: object}
case curObjPasses && oldObjPasses:
=== RUN TestCreateSetsFields
2017-05-25 14:25:57.320097 I | integration: launching 1483262971511501821 (unix://localhost:14832629715115018210)
unexpected fault address 0xc420b40000
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0xc420b40000 pc=0x1b6edd5]
goroutine 211 [running]:
runtime.throw(0x24d1860, 0x5)
/usr/local/go/src/runtime/panic.go:566 +0x95 fp=0xc4205eb138 sp=0xc4205eb118
runtime.sigpanic()