Cgtsclient fails to upload files with insecure option

Bug #2067447 reported by Joseph Vazhappilly
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Joseph Vazhappilly

Bug Description

Brief Description
-----------------
Cgtsclient fails when doing license-install using insecure option. The upload to HTTPS endpoint with insecure option is not working in cgtsclient.

Severity
--------
Minor

Steps to Reproduce
------------------
Try to install license using insecure option
system -k --system-url $URL1 --os-auth-token=$TOKEN license-install <license file>

Expected Behavior
------------------
The command should execute and return success

Actual Behavior
----------------
The command failed to install license

Reproducibility
---------------
100

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/+/920711

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/920711
Committed: https://opendev.org/starlingx/config/commit/7ca49b48c53ae33706e8859930e18e6456de0946
Submitter: "Zuul (22348)"
Branch: master

commit 7ca49b48c53ae33706e8859930e18e6456de0946
Author: Joseph Vazhappilly <email address hidden>
Date: Wed May 29 01:28:44 2024 -0400

    Support verify and cert in cgtsclient upload cmd

    Cgtsclient uses post method of request module to upload files and
    does not use, verify and cert options of post method. This cause
    failure when doing insecure upload like in license-install command.

    This change updates cgtsclient to use verify and cert options of
    post method, when using upload commands.

    Test Plan:
    PASS: Verify upload with SessionClient using verify & cert options
    PASS: Verify upload with HTTPClient using verify & cert options
    PASS: Verify insecure, ca-file, cert-file & key-file in cgtsclient

    Closes-Bug: 2067447

    Change-Id: Icb9aca3d69ddd2e8b7882f0ce6907f18feccd28e
    Signed-off-by: Joseph Vazhappilly <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.10.0 stx.config
Changed in starlingx:
assignee: nobody → Joseph Vazhappilly (jvazhapp)
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.