openstackclient cli is defaulting to v2

Bug #1896943 reported by jayaditya gupta
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient (Ubuntu)
New
Undecided
Unassigned

Bug Description

The OpenStack CLI is trying to use nova V2 api version.

openstack server group create TEST --policy soft-anti-affinity
Invalid input for field/attribute 0. Value: soft-anti-affinity. u'soft-anti-affinity' is not one of ['anti-affinity', 'affinity'] (HTTP 400) (Request-ID: req-<id>)
It works when explicitly defining the API microversion

openstack --os-compute-api-version 2.15 server group create TEST --policy soft-anti-affinity
It works when using Nova CLI (no need to define the microversion!).

OpenStack CLI should use V2.1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.