Highlighted
Absent Member.. GTrejos7 Absent Member..
Absent Member..
79 views

[Support Tip] After upgrading from OMU 8.x to OMU/OML 9 opcragt -distrib crashing

Problem:

Running an 'opcragt -distrib <node>' to some of our nodes is crashing.  
The following commands can be run 'opcragt -status', ovpolicy, ovdeploy, etc. to the same nodes and they all work.  
From the Management Server it is possible to distribute to other nodes with the exact same OS and agent version successfully.  

Here is the output from the failed opcragt:

[root@cnlip-ovom01 distrib]# opcragt -distrib -distrib abc.net
Node abc.net:
Create distribution data and inform agent...*** glibc detected *** opcragt: double free or corruption (!prev): 0x0000000001fd4d30 ***
======= Backtrace: =========
/lib64/libc.so.6[0x37180716af]
/lib64/libc.so.6(cfree+0x4b)[0x37180758db]
/opt/OV/lib64/libopcsv_r.so(csmpb_free_set_fields+0xa7)[0x2b34f36af7aa]
/opt/OV/lib64/libopcsv_r.so(csmpb_free_unconv_wbem_msgsuppcond+0x79)[0x2b34f36b0193]
/opt/OV/lib64/libopcsv_r.so(csmpb_free_conditions+0x2e8)[0x2b34f36b0680]
/opt/OV/lib64/libopcsv_r.so(csmpb_wbemsrcfree+0x2c5)[0x2b34f36b12ca]
/opt/OV/lib64/libopcsv_r.so(csmpb_cfg_free+0x355)[0x2b34f36b2905]
/opt/OV/lib64/libopcdb.so(csm_dbi_node_req_templ_get+0x811e)[0x2b34f3bbdc76]
/opt/OV/lib64/libopcdb.so(csm_dbi_node_templ_status_set+0x1dce)[0x2b34f3bc0781]
/opt/OV/lib64/libopcdb.so(csm_db_node_templ_status_set+0xd10)[0x2b34f3bc53cc]
/opt/OV/lib64/libopcsv_r.so(csmpb_do_distrib+0xee)[0x2b34f380bf4f]
/opt/OV/lib64/libopcsv_r.so(csmagt_do_distrib+0xa2)[0x2b34f38046e0]
opcragt[0x40b8e3]
opcragt[0x40e9a0]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x371801d9c4]
opcragt(__gxx_personality_v0+0x159)[0x407fd9]
======= Memory map: ========
00400000-00419000 r-xp 00000000 fd:06 753829                             /opt/OV/bin/OpC/opcragt
00518000-0051b000 rw-p 00018000 fd:06 753829                             /opt/OV/bin/OpC/opcragt
01dee000-0202d000 rw-p 01dee000 00:00 0                                  [heap]
3717c00000-3717c1c000 r-xp 00000000 fd:00 459075                         /lib64/ld-2.5.so
3717e1c000-3717e1d000 r--p 0001c000 fd:00 459075                         /lib64/ld-2.5.so
3717e1d000-3717e1e000 rw-p 0001d000 fd:00 459075                         /lib64/ld-2.5.so
3718000000-371814f000 r-xp 00000000 fd:00 459076                         /lib64/libc-2.5.so
371814f000-371834f000 ---p 0014f000 fd:00 459076                         /lib64/libc-2.5.so
...
2b34fb5d1000-2b34fb5d2000 rw-p 2b34fb5d1000 00:00 0
2b34fb5f1000-2b34fb5f5000 r-xp 00000000 fd:00 458777                     /lib64/libnss_dns-2.5.so
2b34fb5f5000-2b34fb7f5000 ---p 00004000 fd:00 458777                     /lib64/libnss_dns-2.5.so
2b34fb7f5000-2b34fb7f6000 r--p 00004000 fd:00 458777                     /lib64/libnss_dns-2.5.so
2b34fb7f6000-2b34fb7f7000 rw-p 00005000 fd:00 458777                     /lib64/libnss_dns-2.5.so
2b34fb7f7000-2b34fb849000 rw-p 2b34fb7f7000 00:00 0
7fff3b18f000-7fff3b1ac000 rwxp 7ffffffe0000 00:00 0                      [stack]
7fff3b1ac000-7fff3b1ad000 rw-p 7fffffffe000 00:00 0
7fff3b1fd000-7fff3b200000 r-xp 7fff3b1fd000 00:00 0                      [vdso]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0                  [vsyscall]
Aborted

CAUSE:

The cache of the agent may contain older versions of some policies and this prevents new policies from being deployed to the node correctly.



SOLUTION:

Remove all the the templates from the node and redeploy the migrated policies from the new Management Server.

You can run the following command on the node:

#ovpolicy -remove -all

After that the command ‘opcragt –distrib’ to it should run with no issues.

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
If you liked it I would appreciate KUDOs.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.