vmw-loginsight / webhook-shims

Shims for Log Insight 3.3+ and vRealize Operations Manager 6.0+
Apache License 2.0
38 stars 31 forks source link

HTTP 400 when sending from vROPS 7.0 to vRO 7.4 #79

Open ez12a opened 5 years ago

ez12a commented 5 years ago

Hello,

I'm having difficulty getting a successful test from vROPS 7.0.0.11936399 to vRO 7.4. I am using the docker image.

I am using basic authentication (was getting 401 with .netrc), a tip I got from (https://github.com/vmw-loginsight/webhook-shims/issues/39)

I've imported the sample workflow into the orchestrator, and can run a "GET" from Postman using the same credentials successfully.

These are the logs from the shim: 2019-03-19 18:36:05,244 DEBUG https://orchestrator.server.net:8281 "POST /vco/api/workflows/44786098-b29f-45df-ba4e-dc3cca6eeb7d/executions HTTP/1.1" 400 None 2019-03-19 18:36:05,245 INFO 10.133.41.202 - - [19/Mar/2019 18:36:05] "PUT /endpoint/vro/44786098-b29f-45df-ba4e-dc3cca6eeb7d/2f33cd81-e0b5-4d7d-9064-cf727ab3d444 HTTP/1.1" 400 - 2019-03-19 18:36:11,790 INFO URL=https://orchestrator.server.net:8281/vco/api/workflows/44786098-b29f-45df-ba4e-dc3cca6eeb7d/executions 2019-03-19 18:36:11,791 INFO Headers={'Content-type': 'application/json'} 2019-03-19 18:36:11,791 INFO Body={"parameters": [{"name": "alertId", "scope": "local", "type": "string", "value": {"string": {"value": "ef1171ad-5b69-43d8-a0e8-175d6f791f8d"}}}]} 2019-03-19 18:36:11,791 INFO Check=False 2019-03-19 18:36:11,792 DEBUG Starting new HTTPS connection (1): orchestrator.server.net /usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) 2019-03-19 18:36:12,468 DEBUG https://orchestrator.server.net:8281 "POST /vco/api/workflows/44786098-b29f-45df-ba4e-dc3cca6eeb7d/executions HTTP/1.1" 400 None 2019-03-19 18:36:12,470 INFO 10.133.41.200 - - [19/Mar/2019 18:36:12] "PUT /endpoint/vro/44786098-b29f-45df-ba4e-dc3cca6eeb7d/ef1171ad-5b69-43d8-a0e8-175d6f791f8d HTTP/1.1" 400 -

johnddias commented 5 years ago

Is this a local user or are you using some other auth source?

ez12a commented 5 years ago

Is this a local user or are you using some other auth source?

Orchestrator is configured with vRA as the authentication provider (which is connectd to active directory). I am able to open and run the workflows in the orchestrator client as the user configured in the shim.

johnddias commented 5 years ago

I strongly recommend you look at the vRO MP for vROps, it is fully supported and has replaced the shims for vROps use cases.

On Tue, Mar 19, 2019, 4:54 PM ez12a notifications@github.com wrote:

Is this a local user or are you using some other auth source?

Orchestrator is configured with vRA as the authentication provider. I am able to open and run the workflows in the orchestrator client as the user configured in the shim.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vmw-loginsight/webhook-shims/issues/79#issuecomment-474599790, or mute the thread https://github.com/notifications/unsubscribe-auth/AGP1zfbgdSBwaGMjP1m0SfxWnyaKwLo8ks5vYVymgaJpZM4b83I4 .

ez12a commented 5 years ago

I strongly recommend you look at the vRO MP for vROps, it is fully supported and has replaced the shims for vROps use cases. On Tue, Mar 19, 2019, 4:54 PM ez12a @.***> wrote: Is this a local user or are you using some other auth source? Orchestrator is configured with vRA as the authentication provider. I am able to open and run the workflows in the orchestrator client as the user configured in the shim. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#79 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AGP1zfbgdSBwaGMjP1m0SfxWnyaKwLo8ks5vYVymgaJpZM4b83I4 .

Ah, I did not know that! Thanks, i'll take a look.