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 14 forks source link

Unsupported list is not included in output even with verbose when using API #21

Closed makagonr closed 3 years ago

makagonr commented 3 years ago

Environment

Summary

Unsupported collection is not returned even though verbose flag is sent

Steps To Reproduce

Start the container

  1. docker run -it -p 8080:8080 f5-as3-config-converter:1.11.0-RC1 serve

  2. send a request passing attached bigip.conf file: bigip.conf.zip curl -X POST http://localhost:8080/as3converter -F conf=@trunk/Applications/application_1/Virtuals/test-iapp-1_vs/bigip.conf -F verbose=true > output

  3. Observe that output does not have "unsupported" list

  4. Observe that the file pointed by unsupported is not empty: (venv) WRW-ML-00029839:as3-charon makagon$ docker exec -it 13f6294bbbe3 cat /tmp/tmp-1-ExMRWP22io33/unsupported { "ltm node /tenant_1/application_1/6.6.7.7": { "address": "6.6.7.7" } }

makagonr commented 3 years ago

Here you have the output that I got { "config": { "conf": "/tmp/tmp-1-qYp9ZDKG5tkl/upload_cf1787a2994027a294ded49123961c89", "ucs": null, "output": "/tmp/tmp-1-qYp9ZDKG5tkl/output", "unsupported": true, "unsupportedObjects": "/tmp/tmp-1-ExMRWP22io33/unsupported", "supportedObjects": "/tmp/tmp-1-qYp9ZDKG5tkl/supported", "recognizedObjects": "/tmp/tmp-1-qYp9ZDKG5tkl/recognized", "controls": false, "disableAnalytics": false, "safetyNet": false, "container": true }, "output": { "class": "ADC", "schemaVersion": "3.26.0", "id": "urn:uuid:13b6f132-56e4-4621-baf8-9bce7e0ec1ec", "label": "Converted Declaration", "remark": "Auto-generated by AS3 Config Converter", "tenant_1": { "class": "Tenant", "application_1": { "class": "Application", "template": "generic", "test-iapp-1_vs": { "layer4": "tcp", "pool": "test-iapp-1_pool", "translateServerAddress": true, "translateServerPort": true, "class": "Service_HTTPS", "serverTLS": "test-iapp-1_client-ssl", "profileTCP": { "egress": { "use": "/Common/Shared/test-iapp-1_f5-tcp-lan" }, "ingress": { "use": "/Common/Shared/test-iapp-1_f5-tcp-wan" } }, "profileHTTP": { "use": "/tenant_1/application_1/test-iapp-1_http" }, "profileMultiplex": { "use": "/tenant_1/application_1/test-iapp-1_oneconnect" }, "profileHTTPAcceleration": { "use": "/tenant_1/application_1/test-iapp-1_optimized-caching" }, "profileHTTPCompression": { "use": "/tenant_1/application_1/test-iapp-1_wan-optimized-compression" }, "redirect80": false, "virtualAddresses": [ "4.4.4.1" ], "virtualPort": 443, "persistenceMethods": [], "snat": "auto" }, "test-iapp-1_wan-optimized-compression": { "contentTypeIncludes": [ "application/(css|css-stylesheet|doc|excel|javascript|json|lotus123|mdb|mpp|msaccess|msexcel|ms-excel|mspowerpoint|ms-powerpoint|msproject|msword|ms-word|photoshop|postscript|powerpoint|ps|psd|quarkexpress|rtf|txt|visio|vnd\\.excel|vnd\\.msaccess|vnd\\.ms-access|vnd\\.msexcel|vnd\\.ms-excel|vnd\\.mspowerpoint|vnd\\.ms-powerpoint|vnd\\.ms-pps|vnd\\.ms-project|vnd\\.msword|vnd\\.ms-word|vnd\\.ms-works|vnd\\.ms-works-db|vnd\\.powerpoint|vnd\\.visio|vnd\\.wap\\.cmlscriptc|vnd\\.wap\\.wmlc|vnd\\.wap\\.xhtml\\+xml|vnd\\.word|vsd|winword|wks|word|x-excel|xhtml\\+xml|x-java-jnlp-file|x-javascript|x-json|x-lotus123|xls|x-mdb|xml|x-mscardfile|x-msclip|x-msexcel|x-ms-excel|x-mspowerpoint|x-msproject|x-ms-project|x-msword|x-msworks-db|x-msworks-wps|x-photoshop|x-postscript|x-powerpoint|x-ps|x-quark-express|x-rtf|x-vermeer-rpc|x-visio|x-vsd|x-wks|x-word|x-xls|x-xml)" ], "class": "HTTP_Compress" }, "test-iapp-1_pool": { "loadBalancingMode": "least-connections-member", "members": [ { "addressDiscovery": "static", "servicePort": 80, "serverAddresses": [ "6.6.7.7" ], "shareNodes": true } ], "monitors": [ { "use": "/tenant_1/application_1/test-iapp-1_http_monitor" } ], "slowRampTime": 300, "class": "Pool" }, "test-iapp-1_http_monitor": { "adaptive": false, "interval": 30, "dscp": 0, "receive": "test", "send": "GET /test HTTP/1.1\r\nHost: test.f5.com\r\nConnection: Close\r\n\r\n", "timeUntilUp": 0, "timeout": 91, "class": "Monitor", "monitorType": "http", "targetAddress": "", "targetPort": 0 }, "test-iapp-1_oneconnect": { "class": "Multiplex_Profile" }, "certificate_default": { "class": "Certificate", "certificate": { "bigip": "/Common/default.crt" }, "privateKey": { "bigip": "/Common/default.key" } }, "test-iapp-1_client-ssl": { "certificates": [ { "certificate": "certificate_default" } ], "class": "TLS_Server", "tls1_0Enabled": true, "tls1_1Enabled": true, "tls1_2Enabled": true, "tls1_3Enabled": false, "singleUseDhEnabled": false, "insertEmptyFragmentsEnabled": true }, "test-iapp-1_optimized-caching": { "maximumObjectSize": 2000000, "cacheSize": 10, "parentProfile": { "bigip": "/Common/optimized-caching" }, "class": "HTTP_Acceleration_Profile" }, "test-iapp-1_http": { "xForwardedFor": true, "rewriteRedirects": "matching", "class": "HTTP_Profile" } } }, "Common": { "class": "Tenant", "Shared": { "class": "Application", "template": "shared", "test-iapp-1_f5-tcp-lan": { "class": "TCP_Profile" }, "test-iapp-1_f5-tcp-wan": { "class": "TCP_Profile" } } } } }

