You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Mike Tutkowski <mi...@solidfire.com> on 2013/02/20 23:26:53 UTC

Where to supply CHAP info when using iSCSI in CloudStack

Hi everyone,

I have been able to successfully set up iSCSI Primary Storage in CloudStack
for a XenServer cluster that does not use CHAP info to access the volume
(LUN).  I am now trying to do the same with a volume that does require CHAP
info.

I don't see anywhere in the GUI to provide this.  Is this supported in the
GUI and API (in CloudStack in general)?

The url field I provide to the createStoragePool API command is the
following:

iscsi://10.5.1.50/iqn.2010-01.com.solidfire:e1cx.csvolume1.24/0


Not sure if I would add on to this path to supply CHAP info?


Thanks!

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: Where to supply CHAP info when using iSCSI in CloudStack

Posted by Mike Tutkowski <mi...@solidfire.com>.
Edison - How does CHAP play into your 4.2 plug-in architecture?  All of our
volumes require CHAP credentials.  In its current form, will that be
supported in the 4.2 plug-in logic?

Thanks, guys!


On Thu, Feb 21, 2013 at 12:58 PM, Chip Childers
<ch...@sungard.com>wrote:

> On Thu, Feb 21, 2013 at 11:56:34AM -0800, Edison Su wrote:
> > CHAP is not supported in current code.
>
> Sounds like a feature to propose and build Mike!
>
> -chip
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: instances from template not coming up with networking (eth0) on rhel5/6

Posted by Marcus Sorensen <sh...@gmail.com>.
You can also just delete the
/lib/udev/rules.d/75-persistent-net-generator.rules from the template.
That creates the /etc/udev/rules.d one. So with both of those gone,
you'll get an eth0 even when your mac changes.


On Fri, Mar 1, 2013 at 11:15 AM, Patrick Miller
<pa...@sungard.com> wrote:
> the default build adds the mac address to a couple places.
>
> Here is a script I wrote to deal with it,   Run before creating the template
>
> #!/bin/bash
> ed /etc/udev/rules.d/70-persistent-net.rules <<__EOF__
> /eth0
> d
> w
> q
> __EOF__
>
> for i in /etc/sysconfig/network-scripts/ifcfg-eth*
> do
> ed ${i} <<_EOF_
> /HWADDR
> d
> w
> q
> _EOF_
> done
>
>
>
> Patrick
>
>
> On Wed, Feb 27, 2013 at 12:51 AM, Prasanna Santhanam <ts...@apache.org> wrote:
>> On Tue, Feb 26, 2013 at 09:52:25PM +0530, Jason Pavao wrote:
>>> Hey Folks,
>>> Are there any wiki or documentation on what needs to be done to a
>>> rhel5/6 instances before it can become a template? The symptoms i'm
>>> experiencing right now are- when a instance gets created from template,
>>> the vm comes up, but without eth0. I need to manually configure the host
>>> via console and perform a reboot in order for the new instance to come
>>> up with networking. Any advice would be very appreciated!
>>>
>>
>> (moved discussion to -users)
>>
>> No specific wiki AFAIK,
>>
>> You could start from the ISO, create your instance and make a template
>> of it. How did you go about creating the template? What is the
>> BOOTPROTO in /etc/sysconfig/network-scripts/ifcfg-eth0? Can you turn
>> off network-manager control for the ip and try again?
>>
>> Also note RHEL6(.3?) has the ifcfg-em1/em2 convention.
>>
>> --
>> Prasanna.,
>>

Re: instances from template not coming up with networking (eth0) on rhel5/6

Posted by Jason Pavao <ja...@oracle.com>.
Thanks I'll add this and see if it helps!

Since I work templates a bunch, I'm interested in helping with 
documentation on the guest side/collect handy scripts, etc. Let me know 
the best way to get my feet wet.

Happy Friday!
-jason

