openstack server create should default --nic to 'auto' if --os-compute-api-version>=2.37

Bug #1750395 reported by Matt Riedemann
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-openstackclient
In Progress
Undecided
Matt Riedemann

Bug Description

As of the 2.37 compute API microversion, a 'networks' value is required in the server create request body.

stack@multiattach2:~$ openstack server create --flavor 1 --config-drive True --volume cirros-volume --wait server2
nics are required after microversion 2.36
stack@multiattach2:~$ printenv OS_COMPUTE_API_VERSION
2.60

If the user did not specify a --nic value and the compute API version is >= 2.37, we should just default the --nic arg value to 'auto' since that's the behavior before 2.37 (compute service figures out the network to use for you).

Tags: compute
Matt Riedemann (mriedem)
tags: added: compute
Matt Riedemann (mriedem)
Changed in python-openstackclient:
assignee: nobody → Matt Riedemann (mriedem)
status: New → Confirmed
Matt Riedemann (mriedem)
summary: openstack server create should default --nic to 'auto' if --os-compute-
- api-version>=2.36
+ api-version>=2.37
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/545946

Changed in python-openstackclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.16.2

This issue was fixed in the openstack/python-openstackclient 3.16.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.14.3

This issue was fixed in the openstack/python-openstackclient 3.14.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.18.0

This issue was fixed in the openstack/python-openstackclient 3.18.0 release.

Revision history for this message
Mohamed AlBana (hector2011) wrote :

Dear colleagues,

I have this problem while dealing with the OpenStack Cli. Here I was executing a Hot template and I got the same error but I don't know how can I solve.

Revision history for this message
Mohamed AlBana (hector2011) wrote :

Continue and My template was that.

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.