[tux-install] yum-my ~ get your public yum-repo rolling on Google AppEngine

Posted in AbhishekKr, install-on-linux with tags , , , , , , , , , , on November 19, 2013 by abhishekkr

tuxinstall.blogspot.in [25/Aug/2013]

http://tuxinstall.blogspot.in/2013/08/yum-my-get-your-public-yum-repo-rolling.html

Wanna get your public yum repository rolling,

Get started by cloning boilerplate code…

$ git clone https://github.com/abhishekkr/gae-flat-web.git

$ cd gae-flat-web
$ mkdir -p yummy/<distro><releasever>/<basearch>

$ cp <all_my_rpms_of__distro_releasever_basearch> yummy/<distro><releasever>/<basearch>

$ createrepo yummy/<distro><releasever>/<basearch>/

now, place a file ‘flat_web/yum-my-el6<or-whichever>.repo’ with content

[yum-my-<distro><releasever>-<basearch>]
name=Yum-My
baseurl=http://YOURYUMMY.appspot.com/yummy/<distro>$releasever/$basearch
enabled=1
gpgcheck=0

and can link this file on your ‘flat_web/index.htm’ homepage to host: $ google_appengine/appcfg.py update <yum-my_path>

have a look at my repo code @ https://github.com/abhishekkr/gae-yum-my.git

For demo, here is the one I’m hosting
http://yum-my.appspot.com/flat_web/index.htm

…source blogpost here

Advertisements

[tekwalk] Fabric (py orchestration util) issue with my FreeBSD node, and Easy Fix

Posted in Blogroll, tutorial with tags , , , , on September 22, 2013 by abhishekkr

@ tekwalk.blogspot.in [12/Aug/2013]

http://tekwalk.blogspot.in/2013/08/fabric-py-orchestration-util-issue-with.html

Recently…..

The way Fabric works is whatever you ask it to “run(<cmd>)” over remote nodes, it runs that command by passing it to ” bash -l -c ‘<cmd>’ “.
Now as the issue was with my FreeBSD machine is it didn’t had “bash” in the first place. So, it was failing.
It can be fixed in 2 ways
First way,
add a line like following to make Fabric use the SHELL present on the remote node, as FreeBSD node had ‘C Shell’… so

env.shell = ‘/bin/csh -c’

Second way,
install ‘bash’ on the remote nodes and make sure it’s reachable via path “/bin/bash”

pkg_add -r bash

ln -sf /usr/local/bin/bash /bin/bash

…..click here to read full post

[just.few.tuts] Puppet ~ Beginner’s Concept Guide (Part 4) Where Is My Data?

Posted in Blogroll, tutorial with tags , , , , , , , , , , , , , , , on August 2, 2013 by abhishekkr

justfewtuts.blogspot.in [26/July/2013]

http://justfewtuts.blogspot.com/2013/07/wip-puppet-beginners-concept-guide-part.html

Puppet
beginners concept guide (Part 4)

Where is my Data?

When I started my Puppet-ry, the examples I used to see had all configuration data buried inside the DSL code of manifests, people were trying to use inheritance to push down data. Then got to see a design pattern in puppet manifests keeping out separate parameters manifest for configuration variables. Then came along the External Data lookup via CSV files as a Puppet function. Then with enhancements in puppet and other modules came along more.

Below are few usable to fine ways utilizing separate data sources within your manifests,

Here, we will see usage styles of data for Puppet Manifests, Extlookup CSV, Hiera, Plug-in Facts and PuppetDB.

params-manifest:

It is the very basic way of separating out data from your functionality code, and the preferred way for in-future growing value-set type of data. It will keep it separate from the code since start.

…..

…..click here to read full post

[just.few.tuts] Testing Chaos with Automated Configuration Management solutions

Posted in Blogroll, tutorial with tags , , , , , , , , , , , , , , , , , on June 23, 2013 by abhishekkr

justfewtuts.blogspot.in [31/May/2013]

http://justfewtuts.blogspot.in/2013/05/testing-chaos-with-automated.html

…..That’s the shift. The logic developed for Infrastructure acts as a glue to all other applications created in house and 3rd party. Here in Infrastructure feature development there is more to test for the effect it has on the it’s users (software/hardware) and less on internal changes (dependencies and dynamic content). Now the stuff in parentheses here means a lot more than seems… let’s get into detail of it.

