Showing posts with label OpenStack. Show all posts
Showing posts with label OpenStack. Show all posts

Wednesday, December 4, 2013

OpenStack Havana is ready on India

We are happy to announce that OpenStack's Havana version is ready on India.

If you already have account on FutureGrid, you can use it with this steps.
ssh <username>@india.futuregrid.org
module load novaclient
source ~/.futuregrid/openstack_havana/novarc

If you belong to multiple projects, you can easily switch your tenant/project, with this.
source ~/.futuregrid/openstack_havana/<project_id>

Other than the initial setting, the rest of how-to is the same as our OpenStack Grizzly Manual.

If you find an issue, please submit a ticket.
https://portal.futuregrid.org/help

And also, OpenStack Orchestration, called Heat, will be available soon.

Thanks,

Tuesday, October 22, 2013

Video: Using OpenStack command line tools



This lesson, Using OpenStack command line tools, explains how to use the OpenStack Commandline tools on the FutureGrid cluster called sierra.futuregrid.org. 

For written material, see section OpenStack Grizzly in the FutureGrid manual.

Visit FutureGrid's Massive Open Online Course (MOOCs) site for more video based learning opportunities.

Thursday, October 17, 2013

Newly Released OpenStack Havana on FutureGrid

OpenStack Havana was released today. FutureGrid is happy to announce that undergraduates 
enrolled in  a course for young computer scientists working in the field of software and 
system will be among the first to gain hands-on experience with FutureGrid's 
implementation of the new version of OpenStack on India. For more about this course, 
please visit the FG-368 project page: https://portal.futuregrid.org/projects/368

Work is underway to make OpenStack Havana available to other FutureGrid users as soon as 
possible. Queries about FutureGrid's OpenStack Havana implementation should be sent to 
FutureGrid using the ticketing system:  https://portal.futuregrid.org/help

FutureGrid will continue to make OpenStack Grizzly available on Sierra.

For an overview of key features made available by the new OpenStack Havana release, 
please visit ZDNet's article, OpenStack Havana: Open-source cloud for the enterprise:
http://www.zdnet.com/openstack-havana-open-source-cloud-for-the-enterprise-7000022086/

Tuesday, October 8, 2013

Supernova instead of Nova?

We installed Supernova on Sierra, which is a very useful tool for OpenStack. If you say yes to any of the following questions, you should try Supernova.
  • Do you have multiple projects(tenants)?
  • Do you have another OpenStack to run your instances?
So here's how to use Supernova on Sierra.
* Before you try Supernova on FutureGird, you have to have your FutureGrid account and should know how to use OpenStack. Here's the link of our OpenStack Tutorial -> http://manual.futuregrid.org/openstackgrizzly.html
Login to Sierra and load Supernova.
ssh username@sierra.futuregrid.org
module load supernova

Check your novarc file and create your ~/.supernova file like below. In this example, my account(user1) is a member of fg123 and fg456.
[fg123]
OS_AUTH_URL=https://s77r.idp.sdsc.futuregrid.org:5000/v2.0
OS_CACERT=/etc/futuregrid/openstack/sierra/cacert.pem
OS_PASSWORD=***************
OS_TENANT_NAME=fg123
OS_USERNAME=user1

[fg456]
OS_AUTH_URL=https://s77r.idp.sdsc.futuregrid.org:5000/v2.0
OS_CACERT=/etc/futuregrid/openstack/sierra/cacert.pem
OS_PASSWORD=***************
OS_TENANT_NAME=fg456
OS_USERNAME=user1

Don't forget to change the permission to make it unreadable to anyone else.
chmod 600 ~/.supernova

Now, you should be able to check your tenant list.
supernova --list
-- fg123 --------------------------------------------------------------------
  OS_AUTH_URL          : https://s77r.idp.sdsc.futuregrid.org:5000/v2.0
  OS_CACERT            : /etc/futuregrid/openstack/sierra/cacert.pem
  OS_PASSWORD          : ***************
  OS_TENANT_NAME       : fg123
  OS_USERNAME          : user1
-- fg456 --------------------------------------------------------------------
  OS_AUTH_URL          : https://s77r.idp.sdsc.futuregrid.org:5000/v2.0
  OS_CACERT            : /etc/futuregrid/openstack/sierra/cacert.pem
  OS_PASSWORD          : ***************
  OS_TENANT_NAME       : fg456
  OS_USERNAME          : user1

