`<div dir="ltr"><div>/opt/ha was created by the HA install package.<br></div>It is not missing after upgrade but many python files on the other hand, are removed from the system by the upgrade from r10 to r12.<br><br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 12, 2014 at 4:25 PM, Zach Malone <span dir="ltr"><<a href="mailto:zmalone@omniti.com" target="_blank">zmalone@omniti.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">/opt/ha is locally built, it isn't delivered by OmniOS. I'm not sure<br>
why it would go missing on upgrade, how did you initially create it?<br>
--Zach<br>
<div><div class="h5"><br>
On Thu, Dec 11, 2014 at 5:23 PM, Joe Veliscos <<a href="mailto:joeveliscos@gmail.com">joeveliscos@gmail.com</a>> wrote:<br>
> Hi<br>
><br>
> The command that I execute :<br>
> root#crm<br>
> abort: couldn't find crm libraries in [/opt/ha/sbin<br>
> /usr/lib/python2.6/vendor-packages/setuptools-0.6c11-py2.6.egg<br>
> /opt/ha/lib/python2.6/site-packages /usr/lib/python26.zip /usr/lib/python2.6<br>
> /usr/lib/python2.6/plat-sunos5 /usr/lib/python2.6/lib-tk<br>
> /usr/lib/python2.6/lib-old /usr/lib/python2.6/lib-dynload<br>
> /usr/lib/python2.6/site-packages /usr/lib/python2.6/vendor-packages]<br>
> (check your install and PYTHONPATH)<br>
><br>
> I have the following environment variables set:<br>
> export PYTHONPATH=/opt/ha/lib/python2.6/site-packages<br>
> export PATH=/opt/ha/bin:/opt/ha/sbin:$PATH<br>
> export OCF_ROOT=/opt/ha/lib/ocf<br>
> export OCF_AGENTS=/opt/ha/lib/ocf/resource.d/heartbeat<br>
><br>
> I have exactly the same in an r10 release (pre upgrade to rr12) where there<br>
> is no problem<br>
><br>
> I did a truss -d crm and it seems that many files it searches for are not<br>
> found. Snippets of the output (very long file) hope this helps:<br>
><br>
> Below (as I understand it ) some searches which it can resolve:<br>
><br>
> 0.0098 resolvepath("/usr/lib/amd64/ld.so.1", "/lib/amd64/ld.so.1", 1023)<br>
> = 18<br>
> 0.0100 resolvepath("/usr/bin/amd64/python2.6",<br>
> "/usr/bin/amd64/python2.6", 1023) = 24<br>
> 0.0101 stat("/usr/bin/amd64/python2.6", 0xFFFFFD7FFFDFF910) = 0<br>
> 0.0103 open("/var/ld/64/ld.config", O_RDONLY) Err#2 ENOENT<br>
> 0.0105 stat("/usr/gnu/lib/amd64/libpython2.6.so.1.0",<br>
> 0xFFFFFD7FFFDFF000) Err#2 ENOENT<br>
> 0.0106 stat("/usr/lib/amd64/libpython2.6.so.1.0", 0xFFFFFD7FFFDFF000) =<br>
> 0<br>
> 0.0108 resolvepath("/usr/lib/amd64/libpython2.6.so.1.0",<br>
> "/usr/lib/amd64/libpython2.6.so.1.0", 1023) = 34<br>
> 0.0110 open("/usr/lib/amd64/libpython2.6.so.1.0", O_RDONLY) = 3<br>
> 0.0112 mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF350AB8,<br>
> 0xFFFFFD7FFFDFEB5C, 0x00000000) = 0<br>
> 0.0113 close(3) = 0<br>
> 0.0115 mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,<br>
> MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF340000<br>
> 0.0117 memcntl(0xFFFFFD7FFEAB0000, 457808, MC_ADVISE, MADV_WILLNEED, 0,<br>
> 0) = 0<br>
> 0.0118 stat("/usr/gnu/lib/amd64/libsocket.so.1", 0xFFFFFD7FFFDFF000)<br>
> Err#2 ENOENT<br>
> 0.0120 stat("/usr/lib/amd64/libsocket.so.1", 0xFFFFFD7FFFDFF000) = 0<br>
> 0.0121 resolvepath("/usr/lib/amd64/libsocket.so.1",<br>
> "/lib/amd64/libsocket.so.1", 1023) = 25<br>
> 0.0123 open("/usr/lib/amd64/libsocket.so.1", O_RDONLY) = 3<br>
> 0.0125 mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF340A18,<br>
> 0xFFFFFD7FFFDFEB5C, 0x00000000) = 0<br>
> 0.0127 close(3) = 0<br>
> 0.0128 mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,<br>
> MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF330000<br>
> 0.0129 memcntl(0xFFFFFD7FFEA80000, 32240, MC_ADVISE, MADV_WILLNEED, 0,<br>
> 0) = 0<br>
> 0.0130 stat("/usr/gnu/lib/amd64/libnsl.so.1", 0xFFFFFD7FFFDFF000) Err#2<br>
> ENOENT<br>
> 0.0132 stat("/usr/lib/amd64/libnsl.so.1", 0xFFFFFD7FFFDFF000) = 0<br>
> 0.0134 resolvepath("/usr/lib/amd64/libnsl.so.1",<br>
> "/lib/amd64/libnsl.so.1", 1023) = 22<br>
> 0.0135 open("/usr/lib/amd64/libnsl.so.1", O_RDONLY) = 3<br>
> 0.0137 mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF3309C8,<br>
> 0xFFFFFD7FFFDFEB5C, 0x00000000) = 0<br>
> 0.0139 close(3) = 0<br>
> 0.0140 mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,<br>
> MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF320000<br>
> 0.0141 memcntl(0xFFFFFD7FFEDD0000, 180072, MC_ADVISE, MADV_WILLNEED, 0,<br>
> 0) = 0<br>
> 0.0142 stat("/usr/gnu/lib/amd64/libm.so.2", 0xFFFFFD7FFFDFF000) Err#2<br>
> ENOENT<br>
> 0.0144 stat("/usr/lib/amd64/libm.so.2", 0xFFFFFD7FFFDFF000) = 0<br>
> 0.0145 resolvepath("/usr/lib/amd64/libm.so.2", "/lib/amd64/libm.so.2",<br>
> 1023) = 20<br>
> 0.0147 open("/usr/lib/amd64/libm.so.2", O_RDONLY) = 3<br>
> 0.0149 mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF3209F8,<br>
> 0xFFFFFD7FFFDFEB5C, 0x00000000) = 0<br>
> 0.0150 close(3) = 0<br>
> 0.0151 mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,<br>
> MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF310000<br>
> 0.0153 memcntl(0xFFFFFD7FFEEE0000, 58680, MC_ADVISE, MADV_WILLNEED, 0,<br>
> 0) = 0<br>
> 0.0154 stat("/usr/gnu/lib/amd64/libc.so.1", 0xFFFFFD7FFFDFF000) Err#2<br>
> ENOENT<br>
> 0.0156 stat("/usr/lib/amd64/libc.so.1", 0xFFFFFD7FFFDFF000) = 0<br>
> 0.0157 resolvepath("/usr/lib/amd64/libc.so.1", "/lib/amd64/libc.so.1",<br>
> 1023) = 20<br>
> 0.0159 open("/usr/lib/amd64/libc.so.1", O_RDONLY) = 3<br>
> 0.0161 mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF310920,<br>
> 0xFFFFFD7FFFDFEB5C, 0x00000000) = 0<br>
> 0.0162 close(3) = 0<br>
> 0.0163 mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,<br>
> MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF160000<br>
> 0.0165 memcntl(0xFFFFFD7FFF170000, 477048, MC_ADVISE, MADV_WILLNEED, 0,<br>
> 0) = 0<br>
> 0.0166 stat("/lib/64/libsocket.so.1", 0xFFFFFD7FFFDFF000) = 0<br>
> 0.0168 resolvepath("/lib/64/libsocket.so.1",<br>
> "/lib/amd64/libsocket.so.1", 1023) = 25<br>
> 0.0170 stat("/lib/64/libnsl.so.1", 0xFFFFFD7FFFDFF000) = 0<br>
> 0.0171 resolvepath("/lib/64/libnsl.so.1", "/lib/amd64/libnsl.so.1",<br>
> 1023) = 22<br>
> 0.0173 stat("/lib/64/libm.so.2", 0xFFFFFD7FFFDFF000) = 0<br>
> 0.0174 resolvepath("/lib/64/libm.so.2", "/lib/amd64/libm.so.2", 1023) =<br>
> 20<br>
> 0.0177 stat("/usr/gnu/lib/amd64/libgcc_s.so.1", 0xFFFFFD7FFFDFF000)<br>
> Err#2 ENOENT<br>
> 0.0179 stat("/lib/64/libgcc_s.so.1", 0xFFFFFD7FFFDFF000) Err#2 ENOENT<br>
> 0.0180 stat("/usr/lib/64/libgcc_s.so.1", 0xFFFFFD7FFFDFF000) = 0<br>
> 0.0185 resolvepath("/usr/lib/64/libgcc_s.so.1",<br>
> "/usr/lib/amd64/libgcc_s.so.1", 1023) = 28<br>
> 0.0187 open("/usr/lib/64/libgcc_s.so.1", O_RDONLY) = 3<br>
><br>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> Below searches which it cannot resolve:<br>
><br>
> 0.0329 fstat(2, 0xFFFFFD7FFFDFF920) = 0<br>
> 0.0331 readlink("/usr/bin/python", "python2.6", 1024) = 9<br>
> 0.0333 readlink("/usr/bin/python2.6", 0xFFFFFD7FFFDFF5B0, 1024) Err#22<br>
> EINVAL<br>
> 0.0335 stat("/usr/bin/Modules/Setup", 0xFFFFFD7FFFDFF5B0) Err#2 ENOENT<br>
> 0.0336 stat("/usr/bin/lib/python2.6/os.py", 0xFFFFFD7FFFDFF5B0) Err#2<br>
> ENOENT<br>
> 0.0338 stat("/usr/bin/lib/python2.6/os.pyc", 0xFFFFFD7FFFDFF5B0) Err#2<br>
> ENOENT<br>
> 0.0342 stat("/usr/lib/python2.6/os.py", 0xFFFFFD7FFFDFF5B0) = 0<br>
> 0.0344 stat("/usr/bin/Modules/Setup", 0xFFFFFD7FFFDFF120) Err#2 ENOENT<br>
> 0.0345 stat("/usr/bin/lib/python2.6/lib-dynload", 0xFFFFFD7FFFDFF120)<br>
> Err#2 ENOENT<br>
> 0.0347 stat("/usr/lib/python2.6/lib-dynload", 0xFFFFFD7FFFDFF120) = 0<br>
> 0.0351 brk(0x00485250) = 0<br>
><br>
> 0.0456 sysconfig(_CONFIG_SIGRT_MAX) = 73<br>
> 0.0459 stat("/opt/ha/lib/python2.6/site-packages", 0xFFFFFD7FFFDFDF90) =<br>
> 0<br>
> 0.0461 stat("/opt/ha/lib/python2.6/site-packages", 0xFFFFFD7FFFDFE340) =<br>
> 0<br>
> 0.0462 stat("/opt/ha/lib/python2.6/site-packages/site",<br>
> 0xFFFFFD7FFFDFE640) Err#2 ENOENT<br>
> 0.0464 stat("/opt/ha/lib/python2.6/site-packages/site",<br>
> 0xFFFFFD7FFFDFEAD0) Err#2 ENOENT<br>
> 0.0465 open("/opt/ha/lib/python2.6/site-packages/64/site.so", O_RDONLY)<br>
> Err#2 ENOENT<br>
> 0.0467 stat("/opt/ha/lib/python2.6/site-packages/site",<br>
> 0xFFFFFD7FFFDFEAD0) Err#2 ENOENT<br>
> 0.0469 open("/opt/ha/lib/python2.6/site-packages/64/sitemodule.so",<br>
> O_RDONLY) Err#2 ENOENT<br>
> 0.0470 stat("/opt/ha/lib/python2.6/site-packages/site",<br>
> 0xFFFFFD7FFFDFEAD0) Err#2 ENOENT<br>
> 0.0471 open("/opt/ha/lib/python2.6/site-packages/site.py", O_RDONLY)<br>
> Err#2 ENOENT<br>
> 0.0473 stat("/opt/ha/lib/python2.6/site-packages/site",<br>
> 0xFFFFFD7FFFDFEAD0) Err#2 ENOENT<br>
> 0.0474 open("/opt/ha/lib/python2.6/site-packages/site.pyc", O_RDONLY)<br>
> Err#2 ENOENT<br>
> 0.0476 stat("/usr/lib/python26.zip", 0xFFFFFD7FFFDFDF90) Err#2 ENOENT<br>
> 0.0477 stat("/usr/lib", 0xFFFFFD7FFFDFDF90) = 0<br>
> 0.0478 stat("/usr/lib/python26.zip", 0xFFFFFD7FFFDFE340) Err#2 ENOENT<br>
> 0.0480 stat("/usr/lib/python2.6/", 0xFFFFFD7FFFDFDF90) = 0<br>
> 0.0481 stat("/usr/lib/python2.6/", 0xFFFFFD7FFFDFE340) = 0<br>
> 0.0482 stat("/usr/lib/python2.6/site", 0xFFFFFD7FFFDFE640) Err#2 ENOENT<br>
> 0.0483 stat("/usr/lib/python2.6/site", 0xFFFFFD7FFFDFEAD0) Err#2 ENOENT<br>
> 0.0485 open("/usr/lib/python2.6/64/site.so", O_RDONLY) Err#2 ENOENT<br>
> 0.0486 stat("/usr/lib/python2.6/site", 0xFFFFFD7FFFDFEAD0) Err#2 ENOENT<br>
> 0.0487 open("/usr/lib/python2.6/64/sitemodule.so", O_RDONLY) Err#2<br>
> ENOENT<br>
> 0.0488 stat("/usr/lib/python2.6/site", 0xFFFFFD7FFFDFEAD0) Err#2 ENOENT<br>
> 0.0490 open("/usr/lib/python2.6/site.py", O_RDONLY) = 3<br>
> 0.0491 fstat(3, 0xFFFFFD7FFFDFEA90) = 0<br>
> 0.0492 open("/usr/lib/python2.6/site.pyc", O_RDONLY) = 4<br>
> 0.0493 fstat(4, 0xFFFFFD7FFFDFE8D0) = 0<br>
> 0.0494 brk(0x004D5250) = 0<br>
> 0.0496 brk(0x004D9250) = 0<br>
> 0.0498 fstat(4, 0xFFFFFD7FFFDFE800) = 0<br>
> 0.0498 ioctl(4, TCGETA, 0xFFFFFD7FFFDFE880) Err#25 ENOTTY<br>
> 0.0500 read(4, "D1F2\r\nA09390 S c\0\0\0".., 18944) = 18651<br>
><br>
> 0.0514 stat("/opt/ha/lib/python2.6/site-packages/os", 0xFFFFFD7FFFDFD320)<br>
> Err#2 ENOENT<br>
> 0.0516 stat("/opt/ha/lib/python2.6/site-packages/os",<br>
> 0xFFFFFD7FFFDFD7B0) Err#2 ENOENT<br>
> 0.0517 open("/opt/ha/lib/python2.6/site-packages/64/os.so", O_RDONLY)<br>
> Err#2 ENOENT<br>
> 0.0519 stat("/opt/ha/lib/python2.6/site-packages/os",<br>
> 0xFFFFFD7FFFDFD7B0) Err#2 ENOENT<br>
> 0.0520 open("/opt/ha/lib/python2.6/site-packages/64/osmodule.so",<br>
> O_RDONLY) Err#2 ENOENT<br>
> 0.0521 stat("/opt/ha/lib/python2.6/site-packages/os",<br>
> 0xFFFFFD7FFFDFD7B0) Err#2 ENOENT<br>
> 0.0522 open("/opt/ha/lib/python2.6/site-packages/os.py", O_RDONLY) Err#2<br>
> ENOENT<br>
> 0.0524 stat("/opt/ha/lib/python2.6/site-packages/os",<br>
> 0xFFFFFD7FFFDFD7B0) Err#2 ENOENT<br>
> 0.0525 open("/opt/ha/lib/python2.6/site-packages/os.pyc", O_RDONLY)<br>
> Err#2 ENOENT<br>
> 0.0527 stat("/usr/lib/python2.6/os", 0xFFFFFD7FFFDFD320) Err#2 ENOENT<br>
> 0.0528 stat("/usr/lib/python2.6/os", 0xFFFFFD7FFFDFD7B0) Err#2 ENOENT<br>
> 0.0529 open("/usr/lib/python2.6/64/os.so", O_RDONLY) Err#2 ENOENT<br>
> 0.0530 stat("/usr/lib/python2.6/os", 0xFFFFFD7FFFDFD7B0) Err#2 ENOENT<br>
> 0.0532 open("/usr/lib/python2.6/64/osmodule.so", O_RDONLY) Err#2 ENOENT<br>
> 0.0533 stat("/usr/lib/python2.6/os", 0xFFFFFD7FFFDFD7B0) Err#2 ENOENT<br>
> 0.0534 open("/usr/lib/python2.6/os.py", O_RDONLY) = 4<br>
> 0.0536 fstat(4, 0xFFFFFD7FFFDFD770) = 0<br>
> 0.0537 open("/usr/lib/python2.6/os.pyc", O_RDONLY) = 5<br>
> 0.0538 fstat(5, 0xFFFFFD7FFFDFD5B0) = 0<br>
> 0.0539 fstat(5, 0xFFFFFD7FFFDFD4E0) = 0<br>
> 0.0540 ioctl(5, TCGETA, 0xFFFFFD7FFFDFD560) Err#25 ENOTTY<br>
> 0.0541 read(5, "D1F2\r\n9F9390 S c\0\0\0".., 26112) = 25702<br>
><br>
> 0.0568 stat("/opt/ha/lib/python2.6/site-packages/posixpath",<br>
> 0xFFFFFD7FFFDFC000) Err#2 ENOENT<br>
> 0.0570 stat("/opt/ha/lib/python2.6/site-packages/posixpath",<br>
> 0xFFFFFD7FFFDFC490) Err#2 ENOENT<br>
> 0.0572 open("/opt/ha/lib/python2.6/site-packages/64/posixpath.so",<br>
> O_RDONLY) Err#2 ENOENT<br>
> 0.0573 stat("/opt/ha/lib/python2.6/site-packages/posixpath",<br>
> 0xFFFFFD7FFFDFC490) Err#2 ENOENT<br>
> 0.0575 open("/opt/ha/lib/python2.6/site-packages/64/posixpathmodule.so",<br>
> O_RDONLY) Err#2 ENOENT<br>
> 0.0576 stat("/opt/ha/lib/python2.6/site-packages/posixpath",<br>
> 0xFFFFFD7FFFDFC490) Err#2 ENOENT<br>
> 0.0577 open("/opt/ha/lib/python2.6/site-packages/posixpath.py",<br>
> O_RDONLY) Err#2 ENOENT<br>
> 0.0579 stat("/opt/ha/lib/python2.6/site-packages/posixpath",<br>
> 0xFFFFFD7FFFDFC490) Err#2 ENOENT<br>
> 0.0580 open("/opt/ha/lib/python2.6/site-packages/posixpath.pyc",<br>
> O_RDONLY) Err#2 ENOENT<br>
> 0.0582 stat("/usr/lib/python2.6/posixpath", 0xFFFFFD7FFFDFC000) Err#2<br>
> ENOENT<br>
> 0.0583 stat("/usr/lib/python2.6/posixpath", 0xFFFFFD7FFFDFC490) Err#2<br>
> ENOENT<br>
> 0.0584 open("/usr/lib/python2.6/64/posixpath.so", O_RDONLY) Err#2 ENOENT<br>
> 0.0585 stat("/usr/lib/python2.6/posixpath", 0xFFFFFD7FFFDFC490) Err#2<br>
> ENOENT<br>
> 0.0587 open("/usr/lib/python2.6/64/posixpathmodule.so", O_RDONLY) Err#2<br>
> ENOENT<br>
> 0.0588 stat("/usr/lib/python2.6/posixpath", 0xFFFFFD7FFFDFC490) Err#2<br>
> ENOENT<br>
> 0.0589 open("/usr/lib/python2.6/posixpath.py", O_RDONLY) = 5<br>
> 0.0591 fstat(5, 0xFFFFFD7FFFDFC450) = 0<br>
> 0.0592 open("/usr/lib/python2.6/posixpath.pyc", O_RDONLY) = 6<br>
> 0.0593 fstat(6, 0xFFFFFD7FFFDFC290) = 0<br>
><br>
><br>
> And the list goes on.<br>
><br>
> Hope there's a solution for this.<br>
><br>
><br>
> Joe<br>
><br>
><br>
> On Thu, Dec 11, 2014 at 10:26 PM, Dan McDonald <<a href="mailto:danmcd@omniti.com">danmcd@omniti.com</a>> wrote:<br>
>><br>
>><br>
>> > On Dec 11, 2014, at 4:00 PM, Joe Veliscos <<a href="mailto:joeveliscos@gmail.com">joeveliscos@gmail.com</a>> wrote:<br>
>> ><br>
>> > Hi,<br>
>> ><br>
>> > I have an application working on Omnios r10 which depends on certain<br>
>> > python libraries. There are certain environment variables in place which<br>
>> > point to the location of those libraries.<br>
>> ><br>
>> > I have updated the r10 machine to r12. The application now cannot be<br>
>> > started with errors stating that the needed libraries cannot be found in the<br>
>> > given paths.<br>
>><br>
>> Share the errors please? I'll need more details.<br>
>><br>
>> > Maybe somebody can tell me what the difference is in python version<br>
>> > between the two omnios releases. Python -V gives me 2.6.8. on both versions.<br>
>><br>
>> We updated supplemental python libraries, which may contribute to what<br>
>> you're seeing. Also, we had not updated the "entire" metapackage on 010 to<br>
>> show we were actually running 2.6.8.<br>
>><br>
>> Dan<br>
>><br>
><br>
</div></div>> _______________________________________________<br>
> OmniOS-discuss mailing list<br>
> <a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a><br>
> <a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a><br>
><br>
</blockquote></div></div>
`