Page MenuHomePhabricator

Spicerack errors out when building without connectivity
Closed, ResolvedPublic

Description

This happened during the last release of spicerack (via python-release):

dh build --with python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:232: python3.9 setup.py config 
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:232: /usr/bin/python3 setup.py build 
running build
running build_py
creating /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/alertmanager.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/reposync.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/k8s.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/interactive.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/apt.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/elasticsearch_cluster.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/service.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/redis_cluster.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/peeringdb.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/redfish.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/mediawiki.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/netbox.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/ipmi.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/puppet.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/ganeti.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/mysql_legacy.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/typing.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/alerting.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/exceptions.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/locking.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/constants.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/kafka.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/remote.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/cookbook.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/confctl.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/_menu.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/_cookbook.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/administrative.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/dhcp.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/decorators.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/icinga.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/_module_api.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/__init__.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/_log.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/dnsdisc.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/debmonitor.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
copying spicerack/mysql.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
creating /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack/toolforge
copying spicerack/toolforge/etcdctl.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack/toolforge
copying spicerack/toolforge/__init__.py -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack/toolforge
copying spicerack/py.typed -> /build/spicerack-8.11.0/.pybuild/cpython3_3.9_spicerack/build/spicerack
   debian/rules override_dh_auto_test
make[1]: Entering directory '/build/spicerack-8.11.0'
SETUPTOOLS_SCM_PRETEND_VERSION="8.11.0-1" python3 setup.py develop --user
/usr/lib/python3/dist-packages/setuptools/dist.py:461: UserWarning: Normalizing '8.11.0-1' to '8.11.0.post1'
  warnings.warn(tmpl.format(**locals()))
running develop
running egg_info
creating wikimedia_spicerack.egg-info
writing wikimedia_spicerack.egg-info/PKG-INFO
writing dependency_links to wikimedia_spicerack.egg-info/dependency_links.txt
writing entry points to wikimedia_spicerack.egg-info/entry_points.txt
writing requirements to wikimedia_spicerack.egg-info/requires.txt
writing top-level names to wikimedia_spicerack.egg-info/top_level.txt
writing manifest file 'wikimedia_spicerack.egg-info/SOURCES.txt'
reading manifest file 'wikimedia_spicerack.egg-info/SOURCES.txt'
writing manifest file 'wikimedia_spicerack.egg-info/SOURCES.txt'
running build_ext
Creating /build/.local/lib/python3.9/site-packages/wikimedia-spicerack.egg-link (link to .)
Adding wikimedia-spicerack 8.11.0.post1 to easy-install.pth file
Installing cookbook script to /build/.local/bin

Installed /build/spicerack-8.11.0
Processing dependencies for wikimedia-spicerack==8.11.0.post1
Searching for pynetbox~=6.6
Reading https://pypi.org/simple/pynetbox/
Download error on https://pypi.org/simple/pynetbox/: [Errno 110] Connection timed out -- Some packages may not be found!
Couldn't retrieve index page for 'pynetbox'
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno 110] Connection timed out -- Some packages may not be found!
No local packages or working download links found for pynetbox~=6.6
error: Could not find suitable distribution for Requirement.parse('pynetbox~=6.6')
make[1]: *** [debian/rules:10: override_dh_auto_test] Error 1
make[1]: Leaving directory '/build/spicerack-8.11.0'
make: *** [debian/rules:7: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
E: Failed autobuilding of package
I: user script /var/cache/pbuilder/build/cow.2067433/tmp/hooks/C10shell.wikimedia.org starting
**************************************************************
The build has failed. We are now running a shell in the chroot
used  for building, giving  you the chance  to investigate the
failure. Note that leaving this shell means exiting the chroot
itself and the chroot will be removed  immediately afterwards.
**************************************************************
/tmp/hooks/C10shell.wikimedia.org: 16: cannot open /dev/tty: No such device or address
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: Cleaning COW directory
I: forking: rm -rf /var/cache/pbuilder/build/cow.2067433
gbp:error: 'git-pbuilder -j4 -sa -us -uc' failed: it exited with 1
2024-09-02 12:48:52,767 [ERROR]: Failed to run subprocess.run(['ssh', 'build2001.codfw.wmnet', './repository-release "spicerack" "bullseye" "spicerack" "spicerack" "8.11.0"'], check=True): Command '['ssh', 'build2001.codfw.wmnet', './repository-release "spicerack" "bullseye" "spicerack" "spicerack" "8.11.0"']' returned non-zero exit status 1.

Details

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I tried to build 8.10.0 to make sure that it wasn't related to the 8.11.0 changes, and I get the same result.

Change #1070028 had a related patch set uploaded (by Elukey; author: Elukey):

[operations/software/spicerack@master] setup.py: update pynetbox to 7.4

https://gerrit.wikimedia.org/r/1070028

Change #1070028 merged by jenkins-bot:

[operations/software/spicerack@master] setup.py: update pynetbox to 7.4

https://gerrit.wikimedia.org/r/1070028

elukey claimed this task.