Ask Your Question

How does one set a list of tenants for the nova AggregateMultiTenancyIsolation filter?

asked 2014-02-05 05:02:17 -0500

jesse-pretorius gravatar image

updated 2014-02-06 17:19:03 -0500

smaffulli gravatar image

The documentation for the nova AggregateMultiTenancyIsolation filter describes its functionality as:

"Isolates tenants to specific host aggregates. If a host is in an aggregate that has the metadata key filter_tenant_id it only creates instances from that tenant (or list of tenants)."

In my testing I see that it is not possible to set a list of tenants with the command:

 nova aggregate-set-metadata <aggregateid> filter_tenant_id=tenant1uuid filter_tenant_id=tenant2uuid

If I try instead to set each one at a time, it overwrites the existing metadata.

How do I create a list of tenants to be isolated into the aggregate by the filter?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-10-29 14:21:11 -0500

It should be noted that the AggregateMultiTenancyIsolation does support multiple tenant ids in the filter_tenant_id metadata. (See code here). You would specify it by doing:

nova aggregate-set-metadata <aggregateid> filter_tenant_id=tenant1uuid,tenant2uuid

The cli is not smart enough to automatically detect the duplication of settings and combine them into a comma separated list. Make sure not to put any spaces in there or you'll have to wrap the "filter_tenant_id=..." in quotes so it gets parsed correctly.

edit flag offensive delete link more

answered 2014-04-02 05:43:17 -0500

branoz gravatar image

I'm afraid that it's not supported.

Nova client will send only the last value via API call to server. When I modified the client to send a JSON containing two values, server bombed out with HTTP 500.

The workaround is to create two identical aggregates with different value of "filter_tenant_id".

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-02-05 05:02:17 -0500

Seen: 1,938 times

Last updated: Apr 02 '14