#1149421 glance: FTBFS: FAIL: glance.tests.unit.test_store_image.TestImageFactory.test_new_image_with_location

Package:
src:glance
Source:
src:glance
Submitter:
Santiago Vila
Date:
2026-10-01 18:59:03 UTC
Severity:
normal
Tags:
#1149421#5
Date:
2026-09-29 22:19:30 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202609/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:glance, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
or repr(object).
encoding defaults to 'utf-8'.
errors defaults to 'strict'.

======================================================================
FAIL: glance.tests.unit.test_store_image.TestImageFactory.test_new_image_with_location
glance.tests.unit.test_store_image.TestImageFactory.test_new_image_with_location
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/glance/tests/unit/test_store_image.py", line 1329, in test_new_image_with_location
    image = self.image_factory.new_image(locations=locations)
  File "/<<PKGBUILDDIR>>/glance/location.py", line 224, in new_image
    _check_image_location(self.context,
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
                          self.store_api,
                          ^^^^^^^^^^^^^^^
                          self.store_utils,
                          ^^^^^^^^^^^^^^^^^
                          loc)
                          ^^^^
  File "/<<PKGBUILDDIR>>/glance/location.py", line 172, in _check_image_location
    _check_location_uri(context, store_api, store_utils, location['url'],
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        backend=backend)
                        ^^^^^^^^^^^^^^^^
  File "/<<PKGBUILDDIR>>/glance/location.py", line 148, in _check_location_uri
    raise exception.BadStoreUri(message=reason)
