Public bug reported:

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

** Affects: python-openstackclient (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1896943

Title:
  openstackclient cli is defaulting to v2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1896943/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to