-
Notifications
You must be signed in to change notification settings - Fork 1.2k
update removed column for service and disk offering #11544
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #11544 +/- ##
=========================================
Coverage 16.17% 16.17%
- Complexity 13283 13284 +1
=========================================
Files 5656 5656
Lines 498005 498007 +2
Branches 60404 60404
=========================================
+ Hits 80533 80540 +7
+ Misses 408510 408505 -5
Partials 8962 8962
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@blueorangutan package |
|
@sudo87 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14801 |
harikrishna-patnala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sudo87 There is no check if there any VMs or volumes in use with those offerings, so directly setting removed column will cause issues.
I think setting only state to Inactive is by design from the beginning. If we have to consider this fix, we need to check if there any VMs in use, also clearly mention in the message something like "Use updateServiceOffering with state Inactive" if VMs or volumes are there. I didnt think much about backward compatibility though
Thank @harikrishna-patnala for reviewing pr. If I understand the issue correctly, service and disk offering remain in use by Instance/volume inspite of being Inactive. In that case, this fix wont suffice and design change will be needed. We can close this pr. Can we close the issue logged as bug? |
|
@sudo87 yeah some sort of design change may be needed but we can also give it a small try if time permits. If we can look for any resources which are not using those offerings we may try set the removed column then. Overall what checks I can think of are
Please check if anything else needs to be checked. |
|
@sudo87 also please check my comment here #11508 (comment)
|
|
This pr addresses the issue, however contradicts with the design chosen for Service and Disk offering. There will be new pr after handling the concerns raised by @harikrishna-patnala , @weizhouapache. |


Description
This PR fixes #11508
removed column is not updated for deleteServiceOffering or deleteDiskOffering flow.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?