Cleanup ‘scheduled_at’ column in nova instances table¶
The ‘scheduled_at’ field is a part of the Nova instances table Currently, the ‘scheduled_at’ field is no longer updated by the Nova scheduler, instead the ‘launched_at’ field is used. The ‘scheduled_at’ column is now redundant and should be removed as a part of DB clean up.
The ‘scheduled_at’ column in the nova instances table is now redundant. This field was erstwhile used by the scheduler to denote the time of the instance scheduling. The commit that removed it is: https://review.openstack.org/#/c/143725/
Now since all of the basic VM lifecyle operations go through the scheduler, the ‘launched_at’ field is sufficient for the above mentioned scenario.
This is a nova DB cleanup effort to get removed the ‘scheduled_at’ column from the instances table and ensure backward compatibility.
This is a cleanup effort on the instances table.
This is a refactoring effort to make nova code cleaner.
Estimated changes are going to be in the following places: * Remove the sqlalchemy initializations for the ‘scheduled_at’ field
Remove all unit tests, involving this field.
Ensure that the NovaObjects adapt to this change for handling migration related issues.
Continue to live with dormant code in nova.
Data model impact¶
The ‘scheduled_at’ column can be dropped from the Instances table since there appears to be no code, that updates it currently.
REST API impact¶
Other end user impact¶
Other deployer impact¶
Sudipta Biswas sbiswas7
Drop the column for ‘scheduled_at’ from Sqlalchemy model.
Add migration to drop the column from the instances table.
Change the instances object module for migration related issues.
The changes will be exercised through the existing CI.