| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | compute API | cast, call, db only | valid state check before exec: vm_state | task_state | state during exec (_ means no change) | eventual state if successful ( vm | task | power ) | can be idempotent? | questions, problems, notes | ||||||||||||||
2 | create(max_count=1) | cast to sch | N/a | building | various | active | none | pw | No | why max_count==1 check? | ||||||||||||||
3 | create(max_count>1) | call to sch | N/A | building | various | active | none | pw | No | to be refactored to cast by comstud | ||||||||||||||
4 | ensure_default_security_group | db | _ | _ | _ | _ | _ | Y | ||||||||||||||||
5 | trigger_security_group_members_refresh | cast to many n-cpu, 'refresh_security_group_members' | _ | _ | _ | _ | _ | Y | ||||||||||||||||
6 | trigger_provider_fw_rules_refresh | cast to all n-cpu,'refresh_provider_fw_rules' | _ | _ | _ | _ | _ | Y | ||||||||||||||||
7 | add_security_group | cast, 'refresh_security_group_rules' | _ | _ | _ | _ | _ | No | why only callable when power_state==Running?, why refresh all groups? | |||||||||||||||
8 | remove_security_group | cast, 'refresh_security_group_rules' | _ | _ | _ | _ | _ | |||||||||||||||||
9 | create_db_entry_for_new_instance | db | |||||||||||||||||||
10 | update | db | |||||||||||||||||||
11 | soft_delete | cast to n-cpu, 'power_off_instance' | active,shutoff,error | soft-delete|powering_off | _ | none | pw | y | |||||||||||||||
12 | delete | call if in some migration state, cast to n-cpu, 'terminate_instance' | active,building,error,rescued,shutoff,stopped | _ | deleting | _ | none | pw | y | why not all states, e.g. may get stuck by resize in _delete() | ||||||||||||||
13 | restore | cast to n-cpu, 'power_on_instance' | soft-delete | active | powering_on | _ | none | pw | y | |||||||||||||||
14 | force_delete | call delete() impl | soft-delete | _ | deleting | y | ||||||||||||||||
15 | stop | cast if do_cast, stop_instance | active,shutoff,rescued | None,resize_verify | active | stopping | stopped | none | _ | y | |||||||||||||||
16 | start | cast 'start_instance' | stopped,shutoff | first call stop(), then stopped | starting | active | none | pw | y | why call stop() before start() | ||||||||||||||
17 | get_active_by_window | db | |||||||||||||||||||
18 | get | db | |||||||||||||||||||
19 | get_all | db | |||||||||||||||||||
20 | backup | cast, 'snapshot_instance' | active,shutoff | _ | image_backup -> active | _ | pw | active | none | pw | No | |||||||||||||||
21 | snapshot | cast, 'snapshot_instance' | active,shutoff | _ | image_snapshot | active | none | pw | No | |||||||||||||||
22 | reboot | cast, 'reboot_instance' | active,shutoff,rescued| None, resize_verify | active | rebooting[_hard] | active | none | pw | ||||||||||||||||
23 | rebuild | cast, 'rebuild_instance' | active,shutoff | None, resize_verify | rebuilding | various | active | none | pw | ||||||||||||||||
24 | revert_resize | cast, 'revert_resize' to dest | active,shutoff | resize_verify | resizing | resize_reverting | ? | ||||||||||||||||
25 | confirm_resize | cast, 'confirm_resize' to source | active,shutoff | resize_verify | active | None | |||||||||||||||||
26 | resize | cast, 'prep_resize' to sch | active,shutoff | None | resizing | resize_prep | |||||||||||||||||
27 | add_fixed_ip | cast, 'add_fixed_ip_to_instance' | |||||||||||||||||||
28 | remove_fixed_ip | cast, 'remove_fixed_ip_from_instance' | active,shutoff,rescued | ||||||||||||||||||
29 | pause | cast, 'pause_instance' | active,shutoff,rescued| None, resize_verify | active | pausing | paused | none | pw | ||||||||||||||||
30 | unpause | cast, 'unpause_instance' | paused | paused | unpausing | active | none | pw | ||||||||||||||||
31 | suspend | cast, 'suspend_instance' | active,shutoff,rescued| None, resize_verify | active | suspending | suspended | none | pw | ||||||||||||||||
32 | resume | cast, 'resume_instance' | suspended | suspended | resuming | active | none | pw | ||||||||||||||||
33 | rescue | cast, 'rescue_instance' | active,shutoff,stopped|None, resize_verify | active | rescuing | rescued | none | pw | ||||||||||||||||
34 | unrescue | cast, 'unrescue_instance' | rescued | active | unrescuing | active | none | pw | ||||||||||||||||
35 | set_admin_password | cast, 'set_admin_password' | active | _ | updating_password | _ | none | pw | pw must be running | |||||||||||||||
36 | inject_file | cast, 'inject_file' | _ | _ | _ | _ | _ | pw must be running | ||||||||||||||||
37 | get_vnc_console | call, consoleauth_topic,'authorize_console' | _ | _ | missing state check? | |||||||||||||||||
38 | get_console_output | call, 'get_console_output' | _ | _ | missing state check? | |||||||||||||||||
39 | lock | cast, 'lock_instance' | _ | _ | ||||||||||||||||||
40 | unlock | cast, 'unlock_instance' | _ | _ | ||||||||||||||||||
41 | get_lock | db | |||||||||||||||||||
42 | reset_network | cast, 'reset_network' | _ | _ | ||||||||||||||||||
43 | inject_network_info | cast, 'inject_network_info' | _ | _ | ||||||||||||||||||
44 | attach_volume | vol calls + cast, 'attach_volume' | _ | _ | missing state check? | |||||||||||||||||
45 | detach_volume | vol calls + cast, 'detach_volume' | _ | _ | missing state check? | |||||||||||||||||
46 | associate_floating_ip | net call associate_floating_ip | _ | _ | ||||||||||||||||||
47 | get_instance_metadata | db | |||||||||||||||||||
48 | delete_instance_metadata | db | |||||||||||||||||||
49 | update_instance_metadata | db | |||||||||||||||||||
50 | get_instance_faults | db | |||||||||||||||||||
51 | |||||||||||||||||||||
52 | |||||||||||||||||||||
53 | in the compute node, initiated by periodic_task | ||||||||||||||||||||
54 | _heal_instance_info_cache | ||||||||||||||||||||
55 | _poll_rebooting_instances | ||||||||||||||||||||
56 | _poll_rescued_instances | ||||||||||||||||||||
57 | _poll_unconfirmed_resizes | ||||||||||||||||||||
58 | _poll_bandwidth_usage | ||||||||||||||||||||
59 | _sync_power_states | this one brutually update vm_state | |||||||||||||||||||
60 | _reclaim_queued_deletes | ||||||||||||||||||||
61 | update_available_resource | ||||||||||||||||||||
62 | _cleanup_running_deleted_instances | ||||||||||||||||||||
63 | _run_image_cache_manager_pass | ||||||||||||||||||||
64 | |||||||||||||||||||||
65 | |||||||||||||||||||||
66 | |||||||||||||||||||||
67 | |||||||||||||||||||||
68 | |||||||||||||||||||||
69 | |||||||||||||||||||||
70 | |||||||||||||||||||||
71 | |||||||||||||||||||||
72 | |||||||||||||||||||||
73 | |||||||||||||||||||||
74 | |||||||||||||||||||||
75 | |||||||||||||||||||||
76 | |||||||||||||||||||||
77 | |||||||||||||||||||||
78 | |||||||||||||||||||||
79 | |||||||||||||||||||||
80 | |||||||||||||||||||||
81 | |||||||||||||||||||||
82 | |||||||||||||||||||||
83 | |||||||||||||||||||||
84 | |||||||||||||||||||||
85 | |||||||||||||||||||||
86 | |||||||||||||||||||||
87 | |||||||||||||||||||||
88 | |||||||||||||||||||||
89 | |||||||||||||||||||||
90 | |||||||||||||||||||||
91 | |||||||||||||||||||||
92 | |||||||||||||||||||||
93 | |||||||||||||||||||||
94 | |||||||||||||||||||||
95 | |||||||||||||||||||||
96 | |||||||||||||||||||||
97 | |||||||||||||||||||||
98 | |||||||||||||||||||||
99 | |||||||||||||||||||||
100 |