Giter Club home page Giter Club logo

Comments (29)

dmuhamedagic avatar dmuhamedagic commented on August 15, 2024

How did you install crmsh? If it's a package, where does it come from?
Did you try to follow the advice given?

from crmsh.

krig avatar krig commented on August 15, 2024

This might be due to how python 2.6 is installed on RHEL 6, but without more information it is hard to tell.

from crmsh.

dmuhamedagic avatar dmuhamedagic commented on August 15, 2024

@Coca2386 could you give some more information? Thanks!

from crmsh.

linuxhs avatar linuxhs commented on August 15, 2024

http://dennisit.blogspot.com/2014/10/no-module-named-crmsh.html

from crmsh.

kirvedx avatar kirvedx commented on August 15, 2024

I'm having the same problem.

mmod@mmasx2:~/ha-build/crmsh$ sudo crm
Fatal error:
    No module named crmsh
    No module named modules

Failed to start the crm shell! This is likely due to
a broken installation or a missing dependency.

If you are using a packaged version of the crm shell,
please try reinstalling the package. Also check your
PYTHONPATH and make sure that the crmsh module is
reachable.

Please file an issue describing your installation at
https://github.com/Clusterlabs/crmsh/issues/ .

A little bit about the environment:

  • Debian Jessie
  • Pacemaker from source
  • Python 2.7 (python, python-dev, python-lxml, python-yaml, libpython, libpython-dev)
  • The following packages installed:
