Bug 1835484 - [abrt] podman-compose: container_to_args(): podman_compose.py:489:container_to_args:TypeError: 'NoneType' object is not iterable
Summary: [abrt] podman-compose: container_to_args(): podman_compose.py:489:container_t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: podman-compose
Version: 32
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:378fd4878b5ab2a0910acfe1afe...
: 1827800 1839846 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-13 22:11 UTC by Mars
Modified: 2020-11-29 01:25 UTC (History)
3 users (show)

Fixed In Version: podman-compose-0.1.7-1.git20201120.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-29 01:25:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.96 KB, text/plain)
2020-05-13 22:11 UTC, Mars
no flags Details
File: cpuinfo (2.35 KB, text/plain)
2020-05-13 22:11 UTC, Mars
no flags Details
File: docker-compose.yml (506 bytes, text/plain)
2020-05-13 22:11 UTC, Mars
no flags Details
File: environ (5.55 KB, text/plain)
2020-05-13 22:11 UTC, Mars
no flags Details
File: mountinfo (2.72 KB, text/plain)
2020-05-13 22:11 UTC, Mars
no flags Details
File: namespaces (129 bytes, text/plain)
2020-05-13 22:11 UTC, Mars
no flags Details
File: open_fds (264 bytes, text/plain)
2020-05-13 22:11 UTC, Mars
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github containers podman-compose issues 177 0 None open podman_compose.py:489:container_to_args:TypeError: 'NoneType' object is not iterable 2020-08-28 10:16:19 UTC

Description Mars 2020-05-13 22:11:32 UTC
Description of problem:
I try to run:

podman-compose up -d

FILE BELOW add comment to port: 80:80.
---
# wordPress with mariaDB

version: '2'

services:

  wordpress:
    image: wordpress:5.4.1
    ports:
      #  - 80:80
    links:
      - wp-mariadb:db
    depends_on:
      - wp-mariadb
    volumes:
      - wordpress:/var/www/html/

  wo-mariadb:
    image: mariadb:10.1.45
    environment:
      # env-vars TODO
      MYSQL_ROOT_PASSOWRD: titok
      MYSQL_DATABASE: wordpress
      MYSQL_USER: wordpress
      MYSQL_PASSWORD: 12345678
    volumes:
      - db:/var/lib/mysql

volumes:
  wordpress:
  db:

Version-Release number of selected component:
podman-compose-0.1.5-3.git20191107.fc32

Additional info:
reporter:       libreport-2.12.0
cgroup:         0::/user.slice/user-1000.slice/user/dbus\x2d:1.2\x2dcom.gexperts.Tilix.slice/vte-spawn-09f3a5e7-0f31-4f48-8704-824aecfb0249.scope
cmdline:        /usr/bin/python3 /usr/bin/podman-compose up -d
crash_function: container_to_args
exception_type: TypeError
executable:     /usr/bin/podman-compose
interpreter:    python3-3.8.2-2.fc32.x86_64
kernel:         5.6.8-300.fc32.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
podman_compose.py:489:container_to_args:TypeError: 'NoneType' object is not iterable

