Koushik Das
1a719afb51
CLOUDSTACK-8426: Use a separate thread pool for VR reboot in case of out-of-band movement
...
Using a cached thread pool for VR reboot task
2015-04-29 12:29:21 +05:30
Rajani Karuturi
0b8355920e
Merge branch 'volume-upload' into master
...
This closes #206
2015-04-29 11:12:53 +05:30
Rajani Karuturi
faaa1365a3
Throwing an exception incase the template service couldnt register template.
2015-04-27 15:12:09 +05:30
Rajani Karuturi
75ae90b073
volume-upload: added account level secondary storage resource limit checks
2015-04-24 15:48:44 +05:30
Ilia Shakitko
5c5873edf1
GetUsageRecordsCmd - Removed unnecessary adjust...
...
ToDayStart/End because ParamProcessWorker.java is taking care of building proper
date format with day start/end
This closes #185
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-24 11:35:00 +02:00
Ilia Shakitko
fe29998938
GetUsageRecordsCmd - NewInputFormat for START_DATE and END_DATE (with time; backward capabile)
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-24 11:34:51 +02:00
Rohit Yadav
79a46fe0b4
CLOUDSTACK-8399: Allow changing hvm flag in updateTemplate API
...
This allows changing the hvm flag for a template after the template has been
registered.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 3e8b12bbb1 )
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-23 15:28:22 +02:00
Rohit Yadav
d81e831214
RemoteAccessVpn: fix regression preshared key is not sent to UI/clients
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit c71339569d )
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-23 14:19:24 +02:00
Koushik Das
bc399b981f
volume-upload: If SSVM is destroyed and started, then partially uploaded volumes/templates remain in
...
inconsistent state (NotUploaded or UploadInProgress) and doesn't transition to any terminal
state (Uploaded, Uploaded). As a result these volumes/templates cannot be removed. Fix is to handle such
volume/template entries correctly.
2015-04-22 19:28:51 +05:30
Rajani Karuturi
f172fbef8a
Bug-Id: CS-39350 Able to upload Volume greater than the Resource limit defined for Primary Storage.
...
Reviewed-By: Harikrishna Patnala <harikrishna.patnala@citrix.com>
2015-04-20 13:01:19 +05:30
Rajani Karuturi
9be70843fd
removed unused static main in ConsoleProxyPasswordBasedEncryptor
...
This closes #11
This closes #10
This closes #176
2015-04-17 12:07:04 +05:30
Rajani Karuturi
4f35d3611a
volume upload: fixed the error message incase of wrong image format
2015-04-16 17:43:46 +05:30
Rohit Yadav
ca99603321
server: NPE checks and improved case checking
...
- pool allocation checks for both root and data disks
- NPE checks to not add null object in collection or try to migrate null VM
- HA work tries need to increment and be given up when max retries are crossed
- VM creation should check IP address format for IPv4 and IPv6
- If userdata is not supported by a network, then fail early if userdata, ssh key,
or password enabled template is passed/used
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 24435dd6bc )
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-16 17:37:03 +05:30
Rohit Yadav
06e353e5c7
vmware: support vmfs as local storage pool type
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 752d784d92 )
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-16 17:36:52 +05:30
Wido den Hollander
9836ccdcf3
CLOUDSTACK-8313: Allow overprovisioning of local storage pools
2015-04-14 17:30:27 +02:00
Rohit Yadav
c0d3e6f5e8
server: ignore params signatureversion and expires when validating API args
...
(cherry picked from commit d361bf6847 )
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-14 16:52:32 +05:30
Sanjay Tripathi
30604e973a
CLOUDSTACK-8386: CS is returning sec. storage even if it is full and there are other sec. storage with free space.
2015-04-14 16:10:40 +05:30
Koushik Das
4338bea070
volume upload: cannot delete a volume in NotUploaded state
...
Volume deletion is not allowed in NotUploaded or UploadInProgress states, added validation in delete volume API for same
2015-04-14 16:08:54 +05:30
Rohit Yadav
a07497b373
server: fix NPE case in VolumeApiServiceImpl
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit df934c9541 )
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-13 15:47:51 +05:30
Rohit Yadav
74e0a5f9ec
server: fix system account create logs
...
Don't output scary message, avoid logging network_group table not found and
log sane messages if system/admin account/user already exist.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 5599dee90d )
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-13 15:47:36 +05:30
Rajani Karuturi
ce823a3a26
Returning template/volume download percent in UploadStatusAnswer
...
Also updating the store ref entries on receiving the answer.
2015-04-09 15:38:58 +05:30
KC Wang
01864ef77c
CLOUDSTACK-6697: bigswitch networking plugin update
...
1. provide compatibility with the Big Cloud Fabric (BCF) controller
L2 Connectivity Service in both VPC and non-VPC modes
2. virtual network terminology updates: VNS --> BCF_SEGMENT
3. uses HTTPS with trust-always certificate handling
4. topology sync support with BCF controller
5. support multiple (two) BCF controllers with HA
6. support VM migration
7. support Firewall, Static NAT, and Source NAT with NAT enabled option
8. add VifDriver for Indigo Virtual Switch (IVS)
This closes #151
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-09 13:02:02 +05:30
wilderrodrigues
3d22a16c4f
Bump priority stragety is no longer used for redundant virtual routers
...
- With the changes added by the rVPC work, the bump priority became deprecated.
This commit includes a refactor to get it removed from the following resources:
* Java classes
* domain_router table - removing the is_priority_bumpup column
* Fixing unit tests
All changes were tested with:
XenServer 6.2 running under our VMWare zone
CloudStack Management Server running on MacBook Pro
MySql running on MackBook Pro
Storage Type: Local
2015-04-02 21:50:49 +02:00
Sanjay Tripathi
5f59091418
CLOUDSTACK-8350: Volume attachment failed when user stops the VM during attaching DISK.
2015-03-27 15:26:32 +05:30
Daan Hoogland
6a821730ce
Boolean -> boolean
2015-03-25 22:20:40 +01:00
Daan Hoogland
048212b117
findbugs: Boolen function should not return null
2015-03-25 21:46:47 +01:00
Daan Hoogland
05099734fb
findbugs: removed redundant null check
2015-03-25 18:12:42 +01:00
Daan Hoogland
c49273e3ab
findbugs: to many lines removed in last commit
2015-03-25 17:55:11 +01:00
Daan Hoogland
8957dffc0d
findbugs: dead store / unused locals removed
2015-03-25 17:54:12 +01:00
Daan Hoogland
61e38a188b
findbugs: use explicit default charset encoding
2015-03-25 17:50:29 +01:00
Rajani Karuturi
5643d514ee
volume upload: showing browser uploaded templates in UI.
...
Templates are not observed on UI after GetUploadParamsForTemplate API
call and Template upload requests initiated.
2015-03-24 15:11:14 +05:30
Koushik Das
c62ce3eecb
volume-upload: Templates in uploaded error state are also accounted in resource limits which leads to failure during template upload even though there aren't any active ones
...
Fixed the storage GC thread to clean up templates in error/abandoned states.
2015-03-24 09:21:42 +05:30
Damodar
27fa8a9453
CLOUDSTACK-7948: Two VOLUME.DELETE Events are being registered instead of one - On Destroying a User VM belonging to a Project
2015-03-23 16:27:21 +05:30
Amogh Vasekar
35b741a1c9
excluded plain text authenticator
...
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
2015-03-23 11:59:47 +05:30
Rajani Karuturi
c32a6695dc
wrapped create template in db transaction
...
Template entry created in DB even though GetUpload* API fails with "No
ssvm present" error
2015-03-23 11:19:21 +05:30
Rajani Karuturi
018023c1ef
volume upload: added validation for file formats
...
merged TemplateUtils and ImageStoreUtil to a singe ImageStoreUtil
also added a unittest for ImageStoreUtil
2015-03-20 16:25:13 +05:30
Rajani Karuturi
d5dffb5dc9
volume upload: added md5 checksum validation
...
also fixed the issue wherein the successful uploads where also moving to
error state as the channelinactive is called after the end of successful
upload as well.
added a fileuploaded boolean to check when the channel is inactive.
2015-03-18 12:20:51 +05:30
Rohit Yadav
3c429ee6b5
Merge remote-tracking branch 'sbp/feature/persisten-systemvm-redundant-vpc-REBASE'
...
This closes #118
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-17 15:44:57 +05:30
Ian Southam
c38f0b91e3
Disable this for now - causes too much grief
...
Is also the root cause of the status UNKNOWN
2015-03-16 11:40:10 +01:00
wilderrodrigues
8edeca179b
Remove the priority checks from the code
...
- We do not use it anymore
2015-03-16 11:40:09 +01:00
wilderrodrigues
962a62ed5f
During the merge I removed by mistake the @Inject tag
2015-03-16 11:40:07 +01:00
wilderrodrigues
20d9715816
One of the routers is not running, so we don't have to continue here since the host will be null any way. Also, there is no need
...
To check either for sanity of duplicate master. Thus, just update the state and get lost.
2015-03-16 11:40:07 +01:00
wilderrodrigues
4b6604318d
generate random password for redundant VPC
2015-03-16 11:40:06 +01:00
wilderrodrigues
ae6b07af15
Fix state of isolated redundant network router
...
- once stopped, got to UNKNOWN
2015-03-16 11:40:04 +01:00
wilderrodrigues
aa585e3428
Removing trailing spaces
2015-03-16 11:40:04 +01:00
wilderrodrigues
3af2ce3f50
Fix checkSanity. We do not need to check the priority anymore.
...
- It's taken care by VRRP.
wip: clean up where priority is still used.
2015-03-16 11:40:03 +01:00
wilderrodrigues
0a133c06f8
Adding nre method to NetworkDao
...
- listVpcNetworks() to be used for the router check task
2015-03-16 11:40:01 +01:00
wilderrodrigues
ca9deb70f6
Fix the router id on the virtural routers
...
- Using the VPC id, it is reliable.
- Tested stopping/destroying/creating a router and VRRP is pretty happy
2015-03-16 11:39:59 +01:00
wilderrodrigues
4c9f4fcdd3
Make virtual router id unique per redundant group
...
Customise the messages showed during VPC restart based on redundancy
Do not show "Make Redundant" option if VPC is already redundant
Show on VPC details if a VPC is redundant
2015-03-16 11:39:58 +01:00
wilderrodrigues
e350f1e76f
Turn a single VPC into a redundant VPC
...
- when restarting a VPC, the user can check the option Make Redundant in order to change
the VPC offering and make it redundant
2015-03-16 11:39:57 +01:00