apt-get install -u automake autoconf libltdl-dev uuid-dev pkg-config libglib2.0-dev libxml2-dev libxslt-dev python-dev libbz2-dev libsystemd-dev libdbus-c++-dev libdbus-1-dev libpam0g-dev libcurl4-openssl-dev corosync/experimental libcorosync-dev/experimental libcorosync-common-dev/experimental libcorosync4/experimental libquorum5/experimental libquorum-dev/experimental libvotequorum-dev/experimental libtotem-pg-dev/experimental libcluster-glue-dev cluster-glue-dev libncurses5-dev libcpg-dev/experimental libcfg-dev/experimental libcmap4 libcmap-dev/experimental libsam-dev/experimental libqb-dev/unstable psmisc
  • Build and install from source on two nodes running on Debian Jessie with identical setup (at least I've thought so).

On one node (node01) it worked fine, I can launch CRM.

On Node02 however, is where I'm having these issues.

Running python and entering import crmsh yields:

mmod@mmasx2:~/ha-build/crmsh$ python
Python 2.7.9 (default, Mar  1 2015, 12:57:24) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import crmsh
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named crmsh
>>> 

And here is my latest build log:

mmod@mmasx2:~/ha-build/pacemaker$ cd ../crmsh
mmod@mmasx2:~/ha-build/crmsh$ ./autogen.sh
autoconf:   autoconf (GNU Autoconf) 2.69
automake:   automake (GNU automake) 1.14.1
aclocal
automake --add-missing --include-deps --copy
Makefile.am:117: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:119: warning: '%'-style pattern rules are a GNU make extension
autoconf
Now run ./configure
mmod@mmasx2:~/ha-build/crmsh$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
Our Host OS: /
configure: Sanitizing prefix: NONE
configure: Sanitizing exec_prefix: NONE
configure: Sanitizing libdir: ${exec_prefix}/lib
checking which lib directory to use... /usr/lib
configure: WARNING: sharedstatedir directory (/usr/com) does not exist!
checking for pkg-config... /usr/bin/pkg-config
checking for hg... no
checking for false... /bin/false
checking for git... /usr/bin/git
checking build version... 2.2.0-rc2-109-gfb920e3
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
checking for asciidoc... no
checking for ssh... /usr/bin/ssh
checking for scp... /usr/bin/scp
checking for hg... (cached) /bin/false
checking for tar... /bin/tar
checking for md5... no
checking for test... /usr/bin/test
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating hb_report/hb_report
config.status: WARNING:  'hb_report/hb_report.in' seems to ignore the --datarootdir setting
config.status: creating crm.conf
config.status: creating version

crmsh configuration:
  Version                  = 2.2.0-rc2 (Build: 2.2.0-rc2-109-gfb920e3)
  Features                 =

  Prefix                   = /usr
  Executables              = /usr/sbin
  Man pages                = /usr/share/man
  Libraries                = /usr/lib
  Header files             = ${prefix}/include
  Arch-independent files   = /usr/share
  State information        = /usr/var
  System configuration     = /usr/etc
  Cache dir                = /usr/var/cache/crm
  OCF root dir             = /usr/lib/ocf
  CRM daemon user          = hacluster
mmod@mmasx2:~/ha-build/crmsh$ make
(cd .; /usr/bin/python setup.py build \
    --build-base /home/mmod/ha-build/crmsh/build \
    --verbose)
running build
running build_py
mmod@mmasx2:~/ha-build/crmsh$ sudo make install
(cd .; /usr/bin/python setup.py build \
    --build-base /home/mmod/ha-build/crmsh/build \
    --verbose)
running build
running build_py
make[1]: Entering directory '/home/mmod/ha-build/crmsh'
mkdir -p /usr/lib/python2.7/dist-packages/crmsh
/usr/bin/python ./setup.py install \
    --prefix=/usr \
    --record /usr/lib/python2.7/dist-packages/crmsh/install_files.txt \
    --verbose
running install
running build
running build_py
running install_lib
copying build/lib.linux-x86_64-2.7/crmsh/config.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/options.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_template.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_options.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/scripts.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_site.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_report.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/crm_pssh.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/completers.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cmd_status.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/xmlutil.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_resource.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/utils.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/rsctest.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cibverify.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cliformat.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/schema.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/orderedset.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_script.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/xmlbuilder.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/template.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/msg.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/parse.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/crm_gv.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cache.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/idmgmt.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ordereddict.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cibconfig.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_assist.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/term.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/command.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_cib.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/__init__.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_utils.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/tmpfiles.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_configure.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/help.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/log_patterns_118.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/clidisplay.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ra.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/pacemaker.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_cluster.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/userdir.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/log_patterns.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/main.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/report.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_root.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_node.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_context.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_corosync.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/constants.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_ra.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/corosync.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_cibstatus.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cibstatus.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_history.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_maintenance.py -> /usr/lib/python2.7/site-packages/crmsh
byte-compiling /usr/lib/python2.7/site-packages/crmsh/config.py to config.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/options.py to options.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_template.py to ui_template.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_options.py to ui_options.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/scripts.py to scripts.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_site.py to ui_site.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_report.py to ui_report.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/crm_pssh.py to crm_pssh.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/completers.py to completers.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cmd_status.py to cmd_status.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/xmlutil.py to xmlutil.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_resource.py to ui_resource.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/utils.py to utils.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/rsctest.py to rsctest.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cibverify.py to cibverify.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cliformat.py to cliformat.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/schema.py to schema.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/orderedset.py to orderedset.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_script.py to ui_script.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/xmlbuilder.py to xmlbuilder.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/template.py to template.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/msg.py to msg.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/parse.py to parse.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/crm_gv.py to crm_gv.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cache.py to cache.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/idmgmt.py to idmgmt.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ordereddict.py to ordereddict.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cibconfig.py to cibconfig.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_assist.py to ui_assist.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/term.py to term.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/command.py to command.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_cib.py to ui_cib.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_utils.py to ui_utils.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/tmpfiles.py to tmpfiles.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_configure.py to ui_configure.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/help.py to help.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/log_patterns_118.py to log_patterns_118.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/clidisplay.py to clidisplay.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ra.py to ra.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/pacemaker.py to pacemaker.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_cluster.py to ui_cluster.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/userdir.py to userdir.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/log_patterns.py to log_patterns.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/main.py to main.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/report.py to report.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_root.py to ui_root.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_node.py to ui_node.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_context.py to ui_context.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_corosync.py to ui_corosync.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/constants.py to constants.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_ra.py to ui_ra.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/corosync.py to corosync.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_cibstatus.py to ui_cibstatus.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cibstatus.py to cibstatus.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_history.py to ui_history.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_maintenance.py to ui_maintenance.pyc
running install_egg_info
Writing /usr/lib/python2.7/site-packages/crmsh-2.2.0_rc2-py2.7.egg-info
writing list of installed files to '/usr/lib/python2.7/dist-packages/crmsh/install_files.txt'
/usr/bin/install -c -d -m 770 //usr/var/cache/crm
rm -rf  
 /bin/mkdir -p '/usr/sbin'
 /usr/bin/install -c crm '/usr/sbin'
 /bin/mkdir -p '/usr/share/crmsh/tests/cibtests'
 /usr/bin/install -c -m 644 test/cibtests/shadow.base test/cibtests/001.exp.xml test/cibtests/001.input test/cibtests/002.exp.xml test/cibtests/002.input test/cibtests/003.exp.xml test/cibtests/003.input test/cibtests/004.exp.xml test/cibtests/004.input '/usr/share/crmsh/tests/cibtests'
 /bin/mkdir -p '/usr/share/doc/crmsh/contrib'
 /usr/bin/install -c -m 644 contrib/pacemaker-crm.vim contrib/pcmk.vim contrib/README.vimsyntax '/usr/share/doc/crmsh/contrib'
 /bin/mkdir -p '/usr/etc/crm'
 /usr/bin/install -c -m 644 crm.conf '/usr/etc/crm'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c -m 644 version '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/doc/crmsh'
 /usr/bin/install -c -m 644 AUTHORS COPYING README ChangeLog '/usr/share/doc/crmsh'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c -m 644 hb_report/utillib.sh hb_report/ha_cf_support.sh hb_report/openais_conf_support.sh '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c hb_report/hb_report '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/crmsh/scripts/health'
 /usr/bin/install -c -m 644 scripts/health/main.yml '/usr/share/crmsh/scripts/health'
 /bin/mkdir -p '/usr/share/crmsh/scripts/health'
 /usr/bin/install -c scripts/health/collect.py scripts/health/report.py scripts/health/hahealth.py '/usr/share/crmsh/scripts/health'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c -m 644 doc/crm.8.adoc '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/crmsh/scripts/add'
 /usr/bin/install -c -m 644 scripts/add/main.yml '/usr/share/crmsh/scripts/add'
 /bin/mkdir -p '/usr/share/crmsh/scripts/add'
 /usr/bin/install -c scripts/add/add.py '/usr/share/crmsh/scripts/add'
 /bin/mkdir -p '/usr/share/crmsh/scripts/init'
 /usr/bin/install -c -m 644 scripts/init/main.yml scripts/init/corosync.conf.template scripts/init/basic.cib.template '/usr/share/crmsh/scripts/init'
 /bin/mkdir -p '/usr/share/crmsh/scripts/init'
 /usr/bin/install -c scripts/init/collect.py scripts/init/verify.py scripts/init/configure.py scripts/init/authkey.py scripts/init/init.py '/usr/share/crmsh/scripts/init'
 /bin/mkdir -p '/usr/share/crmsh/scripts/remove'
 /usr/bin/install -c -m 644 scripts/remove/main.yml '/usr/share/crmsh/scripts/remove'
 /bin/mkdir -p '/usr/share/crmsh/scripts/remove'
 /usr/bin/install -c scripts/remove/remove.py '/usr/share/crmsh/scripts/remove'
 /bin/mkdir -p '/usr/share/crmsh/templates'
 /usr/bin/install -c -m 644 templates/apache templates/virtual-ip templates/filesystem templates/ocfs2 templates/clvm templates/gfs2-base templates/gfs2 templates/sbd '/usr/share/crmsh/templates'
 /bin/mkdir -p '/usr/share/crmsh/tests'
 /usr/bin/install -c -m 644 test/README.regression test/defaults test/descriptions test/crm-interface test/history-test.tar.bz2 test/bugs-test.txt '/usr/share/crmsh/tests'
 /bin/mkdir -p '/usr/share/crmsh/tests'
 /usr/bin/install -c test/regression.sh test/evaltest.sh test/cib-tests.sh '/usr/share/crmsh/tests'
 /bin/mkdir -p '/usr/share/crmsh/tests/testcases'
 /usr/bin/install -c -m 644 test/testcases/basicset test/testcases/common.excl test/testcases/confbasic test/testcases/confbasic-xml test/testcases/delete test/testcases/file test/testcases/node test/testcases/ra test/testcases/resource test/testcases/shadow test/testcases/acl test/testcases/options test/testcases/edit test/testcases/edit.excl test/testcases/rset test/testcases/rset-xml test/testcases/history test/testcases/confbasic-xml.exp test/testcases/confbasic.exp test/testcases/delete.exp test/testcases/file.exp test/testcases/node.exp test/testcases/ra.exp test/testcases/resource.exp test/testcases/shadow.exp test/testcases/acl.exp test/testcases/options.exp test/testcases/edit.exp test/testcases/rset.exp test/testcases/rset-xml.exp test/testcases/history.exp test/testcases/history.excl test/testcases/newfeatures test/testcases/newfeatures.exp test/testcases/acl.excl test/testcases/commit test/testcases/commit.exp test/testcases/bugs test/testcases/bugs.exp '/usr/share/crmsh/tests/testcases'
 /bin/mkdir -p '/usr/share/crmsh/tests/testcases'
 /usr/bin/install -c test/testcases/ra.filter test/testcases/common.filter test/testcases/xmlonly.sh test/testcases/history.pre test/testcases/history.post '/usr/share/crmsh/tests/testcases'
 /bin/mkdir -p '/usr/share/crmsh/scripts/check-uptime'
 /usr/bin/install -c -m 644 scripts/check-uptime/main.yml '/usr/share/crmsh/scripts/check-uptime'
 /bin/mkdir -p '/usr/share/crmsh/scripts/check-uptime'
 /usr/bin/install -c scripts/check-uptime/fetch.py scripts/check-uptime/report.py '/usr/share/crmsh/scripts/check-uptime'
 /bin/mkdir -p '/usr/share/crmsh/utils'
 /usr/bin/install -c -m 644 utils/crm_script.py utils/crm_init.py '/usr/share/crmsh/utils'
 /bin/mkdir -p '/usr/share/crmsh/utils'
 /usr/bin/install -c utils/crm_clean.py utils/crm_rpmcheck.py utils/crm_pkg.py '/usr/share/crmsh/utils'
make[1]: Leaving directory '/home/mmod/ha-build/crmsh'

from crmsh.

krig avatar krig commented on August 15, 2024

@rikkotec Please paste the logs from building, and also run

python
>>> import crmsh

and paste the output. Thanks :)

from crmsh.

krig avatar krig commented on August 15, 2024

OK, so it really doesn't find the crmsh module. There may be a version difference in that case.. what does python --version say? also

python
import sys
print sys.path

could be informative.

from crmsh.

kirvedx avatar kirvedx commented on August 15, 2024

@krig I updated my original post with the requested output.

For checking version/path:

Node01:

root@mmasx:/usr/sbin# python
Python 2.7.9 (default, Mar  1 2015, 12:57:24) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import crmsh
>>> import sys
>>> print sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
>>> exit()
root@mmasx:/usr/sbin# python --version
Python 2.7.9

Node02:

>>> import sys
>>> print sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
>>> exit()
mmod@mmasx2:~/ha-build/crmsh$ python --version
Python 2.7.9

For Node01 build log, I decided to uninstall and install it again - and interestingly enough now Node01's crm doesn't work anymore...with same error as Node02 (in this one I'm showing the uninstall too, to perhaps track differences in locations or something.):

root@mmasx:/home/mmod/ha-build/crmsh# make uninstall
 ( cd '/usr/share/crmsh/tests/cibtests' && rm -f shadow.base 001.exp.xml 001.input 002.exp.xml 002.input 003.exp.xml 003.input 004.exp.xml 004.input )
 ( cd '/usr/share/doc/crmsh/contrib' && rm -f pacemaker-crm.vim pcmk.vim README.vimsyntax )
 ( cd '/usr/etc/crm' && rm -f crm.conf )
 ( cd '/usr/share/crmsh' && rm -f version )
 ( cd '/usr/share/doc/crmsh' && rm -f AUTHORS COPYING README ChangeLog )
 ( cd '/usr/share/crmsh' && rm -f utillib.sh ha_cf_support.sh openais_conf_support.sh )
 ( cd '/usr/share/crmsh' && rm -f hb_report )
 ( cd '/usr/share/crmsh/scripts/health' && rm -f main.yml )
 ( cd '/usr/share/crmsh/scripts/health' && rm -f collect.py report.py hahealth.py )
 ( cd '/usr/share/crmsh' && rm -f crm.8.adoc )
cat /usr/lib/python2.7/dist-packages/crmsh/install_files.txt | xargs rm -rf
rm -rf /usr/lib/python2.7/dist-packages/crmsh
 ( cd '/usr/sbin' && rm -f crm )
 ( cd '/usr/share/crmsh/scripts/add' && rm -f main.yml )
 ( cd '/usr/share/crmsh/scripts/add' && rm -f add.py )
 ( cd '/usr/share/crmsh/scripts/init' && rm -f main.yml corosync.conf.template basic.cib.template )
 ( cd '/usr/share/crmsh/scripts/init' && rm -f collect.py verify.py configure.py authkey.py init.py )
 ( cd '/usr/share/crmsh/scripts/remove' && rm -f main.yml )
 ( cd '/usr/share/crmsh/scripts/remove' && rm -f remove.py )
 ( cd '/usr/share/crmsh/templates' && rm -f apache virtual-ip filesystem ocfs2 clvm gfs2-base gfs2 sbd )
 ( cd '/usr/share/crmsh/tests' && rm -f README.regression defaults descriptions crm-interface history-test.tar.bz2 bugs-test.txt )
 ( cd '/usr/share/crmsh/tests' && rm -f regression.sh evaltest.sh cib-tests.sh )
 ( cd '/usr/share/crmsh/tests/testcases' && rm -f basicset common.excl confbasic confbasic-xml delete file node ra resource shadow acl options edit edit.excl rset rset-xml history confbasic-xml.exp confbasic.exp delete.exp file.exp node.exp ra.exp resource.exp shadow.exp acl.exp options.exp edit.exp rset.exp rset-xml.exp history.exp history.excl newfeatures newfeatures.exp acl.excl commit commit.exp bugs bugs.exp )
 ( cd '/usr/share/crmsh/tests/testcases' && rm -f ra.filter common.filter xmlonly.sh history.pre history.post )
 ( cd '/usr/share/crmsh/scripts/check-uptime' && rm -f main.yml )
 ( cd '/usr/share/crmsh/scripts/check-uptime' && rm -f fetch.py report.py )
 ( cd '/usr/share/crmsh/utils' && rm -f crm_script.py crm_init.py )
 ( cd '/usr/share/crmsh/utils' && rm -f crm_clean.py crm_rpmcheck.py crm_pkg.py )
root@mmasx:/home/mmod/ha-build/crmsh# make clean
rm -f  *.tar.bz2 *.sed
root@mmasx:/home/mmod/ha-build/crmsh# su mmod
mmod@mmasx:~/ha-build/crmsh$ ./autogen.sh
autoconf:   autoconf (GNU Autoconf) 2.69
automake:   automake (GNU automake) 1.14.1
aclocal
automake --add-missing --include-deps --copy
Makefile.am:117: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:119: warning: '%'-style pattern rules are a GNU make extension
autoconf
Now run ./configure
mmod@mmasx:~/ha-build/crmsh$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
Our Host OS: /
configure: Sanitizing prefix: NONE
configure: Sanitizing exec_prefix: NONE
configure: Sanitizing libdir: ${exec_prefix}/lib
checking which lib directory to use... /usr/lib
configure: WARNING: sharedstatedir directory (/usr/com) does not exist!
checking for pkg-config... /usr/bin/pkg-config
checking for hg... no
checking for false... /bin/false
checking for git... /usr/bin/git
checking build version... 2.2.0-rc2-109-gfb920e3
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
checking for asciidoc... no
checking for ssh... /usr/bin/ssh
checking for scp... /usr/bin/scp
checking for hg... (cached) /bin/false
checking for tar... /bin/tar
checking for md5... no
checking for test... /usr/bin/test
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating hb_report/hb_report
config.status: WARNING:  'hb_report/hb_report.in' seems to ignore the --datarootdir setting
config.status: creating crm.conf
config.status: creating version

crmsh configuration:
  Version                  = 2.2.0-rc2 (Build: 2.2.0-rc2-109-gfb920e3)
  Features                 =

  Prefix                   = /usr
  Executables              = /usr/sbin
  Man pages                = /usr/share/man
  Libraries                = /usr/lib
  Header files             = ${prefix}/include
  Arch-independent files   = /usr/share
  State information        = /usr/var
  System configuration     = /usr/etc
  Cache dir                = /usr/var/cache/crm
  OCF root dir             = /usr/lib/ocf
  CRM daemon user          = hacluster
mmod@mmasx:~/ha-build/crmsh$ make
(cd .; /usr/bin/python setup.py build \
    --build-base /home/mmod/ha-build/crmsh/build \
    --verbose)
running build
running build_py
mmod@mmasx:~/ha-build/crmsh$ sudo make install
[sudo] password for mmod: 
(cd .; /usr/bin/python setup.py build \
    --build-base /home/mmod/ha-build/crmsh/build \
    --verbose)
running build
running build_py
make[1]: Entering directory '/home/mmod/ha-build/crmsh'
mkdir -p /usr/lib/python2.7/dist-packages/crmsh
/usr/bin/python ./setup.py install \
    --prefix=/usr \
    --record /usr/lib/python2.7/dist-packages/crmsh/install_files.txt \
    --verbose
running install
running build
running build_py
running install_lib
copying build/lib.linux-x86_64-2.7/crmsh/term.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cache.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/help.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_configure.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/xmlutil.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/xmlbuilder.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_template.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/parse.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_root.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/crm_gv.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/clidisplay.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/scripts.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/orderedset.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cibverify.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/schema.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/msg.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/__init__.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/log_patterns.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/corosync.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/report.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/main.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cibstatus.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/pacemaker.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_cluster.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/crm_pssh.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ra.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/options.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_maintenance.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_site.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/command.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_script.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_report.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_history.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/rsctest.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_node.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_resource.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_context.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/template.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/completers.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_ra.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ordereddict.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/log_patterns_118.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/config.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/utils.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/userdir.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/tmpfiles.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_cibstatus.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_options.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/constants.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cmd_status.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_cib.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cibconfig.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_assist.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_corosync.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/idmgmt.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_utils.py -> /usr/lib/python2.7/site-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cliformat.py -> /usr/lib/python2.7/site-packages/crmsh
byte-compiling /usr/lib/python2.7/site-packages/crmsh/term.py to term.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cache.py to cache.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/help.py to help.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_configure.py to ui_configure.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/xmlutil.py to xmlutil.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/xmlbuilder.py to xmlbuilder.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_template.py to ui_template.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/parse.py to parse.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_root.py to ui_root.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/crm_gv.py to crm_gv.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/clidisplay.py to clidisplay.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/scripts.py to scripts.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/orderedset.py to orderedset.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cibverify.py to cibverify.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/schema.py to schema.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/msg.py to msg.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/log_patterns.py to log_patterns.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/corosync.py to corosync.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/report.py to report.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/main.py to main.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cibstatus.py to cibstatus.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/pacemaker.py to pacemaker.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_cluster.py to ui_cluster.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/crm_pssh.py to crm_pssh.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ra.py to ra.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/options.py to options.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_maintenance.py to ui_maintenance.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_site.py to ui_site.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/command.py to command.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_script.py to ui_script.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_report.py to ui_report.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_history.py to ui_history.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/rsctest.py to rsctest.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_node.py to ui_node.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_resource.py to ui_resource.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_context.py to ui_context.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/template.py to template.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/completers.py to completers.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_ra.py to ui_ra.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ordereddict.py to ordereddict.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/log_patterns_118.py to log_patterns_118.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/config.py to config.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/utils.py to utils.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/userdir.py to userdir.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/tmpfiles.py to tmpfiles.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_cibstatus.py to ui_cibstatus.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_options.py to ui_options.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/constants.py to constants.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cmd_status.py to cmd_status.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_cib.py to ui_cib.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cibconfig.py to cibconfig.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_assist.py to ui_assist.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_corosync.py to ui_corosync.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/idmgmt.py to idmgmt.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/ui_utils.py to ui_utils.pyc
byte-compiling /usr/lib/python2.7/site-packages/crmsh/cliformat.py to cliformat.pyc
running install_egg_info
Writing /usr/lib/python2.7/site-packages/crmsh-2.2.0_rc2-py2.7.egg-info
writing list of installed files to '/usr/lib/python2.7/dist-packages/crmsh/install_files.txt'
/usr/bin/install -c -d -m 770 //usr/var/cache/crm
rm -rf  
 /bin/mkdir -p '/usr/sbin'
 /usr/bin/install -c crm '/usr/sbin'
 /bin/mkdir -p '/usr/share/crmsh/tests/cibtests'
 /usr/bin/install -c -m 644 test/cibtests/shadow.base test/cibtests/001.exp.xml test/cibtests/001.input test/cibtests/002.exp.xml test/cibtests/002.input test/cibtests/003.exp.xml test/cibtests/003.input test/cibtests/004.exp.xml test/cibtests/004.input '/usr/share/crmsh/tests/cibtests'
 /bin/mkdir -p '/usr/share/doc/crmsh/contrib'
 /usr/bin/install -c -m 644 contrib/pacemaker-crm.vim contrib/pcmk.vim contrib/README.vimsyntax '/usr/share/doc/crmsh/contrib'
 /bin/mkdir -p '/usr/etc/crm'
 /usr/bin/install -c -m 644 crm.conf '/usr/etc/crm'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c -m 644 version '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/doc/crmsh'
 /usr/bin/install -c -m 644 AUTHORS COPYING README ChangeLog '/usr/share/doc/crmsh'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c -m 644 hb_report/utillib.sh hb_report/ha_cf_support.sh hb_report/openais_conf_support.sh '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c hb_report/hb_report '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/crmsh/scripts/health'
 /usr/bin/install -c -m 644 scripts/health/main.yml '/usr/share/crmsh/scripts/health'
 /bin/mkdir -p '/usr/share/crmsh/scripts/health'
 /usr/bin/install -c scripts/health/collect.py scripts/health/report.py scripts/health/hahealth.py '/usr/share/crmsh/scripts/health'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c -m 644 doc/crm.8.adoc '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/crmsh/scripts/add'
 /usr/bin/install -c -m 644 scripts/add/main.yml '/usr/share/crmsh/scripts/add'
 /bin/mkdir -p '/usr/share/crmsh/scripts/add'
 /usr/bin/install -c scripts/add/add.py '/usr/share/crmsh/scripts/add'
 /bin/mkdir -p '/usr/share/crmsh/scripts/init'
 /usr/bin/install -c -m 644 scripts/init/main.yml scripts/init/corosync.conf.template scripts/init/basic.cib.template '/usr/share/crmsh/scripts/init'
 /bin/mkdir -p '/usr/share/crmsh/scripts/init'
 /usr/bin/install -c scripts/init/collect.py scripts/init/verify.py scripts/init/configure.py scripts/init/authkey.py scripts/init/init.py '/usr/share/crmsh/scripts/init'
 /bin/mkdir -p '/usr/share/crmsh/scripts/remove'
 /usr/bin/install -c -m 644 scripts/remove/main.yml '/usr/share/crmsh/scripts/remove'
 /bin/mkdir -p '/usr/share/crmsh/scripts/remove'
 /usr/bin/install -c scripts/remove/remove.py '/usr/share/crmsh/scripts/remove'
 /bin/mkdir -p '/usr/share/crmsh/templates'
 /usr/bin/install -c -m 644 templates/apache templates/virtual-ip templates/filesystem templates/ocfs2 templates/clvm templates/gfs2-base templates/gfs2 templates/sbd '/usr/share/crmsh/templates'
 /bin/mkdir -p '/usr/share/crmsh/tests'
 /usr/bin/install -c -m 644 test/README.regression test/defaults test/descriptions test/crm-interface test/history-test.tar.bz2 test/bugs-test.txt '/usr/share/crmsh/tests'
 /bin/mkdir -p '/usr/share/crmsh/tests'
 /usr/bin/install -c test/regression.sh test/evaltest.sh test/cib-tests.sh '/usr/share/crmsh/tests'
 /bin/mkdir -p '/usr/share/crmsh/tests/testcases'
 /usr/bin/install -c -m 644 test/testcases/basicset test/testcases/common.excl test/testcases/confbasic test/testcases/confbasic-xml test/testcases/delete test/testcases/file test/testcases/node test/testcases/ra test/testcases/resource test/testcases/shadow test/testcases/acl test/testcases/options test/testcases/edit test/testcases/edit.excl test/testcases/rset test/testcases/rset-xml test/testcases/history test/testcases/confbasic-xml.exp test/testcases/confbasic.exp test/testcases/delete.exp test/testcases/file.exp test/testcases/node.exp test/testcases/ra.exp test/testcases/resource.exp test/testcases/shadow.exp test/testcases/acl.exp test/testcases/options.exp test/testcases/edit.exp test/testcases/rset.exp test/testcases/rset-xml.exp test/testcases/history.exp test/testcases/history.excl test/testcases/newfeatures test/testcases/newfeatures.exp test/testcases/acl.excl test/testcases/commit test/testcases/commit.exp test/testcases/bugs test/testcases/bugs.exp '/usr/share/crmsh/tests/testcases'
 /bin/mkdir -p '/usr/share/crmsh/tests/testcases'
 /usr/bin/install -c test/testcases/ra.filter test/testcases/common.filter test/testcases/xmlonly.sh test/testcases/history.pre test/testcases/history.post '/usr/share/crmsh/tests/testcases'
 /bin/mkdir -p '/usr/share/crmsh/scripts/check-uptime'
 /usr/bin/install -c -m 644 scripts/check-uptime/main.yml '/usr/share/crmsh/scripts/check-uptime'
 /bin/mkdir -p '/usr/share/crmsh/scripts/check-uptime'
 /usr/bin/install -c scripts/check-uptime/fetch.py scripts/check-uptime/report.py '/usr/share/crmsh/scripts/check-uptime'
 /bin/mkdir -p '/usr/share/crmsh/utils'
 /usr/bin/install -c -m 644 utils/crm_script.py utils/crm_init.py '/usr/share/crmsh/utils'
 /bin/mkdir -p '/usr/share/crmsh/utils'
 /usr/bin/install -c utils/crm_clean.py utils/crm_rpmcheck.py utils/crm_pkg.py '/usr/share/crmsh/utils'
make[1]: Leaving directory '/home/mmod/ha-build/crmsh'
mmod@mmasx:~/ha-build/crmsh$ sudo crm
Fatal error:
    No module named crmsh
    No module named modules

Failed to start the crm shell! This is likely due to
a broken installation or a missing dependency.

If you are using a packaged version of the crm shell,
please try reinstalling the package. Also check your
PYTHONPATH and make sure that the crmsh module is
reachable.

Please file an issue describing your installation at
https://github.com/Clusterlabs/crmsh/issues/ .
mmod@mmasx:~/ha-build/crmsh$ sudo crm
Fatal error:
    No module named crmsh
    No module named modules

Failed to start the crm shell! This is likely due to
a broken installation or a missing dependency.

If you are using a packaged version of the crm shell,
please try reinstalling the package. Also check your
PYTHONPATH and make sure that the crmsh module is
reachable.

Please file an issue describing your installation at
https://github.com/Clusterlabs/crmsh/issues/ .
mmod@mmasx:~/ha-build/crmsh$ python
Python 2.7.9 (default, Mar  1 2015, 12:57:24) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import crmsh
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named crmsh
>>> import sys
>>> print sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
>>> exit()
mmod@mmasx:~/ha-build/crmsh$ python --version
Python 2.7.9

from crmsh.

krig avatar krig commented on August 15, 2024

Well, the reason is that /usr/lib/python2.7/site-packages is not in sys.path, so python doesn't even look there. That seems odd :) Either we should be installing to a different location, or sys.path is broken on your system?

from crmsh.

krig avatar krig commented on August 15, 2024

Yes, this seems to be debian-specific and due to us setting --prefix when running setup.py. I'll investigate how to make it install in the right directory on debian.

from crmsh.

kirvedx avatar kirvedx commented on August 15, 2024

I wondered, considering where everything was -> but I'm not too familiar with python quite yet...still learning. Here's the ls -F's though:

Node01:

mmod@mmasx:~/ha-build/crmsh$ cd /usr/lib/python2.7/dist-packages/crmsh
mmod@mmasx:/usr/lib/python2.7/dist-packages/crmsh$ ls -F
install_files.txt
mmod@mmasx:/usr/lib/python2.7/dist-packages/crmsh$ cd ../../site-packages/crmsh
mmod@mmasx:/usr/lib/python2.7/site-packages/crmsh$ ls -F
cache.py        cmd_status.pyc  crm_pssh.py           main.pyc         ra.py         term.pyc          ui_context.py       ui_ra.pyc        ui_utils.py
cache.pyc       command.py      crm_pssh.pyc          msg.py           ra.pyc        tmpfiles.py       ui_context.pyc      ui_report.py     ui_utils.pyc
cibconfig.py    command.pyc     help.py               msg.pyc          report.py     tmpfiles.pyc      ui_corosync.py      ui_report.pyc    userdir.py
cibconfig.pyc   completers.py   help.pyc              options.py       report.pyc    ui_assist.py      ui_corosync.pyc     ui_resource.py   userdir.pyc
cibstatus.py    completers.pyc  idmgmt.py             options.pyc      rsctest.py    ui_assist.pyc     ui_history.py       ui_resource.pyc  utils.py
cibstatus.pyc   config.py       idmgmt.pyc            ordereddict.py   rsctest.pyc   ui_cib.py         ui_history.pyc      ui_root.py       utils.pyc
cibverify.py    config.pyc      __init__.py           ordereddict.pyc  schema.py     ui_cib.pyc        ui_maintenance.py   ui_root.pyc      xmlbuilder.py
cibverify.pyc   constants.py    __init__.pyc          orderedset.py    schema.pyc    ui_cibstatus.py   ui_maintenance.pyc  ui_script.py     xmlbuilder.pyc
clidisplay.py   constants.pyc   log_patterns_118.py   orderedset.pyc   scripts.py    ui_cibstatus.pyc  ui_node.py          ui_script.pyc    xmlutil.py
clidisplay.pyc  corosync.py     log_patterns_118.pyc  pacemaker.py     scripts.pyc   ui_cluster.py     ui_node.pyc         ui_site.py       xmlutil.pyc
cliformat.py    corosync.pyc    log_patterns.py       pacemaker.pyc    template.py   ui_cluster.pyc    ui_options.py       ui_site.pyc
cliformat.pyc   crm_gv.py       log_patterns.pyc      parse.py         template.pyc  ui_configure.py   ui_options.pyc      ui_template.py
cmd_status.py   crm_gv.pyc      main.py               parse.pyc        term.py       ui_configure.pyc  ui_ra.py            ui_template.pyc
mmod@mmasx:/usr/lib/python2.7/site-packages/crmsh$ 

Node02:

mmod@mmasx2:~/ha-build/crmsh$ cd /usr/lib/python2.7/dist-packages/crmsh
mmod@mmasx2:/usr/lib/python2.7/dist-packages/crmsh$ ls -F
install_files.txt
mmod@mmasx2:/usr/lib/python2.7/dist-packages/crmsh$ cd /usr/lib/python2.7/site-packages/crmsh
mmod@mmasx2:/usr/lib/python2.7/site-packages/crmsh$ ls -F
cache.py        cmd_status.pyc  crm_pssh.py           main.pyc         ra.py         term.pyc          ui_context.py       ui_ra.pyc        ui_utils.py
cache.pyc       command.py      crm_pssh.pyc          msg.py           ra.pyc        tmpfiles.py       ui_context.pyc      ui_report.py     ui_utils.pyc
cibconfig.py    command.pyc     help.py               msg.pyc          report.py     tmpfiles.pyc      ui_corosync.py      ui_report.pyc    userdir.py
cibconfig.pyc   completers.py   help.pyc              options.py       report.pyc    ui_assist.py      ui_corosync.pyc     ui_resource.py   userdir.pyc
cibstatus.py    completers.pyc  idmgmt.py             options.pyc      rsctest.py    ui_assist.pyc     ui_history.py       ui_resource.pyc  utils.py
cibstatus.pyc   config.py       idmgmt.pyc            ordereddict.py   rsctest.pyc   ui_cib.py         ui_history.pyc      ui_root.py       utils.pyc
cibverify.py    config.pyc      __init__.py           ordereddict.pyc  schema.py     ui_cib.pyc        ui_maintenance.py   ui_root.pyc      xmlbuilder.py
cibverify.pyc   constants.py    __init__.pyc          orderedset.py    schema.pyc    ui_cibstatus.py   ui_maintenance.pyc  ui_script.py     xmlbuilder.pyc
clidisplay.py   constants.pyc   log_patterns_118.py   orderedset.pyc   scripts.py    ui_cibstatus.pyc  ui_node.py          ui_script.pyc    xmlutil.py
clidisplay.pyc  corosync.py     log_patterns_118.pyc  pacemaker.py     scripts.pyc   ui_cluster.py     ui_node.pyc         ui_site.py       xmlutil.pyc
cliformat.py    corosync.pyc    log_patterns.py       pacemaker.pyc    template.py   ui_cluster.pyc    ui_options.py       ui_site.pyc
cliformat.pyc   crm_gv.py       log_patterns.pyc      parse.py         template.pyc  ui_configure.py   ui_options.pyc      ui_template.py
cmd_status.py   crm_gv.pyc      main.py               parse.pyc        term.py       ui_configure.pyc  ui_ra.py            ui_template.pyc
mmod@mmasx2:/usr/lib/python2.7/site-packages/crmsh$ 

I'll try symlinking from dist-packages to site-packages and see what happens?

from crmsh.

krig avatar krig commented on August 15, 2024

If I am correct, then that should make it work for you I think, yes :)

