Forum Discussion

jbuddenh_127560's avatar
jbuddenh_127560
Icon for Nimbostratus rankNimbostratus
Jul 02, 2015

Issue with "modify ltm virtual-address" in iApp template

Hi,

 

I am running LTM 11.5.3. I have a custom iApp template and as the last step in the template I am issueing the following command so that my virtual address does not respond to icmp when there are no available pool memebers.

 

iapp::conf modify ltm virtual-address $::conf__addr icmp-echo selective

 

When I configure my iApp I get the following error message on the F5 UI: "01020036:3: The requested Virtual Address (/Common/aaa-jeff-test28-new.app/1.1.1.110) was not found."

 

This is the output from /shared/tmp/scriptd.out

 

Starting iApp /Common/A-Travelers-iapp-template-v2-8 07/02/2015 08:40:00 create ltm pool aaa-jeff-test28-new_pool members add { 10.24.1.1:80 { priority-group 0 } 20.14.1.2:80 { priority-group 0 } } monitor aaa-jeff-http load-balancing-mode round-robin modify ltm pool aaa-jeff-test28-new_pool min-active-members 0 create ltm virtual aaa-jeff-test28-new_vip_80 destination 1.1.1.110:80 pool aaa-jeff-test28-new_pool source-address-translation { type none } persist none profiles replace-all-with { trav-tcp-lan-optimized_prof { context serverside } trav-tcp-wan-optimized_prof { context clientside } trav-http-xff_prof trav-oneconnect-multiplex } rules { } modify ltm virtual-address 1.1.1.110 icmp-echo selective

 

I have tried using an action of "create"....iapp::conf create ltm virtual-address $::conf__addr icmp-echo selective However, that produces an error that the Virtual Address already exists.

 

There seems to be a chicken and egg thing going on here, and I was hoping someone could explain and provided a solution.

 

Thanks, Jeff

 

5 Replies

  • mikeshimkus_111's avatar
    mikeshimkus_111
    Historic F5 Account

    Hi Jeff, I'm guessing your virtual address is actually in /Common (when a virtual server is created by an iApp, the corresponding virtual address object is not linked to that iApp because it could be shared by many deployments), yet unless you specify that literally the iApp will try to look for it in its own folder. Try stripping out the app service name from the virtual address:

     

    set confaddr [string map { /${tmsh::app_name}.app/ / } $::conf__addr]

     

    iapp::conf modify ltm virtual-address $confaddr icmp-echo selective

     

  • Mike,

     

    Thanks for the suggestion. I subsituted in your code and got the same result. 01020036:3: The requested Virtual Address (/Common/jeff-p2p-qa.app/170.202.217.19) was not found

     

    My orogional variable $::conf__addr, and your variable $confaddr have the same value just prior to the "modify ltm virtual-address" statement.

     

    d::conf__addr: 170.202.217.19

     

    dconfaddr: 170.202.217.19

     

    modify ltm virtual-address 170.202.217.19 icmp-echo selective

     

    Jeff

     

  • mikeshimkus_111's avatar
    mikeshimkus_111
    Historic F5 Account

    Not sure what to tell you here. At first glance this looks like a bug, but it may actually be intended behavior.

     

    The virtual address created implicitly when you create a virtual server isn't tied to any app service, so at least you can modify its properties out-of-band without disabling strictness on the iApp.

     

    In the process of troubleshooting, I even coded up a small iApp to list and modify the setting on the virtual address itself, and it worked fine.

     

    Hope that helps.

     

    • jbuddenh_127560's avatar
      jbuddenh_127560
      Icon for Nimbostratus rankNimbostratus
      Thanks for the feedback Mike. I think this is either a bug or an oversight in function. I'm thring to allow for this setting as an iapp is created instead of having to perform and extra step afterwards. I'm going to open a support case and try to get someone to answer the question of "possible or not". Thanks again for taking a look.
  • Hi,

     

    Thanks for the question and answer. It help me a lot. Just a precision : I had to insert /Common/ in "iapp::conf modify ltm virtual-address $confaddr icmp-echo selective". Because address variable for me doesn't contain "/Common/" (just simple IP).

     

    Best regards. Olivier.