Skip to content

Instantly share code, notes, and snippets.

View brgnepal's full-sized avatar

Budh Ram Gurung (BRG) brgnepal

View GitHub Profile
@brgnepal
brgnepal / origin-app-success.txt
Created March 19, 2018 15:00
Origin successful app deploy
W0319 14:44:51.836549 3263 start_master.go:290] Warning: assetConfig.loggingPublicURL: Invalid value: "": required to view aggregated container logs in the console, master start will continue.
W0319 14:44:51.836735 3263 start_master.go:290] Warning: assetConfig.metricsPublicURL: Invalid value: "": required to view cluster metrics in the console, master start will continue.
E0319 14:44:51.845429 3263 controllers.go:118] Server isn't healthy yet. Waiting a little while.
I0319 14:44:51.980571 3263 master_config.go:351] Will report 192.168.122.211 as public IP address.
2018-03-19 14:44:51.984552 I | etcdserver/api/v3rpc: grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp 127.0.0.1:4001: getsockopt: connection refused"; Reconnecting to {127.0.0.1:4001 <nil>}
I0319 14:44:51.985035 3263 start_master.go:530] Starting master on 0.0.0.0:8443 (v3.7.1+282e43f-42)
I0319 14:44:51.985055 3263 start_master.go:531] Public master address is https://1
@brgnepal
brgnepal / origin-logs.txt
Last active March 19, 2018 14:37
Origin logs for issue minishift/1993
W0319 14:18:26.301734 3233 start_master.go:290] Warning: assetConfig.loggingPublicURL: Invalid value: "": required to view aggregated container logs in the console, master start will continue.
W0319 14:18:26.308935 3233 start_master.go:290] Warning: assetConfig.metricsPublicURL: Invalid value: "": required to view cluster metrics in the console, master start will continue.
E0319 14:18:26.329347 3233 controllers.go:118] Server isn't healthy yet. Waiting a little while.
I0319 14:18:27.051524 3233 master_config.go:351] Will report 192.168.122.193 as public IP address.
2018-03-19 14:18:27.066738 I | etcdserver/api/v3rpc: grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp 127.0.0.1:4001: getsockopt: connection refused"; Reconnecting to {127.0.0.1:4001 <nil>}
I0319 14:18:27.067120 3233 start_master.go:530] Starting master on 0.0.0.0:8443 (v3.7.1+282e43f-42)
I0319 14:18:27.067181 3233 start_master.go:531] Public master address is https://1
@brgnepal
brgnepal / diff.sh
Last active January 29, 2018 09:13
Git diff go vet changes
diff --git a/pkg/minishift/addon/manager/addon_manager_test.go b/pkg/minishift/addon/manager/addon_manager_test.go
index 9bc8f20c..d40a0f57 100644
--- a/pkg/minishift/addon/manager/addon_manager_test.go
+++ b/pkg/minishift/addon/manager/addon_manager_test.go
@@ -44,7 +44,7 @@ func Test_creating_addon_manager_for_non_existing_directory_returns_an_error(t *
path := filepath.Join("this", "path", "really", "should", "not", "exists", "unless", "you", "have", "a", "crazy", "setup")
_, err := NewAddOnManager(path, make(map[string]*addon.AddOnConfig))
- assert.Error(t, err, "Creating the manager in directory '%s' should have failed", path)
+ assert.Error(t, err, fmt.Sprintf("Creating the manager in directory '%s' should have failed", path))
@brgnepal
brgnepal / rc1_start.sh
Last active January 11, 2018 07:54
minishift start with rc1
PS C:\> minishift config view
- iso-url : file://C:/Users/budhram/.minishift/cache/iso/minishift-rhel7.iso
- memory : 4GB
- vm-driver : hyperv
PS C:\> minishift start --username $env:USR --password $env:PASS -v 5 --show-libmachine-logs
-- minishift version: v1.11.0+d7f374a
-- Starting profile 'foo'
-- Checking if requested hypervisor 'hyperv' is supported on this platform ... OK
-- Checking if Hyper-V driver is installed ... OK
@brgnepal
brgnepal / image-caching-logs.sh
Created December 12, 2017 14:03
Image import logs during start
[budhram@dhcp35-83:~ ] $ ls ~/.minishift
ls: cannot access '/home/budhram/.minishift': No such file or directory
[budhram@dhcp35-83:~ ] $ minishift version
minishift v1.10.0+10461c6
[budhram@dhcp35-83:~ ] $ minishift config set image-caching true
[budhram@dhcp35-83:~ ] $ minishift start
-- Starting profile 'minishift'
#!/bin/bash -x
## Setup http://labs.play-with-k8s.com/ env ala' jjo
# YEAH I TRUST RUNNING STUFF DIRECTLY AS ROOT way ->
#
# bash -x <( curl -L bit.do/jjo-pwk-sh )
#
# https://gist.github.com/jjo/78f60702fbfa1cbec7dd865f67a3728a/edit
# http://bit.do/admin/edit/jjo-pwk-sh
#
@brgnepal
brgnepal / git-validation.sh
Created December 5, 2017 09:19
git validation error on $$
git-validation -q -run short-subject,message_regexp='^(Issue #[0-9]+ .*|cut v[0-9]+.[0-9]+.[0-9]+) -range 204ce1930e8a86d0c5b5eabd1d8b8dbf8d9edac3...
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [Makefile:235: validate_commits] Error 1
@brgnepal
brgnepal / setup-cdk.sh
Created October 17, 2017 08:41
CDK-191
✔ ~/gowork/src/github.com/minishift/minishift [lala-cdk191|…1⚑ 1]
14:09 $ minishift setup-cdk
Setting up CDK 3 on host using '/home/budhram/.minishift' as Minishift's home directory
Copying minishift-rhel7.iso to '/home/budhram/.minishift/cache/iso/minishift-rhel7.iso'
Copying oc to '/home/budhram/.minishift/cache/oc/v3.6.173.0.21/oc'
Creating configuration file '/home/budhram/.minishift/config/config.json'
Creating marker file '/home/budhram/.minishift/cdk'
Default add-ons anyuid, admin-user, xpaas installed
Default add-ons anyuid, admin-user, xpaas enabled
CDK 3 setup complete.
@brgnepal
brgnepal / static_ip.sh
Created September 28, 2017 11:22
static_ip in Windows
PS C:\gowork\src\github.com\minishift\minishift> minishift.exe ssh -- ip a show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:15:5d:64:ea:10 brd ff:ff:ff:ff:ff:ff
inet 10.65.201.117/24 brd 10.65.201.255 scope global dynamic eth0
valid_lft 84533sec preferred_lft 84533sec
inet 10.0.75.124/24 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::215:5dff:fe64:ea10/64 scope link
valid_lft forever preferred_lft forever
@brgnepal
brgnepal / unsuccessful_restart.md
Last active September 18, 2017 09:57
Unsuccessful restart of minishift VM

Unsuccessful restart

======== before umount ===========
ls -la /var/lib ========== \n total 104
drwxr-xr-x. 26 root root    4096 Sep 18 04:56 .
drwxr-xr-x. 19 root root    4096 Sep 18 05:01 ..
drwx------.  2 root root    4096 Sep 18 05:01 NetworkManager
drwxr-xr-x.  2 root root    4096 Sep 18 04:55 alternatives
drwxr-xr-x.  3 root root    4096 Sep 18 04:50 atomic