Bug 1726538
| Summary: | OCP sync plug-in for jenkins does not change credential name in Jenkins after setting proper annotation in secret | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Arnab Ghosh <arghosh> |
| Component: | Jenkins | Assignee: | Vibhav Bobade <vbobade> |
| Status: | CLOSED ERRATA | QA Contact: | XiuJuan Wang <xiuwang> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.11.0 | CC: | abenaiss, aos-bugs, calfonso, mfojtik, vbobade |
| Target Milestone: | --- | ||
| Target Release: | 3.11.z | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-12-16 11:57:10 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
Arnab Ghosh
2019-07-03 06:55:23 UTC
documentation - [1] - https://github.com/openshift/jenkins-sync-plugin https://docs.openshift.com/container-platform/3.11/using_images/other_images/jenkins.html#sync-plug-in Assigning to Jenkins component Hello Arnab, Thanks for opening this. We are looking a this right now. Will get back to you with this. Regards, Vibhav Development is being tracked here: https://jira.coreos.com/browse/APPSVC-12 Hello Arnab, Can you check with the customer and let us know what is the version of sync plugin installed in Jenkins ? Regards, Vibhav Follow these steps to verify this bug with openshift3/jenkins-2-rhel7:v3.11(v3.11.157-1), and pass. 1. Deploy jenkins 2. Create a secret of type Opaque/basic-auth/ssh-auth $oc create secret generic ocp-secretname -n xiuwang1 --from-literal=username=testuser --from-literal=password=testpass --type=kubernetes.io/basic-auth secret/ocp-secretname created 3. Set following label to the secret in order to mark that it should be synced $oc label secret ocp-secretname credential.sync.jenkins.openshift.io=true -n xiuwang1 secret/ocp-secretname labeled 4.Check credentials in the /credentials page 5. Create a new secret $oc create secret generic credname -n xiuwang1 --from-literal=username=testuser --from-literal=password=testpass --type=kubernetes.io/basic-auth 6.Annotate the secret to let sync plugin know the name you want to set for the newly created credential in Jenkins $ oc annotate secret ocp-secretname jenkins.openshift.io/secret.name=credname -n xiuwang1 7. Check credentials in the /credentials page The credentials name has changed to credname. (In reply to XiuJuan Wang from comment #11) Additional info: openshift-sync plugin is 1.0.43 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, 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/RHBA-2019:4050 |