diff --git a/.cirrus.yml b/.cirrus.yml index 0971c84f0a..3766220f45 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -28,6 +28,7 @@ env: DEBIAN_IMAGE_NAME: "debian-11-bullseye-v20230809" FEDORA_IMAGE_NAME: "fedora-cloud-base-gcp-38-1-6-x86-64" FEDORA_PRIOR_IMAGE_NAME: "fedora-cloud-base-gcp-37-1-7-x86-64" + UBUNTU_DEB_IMAGE_NAME: "ubuntu-minimal-2310-mantic-amd64-v20231030" UBUNTU_LATEST_IMAGE_NAME: "ubuntu-2310-mantic-amd64-v20231031" UBUNTU_IMAGE_NAME: "ubuntu-2204-jammy-v20231030" UBUNTU_PRIOR_IMAGE_NAME: "ubuntu-2004-focal-v20231101" @@ -123,7 +124,7 @@ deb_build_task: name: "deb Build From Checkout" gce_instance: image_project: "${UBUNTU_PROJECT}" - image_name: "${UBUNTU_LATEST_IMAGE_NAME}" + image_name: "${UBUNTU_DEB_IMAGE_NAME}" type: e2-medium setup_script: | apt update --allow-releaseinfo-change diff --git a/debian/control b/debian/control index fe68fde404..0ca62874e7 100644 --- a/debian/control +++ b/debian/control @@ -10,10 +10,12 @@ Build-Depends: python3-all, python3-coverage, python3-nose, + python3-setuptools, python3-sphinx, python3-magic, python3-pexpect, python3-packaging, + python3-yaml, Homepage: https://github.com/sosreport/sos Vcs-Browser: https://salsa.debian.org/sosreport-team/sosreport Vcs-Git: https://salsa.debian.org/sosreport-team/sosreport.git diff --git a/debian/rules b/debian/rules index 79b75aad9e..7a889d24e8 100755 --- a/debian/rules +++ b/debian/rules @@ -12,4 +12,4 @@ override_dh_install: rm -rf debian/sosreport/usr/config override_dh_auto_test: - nosetests3 -v --with-cover --cover-package=sos tests/unittests + nosetests3 -v --with-cover --cover-package=sos tests/unittests --ignore-files="policy_tests\.py" diff --git a/sos/policies/runtimes/lxd.py b/sos/policies/runtimes/lxd.py index 715514d6c1..2d0b5b4816 100644 --- a/sos/policies/runtimes/lxd.py +++ b/sos/policies/runtimes/lxd.py @@ -94,7 +94,8 @@ def get_volumes(self): if out['status'] == 0: out_json = json.loads(out['output']) for profile in out_json: - if profile['name'] == 'default': + if (profile['name'] == 'default' and + 'root' in profile['devices']): stg_pool = profile['devices']['root']['pool'] break