Debian: oidc-auth binary not in system's PATH

Bug #1978829 reported by Reinildes Oliveira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Reinildes Oliveira

Bug Description

*+Brief Description+*

The oidc-auth command does not seem to be installed in the system

*+Severity+*

Major

*+Steps to Reproduce+*

Missing executable:

{code:java}
sysadmin@controller-0:~$ oidc-auth
-sh: oidc-auth: command not found
sysadmin@controller-0:~$
sysadmin@controller-0:~$ which oidc-auth

{code}

As we can see below, python3-oidcauthtools and python3-oidcauthtools-wheels packages are not installed:

{code:java}
sysadmin@controller-0:~$
sysadmin@controller-0:~$ apt list | grep oidc

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

python3-k8sapp-oidc-wheels/bullseye 1.0-1.stx.1 amd64
python3-k8sapp-oidc/bullseye 1.0-1.stx.1 amd64
python3-oidcauthtools-wheels/bullseye 1.0-1.stx.1 amd64
python3-oidcauthtools/bullseye 1.0-1.stx.1 amd64
stx-oidc-auth-helm/bullseye,now 1.0-1.stx.3 amd64 [installed]
sysadmin@controller-0:~$
sysadmin@controller-0:~$ dpkg --list | grep oidc
ii stx-oidc-auth-helm 1.0-1.stx.3 amd64 StarlingX OIDC Authorization Helm Charts
sysadmin@controller-0:~$

{code}

*+Expected Behavior+*

It should be in the PATH as it is in centos:

{code:java}
[sysadmin@controller-0 ~(keystone_admin)]$ which oidc-auth
/usr/bin/oidc-auth
[sysadmin@controller-0 ~(keystone_admin)]$ oidc-auth
usage: oidc-auth [-h] -c CLIENT -u USERNAME [-p PASSWORD] [-b BACKEND] [-v]
oidc-auth: error: argument -c/--client is required

{code}

*+Actual Behavior+*

{code:java}
sysadmin@controller-0:~$ oidc-auth
-sh: oidc-auth: command not found
sysadmin@controller-0:~$
sysadmin@controller-0:~$ which oidc-auth

{code}

*+Reproducibility+*

Reproducible

*+Test Activity+*

Feature Testing

*+Workaround+*

Manually copy the compiled .deb packages and install them with apt install -f path-to-deb

Changed in starlingx:
assignee: nobody → Reinildes Oliveira (rjosemat)
Changed in starlingx:
status: New → In Progress
Ghada Khalil (gkhalil)
summary: - oidc-auth binary not in system's PATH
+ Debian: oidc-auth binary not in system's PATH
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.7.0 stx.apps stx.debian
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (master)

Reviewed: https://review.opendev.org/c/starlingx/tools/+/845594
Committed: https://opendev.org/starlingx/tools/commit/5c57b4fffdd18cf2a0b8f30492b725d8550b4ce3
Submitter: "Zuul (22348)"
Branch: master

commit 5c57b4fffdd18cf2a0b8f30492b725d8550b4ce3
Author: Karla Felix <email address hidden>
Date: Mon Jun 13 11:22:27 2022 -0300

    oidc-auth executable not in system's path

    Uncomment line to add oidc-auth back in the path.

    Test Plan:

    PASS: Run debian build-image successfully
    PASS: Install debian load sucessfully
    PASS: Try oidc-auth command and make sure it's in the path

    Logs: https://paste.opendev.org/show/bugS0IZYvhMwDCoPfQ6l/

    Closes-bug: 1978829

    Signed-off-by: Karla Felix <email address hidden>
    Change-Id: Ib12e74f6f6121f24b8f908ba56387d386719a6f5

Changed in starlingx:
status: In Progress → Fix Released
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.