Commit Graph

5416 Commits

Author SHA1 Message Date
anthony 8d052d105a don't need to remove heartbeat tag when reconnect, it breaks HA , because when host reconnects, it tries to create heartbeat, but at this time, master may be able to access storage pool 2011-04-14 19:07:58 -07:00
alena fba10b1cb8 bug 9461: don't update user_statistics with the network id if the domR is already expunged
status 9461: resolved fixed
2011-04-14 17:53:38 -07:00
will 714914d21d bug 9426: Deleting an ISO will no longer cause the UI to continue to poll for download process
merge from master
2011-04-14 17:38:25 -07:00
alena c3c80006ca bug 9453: domain path is not unique value, removed the constraint added during 2.1.8-2.2.2 upgrade 2011-04-14 16:55:55 -07:00
Edison Su 8b9fc424d5 bug 8532,8755: don't create multiple HA work if there already has one of HAwork of this VM is created, but not finished
status 8532: resolved fixed
status 8755: resolved fixed
2011-04-14 16:55:06 -04:00
will dd808e45ab bug 9424: fixed issue where a small window space on Safari would cause HTML elements to overlap on the LB rules tab.
merge from master
2011-04-14 15:54:14 -07:00
will 97fbc360e7 bug 9435: decoded text for disk offering. In fact, I added it globally so all text calling the fromdb() would be correctedly decoded.
Merge from master
2011-04-14 15:54:12 -07:00
alena a76803f5e5 bug 9458: do searchIncludingRemoved when decrement resource count as corresponding domain might be removed already
status 9458: resolved fixed
2011-04-14 15:25:37 -07:00
anthony c6018bdc60 bug 9455: when host is disconnected, also remove entry in storage_pool_host_ref
status 9455: resolved fixed
2011-04-14 14:34:32 -07:00
alena 78aad72ffb bug 9407: lock network when do deployDomR/deployDhcp to avoid 2 network elements start for the same network
status 9407: resolved fixed
2011-04-14 13:19:04 -07:00
anthony 21c936ab15 bug 9411:
1. adding storage pool fails, remove the entry in DB
2. in introduce SR, create pbd for master host

status 9411: resolved fixed
2011-04-14 11:16:45 -07:00
root 2ab9238ae7 Bug 9440: we specify the wrong disk size when attaching storage device with custom size offering
wrong usage of volume size which is in bytes for setting the size of disk offering  which in MB
2011-04-14 21:25:23 +05:30
Alex Huang 7b0f95a466 bug 9422: added rows in op_networks table to correspond to the rows in networks table 2011-04-14 03:53:51 -07:00
Alex Huang 256517f1c3 bug 9422: added rows in op_networks table to correspond to the rows in networks table 2011-04-14 03:17:55 -07:00
Edison Su 29558e8217 if storage network disconnected, reboot the host 2011-04-13 21:51:40 -04:00
anthony 3f4c5225dd fixed transaction usage 2011-04-13 19:35:13 -07:00
prachi fede78bea8 More changes for Bug 9438 - [Cloud Stack Upgrade - 2.1.8 to 2.2.4] Secondary Storage VM could not start after stopping it.
Added log statement to indicate that a pool is not chosen because the vm template has no entry in template_host_ref table.
2011-04-13 18:09:28 -07:00
prachi 9fa3f92efd Bug 9438 - [Cloud Stack Upgrade - 2.1.8 to 2.2.4] Secondary Storage VM could not start after stopping it
- In the upgrade, new XenServer template entry was added in vm_template having id=100
- However we already have another System VM XenServer template downloaded in the upgrade process that gets different id.
- SSVM could not start because the vm_instance's templateId after the upgrade was set to '100' with the assumption that the Xenserver template with id=100 will be used.

Fix to upgrade script is:
-  we should not insert any entry in vm_template table for XenServer systemVM via the upgrade DB script. The latest XenServer template will get added in the upgrade process having name 'routing-xenserver-2.2.4'.
-  we should update the system VM's template_id in vminstance table to point to this ''routing-xenserver-2.2.4' template.
2011-04-13 18:09:22 -07:00
alena 9afee0bb46 bug 9433: update network_id (if 0 or NULL) in user_statistics table
status 9433: resolved fixed
2011-04-13 17:48:49 -07:00
alena 7acba22063 bug 9436: include page/pageSize/keyword to api xml doc for each list* command
status 9436: resolved fixed
2011-04-13 16:19:44 -07:00
anthony 8d36af0033 fixed NPE 2011-04-13 16:03:41 -07:00
alena 98be7ea0f7 bug 9425: fixed detached volume removal.
status 9425: resolved fixed
2011-04-13 15:52:55 -07:00
alena 6468b66317 bug 9420: update existing user_statistics records with device_id and device_type
status 9420: resolved fixed
2011-04-13 14:31:33 -07:00
prachi 5a73309e75 Bug 9387: Recreate system vms if template id changed....
Changes:
While starting a System VM:
- We check, incase the ROOT volume is READY, if the templateID of the volume matches the SystemVM's template.
- If it does not match, we update the volumes' templateId and ask deployment planner to reassign a pool to this volume even if it is READY.

