Bug 1586343 - Should not inject whitespace in job id string with wrong letter case when run `oc describe` command
Summary: Should not inject whitespace in job id string with wrong letter case when run...
Keywords:
Status: CLOSED DUPLICATE of bug 1656328
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.10.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 4.1.0
Assignee: Maciej Szulik
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-06 03:25 UTC by Jian Zhang
Modified: 2019-04-10 02:03 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-09 14:41:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jian Zhang 2018-06-06 03:25:38 UTC
Description of problem:
The job id is uppercase and injected whitespace when running `oc describe` command.
Status:
  Jobs:
    B 805 Dc 46 - Fc 2 F - 4 Fb 2 - 9217 - 3 B 10401119 C 3:

Should be:
Status:
  Jobs:
    b805dc46-fc2f-4fb2-9217-3b10401119c3:


Version-Release number of selected component (if applicable):
[root@qe-jiazha-06master-etcd-1 ~]# oc version
oc v3.10.0-0.60.0
kubernetes v1.10.0+b81c8f8
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://qe-jiazha-06master-etcd-1:8443
openshift v3.10.0-0.60.0
kubernetes v1.10.0+b81c8f8


How reproducible:
always


Steps to Reproduce:
1. Enable the async feature and config an APB that support async binding. Like below:
...
registry:
  - type: dockerhub
    name: dh
    url:  https://registry.hub.docker.com 
    org: mhrivnak
    tag:  latest
    white_list: [.*-apb$]

broker:
  ...
  launch_apb_on_bind: true

2. Restart the ASB pod and ansible-service-broker, and then provision the PostgreSQL APB on Web console.

3. Describe the bundlebinding object by using the `oc describe` command

Actual results:
[root@qe-jiazha-06master-etcd-1 ~]# oc describe bundlebinding 40edf2e6-692e-11e8-a6e0-0a580a800004 -n openshift-ansible-service-broker
Name:         40edf2e6-692e-11e8-a6e0-0a580a800004
Namespace:    openshift-ansible-service-broker
Labels:       <none>
Annotations:  <none>
API Version:  automationbroker.io/v1alpha1
Kind:         BundleBinding
Metadata:
  Cluster Name:        
  Creation Timestamp:  2018-06-06T02:06:41Z
  Generation:          1
  Resource Version:    7592
  Self Link:           /apis/automationbroker.io/v1alpha1/namespaces/openshift-ansible-service-broker/bundlebindings/40edf2e6-692e-11e8-a6e0-0a580a800004
  UID:                 41287b6c-692e-11e8-9315-fa163e540406
Spec:
  Bundle Instance:
    Name:      f79306a2-692d-11e8-a6e0-0a580a800004
  Parameters:  {"_apb_last_requesting_user":"jiazha2","_apb_plan_id":"dev","_apb_service_binding_id":"40edf2e6-692e-11e8-a6e0-0a580a800004","_apb_service_class_id":"1dda1477cace09730bd8ed7a6505607e","_apb_service_instance_id":"f79306a2-692d-11e8-a6e0-0a580a800004"}
Status:
  Jobs:
    B 805 Dc 46 - Fc 2 F - 4 Fb 2 - 9217 - 3 B 10401119 C 3:
      Description:         bind job completed
      Last Modified Time:  2018-06-06T02:06:50Z
      Method:              bind
      Podname:             
      State:               succeeded
  Last Description:        bind job completed
  State:                   succeeded
Events:                    <none>



Expected results:
The job id should not inject the whitespace, seems like:
status:
  jobs:
    b805dc46-fc2f-4fb2-9217-3b10401119c3:

Additional info:

Comment 2 Maciej Szulik 2019-04-09 14:41:00 UTC

*** This bug has been marked as a duplicate of bug 1656328 ***


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