On 3/1/2013 10:15 AM, Patrick Miller wrote:
> the default build adds the mac address to a couple places.
>
> Here is a script I wrote to deal with it,   Run before creating the template
>
> #!/bin/bash
> ed /etc/udev/rules.d/70-persistent-net.rules<<__EOF__
> /eth0
> d
> w
> q
> __EOF__
>
> for i in /etc/sysconfig/network-scripts/ifcfg-eth*
> do
> ed ${i}<<_EOF_
> /HWADDR
> d
> w
> q
> _EOF_
> done
>
>
>
> Patrick
>
>
> On Wed, Feb 27, 2013 at 12:51 AM, Prasanna Santhanam<ts...@apache.org>  wrote:
>> On Tue, Feb 26, 2013 at 09:52:25PM +0530, Jason Pavao wrote:
>>> Hey Folks,
>>> Are there any wiki or documentation on what needs to be done to a
>>> rhel5/6 instances before it can become a template? The symptoms i'm
>>> experiencing right now are- when a instance gets created from template,
>>> the vm comes up, but without eth0. I need to manually configure the host
>>> via console and perform a reboot in order for the new instance to come
>>> up with networking. Any advice would be very appreciated!
>>>
>> (moved discussion to -users)
>>
>> No specific wiki AFAIK,
>>
>> You could start from the ISO, create your instance and make a template
>> of it. How did you go about creating the template? What is the
>> BOOTPROTO in /etc/sysconfig/network-scripts/ifcfg-eth0? Can you turn
>> off network-manager control for the ip and try again?
>>
>> Also note RHEL6(.3?) has the ifcfg-em1/em2 convention.
>>
>> --
>> Prasanna.,
>>

-- 
Thanks.
-Jason


Re: instances from template not coming up with networking (eth0) on rhel5/6

Posted by Marcus Sorensen <sh...@gmail.com>.
You can also just delete the
/lib/udev/rules.d/75-persistent-net-generator.rules from the template.
That creates the /etc/udev/rules.d one. So with both of those gone,
you'll get an eth0 even when your mac changes.


On Fri, Mar 1, 2013 at 11:15 AM, Patrick Miller
<pa...@sungard.com> wrote:
> the default build adds the mac address to a couple places.
>
> Here is a script I wrote to deal with it,   Run before creating the template
>
> #!/bin/bash
> ed /etc/udev/rules.d/70-persistent-net.rules <<__EOF__
> /eth0
> d
> w
> q
> __EOF__
>
> for i in /etc/sysconfig/network-scripts/ifcfg-eth*
> do
> ed ${i} <<_EOF_
> /HWADDR
> d
> w
> q
> _EOF_
> done
>
>
>
> Patrick
>
>
> On Wed, Feb 27, 2013 at 12:51 AM, Prasanna Santhanam <ts...@apache.org> wrote:
>> On Tue, Feb 26, 2013 at 09:52:25PM +0530, Jason Pavao wrote:
>>> Hey Folks,
>>> Are there any wiki or documentation on what needs to be done to a
>>> rhel5/6 instances before it can become a template? The symptoms i'm
>>> experiencing right now are- when a instance gets created from template,
>>> the vm comes up, but without eth0. I need to manually configure the host
>>> via console and perform a reboot in order for the new instance to come
>>> up with networking. Any advice would be very appreciated!
>>>
>>
>> (moved discussion to -users)
>>
>> No specific wiki AFAIK,
>>
>> You could start from the ISO, create your instance and make a template
>> of it. How did you go about creating the template? What is the
>> BOOTPROTO in /etc/sysconfig/network-scripts/ifcfg-eth0? Can you turn
>> off network-manager control for the ip and try again?
>>
>> Also note RHEL6(.3?) has the ifcfg-em1/em2 convention.
>>
>> --
>> Prasanna.,
>>

Re: instances from template not coming up with networking (eth0) on rhel5/6

Posted by Patrick Miller <pa...@sungard.com>.
the default build adds the mac address to a couple places.

Here is a script I wrote to deal with it,   Run before creating the template

#!/bin/bash
ed /etc/udev/rules.d/70-persistent-net.rules <<__EOF__
/eth0
d
w
q
__EOF__

for i in /etc/sysconfig/network-scripts/ifcfg-eth*
do
ed ${i} <<_EOF_
/HWADDR
d
w
q
_EOF_
done



Patrick


