Not able to delete service offering from UI or API #10498
Replies: 13 comments
-
this looks related to #8821 cc @vishesh92 |
Beta Was this translation helpful? Give feedback.
-
@rohityadavcloud I don't find any API which marks the service offering's removed column. deleteServiceOffering API and updateServiceOffering (using state parameter) API are updating the column "State" with Active and Inactive values. This was the behaviour even before also. With the PR #8821 we have now new filter for Active and Inactive offerings which can also lists all types of offerings Created two offerings and then deleted both the offerings from UI. Following are the screenshots for Active and Inactive offerings After enabled one of the offerings, it came back to Active list Please check and let me know if anything else I'm missing here, otherwise we can close the ticket. |
Beta Was this translation helpful? Give feedback.
-
@rohityadavcloud can you expand on this? #8821 claims to fix this in 4.19.1, but you reported this in this version. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am using CloudStack 4.20. I encountered the same issue. According to the author of #8821, the delete command in the API will no longer actually delete the offering. Instead, it will set the state to inactive. (#8817 (comment)) So is there a way to actually delete the service offering? (I guess making SQL operations would work, but I don't think it's appropriate for administrators to touch the SQL databse directly.) |
Beta Was this translation helpful? Give feedback.
-
@li-liwen If I read the changes in #8821 correctly it only changes the behaviour of the update<Disk/Service>Offering commands. So you should still be able to call the deleteServiceOffering API, for instance using cmk. |
Beta Was this translation helpful? Give feedback.
-
@DaanHoogland Yes, I'm able to call the deleteServiceOffering API using cmk. But the API just makes the offering inactive instead of deleting it. I think this is probably the intended behavior, but I just would like to know if there's a way to actually delete the offerings. |
Beta Was this translation helpful? Give feedback.
-
it's been some time, but AFAIR it's kind of complicated and would require a lot of changes. |
Beta Was this translation helpful? Give feedback.
-
I think for now setting the |
Beta Was this translation helpful? Give feedback.
-
Yes. This should work. But it can cause issues with operations for existing VMs. The user will have to ensure no VM is using the offering. |
Beta Was this translation helpful? Give feedback.
-
I got it. Thanks for helping. I would just leave them inactive for now. |
Beta Was this translation helpful? Give feedback.
-
@vishesh92 , we could implement the delete API in such a way that it does a check if th offering is used and if it is it 'only' disables it. If not used it would actually mark it as removed. |
Beta Was this translation helpful? Give feedback.
-
Inactive as a workaround is okay - if historically there never was a way to delete offerings in the UI or deleteServiceOffering API didn't work, let's close this. |
Beta Was this translation helpful? Give feedback.
-
converting to discuss item as the resolution would only be the workaround. |
Beta Was this translation helpful? Give feedback.
-
I was not able to delete a service offering, upon calling the deleteServiceOffering API, it would transition the offering to Inactive state -> same as with enable/disable UI button. I don't know if this has been like this historically or there was some behaviour change in recent releases. I could mark them as removed in the DB, then they won't show up in the offering UI.
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
Beta Was this translation helpful? Give feedback.
All reactions