Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Virtual server address removed during conversion to AS3 #137

Open
dennisjalbert-work opened this issue Jul 5, 2024 · 0 comments
Open
Labels
bug Something isn't working untriaged

Comments

@dennisjalbert-work
Copy link

dennisjalbert-work commented Jul 5, 2024

Environment

Ubuntu Desktop 20.04.6 
F5OS Platform and Version
i11800
v17.1.1.3
DESTINATION BIG-IP VERSION
Sys::Version
Main Package
  Product     BIG-IP
  Version     17.1.1.3
  Build       0.0.5
  Edition     Point Release 3
  Date        Thu Mar 21 04:23:27 PDT 2024
SOURCE BIG-IP VERSION
Sys::Version
Main Package
  Product     BIG-IP
  Version     17.1.1.3
  Build       0.0.5
  Edition     Point Release 3
  Date        Thu Mar 21 04:23:27 PDT 2024

SUMMARY

I'm using journeys to convert our config to AS3 but it is creating an invalid config which AS3 rejects.

STEPS TO REPRODUCE
1. Save a ucs of the source system
2. Start an AS3 migration in journeys
3. Use the ucs of the source bigip
4. Enter the master key used for the source device
5. Select all apps for migration
6. Add all AS3 tenants to deploy
7. Click Generate Deployment Files
8. Click Download AS3
9. Use postman to POST AS3 to destination device.
10. The AS3 which is failing looks like this:
    "am_5": {
        "class": "Tenant",
        "Shared": {
            "class": "Application",
            "any%2800": {
                "class": "Service_Address",
                "icmpEcho": "disable",
                "arpEnabled": false,
                "trafficGroup": "/Common/traffic-group-1",
                "virtualAddress": "any/0"
            },
            "template": "shared"
        },
        "application_37": {
            "class": "Application",
            "template": "generic",
            "fwd_vs_am": {
                "snat": "none",
                "class": "Service_Forwarding",
                "profileL4": {
                    "use": "/Common/Shared/fastL4_fwd_vs"
                },
                "virtualPort": 0,
                "forwardingType": "ip",
                "translateServerPort": false,
                "translateServerAddress": false
            }
        }
    },
The bigip.conf file which this was generated from clearly had a destination address:
ltm virtual /am/fwd_vs_am {
    destination /am/any%2800:0
    ip-forward
    last-modified-time 2024-06-14:22:51:39
    mask any
    profiles {
        /Common/fastL4_fwd_vs { }
    }
    serverssl-use-sni disabled
    source 0.0.0.0/0
    translate-address disabled
    translate-port disabled
}
EXPECTED RESULTS
Expected the AS3 to POST successfully with a 200 response. Expected the virtual server ip to be preserved in the AS3 migration.
ACTUAL RESULTS

Result from AS3 POST to destination device:

{
    "code": 422,
    "errors": [
        "/am_5/application_37/fwd_vs_am: should have required property 'virtualAddresses'"
    ],
    "message": "declaration is invalid",
    "host": "localhost",
    "tenant": [
        "am_5"
    ],
    "declarationId": "urn:uuid:f29dc387-f177-4f93-ab13-cb6609efadd3"
}
Screenshots:
Screenshot 2024-07-05 at 10 46 37 AM
Journeys Logs:
WARNING 2024-07-05 13:49:49,025 log Bad Request: /sessions/7/source
Developer console output:
n/a
App Version:
v4.2.0
@dennisjalbert-work dennisjalbert-work added bug Something isn't working untriaged labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant