Utilize uuids internally to reference Instances
Currently we support uuids through our public interfaces, but internally we still depend on integers. We should transition the codebase to depend fully on uuids. We currently have a four-tiered approach:
1) Convert compute api to accept instance objects
2) Convert compute manager to accept instance uuids
3) Convert virt drivers to accept instance objects
4) Update any remaining integer-based calls
Blueprint information
- Status:
- Complete
- Approver:
- Vish Ishaya
- Priority:
- Medium
- Drafter:
- Brian Waldon
- Direction:
- Approved
- Assignee:
- Titan
- Definition:
- Approved
- Series goal:
- Accepted for essex
- Implementation:
- Implemented
- Milestone target:
- 2012.1
- Started by
- Thierry Carrez
- Completed by
- Vish Ishaya
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Converting reboot to use instance objects
Addressed by: https:/
Converting resize to use instance objects
Addressed by: https:/
Converting rebuild to use instance objects.
Addressed by: https:/
Converting delete to use instance objects
Addressed by: https:/
Converting start and stop to use instance objects
Addressed by: https:/
Convert pause/unpause, sus/res to use instance obj
Addressed by: https:/
Converting metadata calls to use instance objects
Addressed by: https:/
Convert pause/unpause, sus/res to use instance obj
Addressed by: https:/
Converting set password to use instance objects
Addressed by: https:/
Convert pause/unpause, sus/res to use instance obj
Addressed by: https:/
Converting inject_file to use instance objects
Addressed by: https:/
Converting rescue/unrescue to use instance objects
Addressed by: https:/
Converting fixed ip calls to use instance objects
Addressed by: https:/
Converting consoles calls to use instance objects
Addressed by: https:/
Converting attach_volume to use instance object
Addressed by: https:/
Converting snapshot/backup to use instance objects
Addressed by: https:/
Converting network methods to use instance objects
Addressed by: https:/
Convert security_group calls to use instance objs
Addressed by: https:/
Converting lock/unlock to use instance objects
Addressed by: https:/
Convert remaining calls to use instance objects
Addressed by: https:/
pause/unpause in compute manager to use uuids
Addressed by: https:/
suspend/resume in compute manager to use uuids
Addressed by: https:/
snapshot/backup in compute manager to use uuids
Addressed by: https:/
suspend/resume in compute manager to use uuids
Addressed by: https:/
lock/unlock in compute manager to use uuids
Addressed by: https:/
Updating attach/detach in compute.api and compute.manager to use instance uuid instead of instance id. blueprint internal-uuids
Addressed by: https:/
Updating {add,remove}
Addressed by: https:/
Clean up compute api
Addressed by: https:/
Change compute API.update() to take object+params
Addressed by: https:/
Updating {add,remove}
Addressed by: https:/
start/stop in compute manager to use uuids
Addressed by: https:/
power_
Addressed by: https:/
rescue/unrescue in compute manager to use uuids
Addressed by: https:/
Updating set_admin_password in compute.api and compute.manager to use instance uuids instead of instance ids. Blueprint internal-uuids
Addressed by: https:/
reset/inject network info in compute to use uuid
Addressed by: https:/
Use instances for consoles and diagnostics
Addressed by: https:/
Use instance uuids for consoles and diagnostics.
Addressed by: https:/
Updating inject_file in compute.api and compute.manager to use instance uuids instead of instance ids. blueprint: internal-uuids
Addressed by: https:/
Use uuids for file injection.
Addressed by: https:/
Convert compute manager delete methods to objects
Addressed by: https:/
Use uuids for compute manager agent update.
Addressed by: https:/
reboot & rebuild to use uuids in compute manager
Addressed by: https:/
Fixing get_info method implementations in virt drivers to accept instance_name instead of instance_id. The abstract class virt.ComputeDriver defines get_info as: def get_info(self, instance_name). blueprint: internal-uuids
Addressed by: https:/
Make run_instance only support instance uuids.
Addressed by: https:/
Replacing instance id's in in xenapi.vmops and the xen plugin with instance uuids. The only references to instance id's left are calls to the wait_for_task() method. I will address that in another branch. blueprint: internal-uuids
Addressed by: https:/
Replace more cases of instance ids with uuids
Addressed by: https:/
Replace more cases of instance ids with uuids
Addressed by: https:/
Convert get_lock in compute to use uuids
Addressed by: https:/
Update associate_
Addressed by: https:/
Renaming instance_