Charm does not support jammy

Bug #1991337 reported by Vern Hart
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juju Introspection Proxy Charm
New
Undecided
Unassigned

Bug Description

The charm's metadata does not include jammy but if you install it as focal you can related it to jammy units.

When you do so, the install hook fails with:

  error in Tempita setup command: use_2to3 is invalid.

Full hook execution at the end.

If I comment out use_2to3 in setyp.py inside the Tempita tarball, it gets past that but then says:

  ERROR could not download resource: HTTP request failed: Get https://10.51.11.25:17070/model/9a1a5658-625c-4698-89ff-1bef72ce5f36/units/unit-juju-introspection-proxy-1/resources/juju-introspection-proxy: resource#juju-introspection-proxy/juju-introspection-proxy not found

I am not sure if the resource issue is related to the charm or to the last time the charm was registered with charmstore (since we've seen resource issues recently). Modifying _resource_get in lib/charms/layer/snap.py to always return False allows a successful hook execution.

root@juju-1:/var/lib/juju/agents/unit-juju-introspection-proxy-0/charm# hooks/install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-pip is already the newest version (22.0.2+dfsg-1).
python3-wheel is already the newest version (0.37.1-2).
build-essential is already the newest version (12.9ubuntu3).
python3-setuptools is already the newest version (59.6.0-1.2).
python3-yaml is already the newest version (5.4.1-1ubuntu1).
python3-dev is already the newest version (3.10.6-1~22.04).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Looking in links: wheelhouse
Requirement already satisfied: pip in /var/lib/juju/agents/unit-juju-introspection-proxy-0/.venv/lib/python3.10/site-packages (22.0.2)
Looking in links: wheelhouse
Requirement already satisfied: setuptools in /var/lib/juju/agents/unit-juju-introspection-proxy-0/.venv/lib/python3.10/site-packages (59.6.0)
Looking in links: wheelhouse
Requirement already satisfied: setuptools-scm in /var/lib/juju/agents/unit-juju-introspection-proxy-0/.venv/lib/python3.10/site-packages (1.17.0)
Looking in links: wheelhouse
Processing ./wheelhouse/charmhelpers-0.20.20.tar.gz
  Preparing metadata (setup.py) ... done
Processing ./wheelhouse/pbr-5.5.1.tar.gz
  Preparing metadata (setup.py) ... done
Processing ./wheelhouse/PyYAML-5.2.tar.gz
  Preparing metadata (setup.py) ... done
Processing ./wheelhouse/Jinja2-2.10.1.tar.gz
  Preparing metadata (setup.py) ... done
Processing ./wheelhouse/netaddr-0.7.19.tar.gz
  Preparing metadata (setup.py) ... done
Processing ./wheelhouse/Tempita-0.5.2.tar.gz
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in Tempita setup command: use_2to3 is invalid.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-juju-introspection-proxy-0/charm/hooks/install", line 8, in <module>
    basic.bootstrap_charm_deps()
  File "/var/lib/juju/agents/unit-juju-introspection-proxy-0/charm/lib/charms/layer/basic.py", line 206, in bootstrap_charm_deps
    check_call([pip, 'install', '-U', reinstall_flag, '--no-index',
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/var/lib/juju/agents/unit-juju-introspection-proxy-0/.venv/bin/pip', 'install', '-U', '--force-reinstall', '--no-index', '--no-cache-dir', '-f', 'wheelhouse', 'charmhelpers', 'pbr', 'PyYAML', 'Jinja2', 'netaddr', 'Tempita', 'tenacity', 'wheel', 'MarkupSafe', 'pyaml', 'six', 'charms.reactive']' returned non-zero exit status 1.

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.