hook failed: "install" - sriov-netplan-shim/setup.py

Bug #1878626 reported by Andrew McLeod
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-layer-ovn
Invalid
Critical
Unassigned
charm-ovn-central
Fix Released
Critical
Frode Nordahl
charm-ovn-chassis
Fix Released
Critical
Frode Nordahl
charm-ovn-dedicated-chassis
Fix Released
Critical
Dmitrii Shcherbakov

Bug Description

focal ussuri s390x (network restricted)

Fails during install hook when trying to run sriov-netplan-shim/setup.py

partial log:

unit-ovn-chassis-0: 14:35:54 DEBUG unit.ovn-chassis/0.install command: /var/lib/juju/agents/unit-ovn-chassis-0/.venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q43hizbl/sriov-netplan-shim
/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q43hizbl/sriov-netplan-shim/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"
'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-q43hizbl/sriov-netplan-shim/pip-egg-info unit-ovn-chassis-0: 14:35:54 DEBUG unit.ovn-chassis/0.install cwd: /tmp/pip-install-q43hizbl/sriov-netplan-shim/ unit-ovn-chassis-0: 14:35:54 DEBUG unit.ovn-chassis/0.install Complete output (37 lines):
unit-ovn-chassis-0: 14:35:54 DEBUG unit.ovn-chassis/0.install WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTP
SConnection object at 0x3ff95fc91c0>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/pbr/

complete log:

https://pastebin.ubuntu.com/p/V7yYzJX627/

Revision history for this message
Frode Nordahl (fnordahl) wrote :

Added charm-layer-ovn as that is the origin of the bug, keeping the charm tasks for tracking. Triaging as critical as this will make the charms unusable in offline deployments and must be fixed before release.

Changed in charm-layer-ovn:
status: New → Triaged
Changed in charm-ovn-central:
status: New → Triaged
Changed in charm-ovn-chassis:
status: New → Triaged
Changed in charm-layer-ovn:
importance: Undecided → Critical
Changed in charm-ovn-central:
importance: Undecided → Critical
Changed in charm-ovn-chassis:
importance: Undecided → Critical
Changed in charm-layer-ovn:
assignee: nobody → Frode Nordahl (fnordahl)
Changed in charm-ovn-central:
assignee: nobody → Frode Nordahl (fnordahl)
Changed in charm-ovn-chassis:
assignee: nobody → Frode Nordahl (fnordahl)
Changed in charm-ovn-central:
milestone: none → 20.05
Changed in charm-ovn-chassis:
milestone: none → 20.05
Revision history for this message
Frode Nordahl (fnordahl) wrote :

The package mentioned in the trace, pbr, is included as a wheel, so there must be missing build dependencies, a version inter dependency mismatch or something like that.

Revision history for this message
James Page (james-page) wrote :

I'm not sure why you need sriov-netplan-shim in the wheelhouse? its provided by the networking tools PPA.

Revision history for this message
Frode Nordahl (fnordahl) wrote :

The reactive charm imports the PCI library from the package, and layer-basic is configured to not include system packages. So the charm consumes the package both as a wheel and as a deb.

Wheel for direct charm code dependencies and deb for run-/boot- time system configuration.

Revision history for this message
Frode Nordahl (fnordahl) wrote :

First attempt at an instrumented reproducer did not reproduce the issue.

Steps taken:

  - deployed a charm on LXD provider with modified layer-basic with increased verbosity
  - changed the firewall rules to only allow communication between juju controller and unit
  - issued a charm upgrade

All wheels were sourced from the local whelhouse with file:// links and I saw now network related errors.

It may be the initial install has brought something to the system that make it not display the behavior on charm upgrade, so I'll do another attempt where the initial deploy is also isolated.

Revision history for this message
Frode Nordahl (fnordahl) wrote :

s/now/no

Revision history for this message
Frode Nordahl (fnordahl) wrote :

Instrumented test with no networking available on initial install reproduces the issue.

The charm attempts to reach out to PyPI while processing the wheelhouse.

It does not happen for all Python packages, only some, so let's see what we can figure out as to what the difference is.

Revision history for this message
Frode Nordahl (fnordahl) wrote :
Revision history for this message
Frode Nordahl (fnordahl) wrote :
Revision history for this message
Frode Nordahl (fnordahl) wrote :

Setting invalid for layer as the break and fix is in a upstream layer. Keeping tasks for charms for tracking of rebuild.

Changed in charm-layer-ovn:
status: Triaged → Invalid
assignee: Frode Nordahl (fnordahl) → nobody
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Added charm-ovn-dedicated-chassis since it also depends on pbr which uses easy_install => also affected by the layer-basic regression.

Changed in charm-ovn-dedicated-chassis:
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → Critical
assignee: nobody → Dmitrii Shcherbakov (dmitriis)
David Ames (thedac)
Changed in charm-ovn-chassis:
milestone: 20.05 → 20.08
Changed in charm-ovn-central:
milestone: 20.05 → 20.08
Frode Nordahl (fnordahl)
Changed in charm-ovn-chassis:
milestone: 20.08 → 20.05
Changed in charm-ovn-central:
milestone: 20.08 → 20.05
Changed in charm-ovn-dedicated-chassis:
milestone: none → 20.05
status: Triaged → Fix Released
Changed in charm-ovn-chassis:
status: In Progress → Fix Released
Changed in charm-ovn-central:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-ovn-central (master)

Change abandoned by Dmitrii Shcherbakov (<email address hidden>) on branch: master
Review: https://review.opendev.org/728764

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-ovn-chassis (master)

Change abandoned by Dmitrii Shcherbakov (<email address hidden>) on branch: master
Review: https://review.opendev.org/728792

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.