Skip to content

Instantly share code, notes, and snippets.

Beni Cherniavsky-Paskin cben

Block or report user

Report or block cben

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cben
cben / README.md
Last active Aug 9, 2019
testing github shell highlighting md vs rst
View README.md
$ cd dir/ && ls -l "$files{@}"
drwxr-xr-x.  6 bpaskinc bpaskinc       4,096 Aug 30  2017  prometheus_api_client_ruby/
drwxr-xr-x.  2 bpaskinc bpaskinc       4,096 Feb  3  2016  Public/
$ rm -rf $(find -type f -name '*~')

Let's try fish:

@cben
cben / debt.md
Last active Apr 3, 2019
uhc config complexity debt example
View retro.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View deployment-string.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: null
generation: 1
labels:
run: sise
name: sise
View A. Regressions and changes in kubeclient 4.1.0.md

What happens at places marked COLLISION?

Currently kubeclient @entities hash is keyed by singular name, so if collision is on singular name, as for processedtemplates/templates:

# template.openshift.io/v1			openshift-origin-v3.6.0/apis/template.openshift.io/v1/index.json
	template	processedtemplates	
	template	templates	COLLISION

the last one wins — the earlier processedtemplates methods are not defined at all, only the latter template and templates methods!

@cben
cben / foo-4x6z5-uninstall-j6tvb
Created Dec 3, 2018
openshift/hive uninstaller logs without aws credentials
View foo-4x6z5-uninstall-j6tvb
time="2018-12-03T20:56:56Z" level=debug msg="Deleting PVs (map[kubernetes.io/cluster/foo:owned])"
time="2018-12-03T20:56:56Z" level=debug msg="Deleting EIPs (map[tectonicClusterID:ad3527db-3741-4833-b198-56c2db57cbe2])"
time="2018-12-03T20:56:56Z" level=debug msg="Deleting EIPs (map[kubernetes.io/cluster/foo:owned])"
time="2018-12-03T20:56:56Z" level=debug msg="Deleting NAT Gateways (map[kubernetes.io/cluster/foo:owned])"
time="2018-12-03T20:56:56Z" level=debug msg="Deleting instances (map[kubernetes.io/cluster/foo:owned])"
time="2018-12-03T20:56:56Z" level=debug msg="Deleting VPCs (map[kubernetes.io/cluster/foo:owned])"
time="2018-12-03T20:56:56Z" level=debug msg="Deleting IAM resources (map[tectonicClusterID:ad3527db-3741-4833-b198-56c2db57cbe2])"
time="2018-12-03T20:56:56Z" level=debug msg="deleting role: foo-4x6z5-master-role"
time="2018-12-03T20:56:56Z" level=debug msg="Deleting IAM resources (map[kubernetes.io/cluster/foo:owned])"
time="2018-12-03T20:56:56Z" level=debug msg="deleting role: foo-4x6z5-mas
View failures.txt
Failures:
1) ManageIQ::Providers::Kubernetes::ContainerManager::Scanning::Job A single Container Scan Job, completes successfully should report success
Failure/Error: message = target_entity.last_scan_result.scan_result_message
NoMethodError:
undefined method `scan_result_message' for nil:NilClass
# ./app/models/manageiq/providers/kubernetes/container_manager/scanning/job.rb:257:in `ensure in cleanup'
# ./app/models/manageiq/providers/kubernetes/container_manager/scanning/job.rb:260:in `cleanup'
# /home/bpaskinc/miq/hammer/app/models/job/state_machine.rb:34:in `signal'
@cben
cben / gem_make.out
Created Nov 7, 2018
rugged gem build problem
View gem_make.out
current directory: /home/bpaskinc/myenv/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rugged-0.27.5/ext/rugged
/home/bpaskinc/myenv/rbenv/versions/2.5.1/bin/ruby -r ./siteconf20181106-1925-1wcr5ki.rb extconf.rb
checking for gmake... yes
checking for cmake... yes
checking for pkg-config... yes
-- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo
-- /usr/bin/gmake
checking for -lgit2... no
ERROR: Failed to build libgit2
*** extconf.rb failed ***
@cben
cben / 0.README.md
Created Jul 18, 2018
CentOS non-marketplace image AuthFailure
View 0.README.md

This was what I got for trying to run non-marketplace image per https://wiki.centos.org/Cloud/AWS:

| CentOS Linux 7 | 1801_01 | 2018-Jan-14 | us-east-1 | ami-4bf3d731 | x86_64 | HVM |

Note that "aws_access_key": null, and "aws_secret_key": null, are not the problem. They're not passed explicitly as module params but the module finds them in ~/.aws/credentials, and this worked later for a marketplace image.

@cben
cben / gist:c2a3a7d6e364d010e2b9f8825bb75087
Created Jul 11, 2018
oc log aws-machine-controller-1-gjv4b
View gist:c2a3a7d6e364d010e2b9f8825bb75087
nshneor@dhcp-2-169 ~/workspace/go/src/github.com/openshift/cluster-operator (master) $ oc project openshift-cluster-operator
Now using project "openshift-cluster-operator" on server "https://127.0.0.1:8443".
nshneor@dhcp-2-169 ~/workspace/go/src/github.com/openshift/cluster-operator (master) $ oc get pods
NAME READY STATUS RESTARTS AGE
aws-machine-controller-1-gjv4b 1/1 Running 0 26m
cluster-api-controller-manager-7dddc65c96-4z7px 1/1 Running 0 30m
cluster-operator-apiserver-1-6pcgz 2/2 Running 0 26m
cluster-operator-controller-manager-1-tz9cb 1/1 Running 0 26m
playbook-mock-6bf5c6f9d6-mnhms 1/1 Running 0 26m
nshneor@dhcp-2-169 ~/workspace/go/src/github.com/openshift/cluster-operator (master) $ oc log aws-machine-controller-1-gjv4b
You can’t perform that action at this time.