Bug #51978
closedpodman version check broken on cent7
0%
Description
I tried upgrading a test cluster (built on CentOS 7) from v15.2.13 to v16.2.5 today and ran into this problem:
------------------------------------------------------------------------------
Traceback (most recent call last): File "/usr/share/ceph/mgr/cephadm/serve.py", line 1347, in _remote_connection yield (conn, connr) File "/usr/share/ceph/mgr/cephadm/serve.py", line 1244, in _run_cephadm code, '\n'.join(err))) orchestrator._interface.OrchestratorError: cephadm exited with an error code: 1, stderr:Non-zero exit code 125 from /bin/podman version --format {{.Client.Version}} /bin/podman: stderr Error: template: image:1:9: executing "image" at <.Client.Version>: can't evaluate field Client in type define.Version Traceback (most recent call last): File "/var/lib/ceph/170b168e-ec0a-11eb-a273-84a9c4d06c32/cephadm.d4237e4639c108308fe13147b1c08af93c3d5724d9ff21ae797eb4b78fea3931", line 8230, in <module> main() File "/var/lib/ceph/170b168e-ec0a-11eb-a273-84a9c4d06c32/cephadm.d4237e4639c108308fe13147b1c08af93c3d5724d9ff21ae797eb4b78fea3931", line 8216, in main check_container_engine(ctx) File "/var/lib/ceph/170b168e-ec0a-11eb-a273-84a9c4d06c32/cephadm.d4237e4639c108308fe13147b1c08af93c3d5724d9ff21ae797eb4b78fea3931", line 1985, in check_container_engine engine.get_version(ctx) File "/var/lib/ceph/170b168e-ec0a-11eb-a273-84a9c4d06c32/cephadm.d4237e4639c108308fe13147b1c08af93c3d5724d9ff21ae797eb4b78fea3931", line 188, in get_version out, _, _ = call_throws(ctx, [self.path, 'version', '--format', '{{.Client.Version}}']) File "/var/lib/ceph/170b168e-ec0a-11eb-a273-84a9c4d06c32/cephadm.d4237e4639c108308fe13147b1c08af93c3d5724d9ff21ae797eb4b78fea3931", line 1453, in call_throws raise RuntimeError('Failed command: %s' % ' '.join(command)) RuntimeError: Failed command: /bin/podman version --format {{.Client.Version}}
------------------------------------------------------------------------------
This issue appears to have been introduced with the v16.2.2 release. With some troubleshooting I determined that the version of podman in CentOS 7 doesn't support '{{.Client.Version}}':
- podman version --format {{.Client.Version}}
Error: template: image:1:9: executing "image" at <.Client.Version>: can't evaluate field Client in type define.Version
But does support it with just '.Version':
- podman version --format {{.Version}}
1.6.4
Updated by Sebastian Wagner over 2 years ago
- Project changed from Ceph to Orchestrator
Updated by Sebastian Wagner over 2 years ago
Please try to avoid running cephadm on centos 7: WE had to disable automated QE for it, cause the old kernel wasn't able to properly stop containers.
Updated by Dimitri Savineau over 2 years ago
podman 1.x isn't supported with Pacific
https://docs.ceph.com/en/latest/cephadm/compatibility/#cephadm-compatibility-with-podman
Updated by Redouane Kachach Elhichou almost 2 years ago
Closing this issue since it's related to a not supported podman version (for pacific in this case).
Updated by Redouane Kachach Elhichou almost 2 years ago
- Status changed from New to Rejected
Updated by Redouane Kachach Elhichou almost 2 years ago
- Status changed from Rejected to Closed