CCI-MOC / esi

Elastic Secure Infrastructure project
6 stars 12 forks source link

Work out usage of 'resource_class' field in ESI #497

Closed tzumainn closed 6 months ago

tzumainn commented 8 months ago

The resource_class field can be used to distinguish between classes of nodes. We should determine if we can use this in our ESI deployments, and see if the appropriate information is bubbled up in the various ESI CLI commands

tzumainn commented 7 months ago

@larsks I know we talked about resource_class being perhaps not the ideal field to use, but after looking through Ironic documentation it feels like we should use it. The intent of the field is for it to be used essentially as a baremetal flavor; it's used in things like allocations, and it feels like something we might want users to get used to looking at. In addition, the hardware currently in the MOC ESI looks like it falls into one of four categories.

My thought was that maybe it'd make sense to use the resource_class field and document the exact specs in the ESI documentation (similar to what NERC does with the flavors)? We can also update the various ESI list commands - for nodes, offers, and leases - to add both the resource_class value and perhaps the relevant properties like hard drive size and memory and cpus.

tzumainn commented 7 months ago

Okay, after some further consideration, I have some additional thoughts (adding @naved001 and @hakasapl to see what they think).

tzumainn commented 7 months ago

After talking with Lars, it looks like we actually broadly agree: resource_class should be used for broad categorization, but we also want to display and allow users to query for nodes based on exact hardware properties. So what we need to do now is:

tzumainn commented 7 months ago

I think a decision has been made; follow up issues are: