Associate subnets with compute resources

Hi,

We have several subnets in our datacenter, and each compute resource is
normally belongs to one subnet.
By consequence the VMs should also belong to the subnet defined by of
compute resource.

How can we manage this case with Foreman?

Regards,
Iakov

> Hi,
>
> We have several subnets in our datacenter, and each compute resource is
> normally belongs to one subnet.
> By consequence the VMs should also belong to the subnet defined by of
> compute resource.
>
> How can we manage this case with Foreman?

Compute resources are not associated with subnets in any way. I think
all you would want in this case is to make sure hosts you create in a
compute resource are in a subnet. What compute resource are you
referring to by the way?

The closest you can get to enforce this is just to define a host group
where you choose the Compute Resource and Subnet and try to create hosts
from that host group, but settings can always be overridden.

··· On 03/18, Iakov Gan wrote: > > Regards, > Iakov > > -- > You received this message because you are subscribed to the Google Groups "foreman-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-dev+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.


Daniel Lobato Garcia

@eLobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

> Hi,
>
> We have several subnets in our datacenter, and each compute resource is
> normally belongs to one subnet.
> By consequence the VMs should also belong to the subnet defined by of
> compute resource.
>
> How can we manage this case with Foreman?
>

locations was designed with that in mind, create a location that has the
compute resource and the relevant subnets in it.

Ohad

··· On Wed, Mar 18, 2015 at 1:12 PM, Iakov Gan wrote:

Regards,
Iakov


You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Ohad,
Hi Daniel,

*@Ohad, *
Thank you for a very promising tip! We use organizations a lot, but
locations are not used so far.

I configured a "staging" foreman v1.8 rc1 to work with locations, assign 2
subnets each to 1 location, and when i am creating the host within a
specific location, foreman still proposes selection from 2 subnets. :frowning:
It would actually solve the issue if Foreman limit subnet to only ones that
are assigned to the choosen location. Is n't it the expected behavior?

@Daniel
Yes, sure. Hostgroup can manage that.
Actually Hostgroups were the answer to many issues for so long, that i
would not like to multiply that by a number of subnets.
Thank you.

Regards,
Iakov

··· 2015-03-19 14:51 GMT+01:00 Ohad Levy :

On Wed, Mar 18, 2015 at 1:12 PM, Iakov Gan iakov.gan@gmail.com wrote:

Hi,

We have several subnets in our datacenter, and each compute resource is
normally belongs to one subnet.
By consequence the VMs should also belong to the subnet defined by of
compute resource.

How can we manage this case with Foreman?

locations was designed with that in mind, create a location that has the
compute resource and the relevant subnets in it.

Ohad

Regards,
Iakov


You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “foreman-dev” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-dev/uZTncqcSejA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

> Hi Ohad,
> Hi Daniel,
>
> *@Ohad, *
> Thank you for a very promising tip! We use organizations a lot, but
> locations are not used so far.
>
> I configured a "staging" foreman v1.8 rc1 to work with locations, assign 2
> subnets each to 1 location, and when i am creating the host within a
> specific location, foreman still proposes selection from 2 subnets. :frowning:
> It would actually solve the issue if Foreman limit subnet to only ones
> that are assigned to the choosen location. Is n't it the expected behavior?
>

not sure i understand, you added both subnets to the location you want?
then surely you will see them all?
also note that if you are an admin, you can restrict the context you are
in (org/loc selector on the top left).

··· On Fri, Mar 20, 2015 at 10:22 PM, Iakov Gan wrote:

@Daniel
Yes, sure. Hostgroup can manage that.
Actually Hostgroups were the answer to many issues for so long, that i
would not like to multiply that by a number of subnets.
Thank you.

Regards,
Iakov

2015-03-19 14:51 GMT+01:00 Ohad Levy ohadlevy@gmail.com:

On Wed, Mar 18, 2015 at 1:12 PM, Iakov Gan iakov.gan@gmail.com wrote:

Hi,

We have several subnets in our datacenter, and each compute resource is
normally belongs to one subnet.
By consequence the VMs should also belong to the subnet defined by of
compute resource.

How can we manage this case with Foreman?

locations was designed with that in mind, create a location that has the
compute resource and the relevant subnets in it.

Ohad

Regards,
Iakov


You received this message because you are subscribed to the Google
Groups “foreman-dev” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “foreman-dev” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-dev/uZTncqcSejA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.