[Openstack] Use of CUSTOM Traits

Chris Dent cdent+os at anticdent.org
Tue Oct 10 14:01:36 UTC 2017


On Tue, 10 Oct 2017, Ramu, MohanX wrote:

> Please let me know, what is the main purpose of Custom Traits, can we use for assigning some value to traits. If yes, how?

You can't assign a value to a trait. The trait is the value. You're
assigning the trait to a resource provider. If it is a custom trait,
you may need to create it first.

You can think of traits like a tag: it describes a qualitative
aspect of the resource provider it is associated with. So while a
disk can have 2000 GB, it either is or is not an SSD.

If you haven't had a chance to read
http://specs.openstack.org/openstack/nova-specs/specs/pike/implemented/resource-provider-traits.html
that may be of some help.

Also: https://developer.openstack.org/api-ref/placement/#traits

So, with custom traits, the idea is that there is some qualitative
"trait" that is specific ("custom") to your environment. One of the
ways this been discussed as being useful is associating a NIC to a
physical network: CUSTOM_PHYSNET1

For more on that see this spec that is under consideration:

     https://review.openstack.org/#/c/510244/

it plans to make extensive use of custom traits.

-- 
Chris Dent                      (⊙_⊙')         https://anticdent.org/
freenode: cdent                                         tw: @anticdent


More information about the Openstack mailing list