Bug 1504729 - Ansible Service Broker should log job state
Summary: Ansible Service Broker should log job state
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker
Version: 3.7.0
Hardware: All
OS: All
unspecified
low
Target Milestone: ---
: 3.7.0
Assignee: David Zager
QA Contact: Zhang Cheng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-20 13:36 UTC by David Zager
Modified: 2017-11-28 22:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-11-28 22:18:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

Description David Zager 2017-10-20 13:36:17 UTC
Description of problem:

When the service-catalog is asking for the status of a service instance operation currently in progress, the broker should log the state of that operation before constructing a response object to send back to the service-catalog. This is most useful when debugging messages between the service-catalog and the broker.


How reproducible: Always


Steps to Reproduce:
1. Start an OpenShift cluster with the Service Catalog and Ansible Service Broker
2. Provision an APB
3. Look at the service broker's logs

Actual results:

[DEBUG] service_id: 9f7da06f179b895a8ee5f9a3ce4af7ef
[DEBUG] plan_id: 2529017a538fda00903782ddd68124c9
[DEBUG] operation:  d998adef-3b18-4940-93c6-fc64b5f81243
"GET /ansible-service-broker/v2/service_instances/30994e86-94ba-48fc-8ddb-97f383906897/last_operation?operation=d998adef-3b18-4940-93c6-fc64b5f81243&plan_id=2529017a538fda00903782ddd68124c9&service_id=9f7da06f179b895a8ee5f9a3ce4af7ef HTTP/1.1" 200 29


Expected results:

[DEBUG] service_id: 9f7da06f179b895a8ee5f9a3ce4af7ef
[DEBUG] plan_id: 2529017a538fda00903782ddd68124c9
[DEBUG] operation:  d998adef-3b18-4940-93c6-fc64b5f81243
[DEBUG] state: in progress
"GET /ansible-service-broker/v2/service_instances/30994e86-94ba-48fc-8ddb-97f383906897/last_operation?operation=d998adef-3b18-4940-93c6-fc64b5f81243&plan_id=2529017a538fda00903782ddd68124c9&service_id=9f7da06f179b895a8ee5f9a3ce4af7ef HTTP/1.1" 200 29

Comment 3 Zhang Cheng 2017-11-01 09:26:23 UTC
Verified and test with ose-ansible-service-broker:v3.7.0-0.188.0.0

Have below logs in asb log while provisioning:
[2017-11-01T09:22:55.27Z] [DEBUG] service_id: 268dbc13f56297fdd3737b7d30104eb4
[2017-11-01T09:22:55.27Z] [DEBUG] plan_id: c54bf88ce67b96a39e639d2bdf6caf1a
[2017-11-01T09:22:55.27Z] [DEBUG] operation:  be456468-8b4e-48e5-ab43-8b669927386d
[2017-11-01T09:22:55.271Z] [DEBUG] state: in progress

Comment 6 errata-xmlrpc 2017-11-28 22:18:47 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/RHSA-2017:3188


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