Forum Discussion

Jan_Loukota's avatar
Jan_Loukota
Icon for Nimbostratus rankNimbostratus
Oct 08, 2024

Unable to create F5 in AWS via CFT - no internet access

Hello,

 

I ma having bad times while creating deployment in AWS from templates without internet access:

https://github.com/F5Networks/f5-aws-cloudformation-v2

I already deployed yaml and runtime package on apache server in VPC. Based on tcpdump, the F5s are doenloading configuration files correctly. But then there is some wget timeout in EC2 Console. I think its trying to download some other stuff, yet I have no idea how to modify the runtime package. Can even open it via tar or gzip.

Does anyone know how to do this? Customer does not want to allow internet access and proxy is not supported by CFT templates.

 

Thank you

 

Best regards

  • Hi,

    Have you placed a copy of the key in the same location as the runtime init files?  

    bigIpRuntimeInitPackageUrl No https://cdn.f5.com/product/cloudsolutions/f5-bigip-runtime-init/v1.5.0/dist/f5-bigip-runtime-init-1.5.0-1.gz.run string Supply a URL to the bigip-runtime-init package.

    You will need to deploy AWS VPC S3 endpoints for CFE to work properly and the CFTS require that several other VPC endpoints be deployed - https://github.com/F5Networks/f5-aws-cloudformation-v2/blob/main/examples/DEPLOYMENT-TRAFFIC-FLOWS.md That may be the easier path.
  • Hello,

     

    I am moving forward, now stucked at:

    + f5-bigip-runtime-init --config-file /config/cloud/runtime-init.conf --skip-telemetry

    024-10-09T14:45:54.733Z [13134]: info: MAC address found for 1.1: 06:f2:15:df:16:7f
    2024-10-09T14:45:54.736Z [13134]: info: Primary IP for 06:f2:15:df:16:7f: 172.31.3.200
    2024-10-09T14:45:54.739Z [13134]: info: ip and mask for 06:f2:15:df:16:7f: 172.31.3.200/24
    2024-10-09T14:45:54.754Z [13134]: info: Interface:1.1
    2024-10-09T14:45:54.755Z [13134]: info: MAC address found for 1.1: 06:f2:15:df:16:7f
    2024-10-09T14:45:54.759Z [13134]: info: Primary IP for 06:f2:15:df:16:7f: 172.31.3.200
    2024-10-09T14:45:54.762Z [13134]: info: ip and mask for 06:f2:15:df:16:7f: 172.31.3.200/24

    And nothing is happening. Cant enter the device so no clue :).

     

     

    • not sure about the routing and how the routing through VPC endpoint exactly works

     

    Thank you

     

    Best regards

  • Hello Heath,

     

    the error is:

    Embedded stack arn:aws:cloudformation:eu-central-1:187459682462:stack/BIGG-BigIpInstance01-KA2Y71Z1W0H6/ae001fb0-8664-11ef-9ff7-061566941dc5 was not successfully created: The following resource(s) failed to create: [Bigip2NicInstance].

    Do you want me to share yaml files?

     

    I am re-creating the Endpoints as described.

     

    Thank you very much

     

    Best regards

    • Heath_Parrott's avatar
      Heath_Parrott
      Icon for Employee rankEmployee

      Have you subscribed to the offer you are calling in AWS marketplace (This is common - If you have not subscribed you will never see an instance deploy to EC2, failure of the deployment takes about 15 minutes)?  Did you select an instance type that is supported or is there a capacity issue  ( m5.2xl or m5.xl are safe buts but we support many instance types - this is less common?  If the instance deployed but was deleted it was either a lack of another resource (check for other errors in the CFT logs) or the CloudFormation VPC endpoint was not reachable (in this case you will see the CFT running and get stuck at the end).

      If these things do not work the follow the manual deployment methods as documented. 

  • I did subscribed. Yes it dies after 15m. Instance type is default one. 

     

    Will share some snipets that might be causing troubles.

    - having my own bucket with copied repository

     

     

    - using my apache http server with needed files

    • we want to use BYOL but I dont have license yet, wanted to do that after or generate trials for a moment
    • AMI package correcponds to ALL with two boot locations

     

     

    - not sure here about the S3 gateway, from link you provided there are multiple routes attached to it, but I dont understand what is needed there.

     

    - changed startup init not to contact internet

     

    • changed to fetch files locally from my apache

     

    Is there a posibility that you may see a part where I am doing really wrong?

     

    Thank you very much

     

    Best regards

     

  • IIRC correctly you will need the license keys to deploy the instances via the CFTs for BYOL, deploying manually from the marketplace you do not.  In the child stack deployment of the instance do you see this event?

    7:04 UTC-0500

    Bigip2NicInstance

    CREATE_IN_PROGRESS

    -

    Received SUCCESS signal with UniqueId i-xxxxxxxxxx

  • Now I am getting Startup success, nothing in logs, just rollback after some time.  Seems to be problem with Declarative onboarding ....

    024-10-10T13:04:18.768Z [13232]: silly: ipcalc function resolved first element: 172.31.1.1 of provided IPv4 CIDR
    + [[ 1 -eq 0 ]]
    ++ date +%Y-%m-%dT%H:%M:%S.%3NZ
    + echo '2024-10-10T06:04:28.686Z : Startup Script Finish'
    2024-10-10T06:04:28.686Z : Startup Script Finish
    + rm -f /tmp/6337.tmp

     

    And error CFT: The following resource(s) failed to create: [Bigip2NicInstance].

     

    Failed to receive 1 resource signal(s) within the specified duration

     

    It might be failing on activation of license. Based on https://github.com/F5Networks/f5-aws-cloudformation-v2/blob/main/examples/DEPLOYMENT-TRAFFIC-FLOWS.md how did you achive to reach the activation portal?

     

    But the PAYG template is not even having the license part in YAML, so not the case here.

     

    Thank you