Commit Graph

51 Commits

Author SHA1 Message Date
anthony c2d0420c97 bug 7882: if destroyVolume is called from listener, there is no UserContext, then cause NPE, add more check here
status 7882: resolved fixed
2011-01-05 18:29:35 -08:00
kishan ae87c21491 bug 7653: Remove created snapshot event after backing up already removed snapshot. Instead add Event when this snapshot is duplicated
status 7653: resolved fixed
2010-12-29 12:14:57 +05:30
alena 4a91643e1d bug 7647: don't hardcode userId for createVolume event when volume is created as a part of vm deployment
status 7647: resolved fixed
2010-12-28 19:07:52 -08:00
kishan c2405ebadd bug 7560: Removed stack trace from Snapshot delete event
status 7504: resolved fixed
2010-12-24 20:51:47 +05:30
prachi 79bf27ba6d Moved utility methods that convert comma-separated strings into a List and vice-versa, from ConfigurationManager to StringUtils.java 2010-12-23 16:41:23 -08:00
prachi a94e8db110 Bug 7473: host tags
Code changes and schema changes for adding/updating hostTags for hosts and serviceOffering. New local storage allocator 'HostTagBasedLocalStoragePoolAllocator' is added to search for storage pools that have associated hosts having the specified host tag.
2010-12-23 14:50:38 -08:00
prachi dcf335de6c Intial code changes and schema changes for adding/updating hostTags. Also some code for serviceOffering. 2010-12-23 14:22:05 -08:00
nit 0de8921d57 bug 5942,7164 : For pool allocation calculation while creating vm’s we consider templates but not on the dashboard - correcting that.
While creating a vm if a pool is not adequate to create the vm's volume then improving the misleading verbiage of the log message.
2010-12-20 15:07:12 +05:30
will aaa641066f Fixed the garbage collector for primary storage to now ignore any volumes that have been removed but doesn't have a storage pool ID. The case when this could happen is when the volume was attempted to be created on a storage pool but failed. 2010-12-09 19:45:00 -08:00
will b5ecb69c6a Fixed yet another problem where if the first volume creation failed on the storage pool, and was successfully created on a second storage pool, the VM would be attempted to be started on a host from the first storage pool. Obviously, this wouldn't work. 2010-12-09 18:07:11 -08:00
Kevin Kluge a6c278b700 add hack to set template physical size to 10 GB if we otherwise do not know the size and it claims to be larger than 10 GB. for local storage only. 2010-12-06 17:28:15 -08:00
abhishek 49251b0c41 backporting 7414 into 2.1.x 2010-12-03 10:12:35 -08:00
anthony bfed53ab3a bug 7158:
this is not a bug, the policy is not delete but in inactive status.
anyway, now the policy is delete,

status 7158: resolved fixed
2010-11-12 18:00:49 -08:00
anthony 5958a4469a bug 7149: merge from master 2010-11-12 15:00:27 -08:00
anthony 8d2bee85f2 bug 7149: find the correct host to start VM
the root cause is there is another volume entry for this VM, any the volume creation is failed, MS think the VM is created on storage pool 213

+----------------------------+-------------+-----------+---------------------+---------+---------+---------+
| 734 |          8 |         4 |     213 |         652 |         0 | i-8-652-VM-ROOT |          0 | NULL   | NULL                                 |      1 |              1 | NULL       | NULL    | ROOT        | STORAGE_POOL  | NULL      | NOT_MIRRORED |       NULL |               23 |           2 | NULL                       |           0 |         0 | 2010-11-10 16:08:09 | NULL    | NULL    | Failed  |
| 735 |          8 |         4 |     203 |         652 |         0 | i-8-652-VM-ROOT | 8589934592 | lvm    | 29308205-5472-46aa-b75e-cf992ca7718a |      2 |              1 | NULL       | NULL    | ROOT        | STORAGE_POOL  | LVM       | NOT_MIRRORED |       NULL |               23 |           2 | NULL                       |           0 |         0 | 2010-11-10 16:08:11 | NULL    | NULL    | Created |

status 7149:  resolved fixed
2010-11-12 12:46:26 -08:00
anthony c22afd71c2 bug 6987:
do not delete template from secondary storage in 2.1.x , it is needed by snapshot

status 6987: resolved fixed
2010-11-11 13:45:17 -08:00
anthony 1708e0a531 bug 7055: delete all snapshotschedule after restart
I tested this in master, but didn't in 2.1.x. they are different

status 7055: resolved fixed
2010-11-10 14:33:26 -08:00
anthony d695e0f5ba bug 7055: reschedule all policies after management server restart
test:
1. create policies for serveral volume.
2. stop management server
3. detele serveral rows in snapshot_schedule
4. start management server
5. check if the deleted row come back

status 7055: resolved fixed
2010-11-08 18:22:44 -08:00
alena da30ddbef7 bug 6777: get correct userId when save event for volumeDestroy command
status 6777: resolved fixed
2010-11-08 13:13:24 -08:00
anthony 3df5ec7981 bug 6987: root disk snapshot depends on template, if template is deleted, then you can not use the snapshot. this issue doesn't exist in 2.2. in this fix, template is not deleted from sencondary storage
test:

