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

User option to prepare container after creation for volume copy-up. #676

Closed
wants to merge 1 commit into from
Closed

User option to prepare container after creation for volume copy-up. #676

wants to merge 1 commit into from

Conversation

vikas-goel
Copy link
Contributor

Docker does this by default.

Relates to podman#10262

[NO TESTS NEEDED]

Signed-off-by: Vikas Goel [email protected]

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 12, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: vikas-goel
To complete the pull request process, please assign vrothberg after the PR has been reviewed.
You can assign the PR to them by writing /assign @vrothberg in a comment when ready.

The full list of commands accepted by this bot can be found 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

@rhatdan
Copy link
Member

rhatdan commented Jul 12, 2021

Please update containers.conf file and containers.conf.5.md with better descriptions.

@vikas-goel
Copy link
Contributor Author

Please update containers.conf file and containers.conf.5.md with better descriptions.

Done

@vikas-goel
Copy link
Contributor Author

Hi @rhatdan ,
Do you have any further feedback?

@vikas-goel
Copy link
Contributor Author

vikas-goel commented Jul 12, 2021

@mheon . @rhatdan ,
Please review this as the first step for containers/podman#10262. I will need to update containers/podman#10911 only after this PR is merged.

docs/containers.conf.5.md Outdated Show resolved Hide resolved
@mheon
Copy link
Member

mheon commented Jul 13, 2021

I would add to the description "May have negative performance implications", but otherwise LGTM

@vikas-goel
Copy link
Contributor Author

Could I get this PR merged so that the related one containers/podman#10911 can make progress?
I also want to know whether this change will be reflected immediately after the merge in the podman repo or is there a wait time?

@mheon
Copy link
Member

mheon commented Jul 13, 2021

The updated c/common will have to be vendored into Podman to be used once this is merged.

Change LGTM

@TomSweeneyRedHat
Copy link
Member

Just a couple of nitty tweaks requested, otherwise LGTM

Docker does this by default.

Relates to podman#10262

[NO TESTS NEEDED]

Signed-off-by: Vikas Goel <[email protected]>
@vikas-goel
Copy link
Contributor Author

All review comments are incorporated and the checks have passed.

@vikas-goel
Copy link
Contributor Author

/cc @mheon @rhatdan @TomSweeneyRedHat

@vikas-goel
Copy link
Contributor Author

/assign @vrothberg

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.

The name "prepare_on_create" is a bit too generic for my taste. It could refer to any object and there are many (volumes, mounts, labels, containers, images, pods, etc.)

Could we rename to "prepare_volume_on_create"?

@vrothberg
Copy link
Member

Thanks for pushing this forward, @vikas-goel!

@vikas-goel
Copy link
Contributor Author

The name "prepare_on_create" is a bit too generic for my taste. It could refer to any object and there are many (volumes, mounts, labels, containers, images, pods, etc.)

Could we rename to "prepare_volume_on_create"?

Hi @vrothberg,
The prepare() is setting up mount, network, and volume. If the function is modified further in future, the attribute name will get outdated.

I will modify the name if you think it is needed. Just double checking. Let me know.

@vikas-goel
Copy link
Contributor Author

The name "prepare_on_create" is a bit too generic for my taste. It could refer to any object and there are many (volumes, mounts, labels, containers, images, pods, etc.)
Could we rename to "prepare_volume_on_create"?

Hi @vrothberg,
The prepare() is setting up mount, network, and volume. If the function is modified further in future, the attribute name will get outdated.

I will modify the name if you think it is needed. Just double checking. Let me know.

I have created another PR (#678) as per the suggestion. Please merge one of them, as suitable. I will close the other one later.

@TomSweeneyRedHat
Copy link
Member

Closing in favor of #678

@vikas-goel
Copy link
Contributor Author

Closing in favor of #678

Thank you @TomSweeneyRedHat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants