Commands executed towards platform apis using remote cli shows python code related errors

Bug #1999563 reported by Luiz Felipe Kina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Luiz Felipe Kina

Bug Description

Brief Description
-----------------
Commands executed towards platform apis using remote cli shows python code related errors

Severity
--------
major

Steps to Reproduce
------------------
1)Get remote cli tarball

2)Setup the remote_cli

3)Now execute the system commands shows the following error
system --ca-file ca.pem host-list

/var/lib/openstack/lib/python3.9/site-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if word_sep is not '':

| id | hostname | personality | administrative | operational | availability |

| 1 | controller-0 | controller | unlocked | enabled | available |
| 2 | controller-1 | controller | unlocked | enabled | available |

It shows some "SyntaxWarning" in the output

/var/lib/openstack/lib/python3.9/site-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="?

It shows with all commands including insecure commands with -k

Expected Behavior
------------------
remote cli command should work fine without any error

Actual Behavior
----------------
python related code message is shown in the output

Reproducibility
---------------
100%

System Configuration
--------------------
AIO-DX

Branch/Pull Time/Commit
-----------------------
2022-12-02_03-00-09

Last Pass
---------
n/a

Timestamp/Logs
--------------
n/a

Test Activity
-------------
Regression testing

Workaround
----------
n/a

Changed in starlingx:
assignee: nobody → Luiz Felipe Kina (leiskeki)
status: New → In Progress
description: updated
Ghada Khalil (gkhalil)
tags: added: stx.clients
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to upstream (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on root (master)

Change abandoned by "Luiz Felipe Kina <email address hidden>" on branch: master
Review: https://review.opendev.org/c/starlingx/root/+/867563

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on root (master)

Change abandoned by "Luiz Felipe Kina <email address hidden>" on branch: master
Review: https://review.opendev.org/c/starlingx/root/+/872551
Reason: Updating the wrong file

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

Reviewed: https://review.opendev.org/c/starlingx/upstream/+/869968
Committed: https://opendev.org/starlingx/upstream/commit/e77cc3c011819757d1a01ea6b8c5953b7c959594
Submitter: "Zuul (22348)"
Branch: master

commit e77cc3c011819757d1a01ea6b8c5953b7c959594
Author: Luiz Felipe Kina <email address hidden>
Date: Thu Jan 12 06:56:04 2023 -0500

    Change version requirement of netaddr

    Netaddr is using version 0.7.19 on remote cli. Because of this
    version, commands being executed towards platform apis are causing a
    syntax warning.
    This fix changes the minimum requirement of netaddr to 0.7.20 to
    address a fix for this warning.

    Test Plan:
    PASS: Build debian iso and perform fresh install.
    PASS Build python3 wheels tarball on Debian and build
    stx-platformclients image on Debian.

    Closes-Bug: 1999563

    Signed-off-by: Luiz Felipe Kina <email address hidden>
    Change-Id: I0c111875f622be9696bf143b321f1a8dfd594c7f

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.9.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (master)

Reviewed: https://review.opendev.org/c/starlingx/root/+/873554
Committed: https://opendev.org/starlingx/root/commit/a6ce379cb5efd5f0d3ddba3a8f87d07b687227cb
Submitter: "Zuul (22348)"
Branch: master

commit a6ce379cb5efd5f0d3ddba3a8f87d07b687227cb
Author: Luiz Felipe Kina <email address hidden>
Date: Mon Feb 13 07:04:03 2023 -0500

    Change version of netaddr

    Netaddr is using version 0.7.19 on remote cli. Because of this
    version, commands being executed towards platform apis are causing a
    syntax warning.
    This fix changes the minimum requirement of netaddr to 0.7.20 to
    address a fix for this warning.

    This file is referenced by the build-wheels script which uses the
    version here to build the wheel tarball that is used by the loci
    builder when building platformclients.

    Test Plan:
    PASS: Build debian iso and perform fresh install.
    PASS Build python3 wheels tarball and build
    stx-platformclients image on Debian.

    Partial-Bug: 1999563

    Signed-off-by: Luiz Felipe Kina <email address hidden>
    Change-Id: I058f33e08d03dbd309c908060ccdcf2cb002d009

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

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

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

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

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

Reviewed: https://review.opendev.org/c/starlingx/root/+/875654
Committed: https://opendev.org/starlingx/root/commit/3d770b79a8542e5c53c75a02651d23af2f4682df
Submitter: "Zuul (22348)"
Branch: master

commit 3d770b79a8542e5c53c75a02651d23af2f4682df
Author: Luiz Felipe Kina <email address hidden>
Date: Tue Feb 28 06:51:01 2023 -0500

    Update stx-platformclients image to version stx.9.0-v1.5.10

    Updated image with fix for python warning message.

    Partial-bug: 1999563

    Signed-off-by: Luiz Felipe Kina <email address hidden>
    Change-Id: I80f72c418b0682902bde1ead58f1386d946771b1

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/starlingx/root/+/873556
Committed: https://opendev.org/starlingx/root/commit/dcaac0ac07655890f07213bb7b60db59f599394b
Submitter: "Zuul (22348)"
Branch: master

commit dcaac0ac07655890f07213bb7b60db59f599394b
Author: Luiz Felipe Kina <email address hidden>
Date: Mon Feb 13 07:15:31 2023 -0500

    Add netaddr to stable-wheels

    Adding the netaddr wheel to the stable wheels config file since it
    isn't built and is used by the loci builder.

    Test plan:

    PASS: Run downloader -s -b
    PASS: Build wheel tarball
    PASS: Use the wheels tarball in build-image script

    Partial-Bug: 1999563

    Signed-off-by: Luiz Felipe Kina <email address hidden>
    Change-Id: I58b68aa819c0f3ed02da0a4db1d52de5153d9124

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

Reviewed: https://review.opendev.org/c/starlingx/clients/+/875655
Committed: https://opendev.org/starlingx/clients/commit/a7fb94d89649dde2d4532de994150b144fda1483
Submitter: "Zuul (22348)"
Branch: master

commit a7fb94d89649dde2d4532de994150b144fda1483
Author: Luiz Felipe Kina <email address hidden>
Date: Tue Feb 28 06:53:33 2023 -0500

    Update stx-platformclients image to version stx.9.0-v1.5.10

    Updated image with fix for python warning message.

    Partial-bug: 1999563
    Depends-on: https://review.opendev.org/c/starlingx/root/+/875654

    Signed-off-by: Luiz Felipe Kina <email address hidden>
    Change-Id: I135a53062c11510e9b5e4662cd265ec1601c5f72

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.