Re: [Openstack-operators] Analogs of EC2 dedicated instances & dedicated hosts?

2016-12-19 Thread Blair Bethwaite
Hi Conrad,

On 20 December 2016 at 09:24, Kimball, Conrad  wrote:
> · Dedicated instances:  an OpenStack tenant can deploy VM instances
> that are guaranteed to not share a compute host with any other tenant (for
> example, as the tenant I want physical segregation of my compute).

You can certainly do this, however you will need to configure either
scheduler and/or host aggregates on a per case/tenant basis for
projects that have this isolation requirement - depending on how
dynamic this is in your environment you may want to automate that. In
any case, the AggregateMultiTenancyIsolation scheduler filter is what
you want I think. Alternatively, if the requirement can be met using
VM images then the IsolatedHostsFilter may also be an option (e.g. the
VM image is kept private and only tenant/s allowed to use that image
on that host will have Glance member access to the image).

> · Dedicated hosts: goes beyond dedicated instances, allowing an
> OpenStack tenant to explicitly place only specific VM instances onto the
> same compute host (for example, as the tenant I want to place VMs foo and
> bar onto the same compute host to share a software license that is licensed
> per host).

As Kris said, ServerGroup filters are probably the way to go for this
one, but the IsolatedHostsFilter may also work if the licensing
requirements can be expressed at the Glance image level.

-- 
Cheers,
~Blairo

___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


Re: [Openstack-operators] Analogs of EC2 dedicated instances & dedicated hosts?

2016-12-19 Thread Mohammed Naser

> On Dec 19, 2016, at 5:24 PM, Kimball, Conrad  
> wrote:
> 
> Hi All,
>  
> What mechanisms does OpenStack provide that would enable me to implement 
> behaviors analogous to AWS EC2 dedicated instances and dedicated hosts?
>  
> · Dedicated instances:  an OpenStack tenant can deploy VM instances 
> that are guaranteed to not share a compute host with any other tenant (for 
> example, as the tenant I want physical segregation of my compute).

I don’t think this type of thing exists yet (unless you’re talking bare-metal / 
Ironic).

> · Dedicated hosts: goes beyond dedicated instances, allowing an 
> OpenStack tenant to explicitly place only specific VM instances onto the same 
> compute host (for example, as the tenant I want to place VMs foo and bar onto 
> the same compute host to share a software license that is licensed per host).

http://docs.openstack.org/newton/config-reference/compute/schedulers.html#samehostfilter

>  
> Conrad Kimball
> Associate Technical Fellow
> Chief Architect, Enterprise Cloud Services
> Engineering, Operations & Technology / Information Technology / Core 
> Infrastructure Engineering
> conrad.kimb...@boeing.com 
> P.O. Box 3707, Mail Code 7M-TE
> Seattle, WA  98124-2207
> Bellevue 33-11 bldg, office 3A6-3.9
> Mobile:  425-591-7802
>  
> ___
> OpenStack-operators mailing list
> OpenStack-operators@lists.openstack.org 
> 
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators 
> 
___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


Re: [Openstack-operators] Analogs of EC2 dedicated instances & dedicated hosts?

2016-12-19 Thread Kris G. Lindgren
Not aware of an easy answer for #1, without creating a flavor or image with 
metadata on it and adding specific hosts to a host_aggregate that has the same 
metadata on it.
http://docs.openstack.org/kilo/config-reference/content/section_compute-scheduler.html
 - Look at isolatedhostfilter or the aggregate_instance_extra_specs and the 
config example for specifying a compute host with SSD’s.


#2 just sounds like affinity/anti-affinity rules? Combined with #1.

ServerGroupAffinityFilter
The ServerGroupAffinityFilter ensures that an instance is scheduled on to a 
host from a set of group hosts. To take advantage of this filter, the requester 
must create a server group with anʼ/span>affinityʼ/span>policy, and pass a 
scheduler hint, usingʼ/span>groupʼ/span>as the key and the server group UUID as 
the value. Using theʼ/span>novaʼ/span>command-line tool, use 
theʼ/span>--hintʼ/span>flag. For example:
$ nova server-group-create --policy affinity group-1
$ nova boot --image IMAGE_ID --flavor 1 --hint group=SERVER_GROUP_UUID server-1
ServerGroupAntiAffinityFilter
The ServerGroupAntiAffinityFilter ensures that each instance in a group is on a 
different host. To take advantage of this filter, the requester must create a 
server group with anʼ/span>anti-affinityʼ/span>policy, and pass a scheduler 
hint, usinggroupʼ/span>as the key and the server group UUID as the value. Using 
theʼ/span>novaʼ/span>command-line tool, use theʼ/span>--hintʼ/span>flag. For 
example:
$ nova server-group-create --policy anti-affinity group-1
$ nova boot --image IMAGE_ID --flavor 1 --hint group=SERVER_GROUP_UUID server-1

___
Kris Lindgren
Senior Linux Systems Engineer
GoDaddy

From: "Kimball, Conrad" 
Date: Monday, December 19, 2016 at 3:24 PM
To: "openstack-operators@lists.openstack.org" 

Subject: [Openstack-operators] Analogs of EC2 dedicated instances & dedicated 
hosts?

Hi All,

What mechanisms does OpenStack provide that would enable me to implement 
behaviors analogous to AWS EC2 dedicated instances and dedicated hosts?


· Dedicated instances:  an OpenStack tenant can deploy VM instances 
that are guaranteed to not share a compute host with any other tenant (for 
example, as the tenant I want physical segregation of my compute).


· Dedicated hosts: goes beyond dedicated instances, allowing an 
OpenStack tenant to explicitly place only specific VM instances onto the same 
compute host (for example, as the tenant I want to place VMs foo and bar onto 
the same compute host to share a software license that is licensed per host).

Conrad Kimball
Associate Technical Fellow
Chief Architect, Enterprise Cloud Services
Engineering, Operations & Technology / Information Technology / Core 
Infrastructure Engineering
conrad.kimb...@boeing.com<mailto:conrad.kimb...@boeing.com>
P.O. Box 3707, Mail Code 7M-TE
Seattle, WA  98124-2207
Bellevue 33-11 bldg, office 3A6-3.9
Mobile:  425-591-7802

___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


[Openstack-operators] Analogs of EC2 dedicated instances & dedicated hosts?

2016-12-19 Thread Kimball, Conrad
Hi All,

What mechanisms does OpenStack provide that would enable me to implement 
behaviors analogous to AWS EC2 dedicated instances and dedicated hosts?


* Dedicated instances:  an OpenStack tenant can deploy VM instances 
that are guaranteed to not share a compute host with any other tenant (for 
example, as the tenant I want physical segregation of my compute).


* Dedicated hosts: goes beyond dedicated instances, allowing an 
OpenStack tenant to explicitly place only specific VM instances onto the same 
compute host (for example, as the tenant I want to place VMs foo and bar onto 
the same compute host to share a software license that is licensed per host).

Conrad Kimball
Associate Technical Fellow
Chief Architect, Enterprise Cloud Services
Engineering, Operations & Technology / Information Technology / Core 
Infrastructure Engineering
conrad.kimb...@boeing.com
P.O. Box 3707, Mail Code 7M-TE
Seattle, WA  98124-2207
Bellevue 33-11 bldg, office 3A6-3.9
Mobile:  425-591-7802

___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators