Closed LukaszBrzoskof5 closed 3 years ago
@LukaszBrzoskof5 service generic is fine. ACC is going to provide your with a framework which you need to customize and make the modification to deploy to AS3. I will consult the team to determine if there are any modifications.
@p-semenov-f5 did additional testing and ACC is doing the correct conversion for AS3
I also made additional testing and found that AS3 below valid for each service below with Service_Generic or Service_TCP.
{
"class": "ADC",
"schemaVersion": "3.31.0",
"id": "urn:uuid:5fb664b1-457a-44e6-89f0-0e61c6a417f8",
"label": "Converted Declaration",
"remark": "Auto-generated by AS3 Config Converter",
"AS3_Tenant": {
"class": "Tenant",
"AS3_Application": {
"class": "Application",
"template": "generic",
"test_server_1": {
"layer4": "tcp",
"translateServerAddress": true,
"translateServerPort": true,
"class": "Service_Generic",
"clientTLS": {
"bigip": "/Common/serverssl"
},
"profileTCP": {
"bigip": "/Common/tcp-lan-optimized"
},
"virtualAddresses": [
"10.10.23.21"
],
"virtualPort": 88,
"persistenceMethods": [],
"snat": "auto"
},
"test_server_2": {
"layer4": "tcp",
"translateServerAddress": true,
"translateServerPort": true,
"class": "Service_Generic",
"serverTLS": {
"bigip": "/Common/clientssl"
},
"profileTCP": {
"bigip": "/Common/tcp-lan-optimized"
},
"virtualAddresses": [
"10.10.23.22"
],
"virtualPort": 88,
"persistenceMethods": [],
"snat": "auto"
},
"test_server_3": {
"layer4": "tcp",
"translateServerAddress": true,
"translateServerPort": true,
"class": "Service_Generic",
"profileTCP": {
"bigip": "/Common/tcp-lan-optimized"
},
"virtualAddresses": [
"10.10.23.23"
],
"virtualPort": 88,
"persistenceMethods": [],
"snat": "auto"
}
}
}
}
So it is not hard requirement here fro service generic to not allow TLS.. I think it is not a bug.
This issue can be closed as wontfix. Working as designed.
Just did additional quick test it looks like problem manifest if we use defined serverTLS class like in first example:
"certificate_default": {
"class": "Certificate",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
},
"clientssl_owa_prof": {
"certificates": [
{
"certificate": "certificate_default"
}
],
"class": "TLS_Server",
"insertEmptyFragmentsEnabled": true
}
and use it in VS config: "serverTLS": "clientssl_owa_prof",
If i use default instead:
"serverTLS": {
"bigip": "/Common/clientssl"
},
This is indeed working ok.
Then problem is related to the way serverTLS is defined.
Environment
Summary
Converter tool do not properly adjust class
Steps To Reproduce
Steps to reproduce the behavior:
brzosko@WRW-ML-00011994 ~/Downloads/AS3/test_manual curl -k -u admin:admin -X POST -H "Content-Type: application/json" -H "Expect:" -d "@owa_charon_as3.json" https://10.171.22.210/mgmt/shared/appsvcs/declare | jq % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2267 100 511 100 1756 391 1344 0:00:01 0:00:01 --:--:-- 1735 { "results": [ { "message": "Expected 'clientssl_owa_prof' to be an absolute path. This may have happened because serverTLS was applied to a Service that does not support it.", "host": "localhost", "tenant": "CCP_200_11", "code": 422 } ], "declaration": { "class": "ADC", "schemaVersion": "3.30.0", "id": "urn:uuid:de3f3f13-1508-4d44-854f-c0d3a632a318", "label": "Converted Declaration", "remark": "Auto-generated by AS3 Config Converter", "updateMode": "selective", "controls": { "archiveTimestamp": "2021-09-28T12:38:16.046Z" } }, "code": 422 }