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

Quadlet: add support for setting --ip and --ip6 #17691

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

restitux
Copy link
Contributor

@restitux restitux commented Mar 4, 2023

Add support for IP= and IP6=.

Added support for specifying static IPv4 and IPv6 addresses in Quadlet .container files via the IP= and IP6= options.

@rhatdan
Copy link
Member

rhatdan commented Mar 4, 2023

I don't believe any of the logs belong in here?
test/e2e/ginkgo-node-1.log

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing!

docs/source/markdown/podman-systemd.unit.5.md Show resolved Hide resolved
test/e2e/ginkgo-node-1.log Outdated Show resolved Hide resolved
@ygalblum
Copy link
Contributor

ygalblum commented Mar 6, 2023

I think you're missing an empty line between the commit's title and the signoff comment.

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not recommend using --ip or --ipv6, they do not work when using more than one network.

I haven't actually tested this but quadlet already supports Network= and the cli syntax to properly set static ip/ipv6/mac is this: network:ip=192.168.1.10. This allows you to set a static ip for each network that is specified. The options are described here: https://docs.podman.io/en/latest/markdown/podman-create.1.html#network-mode-net

This was added with podman 4.0, the --ip and --ip6 options mostly exists because of backwards/docker compat.
I will leave it to the quadlet maintainers to decide if they want these options but I say the new syntax is much better because it support all network options.

@TomSweeneyRedHat
Copy link
Member

@ygalblum looks like you need to sign this.
Other than the logs that @vrothberg pointed out, LGTM

@restitux
Copy link
Contributor Author

restitux commented Mar 7, 2023

@Luap99 using the ip parameter on a network via Network= does in fact work with quadlet, that's actually what I'm using in lieu of this PR.

@restitux
Copy link
Contributor Author

restitux commented Mar 7, 2023

I think you're missing an empty line between the commit's title and the signoff comment.

The signoff should be fixed now, I made a new commit when I deleted the logs. LMK if there are still issues

@ygalblum
Copy link
Contributor

ygalblum commented Mar 7, 2023

@TomSweeneyRedHat I was waiting for the decision regarding the name.
/lgtm
/hold

@openshift-ci openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Mar 7, 2023
@ygalblum
Copy link
Contributor

ygalblum commented Mar 7, 2023

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 7, 2023
@ygalblum
Copy link
Contributor

ygalblum commented Mar 7, 2023

/approve

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 7, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: restitux, ygalblum

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 971a87f into containers:main Mar 7, 2023
@rhatdan
Copy link
Member

rhatdan commented Mar 7, 2023

@ygalblum Could you respond to @Luap99 about this? Should we have two ways to handle this? Especially when we sort of deprecate the ip and ip6 way?

@ygalblum
Copy link
Contributor

ygalblum commented Mar 7, 2023

@rhatdan @Luap99 I don't see any harm in supporting in Quadlet whatever Podman already supports. In addition, I do see a benefit in supporting and using simple flags whenever possible. I understand the issue with multiple networks, but, I think that still most cases use a single one.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants