Add func to get cascaded instace uuid when not in the uuid_mapping,
which is using cascading instance's display_name and uuid based on
the cascaded instance's naming rule.
Change-Id: I210ad28fc09ff6c279ceed31fb104ba6ef523b35
We make the python novaclient as a memeber of ComputeManager, each
time used, we create it only if it's None. This avoids creating the
token for every request.
Note that the python-novaclient can re-auth when the token is expired,
so we need not to do it in application level.
Change-Id: I4a5644264383ffdf863759245086f2a6889152bf
Because of the change in mapping relationship between cascading and
cascaded, the instance_mapping_uuid_patch is no need exists.
Change-Id: I72606bb8f1d7238a53e0e5caae0671fa4ed105fa
When launching, reboot or resize a instance, if the flavor's accesses
is changed in cascading, then the modification will be synced to the
cascaded.
Change-Id: I54f0496c9841417966537faeee071ac309b8042d
Cache subnet mapping info between cascaded and cascading and support
multiple subnets exists in single network.
Change-Id: Id70cafe058685ea27b848d7c52a2a3c9db4a521e
1.add [cinder_tenant_id] and [pagination_limit] fields for for cinder-proxy
2.remove uuid-mapping-path
3.delete README.md for creating volume from image BUG explanation
Change-Id: I3d6bf4589a0f3523b4e465fa46f590085f8accb3
Modify Readmd for the remove of mapping_uuid patch, so we modify some
README.md files to keep consistently.
Change-Id: Iec8700dc336abfc77d49792ed052069cb84980b3
resolve sync image execption handle in nova when using sync the image
ate the first time lauching instance.
Change-Id: I07ff47b59d45f9efbaf2f62332b83db8add25357
To avoid too many token-requests from the sync instance state function
we cache the sync_nova_client.
Change-Id: I6069d733dc4781598e1874bc2d24195d0e5f2a86
adding paging search for periodic sync instance state, add a periodic
task for check if the cascaded instance should be full deleted for proxy
error exit when deleting.
Change-Id: I16652ea0d1e615e09e0367224d57f85bc6709538
Firstly, we get rid of the unused code in manager_proxy; then adding the
paging function of query nova instances; finally, the resize func is
modified for rollback flavor when cascaded resize failed.
Change-Id: I9bd576add946400cdec19cae466a933f57f80f32
Add the function to sync the flavor's extra_spces between cascading
and cascaded when instance is launched or rebooted.
Change-Id: I1e00aaae1660a58d2462896ea141bf240d81c932
Add a 'nova' option of sync_strategy in glance-sync.conf, which means
sync the image when firsh time the instance is lanuched.
Change-Id: I136a9a04a6c21a6637e66468f9f07558b5dabf00
The added 'mapping_uuid' field in Instance table in DB of cascading
store the mapping relationship between cascading and cascaded instances.
We replace the above method to putting the mapping into a dict in the
memory for improving performance. Another modification is sync flavor
when reboot.
Change-Id: I2e6cf2a3eb9649509e5be181631c2030104a3f9b
we do the follow modification:
1. nova flavor/keypair modification synced;
2. sync the instance with certain states;
3. remove the unnecessary event record of cascading;
4. when glance sync image data, one suitable location woudl be
chosen.
Change-Id: I5981e2220a0f28b5b69e0b4fa887a096dc01109b