OpenStack Raksha Client Tools Means the Python Tools Which are Related to Data Protection and Backup. Examples are Given With HP Cloud as Client. It should appear to the reader as an obvious statement – if the OpenStack installation is the reader’s installation, the control will be the highest but if the OpenStack installation is used as Client (like when we use the service of HP Public Cloud or Rackspace Cloud) – control becomes limited. OpenStack Raksha itself has a less used client tools in that sense. We use the other client tools. OpenStack Raksha is a broader group of services for data protection. When we are saying OpenStack Raksha Client Tools, it means we are talking about two python clients with no specificity.
Understanding OpenStack Raksha Client Tools and OpenStack Raksha
Raksha is Vedic Sanskrit word. It means “To Save (someone)”. Example – “Lord Shiva will perform Raksha of your VM”. Ultimately, the Raksha’s meaning has been deteriorated to joke like Chala, Guru etc. Raksha Korun (do raksha) is used to indicate stop in joking tone. But, this Raksha works fine, as intended.
You can try to run sudo pip install python-rakshaclient
– it will not work! There is actually such a direct client tool, but possibly people do not use it, you can install that in this way :
---
1 | sudo pip install git+https://github.com/DPaaS-Raksha/python-rakshaclient.git |
We have to install cinderclient and glanceclient in the same way on OS X as we have installed OpenStack Python Clients before.
Client Setup
Who will use Rackspace or HP Cloud, it is expected that they will use Mac. Mac is the standard, then after that level HP and IBM’s mainframe or closer to mainframe computers are the valid options. Frankly, we need an unix like OS on a Standard Computer – it can be HP UX or OS X. Otherwise our Homebrew – iTerm – ZSH things will not work. It is not abnormal to infected with malware on Microsoft Windows and get the full setup hacked. GNU Linux will be next better option.
Understanding OpenStack Raksha
Raksha is a scalable data protection service for OpenStack Cloud. So we need to run and install these from OS X Terminal :
1 2 | sudo pip install python-cinderclient sudo pip install python-glanceclient |
Cinder, Glance, Nova and Swift – four things makes the OpenStack Raksha thing. Backup can be incremental or full at one shot.
Using OpenStack Raksha Client Tools (HP Cloud)
First do a cat to check whether your setup is right :
1 | cat .zshrc |
So, practically what we are going to show is kind of command line version of our previous guide to manage Floating IP and Snapshot. We guess, most loves command line more than GUI as an advance user. First, we can see the IDs of the running instances with this command :
1 | nova list |
This is a fake example looking like real result :
1 2 3 4 5 | +--------------------------------------+-------------+--------+------------+-------------+-------------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+-------------+--------+------------+-------------+-------------------------------------------+ | 79sdfdgh-678o-dddd-mmm-whywhywhy7 | peculiarInstance | ACTIVE | - | Running | abhishek-network=10.0.0.78, 15.125.77.166 | +--------------------------------------+-------------+--------+------------+-------------+-------------------------------------------+ |
That 79sdfdgh-678o-dddd-mmm-whywhywhy7
is the ID. nova client is dangerous. Be careful with it. If wrong command is ran, none can save you. HP has excellent guide at this point :
1 | https://community.hpcloud.com/article/managing-your-floating-ips |
Paste the URL on a text editor and then navigate from browser. If you have installed Raksha client :
1 | raksha help backupjob-create |
You will get the idea. You can download an image with glance :
1 | glance image-download --file snapshot.raw f30b204e-1ce6-40e7-b8d9-b353d4d84e7d |
If nove client throw errors after installing raksha client, upgrade it :
1 | sudo pip install --upgrade python-novaclient |
For OS X 10.10.1 (Yosemite), run :
1 | sudo pip install pyopenssl ndg-httpsclient pyasn1 |
to get rid of the SSL related errors. Now, if you run :
1 | glance image-list |
You will get the list of all the images, it is not exactly what is desired. So, pipe it :
1 | glance image-list | grep Ubuntu |
… incase your need is Ubuntu name.
Tagged With how to configure raksha , how to setup raksha , Raksha backup