[Bug 1896943] [NEW] openstackclient cli is defaulting to v2

jayaditya gupta 1896943 at bugs.launchpad.net
Thu Sep 24 12:11:26 UTC 2020


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
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/1896943

Title:
  openstackclient cli is defaulting to v2

Status in python-openstackclient package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1896943/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list