Bug 1936642 - Importing of cluster fails due to error/typo in generated command
Summary: Importing of cluster fails due to error/typo in generated command
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: Cluster Lifecycle
Version: rhacm-2.2
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
: rhacm-2.2.2
Assignee: James Talton
QA Contact: Hui Chen
Christopher Dawson
URL:
Whiteboard:
: 1948508 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-08 20:51 UTC by Ryan Spagnola
Modified: 2022-02-14 22:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-13 00:09:48 UTC
Target Upstream Version:
Embargoed:
dhuynh: qe_test_coverage+
gghezzo: rhacm-2.2.z+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github open-cluster-management backlog issues 10278 0 None None None 2021-03-10 14:35:34 UTC
Github open-cluster-management console pull 343 0 None closed Fix capitalization error in import command 2021-03-09 19:26:00 UTC
Red Hat Product Errata RHSA-2021:1168 0 None None None 2021-04-13 00:10:52 UTC

Description Ryan Spagnola 2021-03-08 20:51:20 UTC
Description of problem:
The generated command for importing a cluster is ending with:
base64 -D

This needs to be either:
  -Dd or --decode  

Version-Release number of selected component (if applicable):
2.2

How reproducible:
Always

Steps to Reproduce:
1. Generate and copy the command to import a cluster
2. Paste command on target cluster
3.

Actual results:
command ends with base64 -D which causes an error
base64: invalid option -- 'D'

Expected results:
should end with -Dd or --decode to avoid error

Additional info:

Comment 2 David Luong 2021-03-08 21:46:48 UTC
I think this would solve it, could be wrong though:
https://github.com/open-cluster-management/console/pull/343

Comment 3 Ryan Spagnola 2021-03-08 22:55:00 UTC
correction to opening description. Different OSes have different shortcuts for --decode for example:

RHEL 7 & 8
 -d, --decode          decode data

MacOS
 -Dd, --decode   decodes input

Because of this --decode should be used in order to remain platform agnostic.

Comment 4 Mike Ng 2021-03-25 19:34:50 UTC
G2Bsync 807217716 comment 
 chrisahl Thu, 25 Mar 2021 18:14:45 UTC 
 G2Bsync
This will be delivered in 2.2.2

Comment 10 errata-xmlrpc 2021-04-13 00:09:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Red Hat Advanced Cluster Management 2.2.2 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1168

Comment 11 Yuanyuan He 2021-11-15 02:14:15 UTC
*** Bug 1948508 has been marked as a duplicate of this bug. ***

Comment 12 Derek Ho 2021-11-16 18:25:57 UTC
Update QA contact for CLC


Note You need to log in before you can comment on or make changes to this bug.