From accc9f05b778dd69242c4be79385e9b73c5a81b0 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 5 Oct 2019 10:43:11 +0800 Subject: [PATCH] ceph-dev-new-build/build/setup_rpm: install python2 for el7 otherwise we will have Traceback (most recent call last): File "/tmp/venv.pAISkJ09vG/bin/chacractl", line 6, in main.ChacraCtl() File "/tmp/venv.pAISkJ09vG/lib/python3.6/site-packages/chacractl/main.py", line 38, in __init__ self.main(argv) File "/tmp/venv.pAISkJ09vG/lib/python3.6/site-packages/chacractl/decorators.py", line 68, in newfunc return f(*a, **kw) File "/tmp/venv.pAISkJ09vG/lib/python3.6/site-packages/chacractl/main.py", line 82, in main parser.dispatch() File "/tmp/venv.pAISkJ09vG/lib/python3.6/site-packages/tambo/dispatcher.py", line 21, in dispatch result = instance.main() File "/tmp/venv.pAISkJ09vG/lib/python3.6/site-packages/chacractl/api/exists.py", line 62, in main return self.head(url) File "/tmp/venv.pAISkJ09vG/lib/python3.6/site-packages/chacractl/decorators.py", line 68, in newfunc return f(*a, **kw) File "/tmp/venv.pAISkJ09vG/lib/python3.6/site-packages/chacractl/util.py", line 65, in inner_wrapper for counter in xrange(times): NameError: name 'xrange' is not defined Signed-off-by: Kefu Chai --- ceph-dev-new-build/build/setup_rpm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ceph-dev-new-build/build/setup_rpm b/ceph-dev-new-build/build/setup_rpm index 19da8184..2bd50961 100644 --- a/ceph-dev-new-build/build/setup_rpm +++ b/ceph-dev-new-build/build/setup_rpm @@ -89,6 +89,8 @@ if [ "$RELEASE" = 7 ]; then fi elif [ "$RELEASE" = 8 ]; then $SUDO dnf config-manager --set-enabled PowerTools + # chacractl is not python3 compatible yet + $SUDO dnf -y install python2 fi sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec -- 2.39.5