-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Change listVpcOfferings endpoint and createVpcOffering endpoint #3986
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
base: main
Are you sure you want to change the base?
Change listVpcOfferings endpoint and createVpcOffering endpoint #3986
Conversation
@radu-stefanache all service/disk/network/vpc offerings are not editable (except name and display text). maybe you can research on other solutions. for example, add "router offering" to vpc as a new field, or update vpc to another offering (similar as update network offering). |
@weizhouapache i agree that offerings should not be editable as they can be in use, but what is the harm in adding the offering to the create API? |
@DaanHoogland I am ok with adding router offering to createVpcOffering, similar as createNetworkOffering. However, the network/vpc will be shutdown if we change a network/vpc to another offering. It would be nice to create a new VR before we destroy current running VR, like @rhtyd did when restart Network/vpc. |
Thanks @weizhouapache and @DaanHoogland for your feedback. I will do the changes. |
hope you manage @radu-stefanache . point to keep in mind uis that we can not ever allow altering offerings as they might be in use elsewhere and by other people in other locations in the system and unpredictable things happen if you allow that. |
@DaanHoogland so regarding the "no edit to service / disk offerings" , I'm not sure I completely understand your stance on this? In fact, there is a PR we're considering that would allow users to modify the hypervisor based disk iops / rate limiting parameters? |
@nathanejohnson that would impact all running instances, how would you control which get impacted and in fact for which it is meant? such changes should be done on the instances or by selecting a new offering, not by altering an offering of which you don't know by who it is used. |
@DaanHoogland it would impact them once they restarted, yes. And I can see this being an argument around cores, ram etc. But for hypervisor based IO limits, we have no current concept of "custom", which is how people get around static cpu and memory limits today. |
sorry @nathanejohnson , i'm on staycation so not reacting to promptly. |
This isn't host specific, in this case "hypervisor specific" implies that for kvm these knobs are part of the domain xml and kvm itself implements the throttling. The other option is to use some external managed storage provider - like solidfire. I do think in a perfect world these would have been implemented in such a way that it would be easy to override on a per-VM basis, such as with "custom", but that's now how it's done today, and it wouldn't be the easiest lift in the world to change it. This isn't to say I'm against the implementation. But the libvirt IO throttling functionality has worked basically the same way for quite some time now with the exception to a few additional tunables we added over the past year or so. At present, the only way to change these limits is to dip to the database, or to use a patched update service offering call. |
@nathanejohnson is #3839 in line with your requirements? your last description let me to associate to that. |
ping @radu-todirica cc @kiwiflyer is this still relevant? Can you fix the conflict if so. Thanks. |
Hi @${author}, your pull request has merge conflicts. Can you fix the conflicts and sync your branch with the base branch? |
good feature |
Description
Currently in cloudstack there is no way to create a VPC Offering with a selected service offering, the service offering is always null. When a VPC router is created if the service offering is null a default Service Offering is chosen.
The following changes have been added:
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
Wrote a python test for testing create VPC offering with selected service offering
Steps for validation
results.txt
runinfo.txt