Skip to content

Instantly share code, notes, and snippets.

View psachin's full-sized avatar
🚀
Evolving

Sachin psachin

🚀
Evolving
View GitHub Profile
@psachin
psachin / tripleo-quickstart.org
Last active November 30, 2017 10:19
Notes from tripleo-quickstart bootcamp session

ooo-quickstart

All in one(single physical node deployment)

adduser NON-ROOT-USER -G wheel
passwd NON-ROOT-USER

# login as NON-ROOT-USER
ssh-keygen
export VIRTHOST=127.0.0.2
ssh-copy-id root@$VIRTHOST
@psachin
psachin / config
Created June 5, 2017 08:37
Push to all remotes using `git push all`. File location: PROJECT/.git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[branch "master"]
[remote "upstream"]
url = https://github.com/savitojs/gencert.git
fetch = +refs/heads/*:refs/remotes/upstream/*
[remote "downstream"]
--- requested.rb 2017-05-26 11:53:16.019079897 +0530
+++ requested_mod.rb 2017-05-26 11:53:34.248931892 +0530
@@ -5,6 +5,7 @@
else
next if @service_template.prov_type.starts_with?("generic")
service_prov_option_value(prov_option, child_service_resource.resource, options_array)
+ $evm.log(:info, "CASE :number_of_vms #{child_service_resource.resource.get_option(:number_of_vms)}")
end
end
options_array
@psachin
psachin / inventory
Created May 23, 2017 14:12
inventory file for ansible-tower-setup-3.1.3
[tower]
localhost ansible_connection=local
[database]
[all:vars]
admin_password='admin'
pg_host=''
pg_port=''
@psachin
psachin / Actions_Vm_.yaml
Created March 4, 2017 17:55
"Add disk" button under "Actions" group
---
:custom_buttons_sets:
- name: Actions|Vm|
description: Actions
set_type: CustomButtonSet
read_only:
mode:
custom_buttons:
- description: Add Disk
applies_to_class: Vm
@psachin
psachin / dialog_export_add_disk.yml
Created March 4, 2017 17:31
Service dialog to attach disk to RHV VMs
---
- description: Add disk
buttons: submit,cancel
label: Add disk
blueprint_id:
dialog_tabs:
- description: Information
display: edit
label: Info
display_method:
From 16c36ce82259fdf82686492d3447dc84b2070ee7 Mon Sep 17 00:00:00 2001
From: Sachin Patil <psachin@redhat.com>
Date: Wed, 28 Dec 2016 22:28:19 +0000
Subject: [PATCH] Proxy server controller tests should be reorganized
Following tests were moved:
- @patch_policies within test_server.TestObjectController -> controllers/test_obj.py
- @patch_policies within test_server.TestContainerController -> controllers/test_container.py
- @patch_policies within test_server.TestAccountController -> controllers/test_account.py
@psachin
psachin / 00-readme.md
Created February 22, 2017 05:37 — forked from briancline/00-readme.md
Test Swift installation (multi-node)

These are based on updated instructions for the Swift multi-node setup guide.

Steps to install on Ubuntu 14.04, assuming at least two machines:

  1. Copy the below 3 scripts to each of your VMs (make sure to chmod +x each of them as well).
  2. Run 01-install-proxy-node.sh only on your proxy.
  3. Run 02-install-storage-node.sh only on each of your storage nodes, prefixing the command with NODE=1, where 1 is the number for that storage node (must start at 1 and increment). For instance: NODE=1 ./02-install-storage-node.sh on your first storage node, NODE=2 ./02-install-storage-node.sh on your second storage node, etc.
  4. For each of the exports provided to you by the storage node install script (STORAGE_N_IP and STORAGE_N_DISKS), copy and paste them into your shell on the proxy. Then, running set | grep -a '^STORAGE_' from your proxy should show you all the storage nodes' exports.
  5. On the proxy, run 03-build-rings.sh. It will show you all the nodes and disks it discovered from your environment, build the
@psachin
psachin / Parsing JSON.diff
Last active February 7, 2017 10:50
[patch] Parsing JSON
diff --git a/Parsing JSON b/Parsing JSON
index dcccd0fa191d..26953954ec3d 100644
--- a/Parsing JSON
+++ b/Parsing JSON
@@ -1,48 +1,53 @@
from __future__ import print_function
+import argparse
import json
import sys
from prettytable import PrettyTable
@psachin
psachin / build_n_lint.sh
Created February 5, 2017 06:10
RPM packaging
SRCNAME="python-swiftclient"
rpmlint ${SRCNAME}.spec
if [ "$?" -eq 0 ];
then
echo "Removing installed packages.."
sudo dnf remove python2-swiftclient -y
sudo dnf remove python3-swiftclient -y