[nova] Strict isolation of group of hosts for image

Kamde, Vrushali Vrushali.Kamde at nttdata.com
Wed Jun 26 14:34:04 UTC 2019



Hi,

Working on implementation of 'Support filtering of allocation_candidates by forbidden aggregates' spec. Here we are trying to Test granular resource request.
Facing issue in configuring inventories for 'CUSTOM_RESOURCE_CLASS' and resulting into 'No Valid host found' whereas expecting host from placement.
So kindly help me here how one can set inventory for 'CUSTOM_RESOURCE_CLASS'  because when the inventory is added for the custom resource class
'CUSTOM_RESOURCE_CLASS',  it's getting removed when the compute service periodic task updates the inventory.

FYI, here are the steps followed:


  1.  Data configured at nova:
     *   Create three aggregates 'agg1', 'agg2', 'agg3' by using:
'POST'-- /os-aggregates(Create aggregate)


     *   Setting metadata on aggregates:

                                                               i.      Setting metadata (trait:HW_CPU_X86_SGX) on the aggregate agg1 by using:
'POST'-- /os-aggregates/{aggregate_id}/action(set metadata)

                                                             ii.      Setting metadata (trait:STORAGE_DISK_SSD) on the aggregate agg2 by using:
'POST'-- /os-aggregates/{aggregate_id}/action(set metadata)

                                                           iii.      Setting metadata (trait:CUSTOM_MAGIC, trait:HW_CPU_X86_MMX) on the aggregate agg3 by using:
'POST'-- /os-aggregates/{aggregate_id}/action(set metadata)


     *   Associate aggregates 'agg3' to host say 'RP1' by using:
'POST'-- /os-aggregates/{aggregate_id}/action(Add host)


     *   Setting Extra-specs on Flavor(trait:HW_CPU_X86_MMX, trait1:CUSTOM_MAGIC, resources1:CUSTOM_RESOURCE_CLASS):
'POST'-- /flavors/{flavor_id}/os-extra_specs


  1.  Data configured at placement:
     *   Setting traits (CUSTOM_MAGIC, HW_CPU_X86_MMX) on host 'RP1'.
'PUT'-- /resource_providers/{uuid}/traits


     *   Create a new Resource class 'CUSTOM_RESOURCE_CLASS':
'POST'-- /resource_classes


  1.  Assigned inventories to the new resource class:
openstack resource provider inventory set --resource CUSTOM_RESOURCE_CLASS:total=78 <RP1_uuid>
'PUT'-- /resource_providers/{uuid}/inventories/{resource_class}


  1.  When we boot the instance :
     *   The final url of allocation_candidates which we get is as follows:
              '/allocation_candidates?limit=1000&member_of=%21in%3A442ca580-fd07-433c-9b67-c18fdeccbca1%2C61b8bb02-01e0-4e28-af4c-0ea4c828539a
              &required=HW_CPU_X86_MMX&required1=CUSTOM_MAGIC&resources=DISK_GB%3A1%2CMEMORY_MB%3A512%2CVCPU%3A1&resources1=CUSTOM_RESOURCE_CLASS%3A1'


     *   Observed after the inventory is added for the custom resource class 'CUSTOM_RESOURCE_CLASS', it's getting removed
              when the compute service periodic task updates the inventory. Therefore the instance is not getting booted on 'RP1'.
              The error faced which we get is 'No Valid host found'.

Regards,
Vrushali Kamde.
Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20190626/f5754cf2/attachment-0001.html>


More information about the openstack-discuss mailing list