Skip to content

Instantly share code, notes, and snippets.

View ganeshmaharaj's full-sized avatar

Ganesh Maharaj Mahalingam ganeshmaharaj

  • Somewhere over the rainbow
View GitHub Profile
This file has been truncated, but you can view the full file.
-- Logs begin at Wed 2019-06-12 10:34:54 PDT. --
Jun 13 10:45:20 ubuntu-01 crio[21271]: time="2019-06-13 10:45:20.783639290-07:00" level=debug msg="ListPodSandboxResponse &ListPodSandboxResponse{Items:[&PodSandbox{Id:33e5dcad3c7a0ba76fb83ca8a29f9e39b573e071fac4c1ad6ef2035958fa6db9,Metadata:&PodSandboxMetadata{Name:coredns-fb8b8dccf-vq4vp,Uid:ee0d1a37-8d55-11e9-a26e-5254002b6b5c,Namespace:kube-system,Attempt:2,},State:SANDBOX_READY,CreatedAt:1560447892329646956,Labels:map[string]string{io.kubernetes.container.name: POD,io.kubernetes.pod.name: coredns-fb8b8dccf-vq4vp,io.kubernetes.pod.namespace: kube-system,io.kubernetes.pod.uid: ee0d1a37-8d55-11e9-a26e-5254002b6b5c,k8s-app: kube-dns,pod-template-hash: fb8b8dccf,},Annotations:map[string]string{cni.projectcalico.org/podIP: 10.244.0.5/32,kubernetes.io/config.seen: 2019-06-12T14:06:43.011826938-07:00,kubernetes.io/config.source: api,},RuntimeHandler:,} &PodSandbox{Id:b3921ea2395a7cc49131b79e94d9403183f83c8cfedd6a1442f91731d820a2dc,Metadata:&PodSandboxMetadata{Name
---
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: rook-ceph
namespace: rook-ceph
spec:
cephVersion:
image: ceph/ceph:v13.2.2-20181023
allowUnsupported: false
From a154610ce564462c5a64988b328578ac50f5e898 Mon Sep 17 00:00:00 2001
From: Ganesh Maharaj Mahalingam <[email protected]>
Date: Wed, 19 Sep 2018 23:15:03 -0700
Subject: [PATCH] test glog enabling
Signed-off-by: Ganesh Maharaj Mahalingam <[email protected]>
---
cluster/examples/kubernetes/ceph/operator.yaml | 4 ++--
cluster/examples/kubernetes/cockroachdb/operator.yaml | 4 ++--
cluster/examples/kubernetes/minio/operator.yaml | 4 ++--
@ganeshmaharaj
ganeshmaharaj / get-kube-info-with-curl.md
Last active June 15, 2021 20:59
Access Kube API with curl
The below changes are needed to get helm & tiller working with an existing kubernetes system.
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
@ganeshmaharaj
ganeshmaharaj / CC-ceph-usecase
Last active June 23, 2017 22:38
Use CC to run Ceph's make-check script
- Ceph has a script 'run-make-check.sh' https://github.com/ceph/ceph/blob/master/run-make-check.sh which is used to build & run
a tiny ceph cluster in memory and run tests against it. Ceph CI runs this test inside a VM they spawn on a cloud environment.
* When doing this within a traditional docker container, the test completes all the time but there are random failures each time
leading to a false positive which doesn't help the case where i am testing a change for regressions. I suspect this is cause
of a single kernel and there is something interesting happening when the test is being run. There is no data to backup this
comment of mine.
* Running it inside a traditional VM is extremely slow and becomes a no-go.
* I tried testing this within a Clear Container to see if I can get the abstraction from the host kernel and still get it faster
than a traditional VM. in my tests the build takes as long as it does on a VM but the test never completes. the whole container
#!/usr/bin/env python
"""
Tiny program to repeateadly download a random object from a swift container
and compare its hash with what is listed in the container
"""
import argparse
from random import choice, randint
import sys
Problem statement: A stable release of Bifrost can break due to dependencies changing.
Background:
We had a bifrost VM which was responsible for deploying baremetals in our lab. We had a version of bifrost locked down
prior to Mitaka release and it was working fine until we had to tear down the VM and re-create it. We found that
by default ‘master’ version of ironic sources was used in the setup. This lead to the VM not being setup properly.
On suggestions from the community, we pegged bifrost, ironic and ironic-client to ‘stable/mitaka’ and that
worked for two weeks. On another re-build of the VM, the IPA coreos image failed to boot on the system and further
analysis showed that the IPA image used is that of ‘master’ and not ‘stable/mitaka’.
@ganeshmaharaj
ganeshmaharaj / Doc Flow
Last active February 3, 2016 22:35
Bifrost Documentation Flow Thoughts
GENERAL
- a reference diagram and how a general layout would look like? (I can draw out the one i have if that will help)
- A bifrost deploy for dummies (step-by-step install guide) using the above layout. (What you want to configure, where, why, how)
- Eg: if you use ubuntu, this is what you change
- If you want to use your own DHCP server, this is what you change.
- if you want to use static IPs, this is what you change/modify/add to get the machines the right data
- Please correct me on this, if bifrost runs the DHCP server it is best to set dhcp_pool_start, end, static mask etc.. Would be nice to say that in the above guide.
- Also i think the UUID we use in the baremetal.json is made up (random generated) and has nothing to do with the UUID of the machine you find the BIOS. Would be nice to state this as well in the document. :)
- When an install is called, explain what happens. What the playbook does, what roles are called and what it the outcome of that.
- various roles used, but READMEs arent li
#! /usr/bin/python
import argparse
import os
import sys
import xml.etree.ElementTree as ET
import xlsxwriter
parser = argparse.ArgumentParser()