298 Commits

Author SHA1 Message Date
jiahaojie
8e9ac69910 modify l2-proxy to add network_delete function.
Change-Id: I4f1881e85adb051170ad7b3eb9a186f953ca5f7d
2015-03-23 19:57:10 +08:00
ChiZhang
3d605e13c5 refresh cinder proxy about attach volume
Change-Id: I3d1c5059748625303cdd518bd1f334b8302540e5
2015-03-18 11:37:04 +08:00
ChiZhang
71c31d988c add enabled_volume_types
Change-Id: I042953f09950850b942bfe00474bf3c91bfebab5
2015-02-09 22:33:48 +08:00
ChiZhang
4d146044fe add volume check before sync volumes
Change-Id: Ib42d0858c47baa85631f4d6fc0fa6dd321c1863c
2015-02-02 11:55:33 +08:00
ChiZhang
c15bfa091c 1. check logical volume while sync vols
2. add clean_extra_cascaded_vol_flag
3. remove keyword "pool" for report cacading simu-driver info

Change-Id: I90df292f06c85245cbe3acb5a40045c3ca28c9cf
2015-01-29 16:03:37 +08:00
joey5678
432f175268 Modify port value to Integer when create http connection
Modify port value to Integer when create http connection.

Change-Id: If8e37c6dd4c8b4e15f7bc84aa778f336f33d21b7
2015-01-28 10:55:14 +08:00
joey5678
989caf0c9e Modify glance sync not auth loc when add glance-loc
Modify glance sync not auth loc when add glance-loc

Change-Id: I3c1ff1c11c688a89700329e679c9301b06e7fa50
2015-01-27 15:10:21 +08:00
joey5678
44c77a238e Add docstring for added/modified options
Add docstring for added/modified options

Change-Id: I5c86217ba801e27c1e9ae1e9a39b74530a0bc0b1
2015-01-27 14:50:36 +08:00
jiahaojie
ff1c3a2971 add query_ports mode for l2proxy, query ports from novaproxy or cascaded neutron
Change-Id: I0e7f5a7aada15d8d55a1475d2a1e67f4708a0034
2015-01-22 20:00:44 +08:00
joey5678
bfe17a736a send port info to neutron
send port info to neutron

Change-Id: I93203eb051e02f224969478f44041a3695d02033
2015-01-22 19:31:29 +08:00
joey5678
bbdba3d866 Add config to controll the resource sync
By default, the resource synced is not used for performance reason.

Change-Id: Ide8e4ee127b28f1e1a9242443ee5c0580a331a18
2015-01-20 18:32:08 +08:00
joey5678
99109482e6 sync instance's metadata
sync instance's metadata when instance is created, reboot or resize.

Change-Id: I0e49091f647c742abf9feb541a7c930c587d4e66
2015-01-19 10:06:16 +08:00
ChiZhang
4f24979b3f refresh cinder proxy
Change-Id: I0d72486927914482ab9c9c477263ad132a759697
2015-01-19 09:41:35 +08:00
joey5678
a132561ddf Modify neutron name rule when created in nova
Just using cascading neutron object(net, subnet, port) uuid as name
of cascaded neutron object when creating these objects in nova.

Change-Id: I627d482c62e5f8c552623030104790f89da70533
2015-01-16 12:15:29 +08:00
joey5678
9ffd2755e7 Periodic update under aggregate/resources info for schedule (part 1)
Before, the cascading don't know the aggregates and resource info of
the cascadeds managed by proxys, so we cannot using the most filters
to choose the proper host with nova scheduler.

By updating the aggregates(includes hosts and metadata) and resource
used info in cascaded to the cascading periodically, this problem can
be solved.

Change-Id: If369f0023130c24544bbdbb3c1afbef05527d783
2015-01-15 16:10:44 +08:00
ChiZhang
c8ce4e5ea7 add volume metadata sync function
Change-Id: Iff0a0f5c319014d4a69ef84b614711eaa7868c0e
2015-01-15 10:59:00 +08:00
jiahaojie
236e2167b0 modify l2-proxy to process unauthorized exception when query port
Change-Id: I1fee40f147d92631c38cef6dd0822cc6a7340a23
2015-01-14 10:25:58 +08:00
ChiZhang
22f28d5908 add keystoneclient/cinderclient token unauthorized exception caught
when cinderClient being generated, b/c this will be helpful to break
out from recursion when cinderclient being constructed from invalid
user/password

Change-Id: Id179b03b5d60af0af8cccfb64a7fad1ca709bf83
2015-01-13 16:29:00 +08:00
ChiZhang
f295bfbc32 add token authorized exception caught when cinder client being generated
when cinder client unauthorized, exception will be caught and will break
out from recursion.

Change-Id: I038a1ea15c3f18e1b83a3da6a798ba69a523ead7
2015-01-13 16:08:26 +08:00
ChiZhang
77a6fa883e modify VOLUME_NAME_LENGTH to VOLUME_NAME_MAX_LEN
Change-Id: I28ccf8a8295d5af034f8845e8d51e19cef2a4344
2015-01-12 21:40:36 +08:00
ChiZhang
b0f8521639 update notes for cinder proxy
Change-Id: I83a88f6f73c0af1293569336a851c068c22747df
2015-01-12 20:12:18 +08:00
joey5678
8fb4429a1e Add re-check logic when create network failed with conflict
Add re-check logic when create network faild with the Conflict Exception
whose status_code is 409, it's means another task of creating the same
network is happend and done. So there is no need to create it again, instead
we query if the network exists(by name). If we can not find the network,
then the exception raised.

Change-Id: I44a6909b3119be748d4445a0f560454c19687276
2015-01-12 16:41:24 +08:00
ChiZhang
8796babed2 fresh cinder proxy
Change-Id: I4d22e8261b06667f1f6abbd085e98a62a26ce375
2015-01-08 19:41:47 +08:00
ChiZhang
2ccb6a723c recovery mapping_uuid in cinder-proxy volume metadata
b/c this is useful for nova-proxy to attach volume

Change-Id: I18ab0bbaff168aa5f0260206208bdcd17a4e1415
2015-01-08 17:33:00 +08:00
ChiZhang
3dc060db63 refresh README.md and install script
Change-Id: I547111874c42e41599eb0b031fc68b3eb5897c40
2015-01-07 17:44:09 +08:00
joey5678
ca2f9eeb5e Add port name for mapping
When creating cascading port in nova proxy, add the 'name' field which
contains a cascading network_name and port uuid.

Change-Id: I730a0ca953513b9f965155141d04b90b39963432
2015-01-07 14:46:33 +08:00
joey5678
429e12ea34 Add port name for mapping
When creating cascading port in nova proxy, add the 'name' field which
contains a cascading network_name and port uuid.

Change-Id: I40418f24f4f4813b90add46fe11457819c2bf6ec
2015-01-07 11:37:47 +08:00
joey5678
954bf16900 refactor novaclient code
refactor novaclient code for cascaded.

Change-Id: I2f7efe3f2ffa070fa8d7296afb39ae4e381c5788
2015-01-05 17:47:43 +08:00
ChiZhang
87205df234 add volume sync timestamp flag
add flag to cinder-proxy for volume status sync based on timestamp between cascading and cascaded OpenStack

Change-Id: I0d396a729df7d9d1265012b6052405181e3d7531
2015-01-05 02:38:25 +00:00
ChiZhang
3aa59af134 refresh cinder-proxy
Change-Id: I1498444e8b02c32fa6bfa94ad1499bb955784c75
2015-01-05 09:45:28 +08:00
ChiZhang
31d5bf67d7 refresh cinder proxy
Change-Id: Iefca124ce141cd8a31716610ed9cb193043d342d
2015-01-05 09:41:44 +08:00
joey5678
d6f25b9773 Nova rebuild support sync update instance's name
rebuild operation of nova may change the name of the instance, this
patch support update the name to cascaded.

