65 Commits

Author SHA1 Message Date
Jessica Wang
b8e2c8c86d new UI - add primary storage - default cluster dropdown to host's cluster or primary storage's cluster. 2010-11-02 14:25:59 -07:00
Jessica Wang
686928aef7 new UI - add primary storage - if on cluster node, add newly created primary storage to middle menu and remove "no items available" if there is. 2010-11-02 13:31:42 -07:00
will
ca2baddbf4 New UI - Fixed session timeout dialog 2010-11-02 13:13:23 -07:00
edison
b0ab0df4fe fix rpm build 2010-11-01 23:19:12 -07:00
will
4fdd71c799 Sigh. Renaming the jquery scripts back so RPM build doesn't break. 2010-11-01 22:57:26 -07:00
will
034ec649a0 Did some renaming of the javascript files in new 2.2 UI. 2010-11-01 22:52:12 -07:00
will
287c1da1b5 Making the new 2.2 UI to be the default UI.
2.1 UI can still be accessed by http://<mgmt_url>:8080/client/2.1
2010-11-01 21:43:37 -07:00
Kris McQueen
7531525252 Add commented code out for the old style (2.1.x) JSON async job responses. The XML responses are still a TODO. In order to get this to fully revert back to 2.1.x style responses, some commands will need to be modified to set the responseName to be something like getResultObjectName(), and there's an example of this in StopVMCmd. 2010-10-28 14:32:13 -07:00
Kris McQueen
8fafc892d3 bug 6730: if a volume was never attached to a VM, then the poolId will be null and this will be flagged as not on shared storage. Since the code was deleting detached volumes only on shared storage, the never-attached volume was in an undeletable state. Instead, allow deletion of any detached volume, regardless of storage pool until some technical reason limits this from happening.
Also, the UI was not allowing volumes to be deleted due to a bug in looking at the vmname property of the volume.  The 'if' conditional always returned true that the volume was attached to a VM to due a boolean logic error.

status 6730: resolved fixed
2010-10-26 14:56:44 -07:00
Kris McQueen
365ac7501f bug 6672: Fix up volume commands. For createVolume, the command is supposed to create a database object, but not assign it to a storage pool until the user first attaches it to a vm instance. That allows the volume to start off hypervisor agnostic. For attachVolume, detachVolume, and listVolumes, the responses had minor issues (sourceType could be null, for example) in either the response generation, or the response handling by the UI.
status 6672: resolved fixed
2010-10-21 15:15:01 -07:00
Kris McQueen
d01d2c01f4 fix a problem listing load balancer rules, the ip address for a vm has been standardized to ipaddress rather than a mix of ipaddress/privateip 2010-10-20 16:48:20 -07:00
Kris McQueen
2bd5b6a29e bug 6654: virtualmachinename should be serialized as vmname, fix handling of the createPortForwardingRule response
status 6654: resolved fixed
2010-10-19 15:59:37 -07:00
Kris McQueen
0267a306c8 bug 6649: when listing domains, accept -1 as 'list all.' Fix listDomainChildren response to return haschild, handle haschild as a boolean rather than a string.
status 6649: resolved fixed
2010-10-19 13:49:00 -07:00
Kris McQueen
0143cbc1e1 changeServiceForVirtualMachine is not an async command since it merely does a database update for the VMs service offering. Change the UI to reflect this. 2010-10-18 11:51:34 -07:00
Kris McQueen
3be625ca6e The stopVirtualMachine API should return the vm instance rather than a boolean indicating success. The response for async jobs is now under the jobresult property of the JSON response, handle the start/stop virtual machine responses using data from the jobresult rather than expecting some embedded object. 2010-10-18 11:15:07 -07:00
Kris McQueen
2740ba6c40 final merge of master->2.1.refactor preparing for merge back into master 2010-10-12 14:46:24 -07:00
Kris McQueen
9c593352d0 Fixing events for async jobs so that there's a scheduled event recorded with appropriate type/description whenever the API framework schedules the async command to run. A few miscellaneous fixes as well uncovered during regression testing (router response was not parsed correctly by UI, etc.) 2010-10-05 20:26:18 -07:00
Jessica Wang
ef67728cea new UI - instance page - reset password - after action succeeds, show new password in middle menu and details tab when middle menu item is clicked. 2010-10-05 16:59:22 -07:00
Jessica Wang
4fa53720c6 new UI - add shared function enableMultipleSelectionInMiddleMenu(), disableMultipleSelectionInMiddleMenu(). 2010-10-05 14:23:18 -07:00
Jessica Wang
426767f9f1 Primary Storage page, Host page - decode text. 2010-10-04 20:08:12 -07:00
Jessica Wang
0763037d5f decode text returned from API. encode text passed to API. 2010-10-04 19:38:22 -07:00
Jessica Wang
b45b23b50a Storage page - encode API parameters 2010-10-04 18:17:25 -07:00
Jessica Wang
7ab6a24876 decode text before it displays on UI. 2010-10-04 14:56:44 -07:00
Jessica Wang
ec71530d49 for bug 6381 - add primary storage - shows cluster option when hypervisor is KVM. 2010-10-01 18:36:51 -07:00
Jessica Wang
1924556caf template page, ISO page - apply shared function todb(), fromdb(). 2010-09-30 16:22:56 -07:00
Jessica Wang
e0542260eb Use shared function todb(), fromdb(). 2010-09-30 15:49:44 -07:00
Jessica Wang
9e0fa5abd3 fix bug 6330 - instance page action menu not displaying correctly on IE7. 2010-09-30 11:14:29 -07:00
edison
6fc7528809 create data volume is splitted into two stage:
1. create a volume entry in the database,
2. when user attaching the volume to a VM, then actually create the volume on storage pool.
2010-09-29 18:41:54 -07:00
will
031c6fc280 Adding support to indicate hypervisor when registering ISOs 2010-09-29 18:41:54 -07:00
will
3570322ef5 Forgot to add listing of templates by hypervisor 2010-09-29 18:40:51 -07:00
will
67cc587603 Adding some prelim UI to support multiple hypervisors in the hybrid branch 2010-09-29 18:40:51 -07:00
Kris McQueen
2fde826a77 fix up a few merge conflicts from the big merge master->2.1.refactor that were overlooked 2010-09-28 16:35:15 -07:00
Kris McQueen
848ce60097 Merging master into 2.1.refactor, resolve the merge conflicts as best I can. New commands related to extracting template/iso/volume and related to instance groups were refactored to the new API framework. 2010-09-28 15:47:14 -07:00
Jessica Wang
f08ef8c6d4 fix a bug - Zones page - Direct VLAN IP Range - account field appears twice in view mode. 2010-09-28 15:07:36 -07:00
Jessica Wang
9a4ceb64c0 fix bug 6287 - decode string before displaying on UI. 2010-09-28 10:46:14 -07:00
Kris McQueen
2a4ddac41a Change getResponse() to return a ResponseObject so that the caller can choose how to serialize. This in in preparation for serializing the async commands to the database with class information and deserializing them into the ResponseObject itself when queryAsyncJobResult is called. Once the ResponseObject is deserialized, the proper string can be returned to the caller.
The previous behavior had the JSON response from the command embedded into the queryAsyncJobResult response as a string rather than a JSON object which prevented the client from being able to read the response.  With this new behavior an actual JSON object should be returned which can then be parsed on the client side.
2010-09-23 17:34:28 -07:00
Jessica Wang
a6ca920452 for bug 6163 - change direct tagged IP range to no longer restrict it to an account. 2010-09-23 15:25:42 -07:00
Jessica Wang
7b8218af7b fix bug 6160 - "No disk offering" option is missing when creating VM from templates tab. 2010-09-23 10:57:00 -07:00
Jessica Wang
df82d0bac6 fix bug 6154 - port forwarding should show user-assigned VM name instead of system-assigned VM name. 2010-09-21 20:11:35 -07:00
Jessica Wang
2e98f2c41d for bug 6153 - prevent startIP being passed twice to UpdatePod API. 2010-09-21 19:37:32 -07:00
Jessica Wang
d117da5f7d fix bug 6153 - when editing a private IP range, just modifying the ending of the IP range will throw an error. 2010-09-21 19:30:39 -07:00
Kris McQueen
50da0d918f The sanitizeXSS function only sanitizes strings and leaves other types unchanged. 2010-09-21 18:23:40 -07:00
Jessica Wang
23bb32dcde fix bug 6130 - when attaching volume, running and stopped VMs not displayed consistently. 2010-09-21 18:11:10 -07:00
Jessica Wang
039cb78173 fix bug 6127 - change text on confirmation box on VM destroy. 2010-09-21 17:55:40 -07:00
Jessica Wang
4e9b1239ce cross-site scripting - sanitize only value whose type is string. 2010-09-21 17:42:26 -07:00
Jessica Wang
67cfa3582e new UI - volume page - implement Recurring Snapshot action. 2010-09-21 16:18:40 -07:00
Jessica Wang
0435d99247 new UI - volume page - implement delete volume action. 2010-09-21 11:55:12 -07:00
Kris McQueen
ebd06ae6f3 List clusters was using the name of the command rather than the name of the cluster to search for clusters, which was resulting in no clusters returned. Fixed. CreateStoragePool was returning an array of one pool every time, simplified it to just return the pool and changed the UI to expect one pool rather than an array. Fixed the backend code for creating a storage pool to (a) generate a UUID based on host name, path, and a timestamp and (b) to list only active storage pools when checking for duplicates. This allows a storage pool to be create with the same path as a pool that had previously been deleted. 2010-09-20 19:08:52 -07:00
Jessica Wang
74bd85a3c0 current UI - create disk offering - minimum size of disk offering changes from 1 to 0 2010-09-17 15:39:59 -07:00
Jessica Wang
4c78c6304d current UI - add host - send clustername parameter when calling addHost API 2010-09-17 10:19:06 -07:00