Whamcloud - gitweb
EX-5644 utils: fix lpcc service dependency on lipe-lpcc
authorAlex Deiter <alex.deiter@gmail.com>
Fri, 5 Aug 2022 16:35:39 +0000 (16:35 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 23 Aug 2022 19:24:09 +0000 (19:24 +0000)
commit075df01737d5980f52fbcef5ff7f04caaaf8e877
treefbdf30d9282220e77a876a2be811a4cbe04d0d74
parentc4415fabcdaf621b0c8fa3ba33d53908de6242a1
EX-5644 utils: fix lpcc service dependency on lipe-lpcc

This patch makes changes to support python3 for lipe:
* The long() function is no longer supported by Python 3.
  It only has one built-in integral type, named int().
* Octal literals are no longer of the form 0720 - use
  0o720 instead.
* The print statement has been replaced with a print()
  function, with keyword arguments to replace most of the
  special syntax of the old print statement (PEP 3105).
* The dict.iterkeys(), dict.iteritems() and dict.itervalues()
  methods are no longer supported - use dict.items() instead.
* The StringIO and StringIO modules are gone. Instead,
  import the io module and use io.StringIO or io.BytesIO
  for text and data respectively.
* The builtin basestring abstract type was removed.
  Use str instead.
* Use string.ascii_lowercase instead of string.lowercase.

Test-Parameters: trivial testlist=sanity-lipe env=SANITY_EXCEPT="101j 130 244a"
Test-Parameters: clientdistro=el7.9 testlist=sanity-pcc
Test-Parameters: clientdistro=el8.6 testlist=sanity-pcc
Change-Id: Ia5a3b6490fd4cebbd40327d5b2a431590c82cf00
Signed-off-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-on: https://review.whamcloud.com/48149
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Feng, Lei <flei@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
29 files changed:
lipe/configure.ac
lipe/detect-distro.sh
lipe/ldsync
lipe/lipe.spec.in
lipe/lipe_convert_expr
lipe/lipe_expression_tests
lipe/lipe_find
lipe/lipe_launch
lipe/lipe_run_action
lipe/loris_backup
lipe/loris_crontab
lipe/loris_test
lipe/lpcc
lipe/pybuild/lipe_expression_tests.py
lipe/pylipe/ldsync.py
lipe/pylipe/lipe.py
lipe/pylipe/lipe_convert_expr.py
lipe/pylipe/lipe_find.py
lipe/pylipe/lipe_flist_handle.py
lipe/pyloris/lbackup.py
lipe/pyloris/loris_backup.py
lipe/pyloris/loris_test.py
lipe/pylustre/clog.py
lipe/pylustre/cmd_general.py
lipe/pylustre/cstr.py
lipe/pylustre/lustre.py
lipe/pylustre/ssh_host.py
lipe/pylustre/utils.py
lipe/pylustre/watched_io.py