The usage is the same as Nova Client. You just need to replace "nova" to "supernova <tenantname>". Here's how to boot an instance on each tenant.
supernova fg123 boot --image futuregrid/ubuntu-12.04 --flavor m1.small --key-name mykey fg123vm001
supernova fg456 boot --image futuregrid/ubuntu-12.04 --flavor m1.small --key-name mykey fg456vm002
supernova fg123 list
supernova fg456 list

Very easy and very useful, isn't it?

In my work, I have multiple tenants and multiple OpenStack sets to work with, so Supernova is very very very helpful. I hope it makes your work easier, too!


Thanks,

Thursday, October 3, 2013

The response of Sierra's OpenStack is improved.

It is good news that the response of Nova Client is improved on Sierra's OpenStack.

This issue doesn't show up on Essex version, so India's OpenStack is fine. But Grizzly version has lots on Keystone's database, and it had been making the authentication process slow. We took a serious look and tuned MySQL configuration.

Here's the result of the improvement.

Before:
$ time nova list
+--------------------------------------+--------+--------+---------------------+
| ID                                   | Name   | Status | Networks            |
+--------------------------------------+--------+--------+---------------------+
| 8618a539-2162-41e6-92b1-c8177ebe100a | master | ACTIVE | private=10.35.23.9  |
| c373a455-e99c-45a6-be8f-ca75117fe9cb | node1  | ACTIVE | private=10.35.23.10 |
| 07eaa184-a8c6-4ece-9f35-5d3ba8c9c1e0 | node2  | ACTIVE | private=10.35.23.15 |
| bbc7408f-e8ba-45cb-b294-e857c53e9f7f | node3  | ACTIVE | private=10.35.23.55 |
+--------------------------------------+--------+--------+---------------------+

real    0m8.819s
user    0m0.307s
sys 0m0.127s

After:
$ time nova list
+--------------------------------------+--------+--------+---------------------+
| ID                                   | Name   | Status | Networks            |
+--------------------------------------+--------+--------+---------------------+
| 8618a539-2162-41e6-92b1-c8177ebe100a | master | ACTIVE | private=10.35.23.9  |
| c373a455-e99c-45a6-be8f-ca75117fe9cb | node1  | ACTIVE | private=10.35.23.10 |
| 07eaa184-a8c6-4ece-9f35-5d3ba8c9c1e0 | node2  | ACTIVE | private=10.35.23.15 |
| bbc7408f-e8ba-45cb-b294-e857c53e9f7f | node3  | ACTIVE | private=10.35.23.55 |
+--------------------------------------+--------+--------+---------------------+

real    0m0.929s
user    0m0.309s
sys 0m0.118s

Thanks,

Sunday, September 29, 2013

Try CoreOS and Docker at Futuregrid

Docker and CoreOS are interesting new software. You can try them on FutureGrid.

Before you try this, you need to have your FutureGrid account, of course, and should know how to use OpenStack at FutureGrid. Here's the link --> http://manual.futuregrid.org/openstackgrizzly.html

First, login to sierra and setup your OpenStack environment.
ssh username@sierra.futuregrid.org
module load novaclient
source .futuregrid/novarc

Boot an instance with CoreOS image.
nova boot coreos1 --flavor m1.small --image futuregrid/coreos --key_name keyname

Check the status of the instance with "nova list", and if it's "ACTIVE", login to the instance
ssh -i /path/to/your/pub-key core@10.35.23.119
Warning: Permanently added '10.35.23.119' (RSA) to the list of known hosts.
   ______                ____  _____
  / ____/___  ________  / __ \/ ___/
 / /   / __ \/ ___/ _ \/ / / /\__ \
/ /___/ /_/ / /  /  __/ /_/ /___/ /
\____/\____/_/   \___/\____//____/
core@coreos1 ~ $

Execute "echo Hello World!" inside a container.
docker run base /bin/echo Hello World!
Unable to find image 'base' (tag: latest) locally
Pulling repository base
b750fe79269d: Download complete
27cf78414709: Download complete
Hello World!

What it does is, 1. download the "base" image, 2. execute "echo Hello World!". The downloading process only happens at the first time. So if you execute "docker run base /bin/echo Hello World!" again, you can see what I meant.

Next, you can login to a container with this.
docker run -i -t base /bin/bash

If you check the OS with "lsb_release -a", you can find the base image is Ubuntu 12.10.
root@d7a0470c0e16:/# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
root@d7a0470c0e16:/# exit
exit
core@coreos1 ~ $ 