On Wed, Feb 27, 2013 at 12:51 AM, Prasanna Santhanam <ts...@apache.org> wrote:
> On Tue, Feb 26, 2013 at 09:52:25PM +0530, Jason Pavao wrote:
>> Hey Folks,
>> Are there any wiki or documentation on what needs to be done to a
>> rhel5/6 instances before it can become a template? The symptoms i'm
>> experiencing right now are- when a instance gets created from template,
>> the vm comes up, but without eth0. I need to manually configure the host
>> via console and perform a reboot in order for the new instance to come
>> up with networking. Any advice would be very appreciated!
>>
>
> (moved discussion to -users)
>
> No specific wiki AFAIK,
>
> You could start from the ISO, create your instance and make a template
> of it. How did you go about creating the template? What is the
> BOOTPROTO in /etc/sysconfig/network-scripts/ifcfg-eth0? Can you turn
> off network-manager control for the ip and try again?
>
> Also note RHEL6(.3?) has the ifcfg-em1/em2 convention.
>
> --
> Prasanna.,
>

Re: instances from template not coming up with networking (eth0) on rhel5/6

Posted by Patrick Miller <pa...@sungard.com>.
the default build adds the mac address to a couple places.

Here is a script I wrote to deal with it,   Run before creating the template

#!/bin/bash
ed /etc/udev/rules.d/70-persistent-net.rules <<__EOF__
/eth0
d
w
q
__EOF__

for i in /etc/sysconfig/network-scripts/ifcfg-eth*
do
ed ${i} <<_EOF_
/HWADDR
d
w
q
_EOF_
done



Patrick


On Wed, Feb 27, 2013 at 12:51 AM, Prasanna Santhanam <ts...@apache.org> wrote:
> On Tue, Feb 26, 2013 at 09:52:25PM +0530, Jason Pavao wrote:
>> Hey Folks,
>> Are there any wiki or documentation on what needs to be done to a
>> rhel5/6 instances before it can become a template? The symptoms i'm
>> experiencing right now are- when a instance gets created from template,
>> the vm comes up, but without eth0. I need to manually configure the host
>> via console and perform a reboot in order for the new instance to come
>> up with networking. Any advice would be very appreciated!
>>
>
> (moved discussion to -users)
>
> No specific wiki AFAIK,
>
> You could start from the ISO, create your instance and make a template
> of it. How did you go about creating the template? What is the
> BOOTPROTO in /etc/sysconfig/network-scripts/ifcfg-eth0? Can you turn
> off network-manager control for the ip and try again?
>
> Also note RHEL6(.3?) has the ifcfg-em1/em2 convention.
>
> --
> Prasanna.,
>

Re: instances from template not coming up with networking (eth0) on rhel5/6

Posted by Prasanna Santhanam <ts...@apache.org>.
On Tue, Feb 26, 2013 at 09:52:25PM +0530, Jason Pavao wrote:
> Hey Folks,
> Are there any wiki or documentation on what needs to be done to a 
> rhel5/6 instances before it can become a template? The symptoms i'm 
> experiencing right now are- when a instance gets created from template, 
> the vm comes up, but without eth0. I need to manually configure the host 
> via console and perform a reboot in order for the new instance to come 
> up with networking. Any advice would be very appreciated!
> 

(moved discussion to -users)

No specific wiki AFAIK,

You could start from the ISO, create your instance and make a template
of it. How did you go about creating the template? What is the
BOOTPROTO in /etc/sysconfig/network-scripts/ifcfg-eth0? Can you turn
off network-manager control for the ip and try again?

Also note RHEL6(.3?) has the ifcfg-em1/em2 convention.

-- 
Prasanna.,

Re: instances from template not coming up with networking (eth0) on rhel5/6

Posted by Prasanna Santhanam <ts...@apache.org>.
On Tue, Feb 26, 2013 at 09:52:25PM +0530, Jason Pavao wrote:
> Hey Folks,
> Are there any wiki or documentation on what needs to be done to a 
> rhel5/6 instances before it can become a template? The symptoms i'm 
> experiencing right now are- when a instance gets created from template, 
> the vm comes up, but without eth0. I need to manually configure the host 
> via console and perform a reboot in order for the new instance to come 
> up with networking. Any advice would be very appreciated!
> 

(moved discussion to -users)

