reproduction:
smf-adm execute safSmfCampaign=campign11111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222233333333333333333333333333333333333444444444444444444444444444444444444455555555555555555555555555555555555555555555666666666666666666666666666666666666666666666666667777777777777777777777,safApp=safSmfService
Following is the error in smfd:
Oct 21 11:56:35.537035 osafsmfd [25055:SmfCampaignInit.cc:0184] NO CAMP: Campaign init, start add to IMM (2)
Oct 21 11:56:35.537048 osafsmfd [25055:SmfRollback.cc:0062] TR Create rollback element 'smfRollbackElement=AddToImmCcb,safSmfCampaign=campign11111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222233333333333333333333333333333333333444444444444444444444444444444444444455555555555555555555555555555555555555555555666666666666666666666666666666666666666666666666667777777777777777777777,safApp=safSmfService'
Oct 21 11:56:35.537068 osafsmfd [25055:SmfRollback.cc:0070] TR Create rollback element, parent 'safSmfCampaign=campign11111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222233333333333333333333333333333333333444444444444444444444444444444444444455555555555555555555555555555555555555555555666666666666666666666666666666666666666666666666667777777777777777777777,safApp=safSmfService', rdn 'smfRollbackElement=AddToImmCcb'
Oct 21 11:56:35.537080 osafsmfd [25055:SmfImmOperation.cc:1280] >> execute
Oct 21 11:56:35.537088 osafsmfd [25055:SmfImmOperation.cc:1206] >> createAttrValues
Oct 21 11:56:35.537096 osafsmfd [25055:SmfImmOperation.cc:1238] TR c=[OpenSafSmfRollbackElement], p=[safSmfCampaign=campign11111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222233333333333333333333333333333333333444444444444444444444444444444444444455555555555555555555555555555555555555555555666666666666666666666666666666666666666666666666667777777777777777777777,safApp=safSmfService], attr=[smfRollbackElement]
Oct 21 11:56:35.537118 osafsmfd [25055:SmfImmOperation.cc:1261] << createAttrValues
Oct 21 11:56:35.537140 osafsmfd [25055:SmfImmOperation.cc:1295] NO SmfImmRTCreateOperation::execute, createObject failed Too long parent name 342
Oct 21 11:56:35.537149 osafsmfd [25055:SmfImmOperation.cc:1296] << execute
Oct 21 11:56:35.537169 osafsmfd [25055:SmfCampaignInit.cc:0193] ER SmfCampaignInit failed to create addToImm rollback element smfRollbackElement=AddToImmCcb,safSmfCampaign=campign11111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222233333333333333333333333333333333333444444444444444444444444444444444444455555555555555555555555555555555555555555555666666666666666666666666666666666666666666666666667777777777777777777777,safApp=safSmfService, rc=SA_AIS_ERR_NAME_TOO_LONG
solution :
If the cluster is loaded from imm.xml, then the imm internal object is create at load time. The IMM object by default does not enable longdns. when the cluster is up then the longdns can be enabled.
The smfd_cb->maxDnLength does not contain the length of longdn. so, the camign will not execute and gives ERR_NAME_TOO_LONG.
This can be corrected if the immUtil.read_IMM_long_DN_config_and_set_control_block is called at the starting of SmfCampaignInit::execute.
The problem is similar to #2087 AND #2119.