Next, execute a command in the background.
docker run -i -t -d base /bin/ping www.google.com
81e7918c9724

You can see the status of the container with this.
docker ps
ID                  IMAGE               COMMAND                CREATED             STATUS              PORTS
81e7918c9724        base:latest         /bin/ping www.google   41 seconds ago      Up 40 seconds

Take a look at the container.
docker logs 81e7918c9724
PING www.google.com (74.125.224.211) 56(84) bytes of data.
64 bytes from lax02s02-in-f19.1e100.net (74.125.224.211): icmp_req=1 ttl=53 time=9.96 ms
64 bytes from lax02s02-in-f19.1e100.net (74.125.224.211): icmp_req=2 ttl=53 time=9.97 ms
64 bytes from lax02s02-in-f19.1e100.net (74.125.224.211): icmp_req=3 ttl=53 time=10.0 ms
64 bytes from lax02s02-in-f19.1e100.net (74.125.224.211): icmp_req=4 ttl=53 time=9.95 ms
64 bytes from lax02s02-in-f19.1e100.net (74.125.224.211): icmp_req=5 ttl=53 time=10.0 ms
64 bytes from lax02s02-in-f19.1e100.net (74.125.224.211): icmp_req=6 ttl=53 time=9.96 ms
64 bytes from lax02s02-in-f19.1e100.net (74.125.224.211): icmp_req=7 ttl=53 time=9.95 ms

You can attach to the container with this.
docker attach 81e7918c9724
* When you want to detach, press "Ctrl-p" and "Ctrl-q".

Terminate the command.
docker kill 81e7918c9724
docker ps

So, now you think your container is gone, but actually what you did is stored. You can see the list with this.
docker ps -a -notrunc
ID                                                                 IMAGE               COMMAND                    CREATED             STATUS              PORTS
1c94ff1e5c6a180c525e7dc709e59d3f5275d38bcfbc057862eeb3ce8821e1e8   base:latest         /bin/ping www.google.com   13 minutes ago      Exit 0
64cf0b3a9f6b30bf794f312ec72596a7bb3b465dc2d93c1513228ecee8da3238   base:latest         /bin/bash                  24 minutes ago      Exit 0
a5000a2ba33503775eab2e0740b906971e29abad87d934d48efff6c6ab061fcd   base:latest         /bin/echo Hello World!     37 minutes ago      Exit 0

You can delete one with "docker rm <ID>" like this.
docker rm 1c94ff1e5c6a180c525e7dc709e59d3f5275d38bcfbc057862eeb3ce8821e1e8
docker ps -a -notrunc

Also, if you commit one of them, it will be saved as an image.
docker commit -m "My first container" 1c94ff1e5c6a180c525e7dc709e59d3f5275d38bcfbc057862eeb3ce8821e1e8 username/first_container

So, now you have your first custom image on the list. Means that you can install software packages, add something more as needed, commit the change, and execute a command or run a daemon very quickly. It's all done inside the container!
docker images
REPOSITORY                TAG                 ID                  CREATED             SIZE
username/first_container   latest              40cd6f5b996e        12 seconds ago      16.39 kB (virtual 180.1 MB)
base                      latest              b750fe79269d        6 months ago        24.65 kB (virtual 180.1 MB)
base                      ubuntu-12.10        b750fe79269d        6 months ago        24.65 kB (virtual 180.1 MB)
base                      ubuntu-quantal      b750fe79269d        6 months ago        24.65 kB (virtual 180.1 MB)
base                      ubuntu-quantl       b750fe79269d        6 months ago        24.65 kB (virtual 180.1 MB)


