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

gvisor update / go 1.20 switch #232

Closed
cfergeau opened this issue Jun 8, 2023 · 10 comments · Fixed by #249
Closed

gvisor update / go 1.20 switch #232

cfergeau opened this issue Jun 8, 2023 · 10 comments · Fixed by #249

Comments

@cfergeau
Copy link
Contributor

cfergeau commented Jun 8, 2023

Current codebase is buildable with go 1.19 and 1.20, which are the 2 supported releases of go.
If we want to update gvisor ( #219 ), 1.20 becomes required.
I prefer to keep the master branch as it currently is, unless there are critical bug fixes/... required.

We can revisit this in August/September when 1.21 is released(?) and 1.19 no longer supported.

@Luap99
Copy link
Member

Luap99 commented Jul 20, 2023

Looks like the current code does not compile on go 1.21 (now in rawhide) causing failures for the podman rpm builds.
However 1.19 is also still supported in fedora 37, so it seems like we cannot support all three versions with one gvproxy version.
Do we need to patch the gvisor update into the fedora rpm?
Example problem seen in Podman CI: https://dashboard.packit.dev/results/copr-builds/889641
cc @lsm5

@cfergeau
Copy link
Contributor Author

Looks like the current code does not compile on go 1.21 (now in rawhide)

1.21 is not even released yet, it's a rc version which is in rawhide :-/

However 1.19 is also still supported in fedora 37, so it seems like we cannot support all three versions with one gvproxy version.

Yup, I don't think we'll be able to have a gvisor-tap-vsock version which builds on 1.19, 1.20 and 1.21. Maybe f37 can stay with an older version of the gvisor-tap-vsock codebase while still updating the podman packages as needed?

Do we need to patch the gvisor update into the fedora rpm?

That's an option, but the rawhide package would be significantly different from upstream :-/ Split gvisor-tap-vsock and podman packages as was discussed before would help in this kind of situations, but this hasn't been done yet.

Not sure I'll have time to look closer at this before next week.

@Luap99
Copy link
Member

Luap99 commented Jul 20, 2023

Maybe f37 can stay with an older version of the gvisor-tap-vsock codebase while still updating the podman packages as needed?

That sounds like a good idea to me.

@gbraad
Copy link
Member

gbraad commented Jul 20, 2023

@Luap99

Not sure I'll have time to look closer at this before next week.

hope this is not a concern, or are you aiming for a release?

@Luap99
Copy link
Member

Luap99 commented Jul 20, 2023

I think we are planning for a podman 4.6.0 today. But I guess if gvproxy cannot build in rawhide it is not the end of the world. In our CI we can just ignore the failure for now.

@lsm5
Copy link
Member

lsm5 commented Jul 20, 2023

broken gvproxy on rawhide would mean broken upgrade path from fedora release to rawhide. We can live with that but should be resolved asap. And as @cfergeau mentioned, separating gvisor-tap-vsock into a standalone package would be best.

@lsm5
Copy link
Member

lsm5 commented Jul 20, 2023

I'm working on a separate gvisor-tap-vsock package now.

@lsm5
Copy link
Member

lsm5 commented Jul 20, 2023

filed a review request at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=2224434

also created a PR to remove gvproxy from podman containers/podman#19301 . This will likely stay in draft until the Fedora package is sure to be approved.

@lsm5
Copy link
Member

lsm5 commented Jul 24, 2023

filed a review request at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=2224434

@cfergeau @gbraad The package review bz isn't going to go further until gvisor-tap-vsock can build on rawhide. Can we please bump the priority for go1.21 support?

cfergeau pushed a commit to cfergeau/gvisor-tap-vsock that referenced this issue Jul 25, 2023
It does not seem possible to keep compat with both golang 1.21 and 1.19.
golang 1.21 rc releases already landed in rawhide, and current
gvisor-tap-vsock git master is not buildable on these systems.
This minimum go version update is the first step towards fixing this.

containers#232
containers#219

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@cfergeau
Copy link
Contributor Author

filed a review request at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=2224434

@cfergeau @gbraad The package review bz isn't going to go further until gvisor-tap-vsock can build on rawhide. Can we please bump the priority for go1.21 support?

See #249

cfergeau pushed a commit to cfergeau/gvisor-tap-vsock that referenced this issue Jul 26, 2023
It does not seem possible to keep compat with both golang 1.21 and 1.19.
golang 1.21 rc releases already landed in rawhide, and current
gvisor-tap-vsock git master is not buildable on these systems.
This minimum go version update is the first step towards fixing this.

containers#232
containers#219

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
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 a pull request may close this issue.

4 participants