cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

API: VM Created from deleted compute offering

Open midhunpjos opened this issue 3 years ago • 1 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.16.1
CONFIGURATION

Compute offerings

OS / ENVIRONMENT

CentOS7

SUMMARY

VM can be created from a deleted offering via API

STEPS TO REPRODUCE
Create a compute offering and note the UUID
Remove the Compute offering
Make sure its removed from UI
Create a instance using the UUID of the deleted Offering
Instance Get created VIA compute offering
EXPECTED RESULTS
Instance should not get created via API using deleted offering
ACTUAL RESULTS
Instance got created VIA deleted compute offering

midhunpjos avatar Sep 15 '22 10:09 midhunpjos

@azmidhun you are right this is the case, A workaround to make sure the offering is no longer used you need to set the field removed on it. There is no APIU to this at the moment. that would be a good improvement. The issue with that is that no exisitng VM may be using it or problems will arise when actions on those VMs are taken. So take care if you use my workaround.

DaanHoogland avatar Sep 21 '22 08:09 DaanHoogland

fixed by #7063

DaanHoogland avatar Feb 08 '23 08:02 DaanHoogland