Bug 2140532 - [RFE] : Recognise podman version mismatch and display user understandable message
Summary: [RFE] : Recognise podman version mismatch and display user understandable mes...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 5.3
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 8.0
Assignee: Adam King
QA Contact: Manasa
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-07 05:03 UTC by Vasishta
Modified: 2023-07-06 17:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-5564 0 None None None 2022-11-07 05:11:28 UTC

Description Vasishta 2022-11-07 05:03:28 UTC
Description of problem:
Using cephadm with older podman versions dumps runtime error which can be tuned to make it more user understandable.

Version-Release number of selected component (if applicable):
cephadm-16.2.10-69.el8cp.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install cephadm with older version of podman and try cephadm commands.

Actual results:
# cephadm version
Non-zero exit code 125 from /usr/bin/podman version --format {{.Client.Version}}
/usr/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 "/usr/sbin/cephadm", line 9183, in <module>
    main()
  File "/usr/sbin/cephadm", line 9169, in main
    check_container_engine(ctx)
  File "/usr/sbin/cephadm", line 2204, in check_container_engine
    engine.get_version(ctx)
  File "/usr/sbin/cephadm", line 212, in get_version
    out, _, _ = call_throws(ctx, [self.path, 'version', '--format', '{{.Client.Version}}'])
  File "/usr/sbin/cephadm", line 1637, in call_throws
    raise RuntimeError(f'Failed command: {" ".join(command)}: {s}')
RuntimeError: Failed command: /usr/bin/podman version --format {{.Client.Version}}: Error: template: image:1:9: executing "image" at <.Client.Version>: can't evaluate field Client in type define.Version

Expected results:
Recognize that podman could be of older version and convey user based on findings.

Additional info:


Note You need to log in before you can comment on or make changes to this bug.