f5devcentral / f5-automation-config-converter

Convert BIG-IP configs to AS3 and DO declarations
https://clouddocs.f5.com/products/extensions/f5-automation-config-converter/latest/
Apache License 2.0
35 stars 13 forks source link

Expose "stdout/stderr" output via API #61

Closed makagonr closed 2 years ago

makagonr commented 3 years ago

Is your feature request related to a problem? Please describe.

ACC produces output via conversion: e.x.

2021-10-07 09:19:20 INFO 107 BIG-IP objects detected total
2021-10-07 09:19:20 INFO 59 BIG-IP objects recognized by AS3
2021-10-07 09:19:20 INFO 25 BIG-IP objects supported by ACC
2021-10-07 09:19:20 INFO 25 AS3 stanzas generated

Also sometimes there is a problem with the conversion. In such case, via CLI one can get an error.

It would be good to get such information also via API call

Describe the solution you'd like

in a response { "output": ... "stdout": "2021-10-07 09:19:20 INFO 107 BIG-IP objects detected total\n2021-10-07 09:19:20 INFO 59 BIG-IP objects recognized by AS3...", "stderr": "..." }

mdditt2000 commented 3 years ago

@makagonr please review internal JIRA CHARON-491

mdditt2000 commented 3 years ago

Closing out. Provided information to team via JIRA

azahajkiewicz commented 2 years ago

@mdditt2000 Hi Mark, this Jira item doesn't look like a fix for the issue. Can you confirm it with the team?

sschadwick commented 2 years ago

Jira issue created as CHARON-542.

p-semenov-f5 commented 2 years ago

Hello!

Chariot is consuming stdout and stderr directly. Do you know about that? Can you use chariot api?

makagonr commented 2 years ago

Hello,

We use the API, and we would like to get the content of stdout/stderr generated by processing the request in order to show it to the user when some objects are not compatible or we get 4xx/5xx http codes for some reason.

Regards Rafał Makagon

pt., 3 gru 2021 o 18:36 p-semenov-f5 @.***> napisał(a):

Hello!

Chariot is consuming stdout and stderr directly. Do you know about that? Can you use chariot api?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/f5devcentral/f5-as3-config-converter/issues/61#issuecomment-985704667, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHP7QNKQNJIJHBFPIOCXOADUPD53TANCNFSM5FQZXA2Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

p-semenov-f5 commented 2 years ago

Should be in ACC 1.17