Skip to content

[Quadlet .Pod] Hostname unsupported Key #25639

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

Closed
DevDorrejo opened this issue Mar 20, 2025 · 3 comments · Fixed by #25892
Closed

[Quadlet .Pod] Hostname unsupported Key #25639

DevDorrejo opened this issue Mar 20, 2025 · 3 comments · Fixed by #25892
Assignees
Labels
Good First Issue This issue would be a good issue for a first time contributor to undertake. kind/feature Categorizes issue or PR as related to a new feature. quadlet

Comments

@DevDorrejo
Copy link

Issue Description

Podman quadlet not recognize some basics keys like (hostname)

/usr/lib/systemd/system-generators/podman-system-generator --user --dryrun
converting "thepod.pod": unsupported key 'HostName' in group 'Pod' in /home/podman/.config/containers/systemd/thepod.pod

thepod.pod

[Unit]
Description=${POD_NAME} POD

[Pod]
PodName=${POD_NAME}
ServiceName=${POD_NAME}
PublishPort=127.0.0.1:8080:8080
PublishPort=127.0.0.1:8443:8443
Network=${NETWORK}
HostName=${CONT_NAME}.local

# Volúmenes
Volume=db:/data/postgresql
Volume=data:/mnt/persistent

[Install]
WantedBy=default.target

Steps to reproduce the issue

Steps to reproduce the issue

  1. Create pod file
  2. debug file
  3. got error

Describe the results you received

converting "thepod.pod": unsupported key 'HostName' in group 'Pod' in /home/podman/.config/containers/systemd/thepod.pod

The result said that the quadlet not recognize a key that is valid when using the command podman pod create

Describe the results you expected

Generate a pod with hostname

podman info output

If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.
- Podman Version 5.4.1
- openSUSe Leap 15.6/Tumbleweed
- amd64

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

@DevDorrejo DevDorrejo added the kind/bug Categorizes issue or PR as related to a bug. label Mar 20, 2025
@DevDorrejo DevDorrejo changed the title [Quadlet Pod] Hostname unsupported Key [Quadlet .Pod] Hostname unsupported Key Mar 20, 2025
@Luap99 Luap99 added kind/feature Categorizes issue or PR as related to a new feature. quadlet and removed kind/bug Categorizes issue or PR as related to a bug. labels Mar 21, 2025
@Luap99
Copy link
Member

Luap99 commented Mar 21, 2025

It is not documented to be support so this would be a new feature. Contributions welcome.

@Luap99 Luap99 added the Good First Issue This issue would be a good issue for a first time contributor to undertake. label Mar 21, 2025
@Regis-Caelum
Copy link

@Luap99, I’d like to give this a try as a way to navigate through the code.

@Luap99
Copy link
Member

Luap99 commented Apr 16, 2025

Sure, here is some example PR #23868 that added some other fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue This issue would be a good issue for a first time contributor to undertake. kind/feature Categorizes issue or PR as related to a new feature. quadlet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants