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