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 /
Last active Aug 9, 2019
testing github shell highlighting md vs rst
$ 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 /
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
annotations: "1"
creationTimestamp: null
generation: 1
run: sise
name: sise
View A. Regressions and changes in kubeclient

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:

#			openshift-origin-v3.6.0/apis/
	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 / 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[])"
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[])"
time="2018-12-03T20:56:56Z" level=debug msg="Deleting NAT Gateways (map[])"
time="2018-12-03T20:56:56Z" level=debug msg="Deleting instances (map[])"
time="2018-12-03T20:56:56Z" level=debug msg="Deleting VPCs (map[])"
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[])"
time="2018-12-03T20:56:56Z" level=debug msg="deleting role: foo-4x6z5-mas
View failures.txt
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
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 / 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
-- /usr/bin/gmake
checking for -lgit2... no
ERROR: Failed to build libgit2
*** extconf.rb failed ***
cben /
Created Jul 18, 2018
CentOS non-marketplace image AuthFailure

This was what I got for trying to run non-marketplace image per

| 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 / gist:c2a3a7d6e364d010e2b9f8825bb75087
Created Jul 11, 2018
oc log aws-machine-controller-1-gjv4b
View gist:c2a3a7d6e364d010e2b9f8825bb75087
nshneor@dhcp-2-169 ~/workspace/go/src/ (master) $ oc project openshift-cluster-operator
Now using project "openshift-cluster-operator" on server "".
nshneor@dhcp-2-169 ~/workspace/go/src/ (master) $ oc get pods
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/ (master) $ oc log aws-machine-controller-1-gjv4b
You can’t perform that action at this time.