mdditt2000 commented 3 years ago

Investigating this issue. Seeing the the same output.

https://github.com/mdditt2000/f5-appsvcs-acc/blob/master/Github/21/as3Output.json

API is not outputting unsupported files and coverted AS3 json.

mdditt2000 commented 3 years ago

@makagonr got a response from the ACC team.

File will be found in the directory related to container process (the one you provided when you start the container), it is “server side process” and we can not return file as response, only json.

If “verbose” flag used as on your screenshot they should get full response including unsupported, please check with them.

I will open a JIRA task to see if the unsupported opjects can we added to the JSON output when using the API endpoint.

mdditt2000 commented 3 years ago

@makagonr we have figured out the issue and will be creating a new RC

mdditt2000 commented 3 years ago

Issue is resolved with RC mdditt2000/f5-as3-config-converter:1.11.0-RC2

    "unsupported": {
        "apm policy customization-source /Common/modern": {},
        "apm policy customization-source /Common/standard": {},
        "auth remote-user": {
            "default-partition": "Common"
        },
        "auth tacacs /Common/system-auth": {
            "authentication": "use-all-servers",
            "protocol": "IP",

Continued!! 

Closing issue

makagonr commented 3 years ago

Great to hear that :) Thanks

wt., 30 mar 2021 o 23:09 mark dittmer @.***> napisał(a):

Closed #21 https://github.com/f5devcentral/f5-as3-config-converter/issues/21.

— 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/21#event-4530399284, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHP7QNIDVSPCEMYHME7LZCLTGI4YVANCNFSM4Z3UOJVQ .