Bug 1936642

Summary: Importing of cluster fails due to error/typo in generated command
Product: Red Hat Advanced Cluster Management for Kubernetes Reporter: Ryan Spagnola <rspagnol>
Component: Cluster LifecycleAssignee: James Talton <jtalton>
Status: CLOSED ERRATA QA Contact: Hui Chen <huichen>
Severity: high Docs Contact: Christopher Dawson <cdawson>
Priority: unspecified    
Version: rhacm-2.2CC: dhuynh, dluong, fdewaley, gghezzo
Target Milestone: ---Flags: dhuynh: qe_test_coverage+
gghezzo: rhacm-2.2.z+
Target Release: rhacm-2.2.2   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-13 00:09:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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