'object has no attribute' when run cli command system cluster-show

Bug #1998599 reported by Gabriel de Araújo Cabral
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Gabriel de Araújo Cabral

Bug Description

Brief Description
-----------------
The system cluster-show <UUID or name> command from the cli does not appear to work

Severity
--------
Minor

Steps to Reproduce
------------------
Had been running test on storage tier and backend create but that is not likely relevant
Run the system command to list and show the cluster

Expected Behavior
------------------
system command for cluster show should return proper info

Actual Behavior
----------------
[sysadmin@controller-0 log(keystone_admin)]$ system cluster-show 665d4603-f26d-4841-8d94-aa28ea1f34cb
'str' object has no attribute 'decode'

Reproducibility
---------------
Reproducible

System Configuration
--------------------
Storage

Branch/Pull Time/Commit
-----------------------
"2022-10-31_18-01-08"

Last Pass
---------

Timestamp/Logs
--------------
2022-11-02T22:22:50.000 controller-0 -bash: info HISTORY: PID=3916693 UID=42425 system cluster-show 665d4603-f26d-4841-8d94-aa28ea1f34cb; date
2022-11-02T22:23:02.000 controller-0 -bash: info HISTORY: PID=3916693 UID=42425 system cluster-show ceph_cluster; date

Test Activity
-------------
Regression Testing

Workaround
----------
None

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/config/+/866488

Changed in starlingx:
status: New → In Progress
summary: - After controller-0 shutdown in Stx DX, volumes can't be attached to pod
- for 6 minutes.
+ 'object has no attribute' when run cli command system cluster-show
Changed in starlingx:
assignee: nobody → Gabriel de Araújo Cabral (g-cabral)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/866488
Committed: https://opendev.org/starlingx/config/commit/4a1fe61f6c0b30c7261adf4a74bc6b12d7b86087
Submitter: "Zuul (22348)"
Branch: master

commit 4a1fe61f6c0b30c7261adf4a74bc6b12d7b86087
Author: Gabriel de Araújo Cabral <email address hidden>
Date: Fri Dec 2 11:33:39 2022 -0500

    Fix system cluster-show error updating string encoding

    When it was executed 'system cluster-show <uuid or name>'
    on a storage config, the error message "'str' object has no
    attribute 'decode'" showed. The error was caused because
    in upgrading from python 2 to 3 there were changes in the string
    encoding. In the latest version, there is no possibility to
    'decode' a string, and then it's necessary to remove it to
    ensure correct display of cluster information.

    Test Plan:
    Pass: Storage, cluster-show command return proper info.
    Pass: Standard, cluster-show command return proper info.

    Closes-Bug: 1998599

    Signed-off-by: Gabriel de Araújo Cabral <email address hidden>
    Change-Id: Ia09bb5fc6c1c746a51d0be2093115e29eb5c3faf

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
importance: Medium → Low
tags: added: stx.8.0 stx.storage
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.