Bug 2030120

Summary: podman-compose run <foo> broken
Product: [Fedora] Fedora Reporter: Sam Fowler <sfowler>
Component: podman-composeAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: gwync
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: podman-compose-1.0.3-1.fc34 podman-compose-1.0.3-1.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-07 01:12:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sam Fowler 2021-12-08 02:46:15 UTC
Description of problem:
`podman-compose run` fails when running a single service.


Version-Release number of selected component (if applicable):
podman-compose-0.1.8-1.fc34.noarch

How reproducible:
Everytime

Steps to Reproduce:
1. podman-compose run postgres (with valid Dockerfile and docker-compose)
2.
3.

Actual results:
$ podman-compose run postgres
['podman', '--version', '']
using podman version: 3.4.2
podman pod create --name=go-automate-it --share net --infra-name=go-automate-it_infra -p 5432:5432 -p 2112:2112 -p 8080:8080
Error: error adding pod to state: name "go-automate-it" is in use: pod already exists
exit code: 125
** excluding:  set()
Traceback (most recent call last):
  File "/usr/bin/podman-compose", line 33, in <module>
    sys.exit(load_entry_point('podman-compose==0.1.8', 'console_scripts', 'podman-compose')())
  File "/usr/lib/python3.9/site-packages/podman_compose.py", line 1762, in main
    podman_compose.run()
  File "/usr/lib/python3.9/site-packages/podman_compose.py", line 1036, in run
    cmd(self, args)
  File "/usr/lib/python3.9/site-packages/podman_compose.py", line 1268, in wrapped
    return func(*args, **kw)
  File "/usr/lib/python3.9/site-packages/podman_compose.py", line 1513, in compose_run
    compose.commands['up'](compose, up_args)
  File "/usr/lib/python3.9/site-packages/podman_compose.py", line 1268, in wrapped
    return func(*args, **kw)
  File "/usr/lib/python3.9/site-packages/podman_compose.py", line 1421, in compose_up
    compose.commands['build'](compose, build_args)
  File "/usr/lib/python3.9/site-packages/podman_compose.py", line 1268, in wrapped
    return func(*args, **kw)
  File "/usr/lib/python3.9/site-packages/podman_compose.py", line 1375, in compose_build
    build_one(compose, args, cnt)
  File "/usr/lib/python3.9/site-packages/podman_compose.py", line 1353, in build_one
    if args.no_cache:
AttributeError: 'Namespace' object has no attribute 'no_cache'

Expected results:
Running the service succeeds.

Additional info:
Upstream fix:

https://github.com/containers/podman-compose/commit/749d188321c4662e98de84b8c1449d10b8b2d647

Comment 1 Fedora Update System 2021-12-29 18:04:25 UTC
FEDORA-2021-378dabccc4 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-378dabccc4

Comment 2 Fedora Update System 2021-12-29 18:04:27 UTC
FEDORA-2021-7a2ee2e25e has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-7a2ee2e25e

Comment 3 Fedora Update System 2021-12-30 01:29:03 UTC
FEDORA-2021-7a2ee2e25e has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7a2ee2e25e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7a2ee2e25e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-12-30 02:04:57 UTC
FEDORA-2021-378dabccc4 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-378dabccc4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-378dabccc4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-01-07 01:12:10 UTC
FEDORA-2021-378dabccc4 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2022-01-07 01:16:21 UTC
FEDORA-2021-7a2ee2e25e has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.