In general:
- If a root volume is READY, we remove its entry from the deploydestination before calling storagemanager :: prepare()
- StorageManager creates a volume if a pool is assigned to it in deploydestination passed to it.
- If a volume has no pool assigned to it in deploydestination, it means the volume is ready and has a pool already allocated to it.
2011-04-13 13:54:08 -07:00
alena 2f73274811 Changed description for Destroyed volume state. 2011-04-13 13:00:41 -07:00
anthony e001436d94 fixed NPE when delete storagepool 2011-04-13 11:02:12 -07:00
Murali Reddy 3a1fe780cf Bug 9273 : resource counts going -ve
Fixing resource count getting -ve assert. resource count should not be decremented for system VM's.
2011-04-13 17:35:09 +05:30
prachi edda8e8032 More changes for Bug 9387:
- Update system vm_instance's template_id if it does not match the system vm template.
- Use _templateDao.findSystemVMTemplate to find the latest system vm template.
2011-04-12 18:31:46 -07:00
prachi e2451f6b15 More changes for 9387:
Checks in StorageManagerImpl :: prepare() method to avoid NPE's if DeployDestination passed in is null.
2011-04-12 18:31:37 -07:00
prachi fc35aed2c9 Bug 9387 - Recreate system vms if template id changed...
Changes:
- Planner must reassign the storage pool if the template id for system vms has changed.  StorageManager must then recreate the volume if the volume has been
reassigned.  This is needed to do automatic update of the system template.
2011-04-12 18:31:27 -07:00
Edison Su 711a19e7d3 move kvm/xenserver fence builder into oss 2011-04-12 17:12:40 -04:00
Chiradeep Vittal fe4d5845c2 bug 9330: ensure that console proxies are always created from the same hypervisor type 2011-04-12 15:15:01 -07:00
Chiradeep Vittal a9f88c5b0c bug 9330: discover system vm template for a given hypervisor type 2011-04-12 14:49:41 -07:00
Kelven Yang c54ec3a4de Fix a problem in userdata.sh to set permissions in .htaccess file, extra quot cause apache internal server error 2011-04-12 14:40:31 -07:00
alena d86487f74a SecurityGroupDao: do join with "nics" table instead of "user_vm" as we keep ip address information in nics. 2011-04-12 11:15:22 -07:00
alena 624d1c0438 DB upgrade: enable securityGroup for all Basic zones 2011-04-12 10:41:59 -07:00
nit 1bfde99462 bug 9347: Adding index and foreign key constraint for upload table for migration from 2.1 to 2.2
Status 9347: resolved fixed
2011-04-12 14:24:40 +05:30
will a2151207e6 bug 9395: Added missing </div> that caused Safari to not show certain elements when adding a Pod in the Add Zone wizard. 2011-04-11 19:22:37 -07:00
alena 5ee6a8757a bug 9378: db upgrade - update guest_os_id in vm_instance table for system vms.
status 9378: resolved fixed
2011-04-11 17:55:40 -07:00
alena 5de4f05a1c bug 9391: removed source_id, source_type from "volumes" table as we don't use them any more
status 9391: resolved fixed
2011-04-11 17:33:38 -07:00
anthony bd6661c3d2 bug 9392: don't lock domr entry, otherwise updating domr state fails
status 9392: resolved fixed
2011-04-11 16:08:05 -07:00
alena 90f79a8211 bug 9398: removed resource_type from volumes table as we no longer use it. Corresponding db upgrade scripts are updated
status 9398: resolved fixed
2011-04-11 15:25:34 -07:00
Chiradeep Vittal 4de0401608 bug 9330: ensure that existing system vms are updated to new xenserver template 2011-04-11 15:22:09 -07:00
Chiradeep Vittal e90f03c6c0 bug 9330: add kvm / vmware builtin template definitions 2011-04-11 14:49:45 -07:00
Chiradeep Vittal a8487454e8 bug 9330: add kvm / vmware system vm template definitions 2011-04-11 14:35:27 -07:00
alena 6bcf0dd51f bug 9396: removed status field from volumes table as this field is no longer used
status 9396: resolved fixed
2011-04-11 13:58:26 -07:00
alena 21f7b90a5b bug 9373: db upgrade - added missing constraints for user_ip_address table
status 9373: resolved fixed
2011-04-11 13:47:21 -07:00
prachi 04b9f7c7a5 Some more changes for Bug 8932 - add md5 sum to list templates call:
Also changed 'RegisterTemplate' to take in a new optional parameter 'checksum'.
The value set to it is stored as-is in the DB in vm_template table, 'checksum' column.
2011-04-11 13:30:35 -07:00
alena 6bd5fa1f9c bug 9374: removed guest_ip/mac/netmask info from user_vm table. This information is kept in nics table in 2.2.x
status 9374: resolved fixed
2011-04-11 12:21:18 -07:00
alena 77e183cc17 bug 9376: added missing constraints to vm_instance table
status 9376: resolved fixed
2011-04-11 10:35:45 -07:00