Skip to content

Instantly share code, notes, and snippets.

View smarterclayton's full-sized avatar

Clayton Coleman smarterclayton

View GitHub Profile
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",
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}"
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),
--- 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
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
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
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]
@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"
*** before stupid
+ kube::test::if_has_string 'Error from server: pods "abc" not found' List
+ local 'message=Error from server: pods "abc" not found'
+ local match=List
++ echo 'Error from server: pods "abc" not found'
++ grep List
+ [[ -n '' ]]
+ echo 'FAIL!'
FAIL!
containerStatuses:
- containerID: docker://ea97f6892b943529e02adf81990bea0b83dea002a4895b027f62dfdb5ef0e91b
image: openshift/origin-docker-registry:v1.3.0-alpha.3
imageID: docker://sha256:98e3a96eb8f8080155b72ba196071a302eb8763d47719a9ccfe776986b3a85ab
lastState:
terminated:
containerID: docker://b7f1609ffe5d1e4fd02343bd57536c4f0fc962cf1ad79c6d53c8b175ff258f0d
exitCode: 2
finishedAt: 2016-08-24T11:46:30Z
reason: Error