-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
No longer support deprecated legacy QEMU machine structures #18976
No longer support deprecated legacy QEMU machine structures #18976
Conversation
8f445d7
to
cda7421
Compare
Only action needed by the user for this removal would be to migrate their existing machines with the old structures to the new structures, but considering the |
@baude @ashley-cui PTAL |
In principle I am fine with this but can you be specific, i.e. what version was this added? It is very useful to know what upgrade path will be broken by this. |
cda7421
to
f1201f8
Compare
I adjusted the commit message, but it was added in commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Is there a specific reason to remove it now? Or can we hold it for podman 5.0? That at lest gives a valid excuse if somebody is broken. Can we really expect all machine users to not directly update from 4.0 to 4.6 or later? I am not blocking this but at the very least this definably needs a warning in the release notes. So please add a proper entry under: |
That's a valid point I didn't think of. @ashley-cui @baude what are your thoughts on this? |
I think the rules of semver say that we should wait until 5.0, and the only impact waiting would have would be some mostly rarely used code in machine. Technically would be a breaking upgrade, but at the same time I'm not sure if many users would make such a large jump from 4.0 to 4.6, and be mad about having to rm their machine since many of our solutions to a broken machine is "try re-creating it" anyway. I think it's mostly up to how we want to follow semver. |
But can a user rm the machine in this case, I assume the json unmarshal will fail and podman is unable to remove the files because of it? So a user would need to figure out where all files are and remove them by hand. |
afaik that would be an issue. The remove command currently migrates an old machine to the new format, so it would fail |
Oops, you're correct, this would break rm as well. |
Should I close this for the time being |
We can just mark it for 5.0 |
I could be dropping brain bits, but have we written a deprecation notice for this? I concur, this should come out in Podman v5.0. Please update the release note comment in the description to reflect that. |
Updated the release note comment. Where would I look to find or write the deprecation notice? |
Hopefully, the deprecation notices are in our release announcements, if not there, then the RHEL docs which is more fun to track down. |
this can go into 4.x. The format was very old and it has been many many generations since the new one is introduced. I'd like to see it rebased and merged. I am willing to bet there are no installs out there with this; also will to take the complaints if there is one. |
f1201f8
to
c6a1c5b
Compare
c6a1c5b
to
f65bea4
Compare
rebased |
A friendly reminder that this PR had no activity for 30 days. |
@jakecorrenti Please rebase |
f65bea4
to
e39e9d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@baude what should we do this PR? Is this being tracked in Jira?
It is tracked under RUN-1955 |
Removes the `MachineVMV1` and `MonitorV1` structures that have been deprecated for a long enough period of time that it makes sense to no longer support them. Results in the removal of deprecated `getSocketAndPid` as well. The migration code was added in commit `6e0e1cbddd5e1c5dff51215ad2b41a99d890fad8` and made it into release `v4.1.0` [NO NEW TESTS NEEDED] Signed-off-by: Jake Correnti <[email protected]>
e39e9d0
to
2b95700
Compare
@baude PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jakecorrenti, Luap99 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 |
failed tests just need a restart (which I don't have the perms for) |
@jakecorrenti I've just restarted the failed tests, 🤞 |
/lgtm |
Removes the
MachineVMV1
andMonitorV1
structures that have been deprecated for a long enough period of time that it makes sense to no longer support them.Results in the removal of deprecated
getSocketAndPid
as well.The migration code was added in commit
6e0e1cbddd5e1c5dff51215ad2b41a99d890fad8
and made it into releasev4.1.0
Does this PR introduce a user-facing change?