Real usability of Testing is based on keeping sanctity of WHAT needs to be tested WHERE.

Software/Hardware services that collaborate with the help of Automated Infrastructure logic needs major focus of testing. These services can be varying from the
  • in-house ‘Product’, that is the central component you are developing
  • 3rd Party services it collaborates with,
  • external services it utilizes for what it doesn’t host,
  • operating system that it supports and Ops-knows what not.
Internal changes mainly revolve around
  • Resources/Dependencies getting called in right order and grouped for specific state.
  • It also relates to correct generation/purging of dynamic content, that content can itself range as
    • non-corrupt configuration files generated of a template
    • format of sent configuration data from one Infra-component to another for reflected changes
    • dynamically creating/destroying service instances in case of auto-scalable infrastructure

One can decide HOW, on ease and efficiency basis.

Unit Tests work for the major portion of ‘Internal Changes’ mentioned before usingchefspecrspec-chefrspec-puppet like libraries are good enough. They can very well test the dependency order and grouping management…..

…..click here for full blogpost

[tekwalk] perform performance test using Multi-Mechanize

Posted in Blogroll, tutorial with tags , , , , , , , on June 23, 2013 by abhishekkr

tekwalk.blogspot.in [18/May/2013]

http://tekwalk.blogspot.in/2013/05/perform-performance-test-using-multi.html

What? multi-mechanize is an OpenSource load testing framework written and configurable in Python. So either make calls to any web service or simple import and utilize any python-accessible API/service.
It’s successor of an old Python load testing framework called Pylot.

Developed and maintained @GitHub

Install available through ‘pip’ too as
pip install multi-mechanize
It also requires matplotlib library if you wanna view Graphs in the generated HTML report (or otherwise), BUT it’s not mandatory as the framework would perform all tests fine with an import error for matplotlib.

This also follows a……

…..click here for full blogpost

[tekwalk] pycallgraph : usage example ~ call sequence graph for your Python actions

Posted in Blogroll, tutorial with tags , , , , , , on June 23, 2013 by abhishekkr

@ tekwalk.blogspot.in [16/May/2013]

http://tekwalk.blogspot.in/2013/05/pycallgraph-usage-example.html

pycallgraph‘ is a fine python utility enabling developers to prepare call graph for any python code piece… it also notifies the number of times a call being made and total time spent in it

Homepage: http://pycallgraph.slowchop.com/pycallgraph/wiki
Codebase: https://github.com/gak/pycallgraph

it require ‘graphviz’ (http://www.graphviz.org/) to be present on the same machine for image generation from the analyzed calls data…

install : pip install pycallgraph

Usage#1 Selective graphing

wrap the code to be…..

…..full blogpost here

[just.few.tuts] Beginner’s Guide to OpenStack : Basics of Nova #Part.2

Posted in Blogroll, tutorial with tags , , , , , , , , , , , , on April 30, 2013 by abhishekkr

justfewtuts.blogspot.com []

http://justfewtuts.blogspot.in/2013/04/beginners-guide-to-openstack-basics-of.html

parts of Beginner’s Guide to OpenStack to read before this ~
Part1: Basics

[Part.2 Basics of Nova] Beginner’s Guide to OpenStack

# Nova?
It’s the main fabric controller for IaaS providing Cloud Computing Service by OpenStack. Took its first baby steps in NASA. Contributed to OpenSource and became most important component of OpenStack.
It built of multiple components performing…..

# Components?
Nova stores states of virtual machines in a central database. It’s optimal for…..

# API Style
Interface is mostly RESTful. Routes (python re-implementation of Rails route system) packagesmaps URIs to…..

# Threading Model
Uses Green Thread implementation by design using eventlet and greenlet libraries. This results into single process thread for O.S. with it’s blocking I/O issues. Though…..

# Filtering Scheduler
In short it’s the mechanism used by ‘nova-scheduler’ to choose the worthy nova-compute host for new required virtual machine to be spawned upon. It prepare…..

# Message Queue Usage
Nova components use RPC to communicate each other via Message Broker using PubSub. Nova implements rpc.call (request/response, API acts as consumer) and rpc.cast (one way, API acts as publisher)…..

…..

…click here to read full post