You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "sbrueseke (via GitHub)" <gi...@apache.org> on 2025/01/29 08:06:40 UTC
[D] how to use migrateVPC? [cloudstack]
GitHub user sbrueseke created a discussion: how to use migrateVPC?
I need to change the VPC offering of an existing VPC. As far as I see, this is not possible via UI (at least in 4.19). I found an api call migrateVPC which should do what I need to do.
https://cloudstack.apache.org/api/apidocs-4.19/apis/migrateVPC.html
But I do not get the call right. I use cloudmonkey adn getting this error:
"jobprocstatus": 0,
"jobresult": {
"errorcode": 431,
"errortext": "Failed to migrate VPC as the specified tierNetworkOfferings is not complete"
I do not understand how to format tiernetworkofferings parameter to get it working. Let's say we have 2 networks, called net1 and net2. How do I need to format the api call to migrate the VPC to another offering?
regards,
Swen
GitHub link: https://github.com/apache/cloudstack/discussions/10293
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to change VPC offering of an existing VPC? [cloudstack]
Posted by "sbrueseke (via GitHub)" <gi...@apache.org>.
GitHub user sbrueseke added a comment to the discussion: how to change VPC offering of an existing VPC?
yes, exactly. In the end I need the redundant VRs to use another service offering with more cpu and memory.
GitHub link: https://github.com/apache/cloudstack/discussions/10293#discussioncomment-12006109
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to change VPC offering of an existing VPC? [cloudstack]
Posted by "sbrueseke (via GitHub)" <gi...@apache.org>.
GitHub user sbrueseke added a comment to the discussion: how to change VPC offering of an existing VPC?
"update vpc.vpc_offering to the id of vpc offering" in db, correct?
GitHub link: https://github.com/apache/cloudstack/discussions/10293#discussioncomment-12006865
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to change VPC offering of an existing VPC? [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: how to change VPC offering of an existing VPC?
> "update vpc.vpc_offering to the id of vpc offering" in db, correct?
correct. for example
```
update vpc set vpc_offering_id=246 where id=339;
```
GitHub link: https://github.com/apache/cloudstack/discussions/10293#discussioncomment-12007947
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to use migrateVPC? [cloudstack]
Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
GitHub user shwstppr added a comment to the discussion: how to use migrateVPC?
@sbrueseke can you try adding something like the following to the API call,
`tierNetworkOfferings[0].networkId=<ID_OF_net1> tierNetworkOfferings[0].networkOfferingId=<ID_OF_NETWORK_OFFERING_FOR_net1> tierNetworkOfferings[1].networkId=<ID_OF_net2> tierNetworkOfferings[1].networkOfferingId=<ID_OF_NETWORK_OFFERING_FOR_net2>`
Based on the API description I see it is meant to migrate a VPC to a new physical network so I'm not sure if it will work if the physical network is the same
GitHub link: https://github.com/apache/cloudstack/discussions/10293#discussioncomment-11992798
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to change VPC offering of an existing VPC? [cloudstack]
Posted by "sbrueseke (via GitHub)" <gi...@apache.org>.
GitHub user sbrueseke added a comment to the discussion: how to change VPC offering of an existing VPC?
is there a use case for this? We run into this problem, because when using redundant VR in a VPC with a lot of traffic, the default VR service offering is just not enough with 1 cpu and 512mb memory.
Sure, we can change the serive offering for an individual VR when shutting it down and changing the offering via UI, but when restarting a VPC with cleanup is enabled, then the new VRs getting the default service offering again.
What are others doing, when you need to add more routing power to an already existing VPC?
GitHub link: https://github.com/apache/cloudstack/discussions/10293#discussioncomment-12004640
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to change VPC offering of an existing VPC? [cloudstack]
Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
GitHub user shwstppr added a comment to the discussion: how to change VPC offering of an existing VPC?
@sbrueseke I don't see any other API/operation changing offering for a VPC. Something we can try adding in future for updateVpc API.
GitHub link: https://github.com/apache/cloudstack/discussions/10293#discussioncomment-12004168
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to change VPC offering of an existing VPC? [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: how to change VPC offering of an existing VPC?
good
it would be good to have an API doing it
GitHub link: https://github.com/apache/cloudstack/discussions/10293#discussioncomment-12079056
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to change VPC offering of an existing VPC? [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: how to change VPC offering of an existing VPC?
@sbrueseke
do you want to use another VPC offering with specific VR service offering ?
GitHub link: https://github.com/apache/cloudstack/discussions/10293#discussioncomment-12006026
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to change VPC offering of an existing VPC? [cloudstack]
Posted by "sbrueseke (via GitHub)" <gi...@apache.org>.
GitHub user sbrueseke closed a discussion: how to change VPC offering of an existing VPC?
I need to change the VPC offering of an existing VPC. As far as I see, this is not possible via UI (at least in 4.19). I found an api call migrateVPC which should do what I need to do.
https://cloudstack.apache.org/api/apidocs-4.19/apis/migrateVPC.html
But I do not get the call right. I use cloudmonkey adn getting this error:
"jobprocstatus": 0,
"jobresult": {
"errorcode": 431,
"errortext": "Failed to migrate VPC as the specified tierNetworkOfferings is not complete"
I do not understand how to format tiernetworkofferings parameter to get it working. Let's say we have 2 networks, called net1 and net2. How do I need to format the api call to migrate the VPC to another offering?
regards,
Swen
GitHub link: https://github.com/apache/cloudstack/discussions/10293
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to change VPC offering of an existing VPC? [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: how to change VPC offering of an existing VPC?
@sbrueseke
I do not think there is an API to do it.
maybe you can the following as a workaround.
- create system service offering for domainrouter
- create vpc offering with the service offering
- update vpc.vpc_offering to the id of vpc offering
- restart vpc with cleanup
GitHub link: https://github.com/apache/cloudstack/discussions/10293#discussioncomment-12006627
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to use migrateVPC? [cloudstack]
Posted by "sbrueseke (via GitHub)" <gi...@apache.org>.
GitHub user sbrueseke added a comment to the discussion: how to use migrateVPC?
thx for the reply! I already did this and it did not work. So maybe it is not possible to use this api call to change a VPC offering if using the same physical network. Any idea how to change a VPC offering?
GitHub link: https://github.com/apache/cloudstack/discussions/10293#discussioncomment-11992826
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to change VPC offering of an existing VPC? [cloudstack]
Posted by "sbrueseke (via GitHub)" <gi...@apache.org>.
GitHub user sbrueseke added a comment to the discussion: how to change VPC offering of an existing VPC?
It looks like this workaround is doing the offering change. After performing a clean vpc restart, the VR do use the new offering.
GitHub link: https://github.com/apache/cloudstack/discussions/10293#discussioncomment-12071421
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] how to change VPC offering of an existing VPC? [cloudstack]
Posted by "sbrueseke (via GitHub)" <gi...@apache.org>.
GitHub user sbrueseke edited a discussion: how to change VPC offering of an existing VPC?
I need to change the VPC offering of an existing VPC. As far as I see, this is not possible via UI (at least in 4.19). I found an api call migrateVPC which should do what I need to do.
https://cloudstack.apache.org/api/apidocs-4.19/apis/migrateVPC.html
But I do not get the call right. I use cloudmonkey adn getting this error:
"jobprocstatus": 0,
"jobresult": {
"errorcode": 431,
"errortext": "Failed to migrate VPC as the specified tierNetworkOfferings is not complete"
I do not understand how to format tiernetworkofferings parameter to get it working. Let's say we have 2 networks, called net1 and net2. How do I need to format the api call to migrate the VPC to another offering?
regards,
Swen
GitHub link: https://github.com/apache/cloudstack/discussions/10293
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org