Forum Discussion

AndyC_128552's avatar
AndyC_128552
Icon for Nimbostratus rankNimbostratus
Dec 14, 2015

Cannot assign iRule to virtual server outside of iApp scope

Hi,

 

here is my scenario:

 

I have created a fast_http vs which is to run an iRule to re-direct https traffic other virtual servers based on URI segments.

 

I have created the fast_http vs and have created the sub-VS via iApps.

 

I have reference the iApps created VS in the iRule - all good, but when I apply the iRule to the fast_http VS I get the following error:

 

01070151:3: Rule [/Common/********* ] error: Unable to find virtual_server ******* referenced at line 7.

 

Why would this be?

 

Can items during iApp creation be accessed by other VS outside of the iApp scope?

 

I have amended the iRule and change it to another non-iApp VS and that works fine.

 

Thanks

 

  • If you created the sub-vs first (with or without an iapp), then created the fast_http vs, then created and attached the irule, I don't see a problem. Perhaps you did not properly specify the name of the iapp-created vs--it will be in the iapp folder (e.g. /Common/my_iapp.app/), not in /Common. By the way, why not build the whole application inside the iapp?

     

  • Fred_Slater_856's avatar
    Fred_Slater_856
    Historic F5 Account

    If you created the sub-vs first (with or without an iapp), then created the fast_http vs, then created and attached the irule, I don't see a problem. Perhaps you did not properly specify the name of the iapp-created vs--it will be in the iapp folder (e.g. /Common/my_iapp.app/), not in /Common. By the way, why not build the whole application inside the iapp?

     

  • Thanks Fred - spot on!

     

    I needed to fully qualify the Virtual Server name that was created by the iApp process. This could be found by looking at the iApp in question in the Application Service List and taking the value from the Partition/Path column, append VS name to this.

     

    Cheers!