Bug 1542840 - [dedicated] openshift-dedicated-role.service could not running 3.9 cluster
Summary: [dedicated] openshift-dedicated-role.service could not running 3.9 cluster
Keywords:
Status: ASSIGNED
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Unknown
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: Xiaoli Tian
URL:
Whiteboard:
: 1558254 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-07 07:08 UTC by Chuan Yu
Modified: 2025-06-25 08:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-08 19:48:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chuan Yu 2018-02-07 07:08:39 UTC
Description of problem:
Since the 'openshift cli' and 'openshift admin' commands deprecated in OCP 3.9, the openshift-dedicated-role.service could not running on 3.9 cluster 

Version-Release number of selected component (if applicable):
# openshift version
openshift v3.9.0-0.38.0
kubernetes v1.9.1+a0ce1bc657
etcd 3.2.8

How reproducible:
always

Steps to Reproduce:
1.install the latest openshift-scripts-dedicated scripts on the OCP 3.9 cluster
2.start the openshift-dedicated-role.service
3.

Actual results:
openshift-dedicated-role.service could not started

Expected results:
openshift-dedicated-role.service start successfully

Additional info:
error logs:
Feb 06 20:40:58  python[61825]: Checking OpenShift CLI command ...
Feb 06 20:40:58  python[61825]: FAIL
Feb 06 20:40:58  python[61825]: Error: Checking OpenShift CLI command failed: Error: unknown command "cli" for "openshift"
Feb 06 20:40:58  python[61825]: Run 'openshift --help' for usage.

Comment 1 Juan Vallejo 2018-02-08 19:48:51 UTC
This is not a bug. We have intentionally removed links to the "cli" from the openshift binary.

Use the `oc` binary instead.

Comment 2 Chuan Yu 2018-03-20 01:03:09 UTC
This should be not a command line issue, just need update update the dedicated openshift-dedicated script.

Comment 3 Abhishek Gupta 2018-03-20 16:01:48 UTC
*** Bug 1558254 has been marked as a duplicate of this bug. ***

Comment 4 Simo Sorce 2018-04-02 18:35:47 UTC
This is not an auth bug, please reassign to the correct component

Comment 5 Abhishek Gupta 2018-06-01 22:20:41 UTC
This change was made earlier this week and is ready for testing

Comment 6 Chuan Yu 2018-06-06 01:44:28 UTC
Verifiled.

# rpm -qa | grep dedi
openshift-scripts-dedicated-3.7.2.44-1.git.0.a7e17f1.el7.x86_64

# openshift version
openshift v3.9.30
kubernetes v1.9.1+a0ce1bc657
etcd 3.2.16


Error log:
# /usr/bin/apply-dedicated-roles.py  --project-role-file=${PROJECT_ROLE_FILE} --cluster-role-file=${CLUSTER_ROLE_FILE} --dedicated-admin-group-file=${DEDICATED_ADMIN_GROUP_FILE} --skip-projects=${SKIP_PROJECTS} --groups=${GROUPS}
Error: Checking OpenShift admin CLI command failed:


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