flannel cannot be installed on jammy

Bug #1986696 reported by Jeff Hillman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AWS IAM Subordinate Charm
Fix Released
Medium
Adam Dyess
Canal Charm
Fix Released
Medium
Adam Dyess
Flannel Charm
Fix Released
High
Adam Dyess

Bug Description

22.04.1
flannel:
  charm: flannel
  series: jammy
  channel: stable

When attempting to install flannel on a jammy instance, the following error occurs during the install hook:

```

   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-flannel-0/charm/hooks/install", line 8, in <module>
     basic.bootstrap_charm_deps()
  File "/var/lib/juju/agents/unit-flannel-0/charm/lib/charms/layer/basic.py", line 219, 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-flannel-0/.venv/bin/pip', 'install', '-U', '--force-reinstall', '--no-index', '--no-cache-dir', '-f', 'wheelhouse', 'netaddr==0.7.19', 'dnspython==1.16.0', 'python-etcd==0.4.5', 'charms.reactive==1.5.0', 'Jinja2==2.11.3', 'pyaml==21.10.1', 'charmhelpers==0.20.24', 'urllib3==1.26.11', 'charms.templating.jinja2==1.0.2', 'six==1.16.0', 'PyYAML==5.3.1', 'pbr==5.9.0', 'Tempita==0.5.2']' returned non-zero exit status 1.

```

Tags: cpe-onsite
Revision history for this message
George Kraft (cynerva) wrote :

Thanks for the report. We'll get this fixed soon.

Changed in charm-flannel:
importance: Undecided → High
status: New → Triaged
milestone: none → 1.25
Revision history for this message
George Kraft (cynerva) wrote :

For context, this is caused by the charms.templating.jinja2 python package, which pins charmhelpers to an older version[1] that's missing the tempita fix[2]. We fixed the same issue in some of our other charms by removing the charms.templating.jinja2 package requirement from them. We probably just need to do the same for Flannel.

[1]: https://github.com/juju-solutions/charms.templating.jinja2/blob/b958f36c20eb46ce1b589e7e7c7f7deef658289e/requirements.txt#L2
[2]: https://github.com/juju/charm-helpers/pull/674

Adam Dyess (addyess)
Changed in charm-flannel:
status: Triaged → In Progress
assignee: nobody → Adam Dyess (addyess)
Revision history for this message
Adam Dyess (addyess) wrote :

While I've isolated the charm issue of installing, there seems to be a flaw within the jammy glibc runtime preventing jammy deployments of flannel.

See: https://github.com/flannel-io/flannel/issues/1512

Revision history for this message
Adam Dyess (addyess) wrote :
Revision history for this message
Adam Dyess (addyess) wrote :
Changed in charm-aws-iam:
status: New → In Progress
Changed in charm-canal:
status: New → In Progress
milestone: none → 1.25
Changed in charm-aws-iam:
milestone: none → 1.25
assignee: nobody → Adam Dyess (addyess)
Changed in charm-canal:
assignee: nobody → Adam Dyess (addyess)
Changed in charm-aws-iam:
importance: Undecided → Medium
Changed in charm-canal:
importance: Undecided → Medium
Adam Dyess (addyess)
Changed in charm-aws-iam:
status: In Progress → Fix Committed
Changed in charm-canal:
status: In Progress → Fix Committed
Changed in charm-flannel:
status: In Progress → Fix Committed
Revision history for this message
George Kraft (cynerva) wrote :
Changed in charm-canal:
status: Fix Committed → In Progress
Changed in charm-canal:
status: In Progress → Fix Committed
Adam Dyess (addyess)
Changed in charm-aws-iam:
status: Fix Committed → Fix Released
Changed in charm-canal:
status: Fix Committed → Fix Released
Changed in charm-flannel:
status: Fix Committed → Fix Released
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.