Forum Discussion
iApp not working from 11.3 to 11.4 /Common folder
I have an iApp that worked in 11.3 with the following important parts.
I get this error. Any thoughts on what may have changed? It seems like I need to be in /Common, but I update my partition at the top.
cli admin-partitions { update-partition Common } sys application template /Common/baseiApp { actions { definition { html-help { } implementation { tmsh::include "f5.app_utils"
proc tmsh_create { component arguments } { regsub -all {\"} $arguments "\\"" arguments regsub -all {[} $arguments "\[" arguments regsub -all {]} $arguments "\]" arguments tmsh::run_proc f5.app_utils:do_tmsh_create "\"$component\"" "\"$arguments\"" }
proc tmsh_modify { component arguments } { regsub -all {\"} $arguments "\\"" arguments regsub -all {[} $arguments "\[" arguments regsub -all {]} $arguments "\]" arguments tmsh::run_proc f5.app_utils:do_tmsh_modify "\"$component\"" "\"$arguments\"" <--- if I comment this out it moves along }
Caused by: Exception caught in Management::urn:iControl:Management/ApplicationService::create() Exception: Common::OperationFailed primary_error_code : 21954567 (0x014F0007) secondary_error_code : 0 error_string : 01071762:3: The system component may only be modified from the /Common folder. [job:] .....
3 Replies
- Fred_Slater_856Historic F5 Account
Hi James- I'd like to help, but I need some more information. Your comment about removing $arguments leads me to believe that the error is occurring during implementation, ie. after you click "Finished" to submit the iApp. I suppose that some command further into your iApp is calling tmsh_modify with arguments that, when handed to mcpd, are throwing an error. You should be able to determine which line is crying foul by looking at the debug output in /var/tmp/scriptd.out. Since the iApp stops execution when the error occurs, the offending command will be the last entry. If the cause is not obvious by then, reply to the post with the tail of scriptd.out and I will try to identify why the offending tmsh command behaves differently in 11.4. -Fred
- Hyder_141209
Altostratus
Hello Fred,
I am getting similar error while executing a script to create the iApp.
SOAP-ENV:Server Exception caught in Management::urn:iControl:Management/ApplicationService::create() Exception: Common::OperationFailed primary_error_code : 21954567 (0x014F0007) secondary_error_code : 0 error_string : 01071abb:3: Cannot create/modify published policy '/TEST01/test.example.co.nz_443.app/test.example.co.nz_443_policy' directly, try specifying a draft folder like '/TEST01/test.example.co.nz_443.app/Drafts/test.example.co.nz_443_policy'.
I can see the debug log is ending properly and no error over there:
............
Ending iApp /Common/test_template_20160930 09/30/2016 13:17:53
Run time 14353 sec
F5 Version: 12.1.0. Its working at 11.6.1.
Appreciate your advice on this.
Best regards
Hyder
- Fred_Slater_856Historic F5 Account
Hyder- LTM draft policies were introduced in 12.1. You can workaround this with the "legacy" keyword, as this user did.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com