Commit Graph

467 Commits

Author SHA1 Message Date
nit 2e5afd4684 bug 9922 : My ISOs shouldnt list Featured ISOs when the user is not the owner of those isos.
status 9922: resolved fixed
2011-06-07 12:25:08 +05:30
anthony 1fb75c57e7 bug 10100 : if there are more than one hypervisor type in one zone, create_template_from_snapshot may be sent to host with diferent hypervisor type
status 10100 : resolved fixed

Conflicts:

	server/src/com/cloud/storage/StorageManager.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-06-01 15:37:54 -07:00
anthony 36a04e4343 bug 10023: only set ip route for internal DNS
merge to 2.2.4 branch

status 10023: resolved fixed
2011-06-01 10:50:36 -07:00
anthony b9fdb44000 fixed snapshot limitation issue 2011-05-24 14:54:16 -07:00
alena ac8c79314d bug 9827: call destroyVolume() method only after ensuring that the volume is not destroyed already.
status 9827: resolved fixed

also added an assert to the method itself to throw a warn if the method is called for destroyed volume
2011-05-11 14:07:05 -07:00
Edison Su 714cd00999 fix system vm template download issue 2011-05-10 15:57:08 -04:00
Alex Huang 5bc92ecf4f bug 9811: Brought over Prachi's fixes for the investigator and changed them to handle multiple nics 2011-05-10 05:32:11 -07:00
alena 4a8cda414c bug 9796: throw an exception when try to create volume/template from the non-ready snapshot
status 9796: resolved fixed
2011-05-09 16:33:06 -07:00
anthony b7703161a7 bug 9774: listsnapshot returns all snapshots with status
status 9774: resolved fixed
2011-05-06 18:31:16 -07:00
alena 2eeb03db42 bug 9774: display non-ready templates. Added "state" field to all snapshot* api responses. 2011-05-06 16:42:47 -07:00
anthony 385f6ed04b typo fix 2011-05-05 14:35:26 -07:00
alena 6502171f39 bug 9663: do account permission check against the volume when create snapshot
status 9663: resolved fixed
2011-05-03 11:33:35 -07:00
Alex Huang cbc26756d8 bug 8745: we decided on not implementing revert on the agent because it really requires business logic above. Stop if the checkSsh doesn't work 2011-05-02 14:26:29 -07:00
alena b808604dde bug 9623: set ha_enable to false for consoleProxy vms and service_offering.
status 9623: resolved fixed

Also set ram_size to 1024 for console proxy offering during the upgrade
2011-04-29 11:38:53 -07:00
Alex Huang 204370fa8b bug 9643: connect pool is only for shared access 2011-04-29 11:05:56 -07:00
Alex Huang 124274ec80 Removed a potentially dangerous 2011-04-29 11:05:55 -07:00
Alex Huang b273d74c35 bug 9456: added the host id that was already tried to avoid list. Added more debug logs in case that condition happens. 2011-04-28 14:43:44 -07:00
prachi fc784f1530 Bug 9585 - Existing Data Disk is being destroyed and recreated on Stop and Start of a User VM.
Changes:
- When the ROOT volume of a VM is found to be READY, changed planner to reuse the pool for every volume(root or data) that is READY and that has a pool not in maintenance and not in avoid state
- If ROOT volume is not ready, we dont care about the DATA disk. Both would get re-allocated.
- When a pool is reused for a ready volume, Planner does not call storagepool allocators. And such volumes are not assigned a pool in the deployment destination returned by the planner. Accordingly StorageManager :: prepare method wont recreate these volumes since they are not mentioned in the destination.
2011-04-27 11:56:14 -07:00
Kelven Yang b8d9513309 bug 9605: exclude virtual interfaces when searching for cidrs 2011-04-26 17:52:31 -07:00
Alex Huang d5c7258b71 bug 9597: Fixed the recreatable problem. Also added the 2.2.1 upgrade step 2011-04-26 15:43:43 -07:00
Alex Huang f6258dae08 bug 9445: Signal alert for the host if a primary storage pool was unavailable on that host 2011-04-26 15:14:55 -07:00
prachi ee598d44c5 Bug 9548 [Cloud Stack Upgrade - 2.1.8 to 2.2.4] System VM's Volumes Recreation is not happening on an event of New Volume creation Failures
Changes:
- Reason was that the old volume's templateId was being updated before volume creation was attempted. So on the retry, we dint find a difference in volume's templateId and VM's templateId and did not enter the recreation logic.

- Fix is to update the new volume's templateId with the VM's templateId while creating the new volume. The old volume's templateId stays the same and the volume is marked as 'Destroy' when a new volume is created.
2011-04-26 11:55:05 -07:00
alena c8f4dacb0a bug 9550: get storagePool to Host mappings before doing processDisconnect because these references are being deleted as a part of processDisconnect call.
status 9550: resolved fixed
2011-04-23 18:34:39 -07:00
anthony eccec4ff11 bug 9541: fix one snapshot DB migrate, one java check and one script typo
status 9541: resolved fixed
2011-04-22 12:50:40 -07:00
root c8d5ef8c29 Merge branch '2.2.4' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.2.4 2011-04-21 09:59:48 +05:30
Abhinandan Prateek b979b782c1 bug 9487: race condition in taking ownership 2011-04-21 09:20:50 +05:30
alena e5286339f1 bug 9521: fixed NPE in finalizeCommandsOnStart() method by adding vm's nic to vm profile during the vm to vmProfile conversion.
status 9521: resolved fixed
2011-04-20 16:16:27 -07:00
Abhinandan Prateek 48eebe8e7a bug 9503: race condition in taking ownership of a Host when a Management server is restarted
status 9503: resolved fixed
2011-04-20 16:37:12 +05:30
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
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
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
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
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
anthony e001436d94 fixed NPE when delete storagepool 2011-04-13 11:02:12 -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
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
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 a8487454e8 bug 9330: add kvm / vmware system vm template definitions 2011-04-11 14:35:27 -07:00
Murali Reddy 95cd5b6f3b bug 9273: [Stress Test] 'Count' in resource_count table has negative values
changing destroy volume logic to decrement volume resource count only for user vm's
2011-04-09 02:01:54 +05:30
anthony 5353e4abac hostid and poolid may overlap, fixed deletePoolStats 2011-04-05 16:01:30 -07:00
anthony db351f8cba bug 9249: use interval type , not snapshot type
status 9249: resolved fixed
2011-03-31 13:55:34 -07:00
anthony 436dccb6d7 bug 9189: fixed it in master, modifystoragepool doesn't try to create/import any more, will port it to 2.1.x 2011-03-28 19:11:20 -07:00
Alex Huang b2eda8c71b Changes to the planners 2011-03-28 09:48:33 -07:00
Alex Huang 9d158dc060 Removed the async create status for volume now that our customers don't use it 2011-03-24 20:04:23 -07:00
prachi 923f562aa8 Bug 6873: disable/enable mode for clusters (and pods and zones and hosts)
- Added a new flag 'allocation_state' to zone,pod,cluster and host
- The possible values for this flag are 'Enabled' or 'Disabled'
- When a new zone,pod,cluster or host is added, allocation_state is 'Disabled' by default.
- For existing zone,pod,cluster or host, the state is 'Enabled'.
- All Add/Update/List  commands for each of zone,pod,cluster or host can now take a new parameter 'allocationstate'
- If 'allocation_state' is 'Disabled', Allocators skip that zone or pod or cluster or pod.
- For a root admin, ListZones lists all zones including the 'Disabled' zones. But for any other user, the 'Disabled' zones are not included in the response.
- For any usecase that creates/deploys/adds/registers a resource and takes in zone as parameter, now we check if the Zone is 'Disabled'. If yes then the operation cannot be performed by a user other than root-admin. Add volume, snapshot, templates are examples of this usecase.
- To enable the root admin to test a particular pod/cluster/host, deployVM command takes in 'host_id' parameter that can be passed in only by root admin.
If this parameter is passed in by the admin, allocators do not search for hosts and use that host only. StoragePools are searched in the cluster of that host.
If VM cannot be deployed to that host, allocators and deployVM fails without retrying
2011-03-23 22:15:35 -07:00