glance.common.exception.BadStoreUri: Invalid location
---------------------------------------------------------------------- Ran 2415 tests in 25.700s FAILED (failures=1) + echo ======> STESTR TEST SUITE FAILED FOR python3.14: displaying pip3 freeze output... ======> STESTR TEST SUITE FAILED FOR python3.14: displaying pip3 freeze output... + [ -x /usr/bin/pip3 ] + pip3 freeze WARNING: The directory '/sbuild-nonexistent/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag. alabaster==1.0.0 alembic==1.18.4 amqp==5.3.1 anyio==4.15.1 attrs==26.1.0 autocommand==2.2.2 automaton==3.5.0 autopage==0.6.0 babel==2.18.0 bandit==1.9.4 bcrypt==5.0.0 blinker==1.9.0 boto3==1.40.72 botocore==1.40.72 build==1.5.1 cachetools==7.0.1 castellan==5.8.0 certifi==2026.7.22 cffi==2.1.1 chardet==5.2.0 charset-normalizer==3.4.7 cliff==4.16.0 cmd2==4.2.0+ds confluent-kafka==2.12.2 cotyledon==2.2.0 coverage==7.16.1 cryptography==49.0.0 cursive==0.3.1 ddt==1.7.2 debtcollector==3.1.0 decorator==5.3.1 defusedxml==0.7.1 deprecation==2.1.0 dnspython==2.8.0 docutils==0.23 dogpile.cache==1.5.0 dulwich==1.2.12 elastic-transport==9.4.2 elasticsearch==9.5.1 eventlet==0.41.2 fasteners==0.20 fixtures==4.3.0 flake8==7.3.0 futurist==3.5.0 gevent==25.9.1 gitdb==4.0.12 GitPython==3.1.62 glance==33.0.0.0rc1 glance_store==5.7.0 greenlet==3.3.2 hacking==8.1.0 httplib2==0.32.0 idna==3.19 imagesize==2.0.1 installer==1.0.1 iso8601==2.1.0 jaraco.context==6.0.1 jaraco.functools==4.1.0 Jinja2==3.1.6 jmespath==1.0.1 jschema-to-python==1.2.3 jsonpatch==1.33 jsonpickle==4.0.2+dfsg jsonpointer==2.4 jsonschema==4.26.0 jsonschema-specifications==2025.9.1 kazoo==2.11.0.dev0 keystoneauth1==5.17.0 keystonemiddleware==13.0.1 kombu==5.6.2 legacy-cgi==2.6.4 linkify-it-py==2.1.0 lxml==6.1.3 Mako==1.3.10.dev0 markdown-it-py==4.2.0 MarkupSafe==3.0.3 mccabe==0.7.0 mdurl==0.1.2 monotonic==1.6 more-itertools==11.1.0 msgpack==1.2.1 mysqlclient==1.4.6 netaddr==1.3.0 netifaces==0.11.0 networkx==3.4.2 oauthlib==3.3.1 openstackdocstheme==3.2.0 openstacksdk==4.20.0 os-api-ref==3.1.0 os-brick==7.1.1 os-client-config==2.3.0 os-service-types==1.9.0 oslo.cache==4.3.0 oslo.concurrency==7.6.1 oslo.config==10.7.0 oslo.context==6.5.0 oslo.db==18.1.1 oslo.i18n==6.9.0 oslo.limit==2.12.0 oslo.log==8.3.2 oslo.messaging==18.3.0 oslo.metrics==0.17.0 oslo.middleware==8.2.0 oslo.policy==6.0.1 oslo.privsep==3.12.0 oslo.reports==3.9.0 oslo.rootwrap==7.10.0 oslo.serialization==5.11.0 oslo.service==4.8.0 oslo.upgradecheck==2.8.0 oslo.utils==10.2.0 oslo.vmware==4.10.1 oslosphinx==4.18.0 oslotest==6.1.1 osprofiler==4.3.0 packaging==26.2 Paste==3.10.1 PasteDeploy==3.1.0 pbr==7.1.1 platformdirs==4.11.9 prettytable==3.18.0 prometheus_client==0.21.1 prompt_toolkit==3.0.53 psutil==7.2.2 psycopg2==2.9.13 pure-sasl==0.6.2 pyasyncore==1.0.2 pycadf==4.0.1 pycodestyle==2.14.0 pycparser==3.0 pydot==4.0.1 pyflakes==3.4.0 Pygments==2.20.0 PyJWT==2.15.1 pykerberos==1.1.14 PyMySQL==1.2.0 pyparsing==3.3.2 pyperclip==1.11.0 pyproject_hooks==1.2.0 pysendfile==2.0.1 python-barbicanclient==7.6.0 python-binary-memcached==0.31.4 python-cinderclient==9.10.0 python-dateutil==2.9.0 python-keystoneclient==6.0.0 python-memcached==1.60 python-subunit==1.4.6 python-swiftclient==4.11.0 PyYAML==6.0.3 pyzmq==27.1.0 referencing==0.37.0 repoze-lru==0.8 requests==2.34.2 retrying==1.4.2 rfc3986==2.0.0 rich==15.0.0 rich-argparse==1.8.0 roman-numerals==4.1.0 Routes==2.5.1 rpds-py==0.30.0 s3transfer==0.14.0 sarif-om==1.0.4 setproctitle==1.3.7 setuptools==84.0.0 simplegeneric==0.8.1 six==1.17.0 smmap==6.0.0 sniffio==1.3.1 snowballstemmer==3.1.1 Sphinx==9.1.0 sphinxcontrib-apidoc==0.6.0 SQLAlchemy==2.0.52 statsd==4.0.1 stestr==4.2.1 stevedore==5.9.1 suds-community==1.2.0 taskflow==6.4.0 Tempita==0.6.0 tenacity==9.1.4 testresources==2.1.2 testscenarios==0.6.2 testtools==2.9.1 tomlkit==0.13.3 typing_extensions==4.16.0 uc-micro-py==2.0.0 uhashring==2.5 urllib3==2.8.0 vine==5.1.0 voluptuous==0.16.0 wcwidth==0.8.3 WebOb==1.8.11 wheel==0.47.0 wrapt==2.3.0 WSME==0.13.0 xattr==1.3.0 yappi==1.7.6 zipp==3.23.0 zope.event==6.2 zope.interface==8.6 + exit 1 make[1]: *** [debian/rules:51: override_dh_install] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:11: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------
#1149421#8
Date:
2026-10-01 18:35:36 UTC
From:
To:
Hello,

