Forum Discussion

jiseruk_43901's avatar
jiseruk_43901
Icon for Nimbostratus rankNimbostratus
Jun 10, 2014

Iapp does not find irule located in the same iapp directory

Hi. I have an application service located in the path /test/test-api-ws-read-master.app/test-api-ws-read-master and an irule created in the same path /test/test-api-ws-read-master.app/test-api-ws-read-master. But when the iapp is modified to include the irule, it doesn´t find it.

 

The iapp code that adds the irule is: tmsh::create / ltm virtual $object_name destination $listen_on pool $object_name profiles replace-all-with {$http_profile tcp} source-address-translation {type snat pool $snat_pool} rules {$irule}

 

When I call the Management.ApplicationService.modify() from iControl, I get this error: Exception caught in Management::urn:iControl:Management/ApplicationService::modify() Exception: Common::OperationFailed primary_error_code : 21954567 (0x014F0007) secondary_error_code : 0 error_string : 01070341:3: Virtual server /test/test-api-ws-read-master.app/test-api-ws-read-master references rule /test/test-api-ws-read-master.app/test-api-ws-read-master which does not exist.

 

But the irule already exists. I can add the irule to the virtual server manually and it works.

 

Can you help me? Thanks a lot.

 

Regards. Javier Iseruk

 

1 Reply

  • Fred_Slater_856's avatar
    Fred_Slater_856
    Historic F5 Account

    The app service directory that is created by an iApp is intended only for objects created by that iApp. Creating objects within app service directories is disabled in both the UI and in TMSH for this reason. (You probably disabled strictness in order to create your irule.) I am not aware of any workaround. If you need to create objects on BIG-IP, you must do it outside the private directory created by the iApp.