...So, with using Docker, you can build and train your system as a container and save it like a file very quickly. (Docker only overwrites the differences from the base image and save it in "/var/lib/docker/containers/", which is why it's so quick.) Also, the great thing about Docker is you can share your image on https://index.docker.io/.

One more interesting thing to say here is, the CoreOS is based on Google’s ChromeOS that automatically updates. So CoreOS is like a ChromeOS on the Cloud, but it's, of course, more than that. To my knowledge, the idea of CoreOS is to build your massive cluster on the Cloud as easily and quickly as possible.

I'll do more research about them. So please keep checking this blog. Thanks!

For more information:

Thursday, September 19, 2013

CentOS 6, SL 6 and Debian 7 are available on OpenStack

We are happy to announce that we have added some more useful cloud images on our OpenStack. Now we have CentOS 6, Scientific Linux 6 and Debian 7. And interesting CoreOS too.

[ktanaka@s1 images]$ nova image-list|grep futuregrid
| 53fab752-757e-4b2a-bce6-9f74ba76be26 | futuregrid/centos-6                   | ACTIVE |                                      |
| d5b19d33-8440-4069-815a-de9d8629dae3 | futuregrid/coreos                     | ACTIVE |                                      |
| d40facd1-7496-42b7-8bc7-70235396d349 | futuregrid/debian-7                   | ACTIVE |                                      |
| 18c437e5-d65e-418f-a739-9604cef8ab33 | futuregrid/fedora-18                  | ACTIVE |                                      |
| 1c46e959-5805-47da-a079-58900787ef25 | futuregrid/fedora-19                  | ACTIVE |                                      |
| 8f289ebb-d8fb-48f6-8429-430110eacb4a | futuregrid/sl-6 <- Scientific Linux   | ACTIVE |                                      |
| 1a5fd55e-79b9-4dd5-ae9b-ea10ef3156e9 | futuregrid/ubuntu-12.04               | ACTIVE |                                      |
| f7459a50-3ef4-40f5-a7d7-955fb3af6432 | futuregrid/ubuntu-13.10               | ACTIVE |                                      |

You can boot your instance with this:
nova boot --image <image name> --flavor m1.small --key-name <your key> <instance name>

For more information about how-to, please visit our OpenStack Grizzly Manual.

Also, if you're interested in CoreOS, please check the link.
http://coreos.com/docs/using-coreos/

Thanks,

Friday, September 13, 2013

OpenStack Tips: Download a cloud-image on India's OpenStack and upload to Sierra's OpenStack

Here's how to download an image from India's OpenStack and upload it to Sierra's OpenStack.

1. On Sierra, make sure you've done step1 and step2 of our grizzly tutorial.

2. On your local machine, download your credential from india.
scp -rp [username]@india.futuregrid.org:~/.futuregrid .futuregrid.india
3. On your local machine, upload the credential to sierra. (*Do not overwrite your.futuregrid on sierra.)
scp -rp .futuregrid.india [username]@sierra.futuregrid.org:~/.futuregrid.india
4. On Sierra, load india's credential.
source ~/.futuregrid.india/openstack/novarc
module load novaclient
5. On Sierra, check your image id and download your image/ramdisk/kernel.
nova image-list|grep [name]
glance image-download [id] --file [file name to save]
6. On Sierra, load sierra's novarc.
source ~/.futuregrid/novarc
7. On Sierra, upload them.
glance image-create --name= --disk-format=aki --container-format=aki < kernel-file
glance image-create --name= --disk-format=ari --container-format=ari < ramdisk-name
glance image-create --name= --disk-format=ami --container-format=ami --property kernel_id=[kernel_id] --property ramdisk_id=[ramdisk_id] < your-image-file.img

Tuesday, July 23, 2013

FutureGrid Upgrades Support of Educational Use

As part of an ongoing commitment to education FutureGrid announces prototypes of Massive Open Online Courses (MOOCs) designed for use in class or as out of class supplemental material for courses covering HPC, Grid, and Cloud Computing.    
Currently two FutureGrid MOOCs are available.
The Intro to FutureGrid MOOC, divided into six units, covers core capabilities: setting up a portal account and project; using non virtualized HPC nodes; and explores two approaches to virtual machines: using OpenStack Grizzly release and using the Eucalyptus system.  Instructors for the Intro to FutureGrid MOOC are FutureGrid PI Geoffrey Fox and FutureGrid Software Architect Gregor von Laszewski.
In addition FutureGrid MOOCs will cover advanced topics.  We begin with FutureGrid TEOS Team Leader Renato J. Figueiredo's IP-over-P2P (IPOP) MOOC: Network Virtualization in Infrastructure-as-a-Service (IaaS) Cloud Computing.   The IPOP MOOC has twelve units of instruction.  Students who take this MOOC will learn about the role of virtual networks in IaaS, the key abstractions and techniques used to implement them, challenges and techniques applied to network virtualization across multiple IaaS clouds, and will learn about the architecture and usage of the open-source IPOP virtual network through hands-on exercises.
Further MOOC components are under development and will be available in the coming months.  Comments and suggestions are welcome.  
FutureGrid community members are invited to create MOOC resources related to the work they are developing through their use of FutureGrid. For information on how to create a FutureGrid MOOC, please visit https://portal.futuregrid.org/mooc
The FutureGrid MOOCs are available at:  https://fgmoocs.appspot.com