Change-Id: I52fe578e80e52d8f465f92eefdf1eec8e36e5de3
2015-01-04 17:16:19 +08:00
ChiZhang
b2f9e3e9af refresh cinder proxy
Change-Id: I7477ecf190a7cbf5a7e070b937d436e945c4dbb7
2014-12-31 18:18:06 +08:00
joey5678
e8df52aa4f Cache neutron net/subnet mapping info into memory
The mapping relationships of network/subnet were saved into a json
file, now we use a dict to store them. It is decrease the IO operations
for promoting perforance.

Change-Id: I5786f3b27320cf870a85a0ea9db1a15f74819dfd
2014-12-31 16:03:23 +08:00
ChiZhang
2ca67171c7 refresh cinder proxy
Change-Id: I34809ec0b44ba5603ef089b169013f4534f9b4a6
2014-12-30 22:40:28 +08:00
ChiZhang
f2f2bec1a7 refresh cinder proxy
Change-Id: Id07a76230e3752b990731f61c64e1e74461468c1
2014-12-30 20:49:36 +08:00
ChiZhang
cf97fb49af fresh cinder proxy
Change-Id: I5778a1e1e6edd5534befd1bd31d5b3553e83ec4f
2014-12-30 20:02:26 +08:00
joey5678
2b123b284c Add func to get cascaded instace uuid when not in the uuid_mapping
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
2014-12-30 17:39:55 +08:00
ChiZhang
1f2c76e71c refresh cinder proxy
Change-Id: I438eab40e97a158ba46ee8f62b613bbfaf6501fa
2014-12-30 16:21:10 +08:00
joey5678
723c694ea8 Cache cascaded nova client
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
2014-12-30 15:57:54 +08:00
root
7ef32332eb modified genenerate cinder client
Change-Id: If5fec0f1726285c852ee880e4b973891b6124a62
2014-12-29 13:24:40 +08:00
joey5678
4aaef726dc Remove instance_mapping_uuid_patch
Because of the change in mapping relationship between cascading and
cascaded, the instance_mapping_uuid_patch  is no need exists.

Change-Id: I72606bb8f1d7238a53e0e5caae0671fa4ed105fa
v1.2.1
2014-12-29 11:38:57 +08:00
joey5678
2005d39ccf Support flavor sync with accesses info
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
2014-12-29 11:33:56 +08:00
root
19d83039d5 modified generate cinder admin client
Change-Id: Ib63cbab911df7c8d9dce2a40b491f42ee099f8cb
2014-12-27 17:34:54 +08:00
root
d11114927f modified generate cinder admin client
Change-Id: Ifff8975eddd6aa06fa4959aa37b8d7a6c459f193
2014-12-27 09:24:05 +00:00
root
c1cc251af7 modified README.md
Change-Id: Ib86348cccdd50c9cab732e94ddf66066021df9ff
2014-12-27 16:43:52 +08:00
Jenkins
6b997afa0a Merge "Cache subnet mapping info between cascaded and cascading" 2014-12-26 09:40:57 +00:00
joey5678
1621aedac5 Cache subnet mapping info between cascaded and cascading
Cache subnet mapping info between cascaded and cascading and support
multiple subnets exists in single network.

Change-Id: Id70cafe058685ea27b848d7c52a2a3c9db4a521e
2014-12-26 17:39:31 +08:00
ChiZhang
9583427c66 add vol/snapshot name length check
add vol/snapshot deletion check

Change-Id: Ibc8d68eaa91a35ed368105077a967624eb17289e
2014-12-26 06:20:03 +00:00
ChiZhang
7213d5bf28 modify cinder README.md
add vol/snapshot name length check
add vol/snapshot deletion check



Change-Id: I71e9c1f4af9231fd3a5378d988f3e7c9fa2327d4
2014-12-26 04:50:29 +00:00