Menu

#2649 clm: add new admin operations to CLM

5.17.11
fixed
None
enhancement
clm
-
major
False
2017-10-31
2017-10-20
No

Due to hard handling of executing scripts on remote nodes when user and password are required, CLM can be used for remote executing of scripts.

The admin operation "immadm -o 4 ..." will be extended in the way that when CLM node DN is targeted object, the CLM node will be rebooted.
In example if SC-2 needs to be rebooted:
immadm -o 4 safNode=SC-2,safCluster=myClmCluster

Another admin operation "immadm -o 5 ..." will be a more generic admin operation and it will execute scripts stored in "scripts/clm" directory. The scripts will be prefixed with osafclm_ word.

Related

Tickets: #2696
Wiki: ChangeLog-5.17.11
Wiki: NEWS-5.17.11
Commit: [4fa9d9]

Discussion

  • Zoran Milinkovic

    • status: accepted --> review
     
  • Zoran Milinkovic

    • status: review --> fixed
     
  • Zoran Milinkovic

    commit 864c0da8d303f420cdb86e3390f239d20ab9801c
    Author: Zoran Milinkovic zoran.milinkovic@ericsson.com
    Date: Fri Oct 27 16:41:21 2017 +0200

    clm: add new admin operations [#2649]
    
    Add two new admin operations to CLM.
    1. Node reboot will use the same openation id as cluster reboot, but the DN will contain CLM node
    
       Example for rebooting SC2:
         immadm -o 4 safNode=SC-2,safCluster=myClmCluster
    
    2. Execute action on remote nodei(s) with operation id 5.
       Action is a script stored in /usr/lib/opensaf/clm-scripts directory started with prefix "osafclm_"
       The action name needs to be provided by saClmAction parameter, which is type of SaStringT.
       If the targeted DN is CLM node, the action will be done on the node.
       If the targeted DN is CLM cluster DN, the action will be done on all nodes in the cluster.
    
       Example for executing clm-scripts/osafclm_stop script on SC-2:
         immadm -o 5 -p saClmAction:SA_STRING_T:stop safNode=SC-2,safCluster=myClmCluster
    
       Example for executing clm-scripts/osafclm_stop script on all nodes:
         immadm -o 5 -p saClmAction:SA_STRING_T:stop safCluster=myClmCluster
    
     
  • Zoran Milinkovic

    commit d8de354eb803664c7ad9389071f7be624b237aa9
    Author: Zoran Milinkovic zoran.milinkovic@ericsson.com
    Date: Fri Oct 27 17:25:59 2017 +0200

    clm: fix for test.sh problem caused by patch for #2649 [#2649]
    
     
  • Zoran Milinkovic

     
  • Zoran Milinkovic

    commit 6ef61617a15646c122b98afaeda692bf15aedd68
    Author: Zoran Milinkovic zoran.milinkovic@ericsson.com
    Date: Mon Oct 30 16:37:39 2017 +0100

    clm: fix the build on 32-bit linux caused #2649 [#2649]
    
    The patch fixes the problem with building OpenSAF on 32-bit linux
    
     
  • Zoran Milinkovic

    develop:

    commit 87095e7ca1ba384c5ff8695462cf45a096a42f85
    Author: Zoran Milinkovic zoran.milinkovic@ericsson.com
    Date: Tue Oct 31 14:14:53 2017 +0100

    clm: fix RPM build [#2649]
    

    release:

    commit 870097797e4c21aeb7b5f951d2ee72dd46934797
    Author: Zoran Milinkovic zoran.milinkovic@ericsson.com
    Date: Tue Oct 31 14:14:53 2017 +0100

    clm: fix RPM build [#2649]
    
     

Log in to post a comment.