CLOUD COMPUTING- PRACTICAL

CLOUD COMPUTING- PRACTICAL


this is the fifth lecture in the series on
cloud computing for internet of things in this lecture you will learn about some of
the basics about ah a an open source platform for cloud which is open stack and in this
lecture i will be assisted by one of the tas ah mister anand shri and ah he will show you
how to create ah ah you know it is not possible to show you the installation of cloud or open
stack ah specifically it is not a ah you know possible to show through this ah those installations
are available the instructions for installations are available ah you know through ah different
links that are available publicly ah now once you have installed open stack then how to
create ah virtual machine instances how to access those instances and so on so those
manipulations how to do how to play around with open stack interface so those things
we are going to show in this particular lecture so this basically is going to give you a practical
exposure of cloud with a popular open source system open stack and ah so this ah through
this actually you can use open stack ah specifically ah with ah internet of things ah you know
if you are building iot platforms and ah for cloud requirements you can use open stack
ah for it hai every one my name anand shri and i am
one of the tas of this course so today i am gone a do i am gone a ah tell you about some
basics about ah open stacks so lets get started here first ah let us start with ah what actually
is open stack so open stack is a software through which you can generate your own cloud
and it is a joint project of the nasa and the ah rackspace hosting and it was ah established
in it was first released in ah two thousand ten so right but right now so many ah companies
so many big big companies are ah helping in developing the helping in developing the ah
this ah software so some of the some of the companies are cisco ibm hp redhat and so on
so obviously actually you can even contribute in ah developing the software you can even
ah develop your code that can ah upgrade the present open stack also so it is completely
free and it is the only completely free open source ah cloud developing software that is
available in the market so some of the versions of the open stacks are ah a listed here so
ah it is a ah releasing order of the alphabetical orders so ah it was a first it was two thousand
and ten it was ah as ah austin but right now the latest version is ocata so lets go to
the next slide so ah this are components of the open stack
so in open stack there are so many components and its components are ah ah acting their
own a function and its component has their own specific functions a so first ah ah here
is ah horizon this horizon is the dashboard section from this horizon you can actually
access other components so actually horizon is the gui interface of the software so it
provide it provides gui sections it also provide overview of the other components so when we
ah when we do the practical section you will know what the horizon is so ah next is the key stone key stone is actually
the authentication and authorizon system so when a user access the system or when when
a user access the cloud this keystone will be able to detect ah if this ah user is authentic
or if this user is authorized to use the ah resources that he is attempting to use so
next next component is a nova nova is the compute service actually nova is the component
where we are going to launch the instances and all so and the glance glance is the email
service so ah for installing ah the instances we need
images so for this we will use glance so it is also useful in discovering registering
retrieving those a vm ware also and through this ah glance we can also give the snap shots
ah so that we can use the ah snap shot later for the ah installation of the other vms also
and next is the swift swift is full object storage so ah swift helps in the storing data
safely cheaply and efficiently so obviously it is also written on the ah slide also so the next is the neutron neutron is one
of the most important part of the open stack because it is the it it is the networking
part of the system it provides the networking service of the ah a softwares so through this
we can access other components and through this we can access ah different different
ah instances and and then neutron you can ah create your own networks you can modify
your own networks and we can say it as a neutron is providing like the ah network as a service
so ah next component is the cinder cinder is also a storage but it is the block storage
like ah it is something like pluggable type of storage and then next is the ah hear and
the hear provide orchestration so and the next is the ceilometer ceilometer
is the billing section like ah through the ceilometer one can ah one can ah monitor what
resource is using and for how long the resources is using so billing is actually helpful in
ah helpful for the ah cloud service providers like a we can monitor ah which user is using
which resources and for how long he he is using the resources and according to the time
and the type of resources we can build them we can say how much resources that he is using
how much costs for that so next is so lets ah get started the installation
part so actually ah in the installation there are many steps like a we can also install
manually like we can ah make our own vms and then install it again and it is quite ah ah
difficult so there are script devstack through which we can easily install the ah ah install
the cloud like all this open stack ah in this devstack the installation steps are already
written in the form of the devstack file so we can directly run the file and everything
will be run by the script itself so while installing the file we may face some
problems like ah a proxy problem then it can the solving those kind of ah problem is already
find already available in the internet also so lets ah here here also i am showing how
to solve it using the devstack so devtacks script is found in ah ah a git ah dot open
stack dot org ah a website so you can easily clone from there and you can a clone then
and you can access it easily so in order to clone it ah we have to first ah install the
git ah softwares so in order to it just ah perform the steps
that i have given there like ah installation part just go to the ah command and after that
just clone it and after that go to the directory like this so lets go to the a machine where
the cloud is installed and see what is it showing so lets go there so it is running
here so actually ah this ah this devstack folder is clone in the home directory so lets
see what is in the home directory so we can see there there is ah arduino labs devstack
ya devstack ya so we will go to this folder so inside it so inside it there will be so
many files ah so we just need to a we need to run this ah dot stack dot sh file so lets
run it ah write so it is saying that it is already installed already running there this
stack so it means i have already the installed the cloud in my ah server it means we i dont
need to install it so for for the installation part just ah go to the step and you will be
able to install it so ah for the installation go to a ah there
is some settings like a go to the local dot config file and set this ah settings and run
the dot sh file stack dot sh file for and for the uninstallation just run the unstack
dot sh file so after that lets go to the ah actual cloud and see some working about how
to lower the instance and how to delete it how to access the instance and all so lets
go to the cloud go here ah i will be accessing as a admin this password is a password that
you set during the installation part so you should remember the password and you should
remember the username also only through the password and username you should be able to
access this ah admin a section so successive so this is the this is the horizon this is
the horizon of the ah open stack means this is the gui part of the section so through this gui part we can access to
different components like ah instance instances obviously the a glance part like a network
networking is obviously the ah ah neutron part so lets get started with the ah creation
of the ah key keys ah user keys it will be required for the ah launching of the instance
ah so first lets ah create the key pair so it should be start with the you just go click
the input key pair and here is the command for ah crating a key pair so just copy it
and go there and ya lets copy it and make some ya like this is the name of the key you
should remember this key in order to access your ah ah instance ah ya ya test two so just
double click it so key is already created so we want to access the key already the key
should be created here after we create a key so lets go create the key first lets access
the key so this is the ah generated key actually this is the rsa generated key so copy it copy
the key and ah go there gives some name this will be the name of your key pair ok so lets
give it test test two and ah place your the generated rsa key here so after that import
the key so so we can see that the key is already generated so through this key this actually
this key is generated using your keystone like this is the authentication part in authorizing
part so this key is doing the authentication and authorization part of the ah cloud so
ah lets go to ok go to instance and lets launch an instance so lets give the name of the instance
like test two so this is the name of the instance you should give the name of the instance anything
you like and after that go to next and select ga image this is the curros image this is
the only image i have right now ah next ah next time ah in ah others ah in the sometime
we will be discussing about the how to create the a image and all so lets ah lets launch
this instance first so you if it added then go to next and you just select ah one of name so you should be some you should select it
carefully so so you wont be able you so that you your instinctively happens ah you will
run smoothly as well as it wont consume the name of your ah server also so for this curros
ah this i will select this tiny and after that next and what is network this is already
i have created this network already so lets select this one and go to the network port
and this security pair security group its already default and after that ah security
pair so this is the security key that we have generated just now so so now we can launch the instance so lets
see it is scheduling it is installing it will
take some time ok it is active now it is ah it is already launched so lets say if we can
access this lets see if we can access this ah instance the instance is here so lets say
if we can ping this instance ah the ip of the instance is this ah ten dot three dot
thirty six three dot six so lets see if we can ping
so i think it wont be able to ping i will explain you later so lets exit it and lets
set some rules and all so first ah we havent connect this ah ah this
instance to any ah external ip so if we dont connect it to external ip then we wont be
able to access the other other outside environment you wont be able to access it so ah lets ah
create lets see the network topology first so ah we can see that this is our instance
so test two is a instance and this is our ah ah this is our network so and this is the
public so until we connect this ah instance to the public we the outside environment or
the ah the inner environment whenwe inter communicate with each other so what we need to do is first we need to
create a router so lets create a router create a router ok lets give some name like router
one router one so so it is created router and we can see that from network topology
the router is already created it is created here so all we need to do is connect this
ah public offset public port to the router and then connect this router to the this ah
network so lets do it so go to the router and to go to the interface
and at interface select your network this is dc this is a network network so submitted
and your ah your network is connected to the router so right now what we need to do is
ah is connect the outside world to the router ok lets do it already done so lets see the
network topology so so we can see that the router is connected
to the inner world and the outer world so right now this outer world should be able
to ping to the inner world or should be able to connect with the inner world so lets check
if it is connecting or not ok again its not again its not connecting also so why it is
it so lets check it because we havent set any security rule so lets do it so for setting
up the security rule go to the access and security and go to the security group and
minus the rule so so we can see that there is an any role that is related to pinging
for pinging the rules would be icmp right so lets add the rule from here select the
icmp and edit so or our rule is added so we can we lets see it whether it is accessible
from the outside world again it is not so why because we havent set any floating ip
that means our instance is not connected to the to the outside world unless you know we
have to set the ah floating ip so lets edit go to instance
ok go there associate floating ip and ok let generate one a new one ok it is generated
and associated ok so we can see that there is another ip this
is the floating ip of your instance so through this floating ip outside world should be able
to access this instance so lets see it if is actually accessible or not lets copy the
floating ip ok so lets ping it right so we can see that we can able to ping it it means
we are able to access these instance from the outside world it is a good thing so ah
lets go here and this is accessible and we can check if it is ah lets ah set another
rule lets add another rule like lets see if it is so we are not able to ssh the instance so
for this we also need to get another ah rule so lets add it from here select the ssh rule
and edit so we should be able to access it changed ok ok resolved it ah copy ok now we can access the so yes so right now
password what the key is so here we are able to access this from the outside world also
we are able to access it from the outside world also so this is how we generated and
how we create the instance so right now lets ah go to the a neutron part lets go a bit
deeper to the neutron part ok so so lets delay these instance for a time being so that it
wont consume much name of the ah hosting server right ok ah lets launch ok dc ok ok lets launch
two instance ok flavor tiny see if you remove this we dont need it now so this launches instance and lets create
another network so i will show you how to create a network here so for creating a network
just click the create network and after that give a name like marvels yeah marvels and
go to next yeah you should click this ah create sub net part and go to next and give a sub
net name like marvel sub and after that you should give a network address ten dot zero
dot like ok four dot zero slash ah ten for you should give the ah this subnet in the
form of ah cider notation so lets go next and you should click this dhcp and after that
create it should be created hence in a while ok its gone a take a while ok so we have a marvel and we have the dc so
lets connect this network so lets connect the ah ah instances that is created inside
this marvel part and the dc part so ah lets creates another instances it is taking a bit
longer than expected ok lets access this from here so so instance lets refresh it it should
not take this long its taking here also same here ok its coming so we have generated two
instances one is the lantern one and then another is a lantern two so lets launch another two instances lets
call it guardians ok so lets select the same and lets go to the next and select the your
flavors selected next and select the marvel next next next so we dont need this key right
now so just launch it its gone a take a while so ya this is guardians and this ah instances
under your marvel ah network and this lanterns is under the dc network so it is creating
so lets wait for a while ok ok it is created so lets go to the network topology and check
it if a check the network topology here so it is loading lets wait for a while ya we
can see that this is your lanterns and this is your marvels these are not connected so
that means we wont be able to access this ah pc this guardians from this lanterns because
they are not connected ok so lets check if it is ah you know ah accessible
or not ok lets go from here and lets go to the lantern ok ok like go to the console go
to the console ok here ok for the cirros this is the password just so it is ok sorry ok
login as cirros and password is a cup swin so we are under this cirros so it is the lantern
two so lets check if it is you know we can access the guardians from the lantern lets check the guardians ok what is the ip
of the guardians lets check it so ip of the guardian is this so lets copy it and lets
check if it is accessible or not ok lets go here and ping ten dot zero dot four dot three
so it is not accessible so we should set you know we should connect the two networks so
lets do it lets do it so go to the network go to the router so router is already created
so go to the router and add interface at the marvels here so here so here we can see that
from a network topology this two worlds are already connected so right now the two should
be able to connect to each other so lets check if it is able to connect it or not so right
now we can see that the two networks are able to connect so this how you set your ah neutron
is how you set up your network and this is all so lets end here ah this session
so so these are the references and thank you

Daniel Ostrander

Related Posts

4 thoughts on “CLOUD COMPUTING- PRACTICAL

  1. lokesh loki says:

    Can you re-upload because we cant understand the what is saying . men's pronunciations not understand. we want again audio

  2. NAVEEN KUMAR says:

    This is the worst lecture of this course, I think this lecture must be reshoot.

  3. selva says:

    All this lectures …This is the funniest One

Leave a Reply

Your email address will not be published. Required fields are marked *