No specific wiki AFAIK,

You could start from the ISO, create your instance and make a template
of it. How did you go about creating the template? What is the
BOOTPROTO in /etc/sysconfig/network-scripts/ifcfg-eth0? Can you turn
off network-manager control for the ip and try again?

Also note RHEL6(.3?) has the ifcfg-em1/em2 convention.

-- 
Prasanna.,

instances from template not coming up with networking (eth0) on rhel5/6

Posted by Jason Pavao <ja...@oracle.com>.
Hey Folks,
Are there any wiki or documentation on what needs to be done to a 
rhel5/6 instances before it can become a template? The symptoms i'm 
experiencing right now are- when a instance gets created from template, 
the vm comes up, but without eth0. I need to manually configure the host 
via console and perform a reboot in order for the new instance to come 
up with networking. Any advice would be very appreciated!

-- 
Thanks.
-Jason


Re: Where to supply CHAP info when using iSCSI in CloudStack

Posted by Chip Childers <ch...@sungard.com>.
On Thu, Feb 21, 2013 at 11:56:34AM -0800, Edison Su wrote:
> CHAP is not supported in current code.

Sounds like a feature to propose and build Mike!

-chip

RE: Where to supply CHAP info when using iSCSI in CloudStack

Posted by Edison Su <Ed...@citrix.com>.
CHAP is not supported in current code.

> -----Original Message-----
> From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com]
> Sent: Thursday, February 21, 2013 11:15 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: Where to supply CHAP info when using iSCSI in CloudStack
> 
> From this mail archive URL, it appears CHAP cannot be used from the GUI:
> 
> http://mail-archives.apache.org/mod_mbox/incubator-cloudstack-
> dev/201206.mbox/%3CCAAvCx3hhB+p6tNq1tAAQ_ej3d7e913Ss1maBwzYH=
> tFLYqFzoA@mail.gmail.com%3E
> 
> I wonder if anyone knows if CHAP can be used from the CloudStack API and
> the GUI just doesn't support it?
> 
> Thanks!
> 
> 
> On Wed, Feb 20, 2013 at 3:26 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
> 
> > Hi everyone,
> >
> > I have been able to successfully set up iSCSI Primary Storage in
> > CloudStack for a XenServer cluster that does not use CHAP info to
> > access the volume (LUN).  I am now trying to do the same with a volume
> > that does require CHAP info.
> >
> > I don't see anywhere in the GUI to provide this.  Is this supported in
> > the GUI and API (in CloudStack in general)?
> >
> > The url field I provide to the createStoragePool API command is the
> > following:
> >
> > iscsi://10.5.1.50/iqn.2010-01.com.solidfire:e1cx.csvolume1.24/0
> >
> >
> > Not sure if I would add on to this path to supply CHAP info?
> >
> >
> > Thanks!
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *(tm)*
> >
> 
> 
> 
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *(tm)*

Re: Where to supply CHAP info when using iSCSI in CloudStack

Posted by Mike Tutkowski <mi...@solidfire.com>.
>From this mail archive URL, it appears CHAP cannot be used from the GUI:

http://mail-archives.apache.org/mod_mbox/incubator-cloudstack-dev/201206.mbox/%3CCAAvCx3hhB+p6tNq1tAAQ_ej3d7e913Ss1maBwzYH=tFLYqFzoA@mail.gmail.com%3E

I wonder if anyone knows if CHAP can be used from the CloudStack API and
the GUI just doesn't support it?

Thanks!


On Wed, Feb 20, 2013 at 3:26 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Hi everyone,
>
> I have been able to successfully set up iSCSI Primary Storage in
> CloudStack for a XenServer cluster that does not use CHAP info to access
> the volume (LUN).  I am now trying to do the same with a volume that does
> require CHAP info.
>
> I don't see anywhere in the GUI to provide this.  Is this supported in the
> GUI and API (in CloudStack in general)?
>
> The url field I provide to the createStoragePool API command is the
> following:
>
> iscsi://10.5.1.50/iqn.2010-01.com.solidfire:e1cx.csvolume1.24/0
>
>
> Not sure if I would add on to this path to supply CHAP info?
>
>
> Thanks!
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*