Menu

#1552 smf: read IMM_long_DN_config at the start of SmfCampaignInit function

5.0.2
duplicate
nobody
None
defect
smf
d
4.7
major
2016-11-08
2015-10-21
No

reproduction:

  1. start opensaf from imm.xml
  2. enable longdns
    immcfg -a longDnsAllowed=1 opensafImm=opensafImm,safApp=safImmService
  3. create a longdn campaign name
    immcfg -c SaSmfCampaign safSmfCampaign=campign11111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222233333333333333333333333333333333333444444444444444444444444444444444444455555555555555555555555555555555555555555555666666666666666666666666666666666666666666666666667777777777777777777777,safApp=safSmfService -a saSmfCmpgFileUri=/hostfs/campaigns/campaign.xml
  4. execute the campign

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.

Discussion

  • Anders Widell

    Anders Widell - 2015-11-02
    • Milestone: 4.5.2 --> 4.6.2
     
  • Mathi Naickan

    Mathi Naickan - 2016-05-04
    • Milestone: 4.6.2 --> 4.7.2
     
  • Anders Widell

    Anders Widell - 2016-09-20
    • Milestone: 4.7.2 --> 5.0.2
     
  • Neelakanta Reddy

    • status: unassigned --> duplicate
     
  • Neelakanta Reddy

    The problem is similar to #2087 AND #2119.

     

Log in to post a comment.