The "query" part of the scheduler_hints has never been correct. Instead
of sending a nested JSON structure, the Nova API actually expects a
marshalled JSON string which it will then decode.
https://github.com/openstack/nova/blob/master/nova/tests/unit/scheduler/filters/test_json_filters.py#L26-L28