Bug 1536629 - send job state and credentials from job
Summary: send job state and credentials from job
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.9.0
Assignee: Jesus M. Rodriguez
QA Contact: Zihan Tang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-19 19:12 UTC by Jesus M. Rodriguez
Modified: 2018-03-28 14:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-03-28 14:21:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 0 None None None 2018-03-28 14:22:06 UTC

Description Jesus M. Rodriguez 2018-01-19 19:12:57 UTC
As discussed on IRC with @eriknelson, while looking at the last operation PR it occurred to me it would make more sense to have the Job send through the JobState as part of its msg that is consumed by the subscribers rather than the subscribers deciding what state to set as can be seen here:

 https://github.com/openshift/ansible-service-broker/blob/master/pkg/broker/provision_subscriber.go#L55

I intended to include this change in my main PR for the last_operation feature, but after discussion, it probably makes more sense to have it as a standalone PR.

Upstream issue referenced:
https://github.com/openshift/ansible-service-broker/issues/608

Comment 1 Jesus M. Rodriguez 2018-01-19 19:14:19 UTC
PR: https://github.com/openshift/ansible-service-broker/pull/610

Comment 2 Zhang Cheng 2018-01-20 15:13:43 UTC
zitang, please try to trace and reproduce. Thanks.

Comment 3 Jesus M. Rodriguez 2018-01-20 15:26:59 UTC
(In reply to Zhang Cheng from comment #2)
> zitang, please try to trace and reproduce. Thanks.

This is an internal bug to capture a feature that entered late into the release cycle of the Ansible Broker. Largely internal restructuring of the work engine inside the broker.

Comment 4 Zhang Cheng 2018-01-20 15:47:20 UTC
So, is that means regression test is the good choice for us?

Comment 5 Jesus M. Rodriguez 2018-01-20 16:15:40 UTC
(In reply to Zhang Cheng from comment #4)
> So, is that means regression test is the good choice for us?

Yes, that is acceptable to test this bug. As long as there are no regressions introduced with the provision, deprovision, bind & unbind features this bug should be covered by those tests.

Comment 6 Jesus M. Rodriguez 2018-01-25 18:49:37 UTC
PR https://github.com/openshift/ansible-service-broker/pull/671

Comment 8 Zhang Cheng 2018-02-02 03:35:55 UTC
I'm changing status to "Modified" since downstream image not ready for test.

Comment 13 errata-xmlrpc 2018-03-28 14:21:18 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, 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-2018:0489


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