Traceback (most recent call last):
  File "/usr/bin/podman-compose", line 11, in <module>
    load_entry_point('podman-compose==0.1.6.dev0', 'console_scripts', 'podman-compose')()
  File "/usr/lib/python3.8/site-packages/podman_compose.py", line 1267, in main
    podman_compose.run()
  File "/usr/lib/python3.8/site-packages/podman_compose.py", line 755, in run
    cmd(self, args)
  File "/usr/lib/python3.8/site-packages/podman_compose.py", line 939, in wrapped
    return func(*args, **kw)
  File "/usr/lib/python3.8/site-packages/podman_compose.py", line 1059, in compose_up
    podman_args = container_to_args(compose, cnt,
  File "/usr/lib/python3.8/site-packages/podman_compose.py", line 489, in container_to_args
    for i in cnt.get('ports', []):
TypeError: 'NoneType' object is not iterable

Local variables in innermost frame:
compose: <podman_compose.PodmanCompose object at 0x7f4dc1d120d0>
cnt: {'name': '011-2020-05-13-podman-compose_wordpress_1', 'num': 1, 'service_name': 'wordpress', 'image': 'wordpress:5.4.1', 'ports': None, 'links': ['wp-mariadb:db'], 'depends_on': ['wp-mariadb'], 'volumes': ['wordpress:/var/www/html/'], '_deps': {'wp-mariadb'}, 'labels': ['io.podman.compose.config-hash=123', 'io.podman.compose.project=011-2020-05-13-podman-compose', 'io.podman.compose.version=0.0.1', 'com.docker.compose.container-number=1', 'com.docker.compose.service=wordpress'], '_service': 'wordpress', '_project': '011-2020-05-13-podman-compose', 'pod': '011-2020-05-13-podman-compose', 'extra_hosts': ['wordpress:127.0.0.1', '011-2020-05-13-podman-compose_wordpress_1:127.0.0.1', 'wo-mariadb:127.0.0.1', '011-2020-05-13-podman-compose_wo-mariadb_1:127.0.0.1', 'db:127.0.0.1']}
detached: True
podman_command: 'run'
dirname: '/home/mars/Develope/000-DATED/011-2020-05-13-podman-compose'
shared_vols: {'wordpress', 'db'}
pod: '011-2020-05-13-podman-compose'
podman_args: ['run', '--name=011-2020-05-13-podman-compose_wordpress_1', '-d', '--pod=011-2020-05-13-podman-compose', '--label', 'io.podman.compose.config-hash=123', '--label', 'io.podman.compose.project=011-2020-05-13-podman-compose', '--label', 'io.podman.compose.version=0.0.1', '--label', 'com.docker.compose.container-number=1', '--label', 'com.docker.compose.service=wordpress', '--mount', 'type=bind,source=/home/mars/.local/share/containers/storage/volumes/011-2020-05-13-podman-compose_wordpress/_data,destination=/var/www/html/,bind-propagation=z', '--add-host', 'wordpress:127.0.0.1', '--add-host', '011-2020-05-13-podman-compose_wordpress_1:127.0.0.1', '--add-host', 'wo-mariadb:127.0.0.1', '--add-host', '011-2020-05-13-podman-compose_wo-mariadb_1:127.0.0.1', '--add-host', 'db:127.0.0.1']
sec: []
i: 'db:127.0.0.1'
net: None
env: []
tmpfs_ls: []
volume: 'wordpress:/var/www/html/'
mount_args: 'type=bind,source=/home/mars/.local/share/containers/storage/volumes/011-2020-05-13-podman-compose_wordpress/_data,destination=/var/www/html/,bind-propagation=z'

Comment 1 Mars 2020-05-13 22:11:35 UTC
Created attachment 1688207 [details]
File: backtrace

Comment 2 Mars 2020-05-13 22:11:37 UTC
Created attachment 1688208 [details]
File: cpuinfo

Comment 3 Mars 2020-05-13 22:11:38 UTC
Created attachment 1688209 [details]
File: docker-compose.yml

Comment 4 Mars 2020-05-13 22:11:40 UTC
Created attachment 1688210 [details]
File: environ

Comment 5 Mars 2020-05-13 22:11:41 UTC
Created attachment 1688211 [details]
File: mountinfo

Comment 6 Mars 2020-05-13 22:11:43 UTC
Created attachment 1688212 [details]
File: namespaces

Comment 7 Mars 2020-05-13 22:11:45 UTC
Created attachment 1688213 [details]
File: open_fds

Comment 8 Gwyn Ciesla 2020-05-26 18:54:48 UTC
*** Bug 1839846 has been marked as a duplicate of this bug. ***

Comment 9 Gwyn Ciesla 2020-05-26 18:54:51 UTC
*** Bug 1827800 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2020-11-20 14:16:15 UTC
FEDORA-2020-7502229fa4 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-7502229fa4

Comment 11 Fedora Update System 2020-11-21 02:43:34 UTC
FEDORA-2020-7502229fa4 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-7502229fa4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-7502229fa4

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

Comment 12 Fedora Update System 2020-11-29 01:25:01 UTC
FEDORA-2020-7502229fa4 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


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