Found this issue which seems related: https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/362570

from crmsh.

kirvedx avatar kirvedx commented on August 15, 2024

Yes, this seems to be debian-specific and due to us setting --prefix when running setup.py. I'll
investigate how to make it install in the right directory on debian.

Gotcha.

If I am correct, then that should make it work for you I think, yes :)

Great I'll give it a go right quick :)

If there is someway I can help, I'd be glad to. Once I get everything up and running I can help out with bugs, and debian specific stuffs.

from crmsh.

krig avatar krig commented on August 15, 2024

Great! I'll update this issue when I have something for you to test. Thanks :)

from crmsh.

kirvedx avatar kirvedx commented on August 15, 2024

Yep did the trick:

Node01:

mmod@mmasx:/usr/lib/python2.7/site-packages/crmsh$ sudo ln -s /usr/lib/python2.7/site-packages/crmsh/* /usr/lib/python2.7/dist-packages/crmsh/
[sudo] password for mmod: 
mmod@mmasx:/usr/lib/python2.7/site-packages/crmsh$ sudo crm
crm(live)# exit
bye

and

Node02:

mmod@mmasx2:/usr/lib/python2.7/site-packages/crmsh$ sudo ln -s /usr/lib/python2.7/site-packages/crmsh/* /usr/lib/python2.7/dist-packages/crmsh/
[sudo] password for mmod: 
mmod@mmasx2:/usr/lib/python2.7/site-packages/crmsh$ crm
bash: crm: command not found
mmod@mmasx2:/usr/lib/python2.7/site-packages/crmsh$ sudo crm
crm(live)# exit
bye

Great! I'll update this issue when I have something for you to test. Thanks :)

Sounds good to me, and thank you :)

If you are feeding the vars to python via a makefile, here's something perhaps you can cherry-pick from; its an in-progress pull-request to pcs/pcsd repository for the makefile I messed with for creating a conditional check for debian (and init script...which is nowhere near right, but I left it there for them to cherry-pick as well.:

ClusterLabs/pcs#55
https://github.com/rikkotec/pcs/blob/67cac17550088aaf8a74ee58c6ca1dc4e35aa258/pcsd/Makefile

Not sure if it will help any but figured it might be worth looking at.

Thanks again :)

from crmsh.

dmuhamedagic avatar dmuhamedagic commented on August 15, 2024

I guess that the python's setuptools know about the right
location too. From the build output:

mkdir -p /usr/lib/python2.7/dist-packages/crmsh
/usr/bin/python ./setup.py install
--prefix=/usr
--record /usr/lib/python2.7/dist-packages/crmsh/install_files.txt
--verbose
running install
running build
running build_py
running install_lib
copying build/lib.linux-x86_64-2.7/crmsh/term.py -> /usr/lib/python2.7/site-packages/crmsh

setup.py apparently has the right location, whereas the
install_lib target picks a different directory.

from crmsh.

krig avatar krig commented on August 15, 2024

Ah, no, it's the other way around. the autotools part points to dist-packages, but setup.py installs to site-packages.

from crmsh.

krig avatar krig commented on August 15, 2024

It seems that as soon as we pass --prefix= to setup.py, the debian hack that changes the output directory to dist-packages is disabled. I am not sure what the solution is yet.

from crmsh.

dmuhamedagic avatar dmuhamedagic commented on August 15, 2024

On Mon, Mar 23, 2015 at 09:07:55AM -0700, Kristoffer Gr�nlund wrote:

It seems that as soon as we pass --prefix= to setup.py, the debian hack that changes the output directory to dist-packages is disabled. I am not sure what the solution is yet.

Hmpf. Did you check some debian python packages?

from crmsh.

krig avatar krig commented on August 15, 2024

Well, most python packages call setup.py directly from the debian package scripts, and so they of course don't pass --prefix at all :) I guess that might be the way to go here: Anyone packaging for debian could simply ignore the autotools stuff and do those things directly from the rules script.

I'm curious if this is an issue in ubuntu: Since the bug I found was for ubuntu, I'm guessing they have some workaround for it, which is what allows the syseleven packages of crmsh to work: https://launchpad.net/~syseleven-platform/+archive/ubuntu/linux-ha/+packages

This is just a guess, though.

from crmsh.

kirvedx avatar kirvedx commented on August 15, 2024

Well, most python packages call setup.py directly from the debian package scripts, and so they of
course don't pass --prefix at all :) I guess that might be the way to go here: Anyone packaging for
debian could simply ignore the autotools stuff and do those things directly from the rules script.

That is true, in a Debian package we would overwrite the build system in whichever way we'd need using the debian/rules file. I'm not sure that's what they did for the crmsh bundled with cman, but we don't have a crmsh only package for Debian at this time. I'm gonna work on that :).

Though, as of right now Debian is very far behind -> and it's much more tangible for an end user to build from source.

I'm curious if this is an issue in ubuntu: Since the bug I found was for ubuntu, I'm guessing they
have some workaround for it, which is what allows the syseleven packages of crmsh to work:
https://launchpad.net/~syseleven-platform/+archive/ubuntu/linux-ha/+packages

Well, ironically the first install attempt worked out just fine on Node01 -> if you recall crm was working...but I'm not sure if I had crmsh installed via another package or if it was just a fluke or if it worked as intended and I broke something.

Ideally I'd have to do a fresh load and focus only on the cluster stack...to see if I broke something.

@krig Thanks for all your help :)

EDIT - Just removed some text, that really was just ranting if I was to be honest. Not about you guys, but just of the state of the HA Cluster-Stack on Debian. It's really not needed here - so removed :)

from crmsh.

krig avatar krig commented on August 15, 2024

@rikkotec Hehe, I understand the frustration. :) Unfortunately it seems like the packaging of the cluster stack has fallen behind in Debian, and crmsh is not the only package with issues :/ But, it definitely shouldn't be impossible to get the ./configure; make; sudo make install sequence working on debian as well. I am thinking that maybe I can check if the prefix is /usr and if so not pass the --prefix= argument. A bit hacky, but could work.

from crmsh.

krig avatar krig commented on August 15, 2024

@rikkotec OK, so I implemented the workaround I described before, please give it a test and see if it solves things.

from crmsh.

kirvedx avatar kirvedx commented on August 15, 2024

@krig

Seems to have an issue. Previously things were installed to /usr/lib/python2.7/site-packages. Now things seem to be trying to install to /usr/local/lib/python2.7.

However, when I do the install -> there is nothing copied at all. Here's my log with some ls command in different directories. Just know also in /usr/lib/python2.7 there is no files there.

mmod@mmasx:~/ha-build/crmsh$ sudo make install
(cd .; /usr/bin/python setup.py build \
    --build-base /home/mmod/ha-build/crmsh/build \
    --verbose)
running build
running build_py
make[1]: Entering directory '/home/mmod/ha-build/crmsh'
mkdir -p /usr/lib/python2.7/dist-packages/crmsh
/usr/bin/python ./setup.py install \
    --root= \
    --record /usr/lib/python2.7/dist-packages/crmsh/install_files.txt \
    --verbose
running install
running build
running build_py
running install_lib
copying build/lib.linux-x86_64-2.7/crmsh/term.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cache.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/help.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_configure.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/xmlutil.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/xmlbuilder.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_template.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/parse.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_root.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/crm_gv.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/clidisplay.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/scripts.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/orderedset.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cibverify.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/schema.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/msg.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/__init__.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/log_patterns.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/corosync.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/report.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/main.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cibstatus.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/pacemaker.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_cluster.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/crm_pssh.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ra.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/options.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_maintenance.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_site.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/command.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_script.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_report.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_history.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/rsctest.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_node.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_resource.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_context.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/template.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/completers.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_ra.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ordereddict.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/log_patterns_118.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/config.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/utils.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/userdir.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/tmpfiles.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_cibstatus.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_options.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/constants.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cmd_status.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_cib.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cibconfig.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_assist.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_corosync.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/idmgmt.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/ui_utils.py -> usr/local/lib/python2.7/dist-packages/crmsh
copying build/lib.linux-x86_64-2.7/crmsh/cliformat.py -> usr/local/lib/python2.7/dist-packages/crmsh
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/term.py to term.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/cache.py to cache.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/help.py to help.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_configure.py to ui_configure.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/xmlutil.py to xmlutil.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/xmlbuilder.py to xmlbuilder.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_template.py to ui_template.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/parse.py to parse.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_root.py to ui_root.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/crm_gv.py to crm_gv.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/clidisplay.py to clidisplay.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/scripts.py to scripts.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/orderedset.py to orderedset.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/cibverify.py to cibverify.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/schema.py to schema.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/msg.py to msg.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/__init__.py to __init__.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/log_patterns.py to log_patterns.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/corosync.py to corosync.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/report.py to report.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/main.py to main.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/cibstatus.py to cibstatus.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/pacemaker.py to pacemaker.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_cluster.py to ui_cluster.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/crm_pssh.py to crm_pssh.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ra.py to ra.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/options.py to options.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_maintenance.py to ui_maintenance.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_site.py to ui_site.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/command.py to command.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_script.py to ui_script.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_report.py to ui_report.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_history.py to ui_history.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/rsctest.py to rsctest.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_node.py to ui_node.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_resource.py to ui_resource.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_context.py to ui_context.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/template.py to template.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/completers.py to completers.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_ra.py to ui_ra.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ordereddict.py to ordereddict.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/log_patterns_118.py to log_patterns_118.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/config.py to config.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/utils.py to utils.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/userdir.py to userdir.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/tmpfiles.py to tmpfiles.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_cibstatus.py to ui_cibstatus.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_options.py to ui_options.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/constants.py to constants.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/cmd_status.py to cmd_status.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_cib.py to ui_cib.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/cibconfig.py to cibconfig.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_assist.py to ui_assist.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_corosync.py to ui_corosync.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/idmgmt.py to idmgmt.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/ui_utils.py to ui_utils.pyc
byte-compiling usr/local/lib/python2.7/dist-packages/crmsh/cliformat.py to cliformat.pyc
running install_egg_info
Writing usr/local/lib/python2.7/dist-packages/crmsh-2.2.0_rc2.egg-info
writing list of installed files to '/usr/lib/python2.7/dist-packages/crmsh/install_files.txt'
/usr/bin/install -c -d -m 770 //usr/var/cache/crm
rm -rf  
 /bin/mkdir -p '/usr/sbin'
 /usr/bin/install -c crm '/usr/sbin'
 /bin/mkdir -p '/usr/share/crmsh/tests/cibtests'
 /usr/bin/install -c -m 644 test/cibtests/shadow.base test/cibtests/001.exp.xml test/cibtests/001.input test/cibtests/002.exp.xml test/cibtests/002.input test/cibtests/003.exp.xml test/cibtests/003.input test/cibtests/004.exp.xml test/cibtests/004.input '/usr/share/crmsh/tests/cibtests'
 /bin/mkdir -p '/usr/share/doc/crmsh/contrib'
 /usr/bin/install -c -m 644 contrib/pacemaker-crm.vim contrib/pcmk.vim contrib/README.vimsyntax '/usr/share/doc/crmsh/contrib'
 /bin/mkdir -p '/usr/etc/crm'
 /usr/bin/install -c -m 644 crm.conf '/usr/etc/crm'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c -m 644 version '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/doc/crmsh'
 /usr/bin/install -c -m 644 AUTHORS COPYING README ChangeLog '/usr/share/doc/crmsh'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c -m 644 hb_report/utillib.sh hb_report/ha_cf_support.sh hb_report/openais_conf_support.sh '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c hb_report/hb_report '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/crmsh/scripts/health'
 /usr/bin/install -c -m 644 scripts/health/main.yml '/usr/share/crmsh/scripts/health'
 /bin/mkdir -p '/usr/share/crmsh/scripts/health'
 /usr/bin/install -c scripts/health/collect.py scripts/health/report.py scripts/health/hahealth.py '/usr/share/crmsh/scripts/health'
 /bin/mkdir -p '/usr/share/crmsh'
 /usr/bin/install -c -m 644 doc/crm.8.adoc '/usr/share/crmsh'
 /bin/mkdir -p '/usr/share/crmsh/scripts/add'
 /usr/bin/install -c -m 644 scripts/add/main.yml '/usr/share/crmsh/scripts/add'
 /bin/mkdir -p '/usr/share/crmsh/scripts/add'
 /usr/bin/install -c scripts/add/add.py '/usr/share/crmsh/scripts/add'
 /bin/mkdir -p '/usr/share/crmsh/scripts/init'
 /usr/bin/install -c -m 644 scripts/init/main.yml scripts/init/corosync.conf.template scripts/init/basic.cib.template '/usr/share/crmsh/scripts/init'
 /bin/mkdir -p '/usr/share/crmsh/scripts/init'
 /usr/bin/install -c scripts/init/collect.py scripts/init/verify.py scripts/init/configure.py scripts/init/authkey.py scripts/init/init.py '/usr/share/crmsh/scripts/init'
 /bin/mkdir -p '/usr/share/crmsh/scripts/remove'
 /usr/bin/install -c -m 644 scripts/remove/main.yml '/usr/share/crmsh/scripts/remove'
 /bin/mkdir -p '/usr/share/crmsh/scripts/remove'
 /usr/bin/install -c scripts/remove/remove.py '/usr/share/crmsh/scripts/remove'
 /bin/mkdir -p '/usr/share/crmsh/templates'
 /usr/bin/install -c -m 644 templates/apache templates/virtual-ip templates/filesystem templates/ocfs2 templates/clvm templates/gfs2-base templates/gfs2 templates/sbd '/usr/share/crmsh/templates'
 /bin/mkdir -p '/usr/share/crmsh/tests'
 /usr/bin/install -c -m 644 test/README.regression test/defaults test/descriptions test/crm-interface test/history-test.tar.bz2 test/bugs-test.txt '/usr/share/crmsh/tests'
 /bin/mkdir -p '/usr/share/crmsh/tests'
 /usr/bin/install -c test/regression.sh test/evaltest.sh test/cib-tests.sh '/usr/share/crmsh/tests'
 /bin/mkdir -p '/usr/share/crmsh/tests/testcases'
 /usr/bin/install -c -m 644 test/testcases/basicset test/testcases/common.excl test/testcases/confbasic test/testcases/confbasic-xml test/testcases/delete test/testcases/file test/testcases/node test/testcases/ra test/testcases/resource test/testcases/shadow test/testcases/acl test/testcases/options test/testcases/edit test/testcases/edit.excl test/testcases/rset test/testcases/rset-xml test/testcases/history test/testcases/confbasic-xml.exp test/testcases/confbasic.exp test/testcases/delete.exp test/testcases/file.exp test/testcases/node.exp test/testcases/ra.exp test/testcases/resource.exp test/testcases/shadow.exp test/testcases/acl.exp test/testcases/options.exp test/testcases/edit.exp test/testcases/rset.exp test/testcases/rset-xml.exp test/testcases/history.exp test/testcases/history.excl test/testcases/newfeatures test/testcases/newfeatures.exp test/testcases/acl.excl test/testcases/commit test/testcases/commit.exp test/testcases/bugs test/testcases/bugs.exp '/usr/share/crmsh/tests/testcases'
 /bin/mkdir -p '/usr/share/crmsh/tests/testcases'
 /usr/bin/install -c test/testcases/ra.filter test/testcases/common.filter test/testcases/xmlonly.sh test/testcases/history.pre test/testcases/history.post '/usr/share/crmsh/tests/testcases'
 /bin/mkdir -p '/usr/share/crmsh/scripts/check-uptime'
 /usr/bin/install -c -m 644 scripts/check-uptime/main.yml '/usr/share/crmsh/scripts/check-uptime'
 /bin/mkdir -p '/usr/share/crmsh/scripts/check-uptime'
 /usr/bin/install -c scripts/check-uptime/fetch.py scripts/check-uptime/report.py '/usr/share/crmsh/scripts/check-uptime'
 /bin/mkdir -p '/usr/share/crmsh/utils'
 /usr/bin/install -c -m 644 utils/crm_script.py utils/crm_init.py '/usr/share/crmsh/utils'
 /bin/mkdir -p '/usr/share/crmsh/utils'
 /usr/bin/install -c utils/crm_clean.py utils/crm_rpmcheck.py utils/crm_pkg.py '/usr/share/crmsh/utils'
make[1]: Leaving directory '/home/mmod/ha-build/crmsh'
mmod@mmasx:~/ha-build/crmsh$ cd /usr/local/lib
mmod@mmasx:/usr/local/lib$ ls
python2.7
mmod@mmasx:/usr/local/lib$ cd python2.7
mmod@mmasx:/usr/local/lib/python2.7$ ls
dist-packages  site-packages
mmod@mmasx:/usr/local/lib/python2.7$ cd site-packages
mmod@mmasx:/usr/local/lib/python2.7/site-packages$ ls
mmod@mmasx:/usr/local/lib/python2.7/site-packages$ cd ../dist-packages
mmod@mmasx:/usr/local/lib/python2.7/dist-packages$ ls
mmod@mmasx:/usr/local/lib/python2.7/dist-packages$ ls
mmod@mmasx:/usr/local/lib/python2.7/dist-packages$ cd crmsh

from crmsh.

kirvedx avatar kirvedx commented on August 15, 2024

@krig

Some more ls commands:

mmod@mmasx:/usr/lib/python2.7/dist-packages/crmsh$ ls
install_files.txt
mmod@mmasx:/usr/lib/python2.7/dist-packages/crmsh$ ls ../../site-packages/crmsh
mmod@mmasx:/usr/lib/python2.7/dist-packages/crmsh$ ls /usr/local/lib/python2.7/dist-packages/crmsh
ls: cannot access /usr/local/lib/python2.7/dist-packages/crmsh: No such file or directory
mmod@mmasx:/usr/lib/python2.7/dist-packages/crmsh$ ls /usr/local/lib/python2.7/site-packages/crmsh
ls: cannot access /usr/local/lib/python2.7/site-packages/crmsh: No such file or directory
mmod@mmasx:/usr/lib/python2.7/dist-packages/crmsh$ ls /usr/local/lib/python2.6/dist-packages/crmsh
ls: cannot access /usr/local/lib/python2.6/dist-packages/crmsh: No such file or directory
mmod@mmasx:/usr/lib/python2.7/dist-packages/crmsh$ ls /usr/local/lib/python2.6/site-packages/crmsh
ls: cannot access /usr/local/lib/python2.6/site-packages/crmsh: No such file or directory
mmod@mmasx:/usr/lib/python2.7/dist-packages/crmsh$ ls /usr/lib/python2.6/dist-packages/crmsh
ls: cannot access /usr/lib/python2.6/dist-packages/crmsh: No such file or directory
mmod@mmasx:/usr/lib/python2.7/dist-packages/crmsh$ ls /usr/lib/python2.6/site-packages/crmsh
ls: cannot access /usr/lib/python2.6/site-packages/crmsh: No such file or directory

To clarify after running the install I still get:

mmod@mmasx:/usr/lib/python2.7/dist-packages/crmsh$ sudo crm
Fatal error:
    No module named crmsh
    No module named modules

Failed to start the crm shell! This is likely due to
a broken installation or a missing dependency.

If you are using a packaged version of the crm shell,
please try reinstalling the package. Also check your
PYTHONPATH and make sure that the crmsh module is
reachable.

Please file an issue describing your installation at
https://github.com/Clusterlabs/crmsh/issues/ .

from crmsh.

krig avatar krig commented on August 15, 2024

Hrm no, I see I messed that up.

from crmsh.

kirvedx avatar kirvedx commented on August 15, 2024

@krig

In Makefile.am, change:

if PREFIX_IS_USR
python_prefix = --root=$(DESTDIR)
else
python_prefix = --prefix=$(DESTDIR)$(prefix)
endif

to

if PREFIX_IS_USR
python_prefix = 
else
python_prefix = --prefix=$(DESTDIR)$(prefix)
endif

Does the trick :) If that's acceptable (though the install directory is now /usr/local/lib/python2.7/dist-packages/crmsh), I can submit a pull-request -> or you can cherry-pick that fix from here.

Should it be installing to /usr/local/lib/..., like is that an ok place for things to install considering previously it was /usr/lib... ? Please let me know on that.

from crmsh.

kirvedx avatar kirvedx commented on August 15, 2024

@krig

Spoke with Debian Mentors, they said when building/installing software from upstream source /usr/local is the place to put stuff.

In the Debian package I'm creating though, I'll need to work around the Debian system and properly get things installed into /usr instead of /usr/local.

So basically, the fix I mentioned works and is acceptable on Debian when installed from source.

I'll send you a pull request here in a minute or two.

from crmsh.

kirvedx avatar kirvedx commented on August 15, 2024

@krig

Update introducing README.md as well, to spice things up for Github.com users. :) The original README file is still there so developers reading from source don't get markdown spam - though I did fix a spelling error as well. Github.com automatically selects the .md version for displaying on Github.com

I also updated .gitignore so that eclipse users won't spam the repository with .project/.pydev/.settings files/directories.

Link to pull request: #86

If its not ok or you can't use the whole thing; feel free to cherry-pick.

from crmsh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.