Skip to content

Add VM inventory CSV export support#397

Open
mihaelabalutoiu wants to merge 3 commits intocloudbase:masterfrom
mihaelabalutoiu:add-vm-inventory-csv-extraction
Open

Add VM inventory CSV export support#397
mihaelabalutoiu wants to merge 3 commits intocloudbase:masterfrom
mihaelabalutoiu:add-vm-inventory-csv-extraction

Conversation

@mihaelabalutoiu
Copy link
Member

This PR includes the following changes:

  • Adds a PROVIDER_TYPE_ENDPOINT_INVENTORY_EXPORT capability type that
    supports exporting VM inventory as CSV;
  • Unit tests


response = webob.Response()
response.status_int = 200
response.content_type = 'text/csv'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this stems from a greater issue, and that is that our wsgi module doesn't support csv type responses: https://github.com/cloudbase/coriolis/blob/master/coriolis/api/wsgi.py#L282

Please look into handling this by adapting the existing wsgi controllers and serializers, instead of manually setting and returning the Response object .

@mihaelabalutoiu mihaelabalutoiu force-pushed the add-vm-inventory-csv-extraction branch from 0750fc9 to e348735 Compare March 26, 2026 14:57
Adds a `PROVIDER_TYPE_ENDPOINT_INVENTORY_EXPORT` capability type that
supports exporting VM inventory as CSV.

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
@mihaelabalutoiu mihaelabalutoiu force-pushed the add-vm-inventory-csv-extraction branch from e348735 to 0cc2991 Compare March 27, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants