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

Remove varlink support from podman #8400

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Nov 18, 2020

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

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhatdan

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-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 18, 2020
@rhatdan
Copy link
Member Author

rhatdan commented Nov 18, 2020

$ ls -l -l /usr/bin/podman-remote bin/podman-remote 
-rwxrwxr-x. 1 dwalsh dwalsh 28888456 Nov 18 16:15 bin/podman-remote
-rwxr-xr-x. 1 root   root   37147440 Nov 18 16:15 /usr/bin/podman-remote
$ du -sm bin/podman-remote /usr/bin/podman-remote 
28	bin/podman-remote
36	/usr/bin/podman-remote

This helps with podman-remote's diet. After stripping binary, we see about a 33% smaller executable.

@rhatdan
Copy link
Member Author

rhatdan commented Nov 18, 2020

I am not sure if I am doing something wrong, but stripped bin/podman is a lot smaller also.

 du -sm bin/podman /usr/bin/podman
36	bin/podman
44	/usr/bin/podman
$ ls -l bin/podman /usr/bin/podman
-rwxrwxr-x. 1 dwalsh dwalsh 36744712 Nov 18 16:17 bin/podman
-rwxr-xr-x. 1 root   root   46088552 Nov 18 16:17 /usr/bin/podman

@rhatdan
Copy link
Member Author

rhatdan commented Nov 18, 2020

@baude @mheon @jwhonce PTAL
@containers/podman-maintainers PTAL
This can not be merged until we branch for podman 3.0.

@mheon
Copy link
Member

mheon commented Nov 18, 2020

I do not expect us branching master, but rather moving 2.2 development into a branch once release happens.

@@ -176,12 +176,6 @@ you to manage and maintain those images and containers in a production environme
familiar container cli commands. For more details, see the
[Container Tools Guide](https://github.com/containers/buildah/tree/master/docs/containertools).

## Podman Legacy API (Varlink)
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 leave this in with a pointer to the last supported release

Copy link
Member Author

Choose a reason for hiding this comment

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

Added back with a rewording.

for remote management of containers. However, this API has been deprecated by the REST API.
Varlink support is in maintenance mode, and will be removed in a future release.
For more details, you can see [this blog](https://podman.io/blogs/2020/01/17/podman-new-api.html).

Copy link
Member

Choose a reason for hiding this comment

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

I think it would be better to keep this, but rework it: Perhaps

## Podman Legacy API (Varlink)
Podman offered a [Varlink-based API](https://github.com/containers/podman/blob/master/docs/tutorials/varlink_remote_client.md)
for remote management of containers in versions prior to Podman v3.0. However, this API has now been removed upstream and in Podman v3.0.
For more details, you can see [this blog](https://podman.io/blogs/2020/01/17/podman-new-api.html) and [this blog](https://podman.io/blogs/2020/08/01/deprecate-and-remove-varlink-notice.html).

Copy link
Member Author

Choose a reason for hiding this comment

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

reworded.

@edsantiago edsantiago changed the title Remove valink support from podman Remove varlink support from podman Nov 18, 2020
@rhatdan rhatdan force-pushed the varlink branch 3 times, most recently from 2bc3a05 to 70b6599 Compare November 18, 2020 21:41
Copy link
Member

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

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

The code changes LGTM. I'd be fine with adding verbiage to docs saying varlink has been removed in v3.0 and only usable for prior versions. I don't think we should remove the docs entirely though. Varlink will be limping along in RHEL 8.2 and other places longer than we'd probably like.

# Podman varlink remote-client tutorial [DEPRECATED]

## What is the varlink client

Copy link
Member

Choose a reason for hiding this comment

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

I'd keep this, but add something like:

### **NOTE:** as of Podman v3.0 the varlink client has been removed and is only usable in versions prior to Podman v3.0.

People may still use v2.0 for a while (RHEL 8.2 and earlier) and will want to get to this.

@baude baude changed the title Remove varlink support from podman [WIP]Remove varlink support from podman Nov 18, 2020
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 18, 2020
@baude
Copy link
Member

baude commented Nov 18, 2020

i added the WIP to the title to avoid it from being accidently merged until 2.2 is done. Also, no fair! I think about three of us wanted to do this PR! Maybe we get the kill shot with the /lgtm when it is time.

@TomSweeneyRedHat
Copy link
Member

Note to self and others, I need to send a notification to the Podman mailing list telling people of varlinks removal. I know this will plan in RHEL 8.4, Fedora wise it will be part of Fedora 34 and available to install for 32 and 33?

Copy link
Member

@jwhonce jwhonce left a comment

Choose a reason for hiding this comment

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

Small cleanups

go.mod Outdated
@@ -57,7 +57,7 @@ require (
github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2
github.com/uber/jaeger-client-go v2.25.0+incompatible
github.com/uber/jaeger-lib v2.2.0+incompatible // indirect
github.com/varlink/go v0.0.0-20190502142041-0f1d566d194b
github.com/varlink/go v0.4.0
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
github.com/varlink/go v0.4.0

go.sum Outdated
Comment on lines 543 to 544
github.com/varlink/go v0.4.0 h1:+/BQoUO9eJK/+MTSHwFcJch7TMsb6N6Dqp6g0qaXXRo=
github.com/varlink/go v0.4.0/go.mod h1:DKg9Y2ctoNkesREGAEak58l+jOC6JU2aqZvUYs5DynU=
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
github.com/varlink/go v0.4.0 h1:+/BQoUO9eJK/+MTSHwFcJch7TMsb6N6Dqp6g0qaXXRo=
github.com/varlink/go v0.4.0/go.mod h1:DKg9Y2ctoNkesREGAEak58l+jOC6JU2aqZvUYs5DynU=

@@ -549,9 +549,8 @@ github.com/ulikunitz/xz
github.com/ulikunitz/xz/internal/hash
github.com/ulikunitz/xz/internal/xlog
github.com/ulikunitz/xz/lzma
# github.com/varlink/go v0.0.0-20190502142041-0f1d566d194b
# github.com/varlink/go v0.4.0
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# github.com/varlink/go v0.4.0

@rhatdan rhatdan force-pushed the varlink branch 2 times, most recently from b771104 to 84131e2 Compare November 19, 2020 00:05
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.

Fair well, old friend.

@rhatdan
Copy link
Member Author

rhatdan commented Nov 19, 2020

@cevich @baude I seemed to screw up the testing in .cirrus. I removed the endpoint testing and now it does not seem to be testing?

@cevich
Copy link
Member

cevich commented Nov 19, 2020

I seemed to screw up the testing in .cirrus. I removed the endpoint testing

A quick initial glance has me as puzzled as perhaps you are - It appears you did everything right 😕 Normally Cirrus-CI is much more noisy about a bad .cirrus.yml. Perhaps something coincident and unrelated is going on. Investigating...

@cevich
Copy link
Member

cevich commented Nov 19, 2020

...Yep, something on the Cirrus-CI end seems screwed up. The job triggered, but never did anything.. When I've seen similar "weird" behavior like this in the past, it's been due to outages/failures in Cirrus's GKE (kube) infrastructure (like nodes failing). Let me see if I can re-trigger a build via the API, but I've never done this before. The fastest thing is likely (and annoyingly) to push a change (like a rebase) to the PR.

@cevich
Copy link
Member

cevich commented Nov 19, 2020

Well the good news is, I was able to successfully re-trigger the original build through the Cirrus-CI API. The bad news is, it didn't do anything 😆 I'll try again but with a "create" build call as opposed to a "Retrigger" call...

@cevich
Copy link
Member

cevich commented Nov 19, 2020

Ha! it worked!

@cevich
Copy link
Member

cevich commented Nov 19, 2020

aww dang...it almost worked. fatal: Could not parse object '84131e2484f0df4ef6a1b37a1d2ce47b6e1ed3af'.

@rhatdan rhatdan changed the title [WIP]Remove varlink support from podman Remove varlink support from podman Nov 26, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 26, 2020
@rhatdan
Copy link
Member Author

rhatdan commented Dec 1, 2020

@baude @mheon @vrothberg @TomSweeneyRedHat @jwhonce @ashley-cui PTAL.
Let's pull the trigger on this one and say goodbye to varlink.
@containers/podman-maintainers PTAL

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

@TomSweeneyRedHat
Copy link
Member

LGTM
So long and thanks for all the fish Varlink!
I'd \lgtm it, but I can't steal that pleasure from @mheon.

@mheon
Copy link
Member

mheon commented Dec 1, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 1, 2020
@openshift-merge-robot openshift-merge-robot merged commit e3f0b7d into containers:master Dec 1, 2020
@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 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants