Hi,

Late to thank you for info.

Sorry.

I’m currently deploying such a configuration :


-          2 compute nodes ( RHEL7.2 Physical servers)

-          1 controller node ( RHEL 7.2 Virtual Machine)

-          RedHat Open Stack Platform v7.  ( Kilo, I presume ??)

My first goal is to deploy it by using Packstack way (following this document) :

Red_Hat_Enterprise_Linux_OpenStack_Platform-6-Deploying_OpenStack_Proof_of_Concept_Environments-en-US.pdf

I want to make cinder use NFS shared storage to be able to migrate instances 
between my two compute nodes.

As told page 17 of this document :

If you specify NFS, you must specify a list of NFS exports to mount. For 
example:
ip-address:/export-name
Enter a single or comma seprated list of NFS exports to use
with Cinder [^([\d]{1,3}\.){3}[\d]{1,3}:/.*]:



1)      Do I have to specify a different volume for each instance or one volume 
is enough ?

2)      By doing that , does it mans that LVM is not enabled and that all 
instances will be located on NFS ?

3)      Is possible to deploy by using default Packstack parameters and set 
cinder and nova storages to NFS afterwards ?


Thx for help.

Regards,


J.P.

From: Tzach Shefi [mailto:tsh...@redhat.com]
Sent: jeudi 16 juin 2016 14:39
To: Jean-Pierre Ribeauville <jpribeauvi...@axway.com>
Cc: openstack@lists.openstack.org
Subject: Re: [Openstack] Launching an instance by using NFS shared volume

Hey Jean,
Sorry I'm a bit late,  I'll try to guide/help you in the right direction.
First of all, let your peers know which which version of Openstack you're 
using,  Juno(6) Kilo(7) Liberty(8) Mitaka(9)?

"I just add NFS as backend." -> cool nice job, but by this what do you mean  
NFS backend for what? For Cinder Glance or Nova or for all of them?
You want the instance to live migrate to another compute node right?
For this all you need shared Nova storage (if I recall you can do without but 
it's easier with), no need to use Cinder volume for the instance, unless you 
want to do so.
Check this link for migration stuff, check your version and which hypervisor 
you use, each has it's own settings and special needs.
http://docs.openstack.org/admin-guide/compute-configuring-migrations.html
I didn't get this part  ( i.e. I boot from an .iso image )
You know that the image must be either a liveCD iso which is a bootable OS, or 
a qcow2 image of a preinstalled OS.

From your command I take if you want to boot an instance from an image which 
will create a Cinder volume.
nova boot --image CentOS-7-ISO --block-device 
source=blank,dest=volume,size=10,shutdown=preserve --nic 
net-id=73d765a3-edca-4ac4-822d-1d0f30cc959b --flavor 2 CentOS-7-Bootable-Image

If your Cinder (or Nova in case you don't want/have to use a Cinder volume) is 
configured to use NFS your done.
You don't have to tell Nova boot command to use NFS  it will automatically use 
Cinder (or Nova) backend storage.
Say you have Nova running over NFS, if you nova boot an instance, it's disk 
will be created on Nova's backend which is NFS.
Same for Cinder if the backend is configured for NFS, boot an instance create a 
volume, the volume will be created on the NFS backend.

Hope I helped a bit.
If you have more questions fire away.
Tzach








On Fri, Jun 10, 2016 at 10:38 AM, Jean-Pierre Ribeauville 
<jpribeauvi...@axway.com<mailto:jpribeauvi...@axway.com>> wrote:
Hi,

I just add NFS as backend .

Now, I want to launch an instance so it will be bootable from a nfs shared 
device .( and then ( it’s my hope) may migrate to another compute node)
( i.e. I boot from an .iso image )


I don’t find how , in the following nova boot command, to specify that I want 
that a “nfs” volume will be created to hold this instance  :


nova boot --image CentOS-7-ISO --block-device 
source=blank,dest=volume,size=10,shutdown=preserve --nic 
net-id=73d765a3-edca-4ac4-822d-1d0f30cc959b --flavor 2 CentOS-7-Bootable-Image


Thx for help

Regards,

Jean-Pierre RIBEAUVILLE

+33 1 4717 2049<tel:%2B33%201%204717%202049>

[axway_logo_tagline_87px]


_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : 
openstack@lists.openstack.org<mailto:openstack@lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack



--
Tzach Shefi
Quality Engineer, Redhat OSP
+972-54-4701080<callto:+972-52-4534729>
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to