Skip to content

Instantly share code, notes, and snippets.

View chirag-jog's full-sized avatar

Chirag Jog chirag-jog

View GitHub Profile
$ velero backup describe inf-k8s-uw1c-cluster-backup-20191105-01
Name: inf-k8s-uw1c-cluster-backup-20191105-01
Namespace: velero
Labels: velero.io/backup=inf-k8s-uw1c-cluster-backup-20191105-01
velero.io/pv=pvc-b0ae26ea-c431-11e9-b1b5-42010a8a00a6
velero.io/storage-location=default
Annotations: <none>
Phase: PartiallyFailed (run `velero backup logs inf-k8s-uw1c-cluster-backup-20191105-01` for more information)
@chirag-jog
chirag-jog / velero backup logs
Created November 5, 2019 19:14
velero backup logs
$ velero backup logs inf-k8s-uw1c-cluster-backup-20191105-01
time="2019-11-05T18:55:37Z" level=info msg="Setting up backup temp file" backup=velero/inf-k8s-uw1c-cluster-backup-20191105-01 logSource="pkg/controller/backup_controller.go:462"
time="2019-11-05T18:55:37Z" level=info msg="Setting up plugin manager" backup=velero/inf-k8s-uw1c-cluster-backup-20191105-01 logSource="pkg/controller/backup_controller.go:469"
time="2019-11-05T18:55:37Z" level=info msg="Getting backup item actions" backup=velero/inf-k8s-uw1c-cluster-backup-20191105-01 logSource="pkg/controller/backup_controller.go:473"
time="2019-11-05T18:55:37Z" level=info msg="Setting up backup store" backup=velero/inf-k8s-uw1c-cluster-backup-20191105-01 logSource="pkg/controller/backup_controller.go:479"
time="2019-11-05T18:55:37Z" level=info msg="Writing backup version file" backup=velero/inf-k8s-uw1c-cluster-backup-20191105-01 logSource="pkg/backup/backup.go:213"
time="2019-11-05T18:55:37Z" level=info msg="Including namespaces: *" backup=velero/inf-k8
@chirag-jog
chirag-jog / velero.log
Created November 5, 2019 19:12
Velero logs
time="2019-11-05T18:54:43Z" level=info msg="setting log-level to INFO" logSource="pkg/cmd/server/server.go:168"
time="2019-11-05T18:54:43Z" level=info msg="Starting Velero server v1.1.0 (a357f21aec6b39a8244dd23e469cc4519f1fe608)" logSource="pkg/cmd/server/server.go:170"
time="2019-11-05T18:54:43Z" level=info msg="registering plugin" command=/velero kind=BackupItemAction logSource="pkg/plugin/clientmgmt/registry.go:100" name=velero.io/pod
time="2019-11-05T18:54:43Z" level=info msg="registering plugin" command=/velero kind=BackupItemAction logSource="pkg/plugin/clientmgmt/registry.go:100" name=velero.io/pv
time="2019-11-05T18:54:43Z" level=info msg="registering plugin" command=/velero kind=BackupItemAction logSource="pkg/plugin/clientmgmt/registry.go:100" name=velero.io/service-account
time="2019-11-05T18:54:43Z" level=info msg="registering plugin" command=/velero kind=VolumeSnapshotter logSource="pkg/plugin/clientmgmt/registry.go:100" name=velero.io/aws
time="2019-11-05T18:54:43Z" level=info msg="registering p
### Keybase proof
I hereby claim:
* I am chirag-jog on github.
* I am chiragjog (https://keybase.io/chiragjog) on keybase.
* I have a public key ASBqPhMt__Z7sbCouOneq3rLA6gd-h6TAqR99QgJs3Ulrgo
To claim this, I am signing this object:
@chirag-jog
chirag-jog / fanout-ingress.yml
Created July 7, 2017 04:59
fanout-ingress.yml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: fanout-ingress
spec:
rules:
- http:
paths:
- path: /
backend:
=> <chef_vault_secret[clean-energy] @name: "clean-energy" @noop: nil @before: nil @params: {} @provider: nil @allowed_actions: [:nothing, :create, :create_if_missing, :update, :delete] @action: :create @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#1):6:in `irb_binding'" @guard_interpreter: nil @default_guard_interpreter: :default @elapsed_time: 0 @sensitive: false @resource_name: :chef_vault_secret @declared_type: :chef_vault_secret @cookbook_name: nil @recipe_name: nil @data_bag: "green" @raw_data: {"auth"=>"Forged in a mold"} @clients: "ubuntu14.clogeny.dev" @admins: "chiragjog" @search: "*:*">
chef:recipe > chef_run
=> nil
chef:recipe > run_chef
[2015-05-05T19:49:24+00:00] INFO: Processing chef_gem[chef-vault] action install (chef-vault::default line 21)
[2015-05-05T19:49:24+00:00] DEBUG: providers for generic chef_gem resource enabled on node include: [Chef::Provider::Package::Rubygems]
[2015-05-05T19:49:24+00:00] DEBU
@chirag-jog
chirag-jog / gist:e5bbd35a3c5bc8bee181
Last active August 29, 2015 14:04
64-bit Python on CentOS 6.3
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
# Python 2.7.6:
wget --no-check-certificate http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
tar xf Python-2.7.6.tar.xz
cd Python-2.7.6
./configure --prefix=/opt/python64/ --enable-unicode=ucs4 --enable-shared
make && make install
@chirag-jog
chirag-jog / gist:2a1bdd9ec867997d2a3e
Last active August 29, 2015 14:04
32-bit Python on CentOS 6.2 64-bit
yum -y install libgcc.i686 glibc-devel.i686 glibc.i686 zlib-devel.i686 readline-devel.i686 gdbm-devel.i686 openssl-devel.i686 ncurses-devel.i686 tcl-devel.i686 db4-devel.i686 bzip2-devel.i686 libffi.i686 libffi-devel.i686
wget --no-check-certificate http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
tar xf Python-2.7.6.tar.xz
cd Python-2.7.6
BASECFLAGS=-m32 LDFLAGS=-m32 CFLAGS=-m32 ./configure --prefix=/opt/python32 --enable-shared
make
make install
echo "/opt/python32/lib/" >> /etc/ld.so.conf.d/python.conf
ldconfig -v
@chirag-jog
chirag-jog / gist:15a25facc76e0e1a8efc
Created June 16, 2014 04:25
cryptography fix for 32-bit
diff --git a/cryptography/hazmat/bindings/openssl/aes.py b/cryptography/hazmat/bindings/openssl/aes.py
index b0e0072..4f79cd0 100644
--- a/cryptography/hazmat/bindings/openssl/aes.py
+++ b/cryptography/hazmat/bindings/openssl/aes.py
@@ -32,7 +32,7 @@ int AES_set_decrypt_key(const unsigned char *, const int, AES_KEY *);
/* The ctr128_encrypt function is only useful in 0.9.8. You should use EVP for
this in 1.0.0+. */
void AES_ctr128_encrypt(const unsigned char *, unsigned char *,
- const unsigned long, const AES_KEY *,
+ const unsigned size_t, const AES_KEY *,
@chirag-jog
chirag-jog / api_poll.py
Created January 29, 2014 19:18
EC2 API Poll
def ec2_api_poll(self, func, params, retry_num=LARGE_NUM_RETRIES, retry_interval=POLL_INTERVAL_SEC):
retries = self.LARGE_NUM_RETRIES
while(retries):
result = self.make_ec2_request(operation=params["operation"], params=params["params"])
if func(result):
return result
else:
time.sleep(self.POLL_INTERVAL_SEC)
retries -= 1