Skip to content

Instantly share code, notes, and snippets.

View ShyamsundarR's full-sized avatar

ShyamsundarR ShyamsundarR

View GitHub Profile
@ShyamsundarR
ShyamsundarR / smallfile_tests.py
Created February 22, 2017 12:00
Sharing some quick pyhton code hack done for testing Gluster 3.10 release
import getopt, sys, subprocess, socket, os, time
mount_point = "/gluster-mount"
def main():
global mount_point
try:
opts, args = getopt.getopt(sys.argv[1:], "n:s:f:vm:t:", ["help", "output="])
except getopt.GetoptError as err:
# print help information and exit:
Lets Say D,C,B,A are the patches, and to edit C:
# git rebase -i D
<In the file that pops change "pick C" to "edit C">
After the changes are done,
# git commit -s -a --amend
# git continue --rebase
Now you should have the patches D, C', B, A.
# rfc.sh
<--- Python code--->
#!/usr/bin/env python
import argparse
import requests
import os
import json
import subprocess
import re
FB Branch commit hash FB Branch commit message FB Branch Change ID FB Branch Gerrit link Master branch commit hash Master branch commit message Master branch gerrit link Status Notes
e3e7c56323a21467e7e0a0d8f2adc5b05ce40a54 io-threads: re-port changes since 3.6 on top of FB version Id7cc7720e75414fb8a3ac2db68a5fe63c459ffe2 None None None None None None
6c6b3bc12bee9c3b6ccba292828e316a26216075 io-stats: re-port changes since 3.6 on top of FB version If1bdad6244e5749c6d8c456e6c64b5c5b483e273 None None None None None None
8dfdecf220d1c9365e1f8d6af9ead5e48c61e2eb Replace namespace/io-stats/io-threads with 3.6-fb versions I69024115da7a60811e5b86beae781d602bdb558d None None None None None None
e4b47b5d54644c398c424a99116a0cc37e4431d6 fbsmoke: Sync with 3.6 functionality Ie8a427a11761ac5b23844b77b82b24269626d352 https://review.gluster.org/18290 None None None None None
4d80fcf5ec2098aa4f5aef07dec80ec9eb5ad602 nfs: Correctly reconfigure NFS options I
gdeploy]$ git diff
diff --git a/modules/backend_reset.py b/modules/backend_reset.py
index e37a969..1692bc3 100644
--- a/modules/backend_reset.py
+++ b/modules/backend_reset.py
@@ -32,13 +32,10 @@ class BackendReset(object):
def __init__(self, module):
self.output = []
self.module = module
- try:
@ShyamsundarR
ShyamsundarR / csi-test-ceph-csi-output.txt
Created April 4, 2019 17:39
csi-test run on ceph-csi v1.0.0 image SHA 893f9d27d3ab on Apr-04-2019
$ sudo ./csi-sanity -ginkgo.v --csi.endpoint=/var/lib/kubelet/plugins/csi-rbdplugin/csi.sock --csi.testvolumeparameters=./sc.yaml
Running Suite: CSI Driver Test Suite
====================================
Random Seed: 1554399294
Will run 57 of 57 specs
CreateSnapshot [Controller Server]
should fail when no name is provided
/home/somari/Code/gocode/src/github.com/kubernetes-csi/csi-test/pkg/sanity/controller.go:1498
STEP: connecting to CSI driver
@ShyamsundarR
ShyamsundarR / rbdplugin-pod.yaml
Last active April 4, 2019 17:42
rbdplugin pod manifest for running csi-test
---
apiVersion: v1
kind: Pod
metadata:
name: rbdplugin-test
spec:
serviceAccount: rbdplugi-test-sa
containers:
- name: csi-rbdplugin-prov
securityContext:
@ShyamsundarR
ShyamsundarR / rbdplugin-rbac.yaml
Created April 4, 2019 17:41
rbdpligin RBAC for csi-test
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: rbdplugi-test-sa
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
@ShyamsundarR
ShyamsundarR / ceph-csi-helm-for-parallel-csiplugins.patch
Created April 29, 2019 19:26
Helm values patch to run parallel CSI plugins
$ git diff deploy/rbd/helm/values.yaml
diff --git a/deploy/rbd/helm/values.yaml b/deploy/rbd/helm/values.yaml
index 9d14fa19..7622cab0 100644
--- a/deploy/rbd/helm/values.yaml
+++ b/deploy/rbd/helm/values.yaml
@@ -13,11 +13,11 @@ serviceAccounts:
create: true
name:
-socketDir: /var/lib/kubelet/plugins/rbd.csi.ceph.com
@ShyamsundarR
ShyamsundarR / pod-with-static-pv.yaml
Created May 20, 2019 22:06
Static PV using CephFS CSI
---
# Secret manifest containing ID and key for pre-provisioned subvolume
apiVersion: v1
kind: Secret
metadata:
name: csi-cephfs-preprov-secret
namespace: default
data:
userID: YWRtaW4=
userKey: QVFDNTBOQmN1c0hZR0JBQUptU0xtOUF3OThtQlJUNUZ5ZVMxL3c9PQ==