diff --git a/.zuul.yaml b/.zuul.yaml index e93643b9..2f3d79c3 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -4,18 +4,19 @@ - check-requirements - publish-openstack-docs-pti - release-notes-jobs-python3 + - openstack-python3-jobs check: jobs: - openstack-tox-pylint - # - freezer-tempest-agent - # - freezer-tempest-scheduler + - freezer-tempest-agent + - freezer-tempest-scheduler # - freezer-ubuntu # - freezer-centos-9-stream gate: jobs: - openstack-tox-pylint - # - freezer-tempest-agent - # - freezer-tempest-scheduler + - freezer-tempest-agent + - freezer-tempest-scheduler # - freezer-ubuntu # - freezer-centos-9-stream diff --git a/devstack/lib/freezer b/devstack/lib/freezer index ab8f64db..7b51c91c 100644 --- a/devstack/lib/freezer +++ b/devstack/lib/freezer @@ -59,6 +59,11 @@ function install_freezer { git_clone $FREEZER_REPO $FREEZER_DIR $FREEZER_BRANCH setup_develop $FREEZER_DIR + if [[ "$GLOBAL_VENV" == "True" ]]; then + sudo ln -sf /opt/stack/data/venv/bin/freezer /usr/local/bin + sudo ln -sf /opt/stack/data/venv/bin/freezer-agent /usr/local/bin + sudo ln -sf /opt/stack/data/venv/bin/freezer-scheduler /usr/local/bin + fi } # executed during: stack post-config diff --git a/freezer/engine/rsync/pyrsync.py b/freezer/engine/rsync/pyrsync.py index bd4c805c..2ce641f0 100644 --- a/freezer/engine/rsync/pyrsync.py +++ b/freezer/engine/rsync/pyrsync.py @@ -101,7 +101,8 @@ def rsyncdelta(datastream, remotesignatures, blocksize=4096): # matching strong hash does not occur at the first match, it will # be missed and the data sent over. May fix eventually, but this # problem arises very rarely. - matchblock = remote_weak.index(checksum, matchblock + 1) # pylint: disable=E0606 + matchblock = remote_weak.index( + checksum, matchblock + 1) # pylint: disable=E0606 stronghash = hashlib.sha1(bytes(window)).hexdigest() matchblock = remote_strong.index(stronghash, matchblock) @@ -141,7 +142,8 @@ def rsyncdelta(datastream, remotesignatures, blocksize=4096): # Yank off the extra byte and calculate the new window checksum oldbyte = window.popleft() - checksum, a, b = rollingchecksum(oldbyte, newbyte, a, b, blocksize) # pylint: disable=E0601 + checksum, a, b = rollingchecksum( + oldbyte, newbyte, a, b, blocksize) # pylint: disable=E0601 last_byte.append(oldbyte) if len(last_byte) == blocksize: diff --git a/freezer/storage/ftp.py b/freezer/storage/ftp.py index 641b1840..feed5a7b 100644 --- a/freezer/storage/ftp.py +++ b/freezer/storage/ftp.py @@ -322,8 +322,7 @@ class FtpsStorage(BaseFtpStorage): def init(self): try: - ftps = ftplib.FTP_TLS(keyfile=self.keyfile, - certfile=self.certfile) + ftps = ftplib.FTP_TLS() ftps.set_pasv(True) ftps.connect(self.remote_ip, self.port, 60) ftps.login(self.remote_username, self.remote_pwd) diff --git a/test-requirements.txt b/test-requirements.txt index e8935ffd..f7050669 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -20,4 +20,4 @@ python-openstackclient>=3.12.0 # Apache-2.0 doc8>=0.6.0 # Apache-2.0 Pygments>=2.2.0 # BSD license # astroid<=2.5.0;python_version>="3.0" # LGPLv2.1 -pylint>=2.6.0;python_version>="3.0" # GPLv2 +pylint>=2.6.0 # GPLv2 diff --git a/tox.ini b/tox.ini index 0c4d7374..08694140 100644 --- a/tox.ini +++ b/tox.ini @@ -59,6 +59,9 @@ basepython = python3.9 [testenv:py38] basepython = python3.8 +[testenv:py312] +basepython = python3.12 + [testenv:docs] deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}