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

Install podman-systemd.unit man page, make quadlet discoverable #17351

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Feb 3, 2023

Currently we are shipping no data about quadlet, since the
podman-systemd.unit file is not shipped. Also want to add the
quadlet name to the description of the man page so that

man -k quadlet

will help users find the man page.

Also add a link file such that if the user types in
man quadlet
man will show the podman-systemd.unit file.

Also eliminate the subpackage podman-quadlet

Fixes: #17349

Signed-off-by: Daniel J Walsh [email protected]

Does this PR introduce a user-facing change?

Add podman-systemd.unit man page

@openshift-ci openshift-ci bot added do-not-merge/release-note-label-needed Enforce release-note requirement, even if just None approved Indicates a PR has been approved by an approver from all required OWNERS files. release-note and removed do-not-merge/release-note-label-needed Enforce release-note requirement, even if just None labels Feb 3, 2023
@rhatdan
Copy link
Member Author

rhatdan commented Feb 3, 2023

@lsm5 PTAL
@vrothberg @mheon @alexlarsson @ygalblum @baude PTAL

This needs to be added to podman-4.4.1

@rhatdan rhatdan added the 4.4 label Feb 3, 2023
@rhatdan
Copy link
Member Author

rhatdan commented Feb 3, 2023

@lsm5 Could you verify that I did the podman.spec.rpkg correctly

@rhatdan rhatdan changed the title Install the podman-systemd.unit file man page Install the podman-systemd.unit file man page and make quadlet more descoverabe Feb 3, 2023
@rhatdan rhatdan changed the title Install the podman-systemd.unit file man page and make quadlet more descoverabe Install the podman-systemd.unit file man page and make quadlet more discoverable Feb 3, 2023
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.

LGTM

@vrothberg
Copy link
Member

/cherry-pick v4.4.

@openshift-cherrypick-robot
Copy link
Collaborator

@vrothberg: once the present PR merges, I will cherry-pick it on top of v4.4. in a new PR and assign it to you.

In response to this:

/cherry-pick v4.4.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@rhatdan rhatdan force-pushed the man branch 2 times, most recently from e72bb92 to dc160af Compare February 3, 2023 11:44
@rhatdan rhatdan changed the title Install the podman-systemd.unit file man page and make quadlet more discoverable Install podman-systemd.unit man page, make quadlet discoverable Feb 3, 2023
@rhatdan
Copy link
Member Author

rhatdan commented Feb 3, 2023

I want to remove the podman-quadlet subpackage. it should be installed by default and is not big enough to require a separate package.

@lsm5 I probably screwed up the spec file.

podman.spec.rpkg Outdated
@@ -240,6 +230,9 @@ fi
%{_bindir}/%{name}
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/rootlessport
%{_libexecdir}/%{name}/quadlet
%_prefix/lib/systemd/system-generators/podman-system-generator
%_prefix/lib/systemd/user-generators/podman-user-generator
Copy link
Member

Choose a reason for hiding this comment

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

these are easier:

%{_systemdgeneratordir}/%{name}-system-generator
%{_systemdusergeneratordir}/%{name}-user-generator

I don't know if rhel 8 and 9 have these defined already, let me take a quick look and get back.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, these 2 macros should work on rhel8 and 9.

@@ -84,6 +84,7 @@ Requires: iptables
Requires: nftables
Recommends: catatonit
Suggests: qemu-user-static
Conflicts: quadlet
Copy link
Member

Choose a reason for hiding this comment

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

We should also have a Provides: %{name}-quadlet here if we are removing the subpackage. An obsoletes would also be nice, but I gotta figure out the last build that shipped a separate podman-quadlet.

Copy link
Member

Choose a reason for hiding this comment

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

Let me disable podman autobuilds and get you the last NVR to add here.

Copy link
Member

Choose a reason for hiding this comment

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

Add these as well.

Obsoletes: %{name}-quadlet <= 101:0.0.git.17877.f247b4d4-1
Provides: %{name}-quadlet = %{epoch}:%{version}-%{release}

I will resume podman autobuilds after this merges.

Copy link
Member

Choose a reason for hiding this comment

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

@rhatdan could you add these please? That should keep upgrades smooth.

Copy link
Member Author

Choose a reason for hiding this comment

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

It has been addressed? See Below?

Copy link
Member

Choose a reason for hiding this comment

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

ah, my bad. LGTM

@lsm5
Copy link
Member

lsm5 commented Feb 3, 2023

I want to remove the podman-quadlet subpackage. it should be installed by default and is not big enough to require a separate package.

@lsm5 I probably screwed up the spec file.

I don't see any additional systemd unit installed, there's only the installation of the unitfile manpage, among other things.

@lsm5
Copy link
Member

lsm5 commented Feb 3, 2023

@rhatdan so looks like I should wait for v4.4.1 to move quadlet files into the main package on Fedora?

Currently we are shipping no data about quadlet, since the
podman-systemd.unit file is not shipped. Also want to add the
quadlet name to the description of the man page so that

man -k quadlet

will help users find the man page.

Also add a link file such that if the user types in
man quadlet
man will show the podman-systemd.unit file.

Also eliminate the subpackage podman-quadlet

Fixes: containers#17349

Signed-off-by: Daniel J Walsh <[email protected]>
Sort options alphabetically

Add kubernetes example.

Signed-off-by: Daniel J Walsh <[email protected]>
@rhatdan
Copy link
Member Author

rhatdan commented Feb 3, 2023

@lsm5 PTANOTHERLOOK

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.

LGTM

Copy link
Member

@lsm5 lsm5 left a comment

Choose a reason for hiding this comment

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

@rhatdan rhatdan added the lgtm Indicates that a PR is ready to be merged. label Feb 6, 2023
Copy link
Member

@lsm5 lsm5 left a comment

Choose a reason for hiding this comment

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

/lgtm
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 6, 2023
@rhatdan
Copy link
Member Author

rhatdan commented Feb 6, 2023

Since this was addressed, I am going to merge.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 6, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lsm5, rhatdan, vrothberg

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:
  • OWNERS [lsm5,rhatdan,vrothberg]

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

@rhatdan
Copy link
Member Author

rhatdan commented Feb 6, 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 Feb 6, 2023
@lsm5
Copy link
Member

lsm5 commented Feb 6, 2023

rebuilds enabled.

@openshift-merge-robot openshift-merge-robot merged commit 56d1364 into containers:main Feb 6, 2023
@openshift-cherrypick-robot
Copy link
Collaborator

@vrothberg: cannot checkout v4.4.: error checking out v4.4.: exit status 1. output: error: pathspec 'v4.4.' did not match any file(s) known to git

In response to this:

/cherry-pick v4.4.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ashley-cui
Copy link
Member

/cherry-pick v4.4

@openshift-cherrypick-robot
Copy link
Collaborator

@ashley-cui: new pull request created: #17404

In response to this:

/cherry-pick v4.4

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@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 11, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 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.

[Bug]: man page for podman-quadlet isn't installed
6 participants