Re: [Openstack] how to use extra_specs??

2012-11-06 Thread Mauch, Viktor (SCC)
Or being more specific,

 

How can a add key/value pairs to a compute node??? 

So I can check the extra_specs data with the key/value paris of the compute
node?

 

Cheers Viktor

 

From: openstack-bounces+mauch=kit@lists.launchpad.net
[mailto:openstack-bounces+mauch=kit@lists.launchpad.net] On Behalf Of
Mauch, Viktor (SCC)
Sent: Tuesday, November 06, 2012 11:37 AM
To: openstack@lists.launchpad.net
Subject: Re: [Openstack] how to use extra_specs??

 

Just one more noob question.

 

Is it normal that If I  set a set key/value pair let's say
{my_special_key:my_special_value} to an existing flavor, that the
scheduler failed to find a host for an instance of this flavor.

 

(I use devstack with folsom stable code)

 

Cheers Viktor

 

 

From: Vinay Bannai [mailto:vban...@gmail.com] 
Sent: Tuesday, November 06, 2012 5:09 AM
To: Mauch, Viktor (SCC)
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] how to use extra_specs??

 

The simplest way would be to create key/value pairs for flavor types
(instance types). 

This information would be associated in a separate table in nova db
(instance_type_extra_specs) and would go along with the instance type. 

 

Once it is in the database, you can use this information to customize all
kinds of things like the nova scheduler, additional data that can be passed
to the instance at the time of the creation. This is the high level
overview. If you search the mailing list archives you will find some
additional discussion about this topic. 

 

Vinay

On Mon, Nov 5, 2012 at 5:57 PM, Mauch, Viktor (SCC) ma...@kit.edu wrote:

Hi guys,

 

can anyone tell me (with an example) how to use the extra_specs variable for
an instance_type??

 

Best Regards

 

Viktor


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp





 

-- 
Vinay Bannai
Email: vban...@gmail.com
Google Voice: 415 938 7576



smime.p7s
Description: S/MIME cryptographic signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] how to use extra_specs??

2012-11-06 Thread Razique Mahroua
You can also use the cli, does the job toonova boot --flavor 1 --image 1f3fbdde-4c8a-4b3b-9cf1-a3b9fd0f1d9e --key_name key1 --hint query='["=", "free_ram_mb", 1024]' vm1
Nuage  Co - Razique Mahrouarazique.mahr...@gmail.com

Le 6 nov. 2012 à 11:46, "Mauch, Viktor (SCC)" ma...@kit.edu a écrit :Or being more specific,How can a add key/value pairs to a compute node???So I can check the extra_specs data with the key/value paris of the compute node?Cheers ViktorFrom:openstack-bounces+mauch=kit@lists.launchpad.net [mailto:openstack-bounces+mauch=kit@lists.launchpad.net]On Behalf OfMauch, Viktor (SCC)Sent:Tuesday, November 06, 2012 11:37 AMTo:openstack@lists.launchpad.netSubject:Re: [Openstack] how to use extra_specs??Just one more noob question.Is it normal that If I set a set key/value pair let’s say {“my_special_key”:”my_special_value”} to an existing flavor, that the scheduler failed to find a host for an instance of this flavor.(I use devstack with folsom stable code)Cheers ViktorFrom:Vinay Bannai [mailto:vban...@gmail.com]Sent:Tuesday, November 06, 2012 5:09 AMTo:Mauch, Viktor (SCC)Cc:openstack@lists.launchpad.netSubject:Re: [Openstack] how to use extra_specs??The simplest way would be to create key/value pairs for flavor types (instance types).This information would be associated in a separate table in nova db (instance_type_extra_specs) and would go along with the instance type.Once it is in the database, you can use this information to customize all kinds of things like the nova scheduler, additional data that can be passed to the instance at the time of the creation. This is the high level overview. If you search the mailing list archives you will find some additional discussion about this topic.VinayOn Mon, Nov 5, 2012 at 5:57 PM, Mauch, Viktor (SCC) ma...@kit.edu wrote:Hi guys,can anyone tell me (with an example) how to use the extra_specs variable for an instance_type??Best RegardsViktor___Mailing list:https://launchpad.net/~openstackPost to   :openstack@lists.launchpad.netUnsubscribe :https://launchpad.net/~openstackMore help  :https://help.launchpad.net/ListHelp--Vinay BannaiEmail:vban...@gmail.comGoogle Voice: 415 938 7576___Mailing list: https://launchpad.net/~openstackPost to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstackMore help : https://help.launchpad.net/ListHelp___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] how to use extra_specs??

2012-11-06 Thread Mauch, Viktor (SCC)
Yes sure,

 

But in this example you use an existing key “free_ram_rmb”?! Ist that right?

 

What I want to do is to create my own key value paris for compute nodes (who
can I do that) and for the extra_specs variable of the flavors

 

Best Regards

 

Viktor

 

From: Razique Mahroua [mailto:razique.mahr...@gmail.com] 
Sent: Tuesday, November 06, 2012 11:49 AM
To: Mauch, Viktor (SCC)
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] how to use extra_specs??

 

You can also use the cli, does the job too

 

nova boot --flavor 1 --image 1f3fbdde-4c8a-4b3b-9cf1-a3b9fd0f1d9e --key_name
key1 --hint query='[=, free_ram_mb, 1024]' vm1

 

Nuage  Co - Razique Mahroua 

razique.mahr...@gmail.com




 

Le 6 nov. 2012 à 11:46, Mauch, Viktor (SCC) ma...@kit.edu a écrit :





Or being more specific,

 

How can a add key/value pairs to a compute node???

So I can check the extra_specs data with the key/value paris of the compute
node?

 

Cheers Viktor

 

From: openstack-bounces+mauch=kit@lists.launchpad.net
[mailto:openstack-bounces+mauch=kit@lists.launchpad.net] On Behalf Of
Mauch, Viktor (SCC)
Sent: Tuesday, November 06, 2012 11:37 AM
To: openstack@lists.launchpad.net
Subject: Re: [Openstack] how to use extra_specs??

 

Just one more noob question.

 

Is it normal that If I  set a set key/value pair let’s say
{“my_special_key”:”my_special_value”} to an existing flavor, that the
scheduler failed to find a host for an instance of this flavor.

 

(I use devstack with folsom stable code)

 

Cheers Viktor

 

 

From: Vinay Bannai [ mailto:vban...@gmail.com mailto:vban...@gmail.com] 
Sent: Tuesday, November 06, 2012 5:09 AM
To: Mauch, Viktor (SCC)
Cc:  mailto:openstack@lists.launchpad.net openstack@lists.launchpad.net
Subject: Re: [Openstack] how to use extra_specs??

 

The simplest way would be to create key/value pairs for flavor types
(instance types). 

This information would be associated in a separate table in nova db
(instance_type_extra_specs) and would go along with the instance type. 

 

Once it is in the database, you can use this information to customize all
kinds of things like the nova scheduler, additional data that can be passed
to the instance at the time of the creation. This is the high level
overview. If you search the mailing list archives you will find some
additional discussion about this topic. 

 

Vinay

On Mon, Nov 5, 2012 at 5:57 PM, Mauch, Viktor (SCC)  mailto:ma...@kit.edu
ma...@kit.edu wrote:

Hi guys,

 

can anyone tell me (with an example) how to use the extra_specs variable for
an instance_type??

 

Best Regards

 

Viktor


___
Mailing list:  https://launchpad.net/~openstack
https://launchpad.net/~openstack
Post to :  mailto:openstack@lists.launchpad.net
openstack@lists.launchpad.net
Unsubscribe :  https://launchpad.net/~openstack
https://launchpad.net/~openstack
More help   :  https://help.launchpad.net/ListHelp
https://help.launchpad.net/ListHelp





 

-- 
Vinay Bannai
Email:  mailto:vban...@gmail.com vban...@gmail.com
Google Voice: 415 938 7576

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

 

image001.jpg

smime.p7s
Description: S/MIME cryptographic signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] how to use extra_specs??

2012-11-06 Thread David Kang


 Victor,

 You raised a very good point.
If you want to use any existing flag, what Razique said is OK.
But if you want to add new key value pairs, I don't think the current 
nova-compute can do that.
Especially if you are using the currnent nova/virt/libvirt as compute driver, 
you cannot.

 In our bare-metal provisioning effort, our compute driver nova/virt/bm defines 
a new flag
called instance_type_extra_specs in /etc/nova/nova.conf.
Any key value pairs can be specified there.
For example, for TileEmpower board we declare the flag as follows:

instance_type_extra_specs=cpu_arch:tilepro64

 Our bare-metal provisioning code is still in review.

 David

- Original Message -
 Yes sure,
 
 
 
 But in this example you use an existing key “free_ram_rmb”?! Ist that
 right?
 
 
 
 What I want to do is to create my own key value paris for compute
 nodes (who can I do that) and for the extra_specs variable of the
 flavors
 
 
 
 Best Regards
 
 
 
 Viktor
 
 
 
 
 
 From: i Mahroua [mailto:razique.mahr...@gmail.com]
 Sent: Tuesday, November 06, 2012 11:49 AM
 To: Mauch, Viktor (SCC)
 Cc: openstack@lists.launchpad.net
 Subject: Re: [Openstack] how to use extra_specs??
 
 
 
 You can also use the cli, does the job too
 
 
 
 
 
 nova boot --flavor 1 --image 1f3fbdde-4c8a-4b3b-9cf1-a3b9fd0f1d9e
 --key_name key1 --hint query='[=, free_ram_mb, 1024]' vm1
 
 
 
 
 
 Nuage  Co - Razique Mahroua
 
 
 razique.mahr...@gmail.com
 
 
 
 
 
 
 
 
 Le 6 nov. 2012 à 11:46, Mauch, Viktor (SCC)  ma...@kit.edu  a
 écrit :
 
 
 
 
 
 
 
 Or being more specific,
 
 
 
 
 
 How can a add key/value pairs to a compute node???
 
 
 So I can check the extra_specs data with the key/value paris of the
 compute node?
 
 
 
 
 
 Cheers Viktor
 
 
 
 
 
 
 
 From: openstack-bounces+mauch=kit@lists.launchpad.net
 [mailto:openstack- bounces+mauch=kit@lists.launchpad.net ] On
 Behalf Of Mauch, Viktor (SCC)
 Sent: Tuesday, November 06, 2012 11:37 AM
 To: openstack@lists.launchpad.net
 Subject: Re: [Openstack] how to use extra_specs??
 
 
 
 
 
 Just one more noob question.
 
 
 
 
 
 Is it normal that If I set a set key/value pair let’s say
 {“my_special_key”:”my_special_value”} to an existing flavor, that the
 scheduler failed to find a host for an instance of this flavor.
 
 
 
 
 
 (I use devstack with folsom stable code)
 
 
 
 
 
 Cheers Viktor
 
 
 
 
 
 
 
 
 From: Vinay Bannai [ mailto:vban...@gmail.com ]
 Sent: Tuesday, November 06, 2012 5:09 AM
 To: Mauch, Viktor (SCC)
 Cc: openstack@lists.launchpad.net
 Subject: Re: [Openstack] how to use extra_specs??
 
 
 
 
 
 The simplest way would be to create key/value pairs for flavor types
 (instance types).
 
 
 
 This information would be associated in a separate table in nova db
 (instance_type_extra_specs) and would go along with the instance type.
 
 
 
 
 
 
 
 Once it is in the database, you can use this information to customize
 all kinds of things like the nova scheduler, additional data that can
 be passed to the instance at the time of the creation. This is the
 high level overview. If you search the mailing list archives you will
 find some additional discussion about this topic.
 
 
 
 
 
 
 Vinay
 
 
 
 On Mon, Nov 5, 2012 at 5:57 PM, Mauch, Viktor (SCC)  ma...@kit.edu 
 wrote:
 
 
 
 Hi guys,
 
 
 
 
 
 can anyone tell me (with an example) how to use the extra_specs
 variable for an instance_type??
 
 
 
 
 
 Best Regards
 
 
 
 
 
 Viktor
 
 
 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help : https://help.launchpad.net/ListHelp
 
 
 
 
 
 
 
 
 
 
 --
 Vinay Bannai
 Email: vban...@gmail.com
 Google Voice: 415 938 7576
 
 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help : https://help.launchpad.net/ListHelp
 
 
 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] how to use extra_specs??

2012-11-06 Thread Dugger, Donald D
The compute code currently defines a set of capabilities (info about disk  
memory consumption, cpuinfo and a few other things) that are periodically 
reported up to the scheduler.  You can then use the extra_specs to specify 
key/value pairs for a flavor that will be used by the scheduler's 
compute_capabilities' filter to make decisions based upon these capabilities.  
Note you can do relational comparisons on these capabilities, look at:


http://docs.openstack.org/developer/nova/devref/filter_scheduler.html

for details.

Currently, you are limited to the capabilities that are hard coded into the 
compute node code.  I'm thinking about, and intend to create a blueprint in the 
not too distant future, adding a plugin into the compute code so that you can 
add support for new capabilities.

--
Don Dugger
Censeo Toto nos in Kansa esse decisse. - D. Gale
Ph: 303/443-3786

From: openstack-bounces+donald.d.dugger=intel@lists.launchpad.net 
[mailto:openstack-bounces+donald.d.dugger=intel@lists.launchpad.net] On 
Behalf Of Mauch, Viktor (SCC)
Sent: Tuesday, November 06, 2012 3:51 AM
To: Razique Mahroua
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] how to use extra_specs??

Yes sure,

But in this example you use an existing key free_ram_rmb?! Ist that right?

What I want to do is to create my own key value paris for compute nodes (who 
can I do that) and for the extra_specs variable of the flavors

Best Regards

Viktor

From: Razique Mahroua [mailto:razique.mahr...@gmail.com]
Sent: Tuesday, November 06, 2012 11:49 AM
To: Mauch, Viktor (SCC)
Cc: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] how to use extra_specs??

You can also use the cli, does the job too

