[OSC] Openstack share network subnet create check should format output

Bug #1989818 reported by Carlos Eduardo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-manilaclient
Fix Released
Low
Unassigned

Bug Description

Description
===========
The recently implemented share network subnet create check command works properly, but there is an issue while displaying information to the users. The command displays a dictionary [1], and that is different from the pattern we use in other commands.

Steps to reproduce
==================

* Create a share on a DHSS=True backend
* Request the creation of a share network subnet using the --check-only flag
* Check the output

Expected result
===============
The result would not be displayed as a dict and there would be formatting similar to share export locations [2].

Actual result
=============
The OSC displays a dictionary

Environment
===========
1. Devstack with manila on the master branch and most recent version of python-manilaclient (master branch/zed)

2. Two Dummy backends with DHSS=True on the cloud

[1] https://paste.opendev.org/show/bwjOLAxMtMwx4LcTk00A/
[2] https://paste.opendev.org/show/bc8shsFsxm14VIcdhxwI/

Changed in python-manilaclient:
importance: Undecided → Low
assignee: nobody → Carlos Eduardo (silvacarlose)
Revision history for this message
Clifford Emeka (emclidon) wrote :

Hello, I will like to tackle this bug if no one is currently working on it.

Revision history for this message
Carlos Eduardo (silvacarlose) wrote :

Hello, Clifford! The bug currently does not have anyone working on it, so feel free to assign it to yourself :)

Revision history for this message
Clifford Emeka (emclidon) wrote :

thanks Carlos am working on it right now thank you

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-manilaclient (master)
Changed in python-manilaclient:
status: New → In Progress
tags: added: low-hanging-fruit
Changed in python-manilaclient:
milestone: none → bobcat-1
assignee: Carlos Eduardo (silvacarlose) → nobody
assignee: nobody → Clifford Emeka (emclidon)
Changed in python-manilaclient:
milestone: bobcat-1 → none
assignee: Clifford Emeka (emclidon) → nobody
status: In Progress → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-manilaclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-manilaclient/+/859432
Committed: https://opendev.org/openstack/python-manilaclient/commit/799278e644ce3b9578f85ecae546772e4a928cec
Submitter: "Zuul (22348)"
Branch: master

commit 799278e644ce3b9578f85ecae546772e4a928cec
Author: Clifford Emeka <email address hidden>
Date: Tue Sep 27 13:22:53 2022 +0100

    [OSC] Fix output format for osc share subnet create

    The format of the osc share network subnet create command
    output has been updated to return a list of hosts instead
    of a dictionary, as we do for other commands in the client.
    With this change, we are enhancing the consistency of the
    client and the readability of the output.

    Closes-bug: #1989818

    Change-Id: I05413e9e8b846d725d8fe021daf5d320857aac2f

Changed in python-manilaclient:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-manilaclient (stable/2024.1)

Fix proposed to branch: stable/2024.1
Review: https://review.opendev.org/c/openstack/python-manilaclient/+/911613

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

This issue was fixed in the openstack/python-manilaclient 4.9.0 release.

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.