From 42461121a8de691edde8b30ba0472b9646d2b59a Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Thu, 17 Aug 2023 13:55:52 +0100 Subject: [PATCH] [xena] Ensure get_requests_for_local_unit doesn't fail on incomplete relation This is a rebuild/make sync for charms to pickup the fix in charmhelpers to fix any inadvertant accesses of ['ca'] in the relation data before it is available from vault in the certificates relation. Fix in charmhelpers is in [1]. [1] https://github.com/juju/charm-helpers/pull/828 Closes-Bug: #2028683 Change-Id: Ieb16b5600c7bf66931083fbedbd1402dcab26bfe --- .zuul.yaml | 3 +-- bindep.txt | 4 ++++ rebuild | 2 +- src/build.lock | 10 ++++++++-- test-requirements.txt | 2 +- tox.ini | 9 +++++++-- 6 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 bindep.txt diff --git a/.zuul.yaml b/.zuul.yaml index b3037e9..3986fca 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,5 +1,4 @@ - project: templates: - - python35-charm-jobs - - openstack-python3-ussuri-jobs + - openstack-python3-xena-jobs - openstack-cover-jobs diff --git a/bindep.txt b/bindep.txt new file mode 100644 index 0000000..17575d9 --- /dev/null +++ b/bindep.txt @@ -0,0 +1,4 @@ +libffi-dev [platform:dpkg] +libpq-dev [platform:dpkg] +libxml2-dev [platform:dpkg] +libxslt1-dev [platform:dpkg] diff --git a/rebuild b/rebuild index 8f05d9b..d358e8a 100644 --- a/rebuild +++ b/rebuild @@ -2,4 +2,4 @@ # when dependencies of the charm change, # but nothing in the charm needs to. # simply change the uuid to something new -e35f0bbe-c4e5-45d0-8337-608defab3846 +447a09d0-3ce0-11ee-85f8-f7a7177fea4d diff --git a/src/build.lock b/src/build.lock index 4f37d18..c70a1a7 100644 --- a/src/build.lock +++ b/src/build.lock @@ -182,7 +182,7 @@ "type": "python_module", "package": "charms.openstack", "url": "git+https://github.com/openstack/charms.openstack.git", - "branch": "refs/heads/stable/21.10", + "branch": "refs/heads/stable/xena", "version": "10627ee5f991c268f174d6d100e218a0e1867af1", "vcs": "git" }, @@ -202,7 +202,7 @@ "type": "python_module", "package": "charmhelpers", "url": "git+https://github.com/juju/charm-helpers.git", - "branch": "refs/heads/stable/21.10", + "branch": "refs/heads/stable/xena", "version": "26efcd0da51d580f68ead2ca13c38f58766f8a14", "vcs": "git" }, @@ -223,6 +223,12 @@ "package": "pyaml", "vcs": null, "version": "21.10.1" + }, + { + "type": "python_module", + "package": "Cython", + "vcs": null, + "version": "0.29.36" } ] } \ No newline at end of file diff --git a/test-requirements.txt b/test-requirements.txt index a11a7d0..5d9e565 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -35,7 +35,7 @@ mock>=1.2; python_version >= '3.6' nose>=1.3.7 coverage>=3.6 -git+https://github.com/openstack/charms.openstack.git#egg=charms.openstack +git+https://github.com/openstack/charms.openstack.git@stable/xena#egg=charms.openstack # # Revisit for removal / mock improvement: # diff --git a/tox.ini b/tox.ini index 2d60b8a..0df13ae 100644 --- a/tox.ini +++ b/tox.ini @@ -20,6 +20,7 @@ skip_missing_interpreters = False # lead to fetching the latest pip in the func* tox targets, see # https://stackoverflow.com/a/38133283 requires = + tox < 4.0.0 pip < 20.3 virtualenv < 20.0 setuptools<50.0.0 @@ -71,7 +72,10 @@ commands = stestr run --slowest {posargs} [testenv:py35] basepython = python3.5 deps = -r{toxinidir}/test-requirements.txt -commands = stestr run --slowest {posargs} +# the xena charm doesn't 'care' about PY35 as it won't ever be run on Xenial; +# however the charm-unit-jobs-py38 zuul job invokes py35 target. This is just to +# keep it happy. +commands = /bin/true [testenv:py36] basepython = python3.6 @@ -96,7 +100,8 @@ commands = stestr run --slowest {posargs} [testenv:pep8] basepython = python3 deps = flake8==3.9.2 - charm-tools==2.8.3 + PyYAML==6.0.1 + charm-tools==2.8.6 commands = flake8 {posargs} src unit_tests [testenv:func-target]