• 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 » Manage OpenStack Swift With Fog (HP Cloud)

By Abhishek Ghosh March 29, 2015 9:04 pm Updated on March 29, 2015

Manage OpenStack Swift With Fog (HP Cloud)

Advertisement

On the Client Side, We Can Install a Ruby Gem Named Fog. In This Example, We Will Use OS X 10.10.1 as Client and HP Cloud as Cloud Service Provider. Obviously, we can use Python Swift Client to manage OpenStack Swift. Fog has extensive guides.

 

Manage OpenStack Swift With Fog (HP Cloud) : OS X Part

 

Our quite popular guide – iTerm2, Homebrew and ZSH Installation on OS X is the first step to get started. Next steps are :

Vim
1
curl -L get.rvm.io | bash -s stable

Sadly, two more profile files will be created apart from .zshrc, they are :

Advertisement

---

Vim
1
2
3
~/.bash_profile
~/.profile
~/.zlogin

You’ll run cat against these :

Vim
1
2
3
cat ~/.bash_profile
cat ~/.profile
cat ~/.zlogin

practically they’ll have this :

Vim
1
2
3
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
 
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

WE WILL DELETE :

Vim
1
2
3
rm ~/.bash_profile
rm ~/.profile
rm ~/.zlogin

AS WE HAVE ONLY ONE DOT FILE – .zshrc. We will only depend on .zshrc. Source it :

Vim
1
source ~/.zshrc

Next, we will run these commands :

Vim
1
2
3
brew update
source ~/.rvm/scripts/rvm
rvm requirements

Then :

Vim
1
2
3
brew install libksba
rvm install ruby-2.0.0-p598
rvm user all && rvm install ruby-2.0.0 --with-gcc=clang

last two steps are :

Vim
1
rvm use 2.0.0 --default && gem install fog

You should be able to install the gem properly. This is a fixed instruction for OS X Mavericks. 1.9.2 will give you error :

Vim
1
2
3
4
RVM does not know how to build working ruby-1.9.2-p330 on OSX 10.10,
if you know please let us know by opening a ticket with instructions here:
 
    https://github.com/wayneeseguin/rvm/issues

Manage OpenStack Swift With Fog (HP Cloud)
 

Manage OpenStack Swift With Fog : HP Cloud Part

 

Its pretty easy :

Vim
1
2
3
4
5
6
irb -r 'rubygems'
irb -r 'fog'
irb
# you'll get an interactive session
require 'rubygems'
require 'fog'

require 'rubygems' and require 'fog' should return true as output. Example configuration goes like this :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
def credentials_hash
   {
     :provider => :hp,
     :hp_auth_uri => ENV['OS_AUTH_URL'],
     :hp_access_key => ENV['OS_USER'],
     :hp_secret_key => ENV['OS_API_KEY'],
     :hp_tenant_id =>  ENV['OS_TENANT'] ,
     :hp_avl_zone => ENV['OS_REGION']
   }
end
 
storage = Fog::<SERVICE-NAME>.new(credentials_hash)

The can be Fog::Storage.new(), which is a variable string. It can be cdn, compute etc. You will get question answers on Fog on StackOverflow > http://stackoverflow.com/questions/tagged/fog. Better specific guides can be found on HP’s website itself :

Vim
1
https://dev.hpcloud.com/ruby/sdk-connect.html

On OS X, installation can go hugely painful due to UNIX wheel group. Problem arises mainly from Homebrew part with OS X Mavericks. Fog is exactly not as painless as Python Swift Client for current version of OS X but it can become your solution for the need.

This Article Has Been Shared 901 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 Manage OpenStack Swift With Fog (HP Cloud)

  • 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.

  • SaaS : Everything You Wanted To Know

    SaaS or Software as a Service is designed by the architecture to be used by the consumer. SaaS is the model oCloud which the general users mostly know to exist.

  • Cloud Computing Grown as There Was Real Demand From The Customers

    Cloud Computing grown as there was a clear cut demand from the consumer. Most users who cares for quality, actually went mad with the traditional web hosts. The crap graphics of cPanel, increasing bill for Virtual Private Server and Dedicated server, “your problem you will solve” type of mentality, usage of worst possible hardwares, all […]

  • Cloud Database : Migrating From Relational Database Model to NoSQL

    Cloud Database is more and being in use now than before. The question of migrating from relational database model to NoSQL Database is becoming more important.

  • Mobile Phone Camera Photography : Get The Best Result

    Mobile Phone Camera Photography is becoming an important matter to seriously consider for Digital Photography. We always take a Mobile Phone with us.

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

  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023
  • Simple Windows Security and Privacy Checklist for 2023 March 24, 2023
  • 7 Best Artificial Intelligence (AI) Software March 24, 2023
  • ESP32 Arduino Water Tank Level Monitoring Using Laser ToF Sensor March 23, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Manage OpenStack Swift With Fog (HP Cloud)," in The Customize Windows, March 29, 2015, March 27, 2023, https://thecustomizewindows.com/2015/03/manage-openstack-swift-with-fog-hp-cloud/.

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