nova boot --flavor 1 --image 1f3fbdde-4c8a-4b3b-9cf1-a3b9fd0f1d9e --key_name 
key1 --hint query='[=, free_ram_mb, 1024]' vm1

Nuage  Co - Razique Mahroua
razique.mahr...@gmail.commailto:razique.mahr...@gmail.com

[cid:image001.jpg@01CDBC0D.64CEE5D0]

Le 6 nov. 2012 à 11:46, Mauch, Viktor (SCC) 
ma...@kit.edumailto:ma...@kit.edu a écrit :

Or being more specific,

How can a add key/value pairs to a compute node???
So I can check the extra_specs data with the key/value paris of the compute 
node?

Cheers Viktor

From: 
openstack-bounces+mauch=kit@lists.launchpad.netmailto:openstack-bounces+mauch=kit@lists.launchpad.net
 
[mailto:openstack-bounces+mauch=kit@lists.launchpad.netmailto:bounces+mauch=kit@lists.launchpad.net]
 On Behalf Of Mauch, Viktor (SCC)
Sent: Tuesday, November 06, 2012 11:37 AM
To: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] how to use extra_specs??

Just one more noob question.

Is it normal that If I  set a set key/value pair let's say 
{my_special_key:my_special_value} to an existing flavor, that the scheduler 
failed to find a host for an instance of this flavor.

(I use devstack with folsom stable code)

Cheers Viktor


From: Vinay Bannai [mailto:vban...@gmail.com]
Sent: Tuesday, November 06, 2012 5:09 AM
To: Mauch, Viktor (SCC)
Cc: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] how to use extra_specs??

The simplest way would be to create key/value pairs for flavor types (instance 
types).
This information would be associated in a separate table in nova db 
(instance_type_extra_specs) and would go along with the instance type.

Once it is in the database, you can use this information to customize all kinds 
of things like the nova scheduler, additional data that can be passed to the 
instance at the time of the creation. This is the high level overview. If you 
search the mailing list archives you will find some additional discussion about 
this topic.

Vinay
On Mon, Nov 5, 2012 at 5:57 PM, Mauch, Viktor (SCC) 
ma...@kit.edumailto:ma...@kit.edu wrote:
Hi guys,

can anyone tell me (with an example) how to use the extra_specs variable for an 
instance_type??

Best Regards

Viktor

___
Mailing list: https://launchpad.net/~openstack
Post to : 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp



--
Vinay Bannai
Email: vban...@gmail.commailto:vban...@gmail.com
Google Voice: 415 938 7576
___
Mailing list: https://launchpad.net/~openstack
Post to : 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

inline: image001.jpg___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] how to use extra_specs??

2012-11-06 Thread Vishvananda Ishaya

On Nov 6, 2012, at 10:03 AM, Dugger, Donald D donald.d.dug...@intel.com 
wrote:

 The compute code currently defines a set of capabilities (info about disk  
 memory consumption, cpuinfo and a few other things) that are periodically 
 reported up to the scheduler.  You can then use the extra_specs to specify 
 key/value pairs for a flavor that will be used by the scheduler’s 
 compute_capabilities’ filter to make decisions based upon these capabilities. 
  Note you can do relational comparisons on these capabilities, look at:
  
 
 http://docs.openstack.org/developer/nova/devref/filter_scheduler.html
  
 for details.
  
 Currently, you are limited to the capabilities that are hard coded into the 
 compute node code.  I’m thinking about, and intend to create a blueprint in 
 the not too distant future, adding a plugin into the compute code so that you 
 can add support for new capabilities.

You should be able to add in capabilities via host aggregates as well if you 
enable this AggregateInstanceExtraSpecs filter. This means you can change them 
at run time.

Vish___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] how to use extra_specs??

2012-11-05 Thread Mauch, Viktor (SCC)
Hi guys,

 

can anyone tell me (with an example) how to use the extra_specs variable for
an instance_type??

 

Best Regards

 

Viktor



smime.p7s
Description: S/MIME cryptographic signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] how to use extra_specs??

2012-11-05 Thread Vinay Bannai
The simplest way would be to create key/value pairs for flavor types
(instance types).
This information would be associated in a separate table in nova db
(instance_type_extra_specs) and would go along with the instance type.

Once it is in the database, you can use this information to customize all
kinds of things like the nova scheduler, additional data that can be passed
to the instance at the time of the creation. This is the high level
overview. If you search the mailing list archives you will find some
additional discussion about this topic.

Vinay

On Mon, Nov 5, 2012 at 5:57 PM, Mauch, Viktor (SCC) ma...@kit.edu wrote:

 Hi guys,

 ** **

 can anyone tell me (with an example) how to use the extra_specs variable
 for an instance_type??

 ** **

 Best Regards

 ** **

 Viktor

 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp




-- 
Vinay Bannai
Email: vban...@gmail.com
Google Voice: 415 938 7576
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp