jammy is not supported

Bug #1977862 reported by Junien F
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Telegraf Charm
Fix Released
Medium
Robert Gildein

Bug Description

Hi,

This charm doesn't support jammy. I tried to force an installation on jammy, and got the following error :

2022-06-07 14:54:09 ERROR juju.worker.uniter.operation runhook.go:146 hook "install" (via explicit, bespoke hook script) failed: exit status 1
2022-06-07 14:54:09 INFO juju.worker.uniter resolver.go:150 awaiting error resolution for "install" hook
2022-06-07 14:54:29 INFO juju.worker.uniter resolver.go:150 awaiting error resolution for "install" hook
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 error: subprocess-exited-with-error
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 × python setup.py egg_info did not run successfully.
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 │ exit code: 1
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 ╰─> [1 lines of output]
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 error in Tempita setup command: use_2to3 is invalid.
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 [end of output]
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 note: This error originates from a subprocess, and is likely not a problem with pip.
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 error: metadata-generation-failed
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 × Encountered error while generating package metadata.
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 ╰─> See above for output.
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 note: This is an issue with the package mentioned above, not pip.
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 hint: See above for details.
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 Traceback (most recent call last):
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 File "/var/lib/juju/agents/unit-telegraf-1/charm/hooks/install", line 8, in <module>
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 basic.bootstrap_charm_deps()
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 File "/var/lib/juju/agents/unit-telegraf-1/charm/lib/charms/layer/basic.py", line 212, in bootstrap_charm_deps
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 check_call([pip, 'install', '-U', reinstall_flag, '--no-index',
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 raise CalledProcessError(retcode, cmd)
2022-06-07 14:54:55 WARNING unit.telegraf/1.install logger.go:60 subprocess.CalledProcessError: Command '['/var/lib/juju/agents/unit-telegraf-1/.venv/bin/pip', 'install', '-U', '--force-reinstall', '--no-index', '--no-cache-dir', '-f', 'wheelhouse', 'Jinja2==2.10.1', 'PyYAML==5.2', 'six==1.16.0', 'charms.reactive==1.4.1', 'msgpack==1.0.2', 'insights-core==3.0.241', 'chardet==3.0.4', 'MarkupSafe==1.1.1', 'pbr==5.6.0', 'idna==2.8', 'urllib3==1.24.3', 'requests==2.21.0', 'wheel==0.33.6', 'charmhelpers==0.20.22', 'redis==3.3.11', 'tenacity==5.0.3', 'CacheControl==0.12.6', 'defusedxml==0.5.0', 'lockfile==0.12.2', 'pyaml==21.8.3', 'Tempita==0.5.2', 'certifi==2021.5.30', 'netaddr==0.7.19']' returned non-zero exit status 1.
2022-06-07 14:54:56 ERROR juju.worker.uniter.operation runhook.go:146 hook "install" (via explicit, bespoke hook script) failed: exit status 1

Related branches

Revision history for this message
Junien F (axino) wrote :

ch:telegraf on latest/edge supports jammy if you force it.

Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Vern Hart (vern) wrote :

I've tested with latest/edge and it works on jammy.

I also tested deploying latest/stable with series=focal and relating it to a jammy primary. This seems to work as well.

juju deploy ubuntu --series jammy
juju deploy telegraf --series focal
juju add-relation ubuntu telegraf

No errors.

Revision history for this message
Nobuto Murata (nobuto) wrote :
Changed in charm-telegraf:
status: New → Fix Committed
Eric Chen (eric-chen)
Changed in charm-telegraf:
milestone: none → 22.08
Changed in charm-telegraf:
status: Fix Committed → Fix Released
importance: Undecided → Medium
assignee: nobody → Robert Gildein (rgildein)
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.