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

Support shm-size when specifying a pod #742

Closed
thibaultamartin opened this issue May 7, 2024 · 0 comments · Fixed by #745
Closed

Support shm-size when specifying a pod #742

thibaultamartin opened this issue May 7, 2024 · 0 comments · Fixed by #745
Labels
enhancement New feature or request

Comments

@thibaultamartin
Copy link

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

Steps to reproduce the issue:

Create a pod with the shm_size attribute

Describe the results you received:

fatal: [REDACTED]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (containers.podman.podman_pod) module: shm_size. Supported parameters include: add_host, blkio_weight, blkio_weight_device, cgroup_parent, cpu_shares, cpus, cpuset_cpus, cpuset_mems, debug, device, device_read_bps, device_write_bps, dns, dns_opt, dns_search, executable, generate_systemd, gidmap, hostname, infra, infra_command, infra_conmon_pidfile, infra_image, infra_name, ip, label, label_file, mac_address, memory, memory_swap, name, network, network_alias, no_hosts, pid, pod_id_file, publish, quadlet_dir, quadlet_filename, quadlet_options, recreate, share, state, subgidname, subuidname, uidmap, userns, volume (network_aliases, ports, volumes)."}

Describe the results you expected:

I expected the pod to be created with the shm size I need, as podman supports: https://docs.podman.io/en/v4.4/markdown/podman-pod-create.1.html#shm-size-number-unit

Additional information you deem important (e.g. issue happens only occasionally):

Version of the containers.podman collection:
Either git commit if installed from git: git show --summary
Or version from ansible-galaxy if installed from galaxy: ansible-galaxy collection list | grep containers.podman

containers.podman     1.13.0 

Output of ansible --version:

ansible [core 2.16.2]
  config file = None
  configured module search path = ['/Users/thib/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/homebrew/lib/python3.11/site-packages/ansible
  ansible collection location = /Users/thib/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/homebrew/bin/ansible
  python version = 3.11.8 (main, Feb  6 2024, 21:21:21) [Clang 15.0.0 (clang-1500.1.0.2.5)] (/opt/homebrew/opt/python@3.11/bin/python3.11)
  jinja version = 3.1.3
  libyaml = True

Output of podman version:

podman version 5.0.0

Output of podman info --debug:

OS: darwin/arm64
provider: applehv
version: 5.0.0

Package info (e.g. output of rpm -q podman or apt list podman):

(paste your output here)

Playbok you run with ansible (e.g. content of playbook.yaml):

- name: Create synapse pod
  containers.podman.podman_pod:
    name: pod-synapse
    shm_size: "1g"
    publish:
      - "10.8.0.2:9000:9000"
    state: created
@sshnaidm sshnaidm added the enhancement New feature or request label May 7, 2024
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue May 13, 2024
Fix containers#742

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue May 14, 2024
Fix containers#742

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue May 15, 2024
Fix containers#742

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue May 15, 2024
Fix containers#742

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue May 15, 2024
Fix containers#742

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
sshnaidm added a commit to sshnaidm/ansible-podman-collections that referenced this issue May 15, 2024
Fix containers#742

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
sshnaidm added a commit that referenced this issue May 16, 2024
Fix #742

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants