Sync image when first instance launched

When instance launched in the cascaded openstack and no corresponding
image found, then the image will be synced to cascaded firstly, then
vm is launched by this image.
Next time when launching instance using the same image, there is no
need to sync.

Implements: blueprint sync-image-first-vm-launch
Change-Id: I51e43065c7b0ed2a59f44aca5ab9c06a8a858945
Transplant tricircle to juno version

The tricircle project is based on Openstack Icehouse version, this
patch modify to adopt the Juno version.

Change-Id: I1afe6122575ed2bedb6e3220177e161763ce161c
Modify nova proxy to adapt juno

Modify manager_proxy in novaproxy for some bugs.

Change-Id: I1363f76684217d1b176f3846df68130d715b23c4
Modify image sync in novaproxy to for juno

modify the filesystem in image/sync/drivers for juno reason.

Change-Id: Ie146da171af52af195a56a8abcee5622c3ce3d8c
Add/Modify some files

add an entry_point file, also modify a few readme-files

Change-Id: Ie7c69ff6e676254769dd4dc76a2f5b0906e61ae7
Modify Readme and install files

For Juno, the whole cascading readme file and the configuration
and install scripts  need to be changed.

Change-Id: I54ef9a35dcff5cce41ecbf90a6a28e32dc7d833f
add timestamp patch for cascaded neutron server

Change-Id: Ie28b643009964fa4246f6df937d047d81676ac3c
nova flavor/keypair modification synced

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
add neutron cascaded big2layer patch

Change-Id: I0860ed5a6291ea7c19611738e7a519de5f24b728
Merge "add neutron cascaded big2layer patch"
modify install.sh of neutron_cascading_l3_patch

Change-Id: Iff5df0afba69be30f2fd94a4ad7698e0551e0b5d
Merge "modify install.sh of neutron_cascading_l3_patch"
modify l2-proxy-- query ports based on timestamp

Change-Id: Id51d8c3cfb2f52dc5bbf6ebc085bc4cf963061b8
Merge "modify l2-proxy-- query ports based on timestamp"
Unuse the mapping_uuid field in cascading

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
Modify glance's sync strategy option

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
Check and sync flavor extra_spces

Add the function to sync the flavor's extra_spces between cascading
and cascaded when instance is launched or rebooted.

Change-Id: I1e00aaae1660a58d2462896ea141bf240d81c932
add config option "cascade_str" for cascading_l3_patch

Change-Id: Id6c12e1d028d6f561e4ff203f94895027103c0bf
add config option "cascade_str" for cascading_l3_patch

Change-Id: I87ac2f513230df513ec7ca5dd495208c66585741
Config paging query for cinder

Config paging query for cinder.

Change-Id: Ib230efaba7ba09862668c8c5d8d7fa158112d54f