command "network set" has hint about vlan transparent, but neutron doesn't support modifying it

Bug #1691776 reported by Hong Hui Xiao on 2017-05-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
Hong Hui Xiao

Bug Description

openstack network set
usage: openstack network set [-h] [--name <name>] [--enable | --disable]
                             [--share | --no-share]
                             [--description <description]
                             [--enable-port-security | --disable-port-security]
                             [--external | --internal]
                             [--default | --no-default]
                             [--qos-policy <qos-policy> | --no-qos-policy]
                             [--provider-network-type <provider-network-type>]
                             [--provider-physical-network <provider-physical-network>]
                             [--provider-segment <provider-segment>]
                             [--transparent-vlan | --no-transparent-vlan]
                             <network>
openstack network set: error: too few arguments

However, when update network vlan transparent, client will get
HttpException: HttpException: Bad Request (HTTP 400) (Request-ID: req-4e278d75-3831-419e-a0fb-af66b67a3ada), Cannot update read-only attribute vlan_transparent

It is because neutron extension doesn't allow put the attribute.

https://github.com/openstack/neutron/blob/7f5a9ae22c35359e5c89750a050d0a8937b3e051/neutron/extensions/vlantransparent.py#L36

Hong Hui Xiao (xiaohhui) on 2017-05-18
Changed in python-openstackclient:
assignee: nobody → Hong Hui Xiao (xiaohhui)
Hong Hui Xiao (xiaohhui) on 2017-05-18
summary: - command "network set" has hit about vlan transparent, but neutron
+ command "network set" has hint about vlan transparent, but neutron
doesn't support modifying it

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

Changed in python-openstackclient:
status: New → In Progress

Reviewed: https://review.openstack.org/466002
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=2b66c71a7c2798dc1f9149574d54062b9086a01a
Submitter: Jenkins
Branch: master

commit 2b66c71a7c2798dc1f9149574d54062b9086a01a
Author: Hong Hui Xiao <email address hidden>
Date: Thu May 18 22:53:29 2017 +0800

    Don't show hint about vlan transparent in network set

    Update this attribute is not allowed in neutron.

    Change-Id: I38010b26e116246c13dbb6cc6a777d2f22f6dc30
    Closes-Bug: #1691776

Changed in python-openstackclient:
status: In Progress → Fix Released

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

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

Other bug subscribers