• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Using OpenShift PaaS Shell For OpenStack Python Clients

By Abhishek Ghosh July 5, 2015 9:42 am Updated on July 5, 2015

Using OpenShift PaaS Shell For OpenStack Python Clients

Advertisement

We Discovered a Way of Using OpenShift PaaS Shell For Using the OpenStack Python Clients Including OpenStack Object Storage (Swift) Easily. Previously we have shown the running web shell on OpenShift. That is PHP cartridge. OpenStack Swift Python client is written in Python. Not exactly easy to run both PHP and Python on PaaS together and then execute command from front end. Without doubt, this is most complex App ever made on OpenShift PaaS. The setup is very easy on an IaaS – we have the full control of the server.

 

Using OpenShift PaaS Shell For OpenStack Python Clients : Installing Web Shell as PHP App

 

First create a PHP ZEND cartridge and push the Web Shell as PHP App on the cartridge after minimal needed changes. You should get a thing like this one – https://shell-abhishekghosh.rhcloud.com (username: thecustomizewindows.com ; password: jima.in). Easy thing. It is PHP plus Javascript functions.

 

Using OpenShift PaaS Shell For OpenStack Python Clients : Activating Python on the Same Cartridge

 

SSH to that gear/application from your Mac or GNU/Linux computer. The ready to use command to do SSH looking like ssh 1qaz2wsx3edc4rfv@py27-abhishekghosh.rhcloud.com will be found on OpenShift dashboard. The next commands are tricky :

Advertisement

---

Vim
1
2
virtualenv --no-site-packages $OPENSHIFT_DATA_DIR/env
source $OPENSHIFT_DATA_DIR/env/bin/activate

Now you can install Python Swift Client with pip!

Using OpenShift PaaS Shell For OpenStack Python Clients

 

Using OpenShift PaaS Shell For OpenStack Python Clients : Installing Python Swift Client

 

Now run :

Vim
1
pip install python-swiftclient

from OpenShift client’s SSH screen. Swift Client will get activated and you can run swift command to check. Keep it mind – this is SSH. We need to run that swift command from frontend. Actually PHP will run the commands. The big difference between running command from SSH and our Web Shell is that – that $OPENSHIFT_DATA_DIR will not work. So, to repeat the same commands at front end, you need to do a pwd at SSH screen to get the real path of this – $OPENSHIFT_DATA_DIR. You can understand, the commands will be very long due to bigger path.

 

Using OpenShift PaaS Shell For OpenStack Python Clients : Executing Commands

 

There is a bit cheating way to run the valid commands. These command syntax is valid for HP Cloud. Instead of running swift list command, you have to run :

Vim
1
swift --os-auth-url https://api.example.com/v2.0 --os-tenant-name tenant --os-username user --os-password password list

We do not need the openstackrc file for this way. You are testing on OpenShift, you’ll use a real full server to use it. You do not need PHP bindings, Ruby Bindings for OpenStack Clients anymore. That official Python Clients will work fine. PHP bindings varies from providers to providers. It gives a huge pain.

We first tested on IaaS, obviously. It works and we can restrict the access to the web shell in various ways, limit the number of commands that can be executed etc. As you do not know what is the real path of $OPENSHIFT_DATA_DIR for https://shell-abhishekghosh.rhcloud.com, it is not PUBLICLY usable.

This Article Has Been Shared 367 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Using OpenShift PaaS Shell For OpenStack Python Clients

  • Cloud Computing 3D Rendering And Scope In Film Industry

    Cloud Computing 3D Rendering Has Definite Scope in Film Industry which might alarm the Stars of tomorrow and relieve the Producers investing in the Films.

  • Cloud Computing and Designing Own Truly Scalable System

    Cloud Computing becomes fully enjoyable if it is arranged to make a scalable system for the application or CMS or any web software including WordPress.

  • How Cloud Computing Challenge The Networks

    How Cloud Computing Challenge Networks with virtually unlimited storage and computing capacity, reduced cost and maximum flexibility and massive data traffic.

  • PubSubHubbub and Rackspace Cloud Queue

    PubSubHubbub is a networking protocol. Rackspace is Open Source but infamous for difficult to understand API documentation by normal human.

  • How to Upload Backup to Dropbox from Cloud Server

    Here is How to Upload Backup to Dropbox from Cloud Server in Case You Want To Keep Your Backup of Files and Database on a Free Cloud Storage.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023
  • What is COB LED? How LED Chip On Board Works January 20, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Using OpenShift PaaS Shell For OpenStack Python Clients," in The Customize Windows, July 5, 2015, January 27, 2023, https://thecustomizewindows.com/2015/07/using-openshift-paas-shell-for-openstack-python-clients/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT