Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No jammy (22.04 LTS) support #94

Closed
nobuto-m opened this issue Jul 1, 2022 · 0 comments · Fixed by #96
Closed

No jammy (22.04 LTS) support #94

nobuto-m opened this issue Jul 1, 2022 · 0 comments · Fixed by #96

Comments

@nobuto-m
Copy link

nobuto-m commented Jul 1, 2022

The charm doesn't support jammy (22.04 LTS) yet. This is not a request of upgrading the server side of the LMA stack, but to enable log aggregation of jammy workload like OpenStack Yoga on 22.04 LTS.

$ juju deploy --series jammy filebeat
ERROR series "jammy" not supported by charm, supported series are: focal, bionic, xenial, trusty. Use --force to deploy the charm anyway.

When we used --force for testing, the install hook fails with:

unit-filebeat-0: 07:58:17 DEBUG unit.filebeat/0.install Processing ./wheelhouse/Tempita-0.5.2.tar.gz
unit-filebeat-0: 07:58:17 DEBUG unit.filebeat/0.install   Preparing metadata (setup.py): started
unit-filebeat-0: 07:58:17 DEBUG unit.filebeat/0.install   Preparing metadata (setup.py): finished with status 'error'
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install   error: subprocess-exited-with-error
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install   
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install   × python setup.py egg_info did not run successfully.
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install   │ exit code: 1
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install   ╰─> [1 lines of output]
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install       error in Tempita setup command: use_2to3 is invalid.
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install       [end of output]
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install   
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install   note: This error originates from a subprocess, and is likely not a problem with pip.
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install error: metadata-generation-failed
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install 
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install × Encountered error while generating package metadata.
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install ╰─> See above for output.
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install 
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install note: This is an issue with the package mentioned above, not pip.
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install hint: See above for details.
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install Traceback (most recent call last):
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install   File "/var/lib/juju/agents/unit-filebeat-0/charm/hooks/install", line 8, in <module>
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install     basic.bootstrap_charm_deps()
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install   File "/var/lib/juju/agents/unit-filebeat-0/charm/lib/charms/layer/basic.py", line 206, in bootstrap_charm_deps
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install     check_call([pip, 'install', '-U', reinstall_flag, '--no-index',
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install   File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install     raise CalledProcessError(retcode, cmd)
unit-filebeat-0: 07:58:17 WARNING unit.filebeat/0.install subprocess.CalledProcessError: Command '['/var/lib/juju/agents/unit-filebeat-0/.venv/bin/pip', 'install', '-U', '--force-reinstall', '--no-index', '--no-cache-dir', '-f', 'wheelhouse', 'MarkupSafe', 'charms.templating.jinja2', 'six', 'PyYAML', 'Jinja2', 'pbr', 'pyaml', 'charms.reactive', 'netaddr', 'Tempita', 'wheel', 'charmhelpers']' returned non-zero exit status 1.

filebeat-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant