)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"7a51dd0e246d062eed5782d72a99e8f4738a9d45","unresolved":true,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This probably was the original intention when the microversion was"},{"line_number":15,"context_line":"capped to 2.88, but the version string is wrong as the last version"},{"line_number":16,"context_line":"where these attributes are availble is 2.87."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Closes-Bug: #2075134"},{"line_number":19,"context_line":"Change-Id: Id872b7719b5b0c570001a7fd0530253641bca2d8"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"984aae3d_d45f4483","line":16,"updated":"2024-07-30 11:02:02.000000000","message":"The `_max_microversion` indicates the most recent microversion to affect a given resource that we\u0027re aware of/support. It\u0027s not intended as a mechanism to opt-out of microversions. You should be able to pass a `microversion` argument when listing hypervisor:\n\n```\n\u003e\u003e\u003e import openstack\n\u003e\u003e\u003e conn \u003d openstack.connect()\n\u003e\u003e\u003e list(conn.compute.hypervisors(microversion\u003d\u00272.87\u0027))\n```\n\nIt should also be possible to fetch hypervisors with a microversion, though you\u0027ll need to use the resource layer for this since we don\u0027t allow arbitrary filters through for most `get_xxx` proxy methods currently:\n\n```\n\u003e\u003e\u003e import openstack\n\u003e\u003e\u003e from openstack.compute.v2 import hypervisor\n\u003e\u003e\u003e conn \u003d openstack.connect()\n\u003e\u003e\u003e node_uuid \u003d \u0027f63dcf24-ba17-4621-8bda-1da48223ebbd\u0027\n\u003e\u003e\u003e h \u003d hypervisor.Hypervisor(id\u003dnode_uuid)\n\u003e\u003e\u003e h.fetch(conn.compute, microversion\u003d\u00272.87\u0027)\n```\n\nOf course, the best replacement is to use placement instead of the `os-hypervisors` API, which was deprecated for a good reason, however, we don\u0027t yet have support for the resource provider allocations and resource provider traits APIs so you can only do part of this via SDK today:\n\n```\n\u003e\u003e\u003e import openstack\n\u003e\u003e\u003e conn \u003d openstack.connect()\n\u003e\u003e\u003e node_uuid \u003d \u0027f63dcf24-ba17-4621-8bda-1da48223ebbd\u0027\n\u003e\u003e\u003e list(conn.placement.resource_provider_inventories(node_uuid))\n\u003e\u003e\u003e # list(conn.placement.resource_provider_allocations(node_uuid))\n\u003e\u003e\u003e # list(conn.placement.resource_provider_traits(node_uuid))\n```\n\nThose APIs are coming but it\u0027s a case of finding the time.","commit_id":"9efdcdba9248c0f8c542ec20651a0e8131070d68"}],"/PATCHSET_LEVEL":[{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"7a51dd0e246d062eed5782d72a99e8f4738a9d45","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"c144e547_a5e2e037","updated":"2024-07-30 11:02:02.000000000","message":"I don\u0027t think we should be doing this.","commit_id":"9efdcdba9248c0f8c542ec20651a0e8131070d68"}]}
