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

Allow changing of CPUs, Memory, and Disk Size #13953

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

ashley-cui
Copy link
Member

@ashley-cui ashley-cui commented Apr 21, 2022

Allow podman machine set to change CPUs, Memory and Disk size of a QEMU machine after its been created.
Disk size can only be increased.

If one setting fails to be changed, the other settings will still be applied.

Signed-off-by: Ashley Cui [email protected]

Fixes: #13633

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 21, 2022
@ashley-cui ashley-cui force-pushed the mach branch 2 times, most recently from d8998ac to 7732ce0 Compare April 21, 2022 14:01
cmd/podman/machine/set.go Outdated Show resolved Hide resolved
cmd/podman/machine/set.go Outdated Show resolved Hide resolved
cmd/podman/machine/set.go Outdated Show resolved Hide resolved
pkg/machine/config.go Outdated Show resolved Hide resolved
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 21, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashley-cui, 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

@ashley-cui ashley-cui force-pushed the mach branch 4 times, most recently from 74ede14 to ed58d04 Compare April 21, 2022 15:24
pkg/machine/qemu/machine.go Outdated Show resolved Hide resolved
pkg/machine/qemu/machine.go Outdated Show resolved Hide resolved
pkg/machine/qemu/machine.go Outdated Show resolved Hide resolved
cmd/podman/machine/set.go Show resolved Hide resolved
@ashley-cui ashley-cui added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 22, 2022
@baude
Copy link
Member

baude commented Apr 22, 2022

I didn't see any error like error: new disk size must be larger than current disk size %q or something similar. Did I miss it?

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 22, 2022
@ashley-cui
Copy link
Member Author

@baude bug should be fixed, thanks!

@ashley-cui ashley-cui added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Apr 22, 2022
@ashley-cui
Copy link
Member Author

Holding until #13964 (comment) is resolved.

@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 25, 2022
@ashley-cui ashley-cui removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 25, 2022
@rhatdan
Copy link
Member

rhatdan commented Apr 25, 2022

LGTM

@baude
Copy link
Member

baude commented Apr 25, 2022

the machine tests just merged. can you add some e2e tests in pkg/machine/e2e? I am willing to help/pair program with you on some!

@ashley-cui
Copy link
Member Author

Sure, let me take a look at those!

@ashley-cui
Copy link
Member Author

Added tests!

Allow podman machine set to change CPUs, Memory and Disk size of a QEMU machine after its been created.
Disk size can only be increased.

If one setting fails to be changed, the other settings will still be applied.

Signed-off-by: Ashley Cui <[email protected]>
@TomSweeneyRedHat
Copy link
Member

LGTM

@baude
Copy link
Member

baude commented Apr 27, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 27, 2022
@openshift-merge-robot openshift-merge-robot merged commit 60d6cc8 into containers:main Apr 27, 2022
@ashley-cui ashley-cui deleted the mach branch June 3, 2022 17:51
@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 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 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.

Allow to manage existing podman machine cpu/memory/disk through cli
6 participants