1. create a template
2. create a vm from this template
3. create several snapshots againg vm root dist
4. delete template
5, create vm from one of the snapshots
see if the issue is fixed

status 6987: resolved fixed
2010-11-04 11:39:20 -07:00
anthony 86d02eaa15 bug 6882: relink the child to parent after delete snapshot
change dd block size from 512 to 1M, make taking snapstho faster for iscsi primary storage

status 6882: resolved fixed
2010-11-03 15:59:16 -07:00
anthony 80a32ad031 remove heartbeat.log
don't create bond
2010-10-29 20:00:31 -07:00
anthony 173b30233d one more fix about deletestoragepool
set uuid of storagepoolvo to null
2010-10-15 14:20:27 -07:00
anthony 1b477750e0 DeleteStoragePool command fix
1. not delete SR in xenserver side, only delete it in database.
2. remove a storagepool,  adding it back fails
2010-10-15 13:57:59 -07:00
anthony b69d7d443a bug 6516: didn't consider it last snapshot is deleted but the new snapshot is empty
status 6516: resolved fixed
2010-10-12 16:55:54 -07:00
anthony 059077ce9f bug 6494: didn't call txt.commit before throwing exception, break the transaction
status 6494: resolved fixed
2010-10-11 11:10:09 -07:00
anthony 65bc9f95a8 should use _hostDao.listByCluster instead of _hostDao.listByPodId in some places 2010-10-08 18:07:53 -07:00
Chiradeep Vittal 0574b4ef45 Fix for system vms 2010-10-08 12:04:06 -07:00
anthony 7a0902fd74 bug 6440: reconnect host after setupcommand
status 6440: resolved fixed
2010-10-06 16:05:32 -07:00
anthony 12f07e1826 bug 6432: fixed
status 6432: resolved fixed
2010-10-06 15:10:24 -07:00
anthony 550ef02f9c bug 6402: template id of volume could be null
status 6402: resolved fixed
2010-10-05 16:44:40 -07:00
kishan 30600d55b0 bug 6195: removed service offering Id for ROOT volumes in usage data 2010-10-01 13:51:12 +05:30
anthony 25f7d46aed bug 6332: remove the new snapshot if it is empty
status 6332: resolved fixed
2010-09-30 12:29:25 -07:00
anthony 394371eba6 bug 6326: correctly update poolsToAvoid
status 6326: resolved fixed
2010-09-29 18:30:57 -07:00
Alex Huang c5d0d806b4 dogfood checkin 2010-09-27 11:17:17 -07:00
anthony 1ab1bdf92f record used byte not available byte 2010-09-23 16:23:41 -07:00
anthony 93fac76bd9 bug 6181: ingore provisioning factor for iscsi primary storage
status 6181: resolved fixed
2010-09-22 20:32:27 -07:00
anthony c29a3a9a82 bug 6190: add rate limit for system VM, after you change rate limit, you need to restart managementserver to make it effect
status 6190: resolved fixed
2010-09-21 12:50:59 -07:00
kishan e06c588828 bug 6195,6255: Only ROOT volumes will have templateId. offeringId will be diskOfferingId for DATA volumes and serviceOfferingId for ROOT volume
status 6195,6255: resolved fixed
2010-09-21 18:43:48 +05:30
anthony be1185b5b3 fixed a bug about snapshot 2010-09-09 15:06:44 -07:00
anthony 72f027f463 bug 6119: some commands are supposed to take a longer time, set timeout for them to 120 min
status 6119: resolved fixed
2010-09-04 13:54:57 -07:00
anthony 74d91c5b3a need to execute addPoolToHost for each host to associate them with storage pool 2010-09-03 16:42:21 -07:00
anthony 1f518b4bc4 bug 5917: if checkSR failed, just return error, don't create the same SR again
status 5917: resolved fixed
2010-09-02 16:11:23 -07:00
anthony 40386f7c31 bug 3453: update template size in template-sync
status 3453: resolved fixed
2010-09-02 14:11:50 -07:00
anthony fea31133a3 Template size,
1. the size in template_pool_ref now is physical size.
2. template in storage pool is implemented as snapshot, fix x3  issue
3. fix x4 issue
2010-09-01 20:02:48 -07:00
abhishek 34741d2911 bug 6065: Fixing the issue with the account deletion, in the case where the account is deleted with the volume being created, but not having a pool id associated with it yet
status 6065: resolved fixed
2010-09-01 13:45:37 -07:00
anthony 01b2a32ed9 bug 6048: Check createvolume's return
status 6048: resolved fixed
2010-08-31 12:57:24 -07:00
Alex Huang a3ba8588bd bug 5772: suppose to return null on error 2010-08-27 16:41:32 -07:00
Manuel Amador (Rudd-O) 50459fd30f This is the REAL 2.1.x tip source 2010-08-11 18:48:43 -07:00
Manuel Amador (Rudd-O) 6484467ce2 Branch 2.1.x committed 2010-08-11 09:13:54 -07:00