Bug #1149421 in glance reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/openstack-team/services/glance/-/commit/ba4dbde59d62800b249b66b8e9736487895890d7
------------------------------------------------------------------------
* Fixed FTBFS on buildds without network access, mock DNS resolution
    in test_new_image_with_location (Closes: #1149421):
    - test_new_image_with_location_Do_not_rely_on_DNS_resolution.patch
    Thanks Santiago Vila for the bug report.
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1149421

#1149421#15
Date:
2026-10-01 18:56:42 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
glance, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1149421@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <zigo@debian.org> (supplier of updated glance package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 01 Oct 2026 20:25:50 +0200
Source: glance
Architecture: source
Version: 2:33.0.0-4
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
Closes: 1149421
Changes:
 glance (2:33.0.0-4) unstable; urgency=medium
 .
   * Fixed FTBFS on buildds without network access, mock DNS resolution
     in test_new_image_with_location (Closes: #1149421):
     - test_new_image_with_location_Do_not_rely_on_DNS_resolution.patch
     Thanks Santiago Vila for the bug report.
Checksums-Sha1:
 edf39ae84967827525891d013e6f0cb74eec503d 3610 glance_33.0.0-4.dsc
 d776696b38d15a5b730704d39e36e617bf94ed8e 19712 glance_33.0.0-4.debian.tar.xz
 8e79f451839a430ebd403faa0345c985feb616a4 18463 glance_33.0.0-4_amd64.buildinfo
Checksums-Sha256:
 13837d2b701531b65f5e151f4ace45caa252c96b90d2838587c857f354a1eb6f 3610 glance_33.0.0-4.dsc
 67096acff05a79d8bb3ae776d28ce276a9c3681b9add973813a48b62fd843766 19712 glance_33.0.0-4.debian.tar.xz
 159c5a78e90c3f6be68f5194d89257ef5bbcbe19f8787bdabb11ceac49ac85c8 18463 glance_33.0.0-4_amd64.buildinfo
Files:
 57a6213abf3750d17a97f6ec2411c849 3610 net optional glance_33.0.0-4.dsc
 9bdec9488624bdf72be9748fab80fc7a 19712 net optional glance_33.0.0-4.debian.tar.xz
 b92604c7899561a6d11b946acbb70049 18463 net optional glance_33.0.0-4_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmq+p/kACgkQ1BatFaxr
Q/5vNA//acez0RdNJbeptjx7BSbjBjX7O5r1kZ3LNXZiPSqltwP6iqLhELJQlh2J
i91hVzD2C4KxruTJdyeVwMQu2d+QVMfInOdVXj2JBKkLchBtwS6OjYRF2XnRu5kJ
YOK/MwzIfrJlr9fs1BN+H/f9us4lGEoWAHanSi03druHvb+xDN6vLEWVUFukbDeb
LHnl99hYnYEHfasLHSeZrs/zWNJO6aH6LKgGHLT4HeoLS6K5d/TRCalPMaNM9YZ1
Z+2uf4VuxusM7M1ceDilHkRpYhuMx56S878jGsNJ0I2hiW5HPW9oz5MppWbfMHS2
COb4Royt4CdZNWp92o1QSYSsaktqBqMgwsJHcpe19uNlBF5B3r/Gf5CFnA5fQK3v
VtIMW3tSjSK6pdmKf6FzLMsFLXm47+rybAGpr7rvgi7xbfyQkOulrurNR4N3i2P+
TkXbGGOkz0kBlGZPikHiIejTOyl1m9CxUz1JevxokpUqwj3slP0EYp7X3VSkcsO6
GHpmlc6oEzzgve4IQyF4X9BPWyH3IchhqJUgmk1YRXjFo+L65vmD9mo0Vlpavz/r
XClJjahezsNkrhJLGmUkpPTHVwn+nU0w+VDlZIPoFoYrcBwAv5AlQCAzXbKdZ55S
DPcKeTuO/5+dlCRQHTZEWKEePReKNE/300BIbwh2i/M9+NfwoDk=
=iSGy
-----END PGP SIGNATURE-----