Commit Graph

542 Commits

Author SHA1 Message Date
alena e0c74004f1 bug 10538: avoid duplicated config values insertion when multiple management servers start at the same time
status 10538: resolved fixed
2011-06-30 18:24:28 -07:00
anthony 5aba50deb9 bug 10511:
in template sync,

1. skip all templates with url null
2. if the template is private, and there is no record for this template in this secondary storage host, skip it

status 10511: resolved fixed
2011-06-29 20:02:14 -07:00
anthony 253ae79876 bug 10512: lock on snapshot entry instead of volume entry
status 10512: resolved fixed
2011-06-29 18:53:41 -07:00
anthony 43de3ec249 bug 10511: lock on snapshot entry instead of volume entry
status  10511: resolved fixed
2011-06-29 18:40:18 -07:00
anthony 446d08187b fixed several template issues
merge createtemplateresponse and createteisoresponse

on UI template
only show template corresponding hypervisor exists
2011-06-29 15:56:01 -07:00
anthony 260e4dbb51 list template will list ready template if there is, if not, list in progress, if not list other 2011-06-28 19:03:46 -07:00
anthony 90cdf16509 fixed template checksum command 2011-06-28 19:03:46 -07:00
anthony f85fb432ba fixed a template creation bug 2011-06-28 17:55:21 -07:00
anthony 1e7399dd19 set correct secondary storage host id in snapshot table 2011-06-28 14:08:18 -07:00
alena 41f12eb642 Pass isForRebalance parameter to processConnect method of all the listeners - some listeners don't have to be notified when connection happens as a a part of Agent Rebalance process (VirtualMachineManagerImpl listener for instance) 2011-06-27 10:20:41 -07:00
alena 0bf34f3612 bug 10447: don't notify VirtualMachineManager listener when do host rebalance - vm sync is not needed in this case.
status 10447: resolved fixed
2011-06-27 10:20:40 -07:00
Edison Su 28f0068151 add new option to force destroy vm when delete host, if the VMs are created on local storage 2011-06-23 20:36:13 -04:00
anthony 62249f3eae 1. return message to UI if adding primary storage failed
2. delete primary storage entry if if adding primary storage failed
2011-06-22 18:44:33 -07:00
Murali Reddy 34a36b7009 Bug 10012: Vague error event created when user attempted to exceed limit set for a given resource
status 10012: resolved fixed
2011-06-22 13:00:59 +05:30
Murali Reddy 83ee4e653c Bug 10174 - Should not return public and featured templates for accounts that do not have access to their respective zones
status 10174: resolved fixed
2011-06-21 19:20:25 +05:30
Abhinandan Prateek 976aab77bb bug 10305: for a systemvm only applicable system vm offering should be displayed
status 10305: resolved fixed
While creating a system vm offering specify the type. If no type specified the default to domainrouter.
While requesting a set of system offering specify the paramter systemvmtype.
2011-06-20 20:01:40 +05:30
Abhinandan Prateek cf15573d06 bug 10313: marking default system offering as default so that they should not be deleted
status 10313: resolved fixed
2011-06-19 12:30:07 +05:30
Murali Reddy 00bd79ffee bug 9419: implement api to reset resource count
adding couple of fixes
2011-06-16 19:01:03 +05:30
Murali Reddy c7e347e9a4 bug 9419: implement api to reset resource count 2011-06-16 19:00:42 +05:30
Murali Reddy aa4f654929 bug 9419: implement api to reset resource count
added a command to reset resource count for account/domain based on real usage of resources
2011-06-16 18:59:38 +05:30
Edison Su 83f0623f30 bug 10205: download user upload template for each local secondary storage
status 10205: resolved fixed
2011-06-15 16:41:51 -04:00
Edison Su dca3405b8b bug 10293: don't destroy volume if it's not created
status 10293: resolved fixed
2011-06-15 14:38:37 -04:00
kishan 090506d7f7 bug 9197: Added delete volume usage event when volume creation fails
status 9197: resolved fixed
2011-06-15 12:40:23 +05:30
Edison Su 36fa0fbf52 bug 10177: fix multiple local secondary storage: when we starting vm, only choose the local secondary storage that related to the planned computing host
status 10177: resolved, fixed
2011-06-08 11:14:59 -04:00
Edison Su 6540154420 listemplate should only list templates that owned by caller 2011-06-07 12:33:11 -04:00
nit 679159ccf4 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:22:49 +05:30
Alex Huang d9e0bcfa1e bug 10126: Renamed getPodId() to getPodIdToDeployIn() 2011-06-03 22:17:08 -07:00
anthony db6aa765a3 bug 10146 : fixed NPE
status 10146 : resolved fixed
2011-06-03 15:52:31 -07:00
Edison Su 94b3890542 fix the race condition for download template 2011-06-03 13:19:48 -04:00
Edison Su f7414b83aa fix listtempalte and listiso, if there are multiple secondary storage 2011-06-01 16:01:51 -04:00
anthony d02e4fb37f 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
2011-06-01 15:30:22 -07:00
anthony fed7d1ebdb delete secondary storage,
1. check if there are snapshotsin this secondary storage, if yes , fails
2. check if there are private templatesin this secondary storage , if yes, fails
2011-05-31 17:57:10 -07:00
Alex Huang 0ab12edd6c network tagging changes 2011-05-31 09:49:27 -07:00
Abhinandan Prateek b5aeb6fa0e bug 9909: upload manager support multiple secondary storage 2011-05-31 12:00:40 +05:30
Abhinandan Prateek d006fd141c bug 9909: upload manager support multiple secondary storage 2011-05-30 12:39:15 +05:30
Edison Su 59a6e2157a fix user data, and template sync 2011-05-27 19:44:26 -04:00
anthony 37c6314360 bug 10048: do NOT sync private template to other secondary storage in one zone
status 10048: resolved fixed
2011-05-27 17:10:27 -07:00
Edison Su 2279f8f962 fix register local storage: if host is reinstalled, local storage uuid is changed, we need to register a new local storage in db 2011-05-26 22:59:56 -04:00
anthony 7a266b9321 bug 10046: size in diskofferingVO is in type now
status 10046: resolved fixed
2011-05-26 13:51:08 -07:00
anthony 559c334eeb bug 9779: release lock for exception
status 9779: resolved fixed
2011-05-25 19:50:28 -07:00
anthony 37e6ded80c bug 10023: only set ip route for internal DNS
status 10023: resolved fixed
2011-05-25 17:39:20 -07:00
anthony 2fdedfa14a db upgrade for multiple secondary storages 2011-05-25 14:15:43 -07:00
anthony 4696e5066b fixed snapshot limitation issue 2011-05-24 14:55:19 -07:00
anthony 9d758866af bug 9958:
1. send purge command only once.
2. in downloadlistener, there are two hosts, one is secondary storage host, the other is secondary storage VM host for this secondary storage.

status 9958: resolved fixed
2011-05-24 14:17:03 -07:00
Edison Su 2f8235dbd2 fix local seconeary storage related issues(sync/download templates, etc) for mycloud 2011-05-21 12:05:02 -04:00
Abhinandan Prateek 5ad41e09ae bug 7553: Virtual Router service offering 2011-05-21 22:21:12 +05:30
anthony ce83525b5a bug 3224:
don't need to call abandon
2011-05-20 18:48:30 -07:00
anthony 5fa3f0fca8 bug 3224:
fixed a DB Exception

5-ThreadPoolExecutor.runWorker:1110-ThreadPoolExecutor$Worker.run:603; called by -Transaction.rollback:783-Transaction.removeUpTo:726-Transaction.close:549-DatabaseCallback.interceptComplete:72
2011-05-19 19:02:41,242 WARN  [utils.nio.Task] (AgentManager-Handler-1:null) Caught the following exception but pushing on
com.cloud.utils.exception.CloudRuntimeException: DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@4faae357: INSERT INTO usage_event (usage_event.type, usage_event.created, usage_event.account_id, usage_event.zone_id, usage_event.resource_id, usage_event.resource_name, usage_event.offering_id, usage_event.template_id, usage_event.size, usage_event.resource_type, usage_event.processed) VALUES (_binary'TEMPLATE.CREATE', '2011-05-20 02:02:41', 2, 2, 202, _binary'anth-te', null, 2, -1, null, 0)
        at com.cloud.utils.db.GenericDaoBase.persist(GenericDaoBase.java:1218)
        at com.cloud.event.dao.UsageEventDaoImpl$$EnhancerByCGLIB$$377dce70.CGLIB$persist$22(<generated>)
        at com.cloud.event.dao.UsageEventDaoImpl$$EnhancerByCGLIB$$377dce70$$FastClassByCGLIB$$30e2aaaf.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
        at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:35)
        at com.cloud.event.dao.UsageEventDaoImpl$$EnhancerByCGLIB$$377dce70.persist(<generated>)
        at com.cloud.storage.download.DownloadMonitorImpl.handleDownloadEvent(DownloadMonitorImpl.java:410)
        at com.cloud.storage.download.DownloadListener.setDownloadInactive(DownloadListener.java:358)
        at com.cloud.storage.download.DownloadCompleteState.onEntry(DownloadCompleteState.java:44)
        at com.cloud.storage.download.DownloadListener.transition(DownloadListener.java:240)
        at com.cloud.storage.download.DownloadListener.processAnswers(DownloadListener.java:224)
        at com.cloud.agent.manager.AgentAttache.processAnswers(AgentAttache.java:258)
        at com.cloud.agent.manager.AgentManagerImpl$AgentHandler.processResponse(AgentManagerImpl.java:2319)
        at com.cloud.agent.manager.AgentManagerImpl$AgentHandler.doTask(AgentManagerImpl.java:2334)
        at com.cloud.agent.manager.ClusteredAgentManagerImpl$ClusteredAgentHandler.doTask(ClusteredAgentManagerImpl.java:537)
        at com.cloud.utils.nio.Task.run(Task.java:85)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)
Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'size' at row 1
2011-05-20 17:12:48 -07:00
anthony 99be3718cf bug 3224:
multiple secondary storage, copying template between zone works
2011-05-19 19:07:44 -07:00
kishan 6bd8cece48 bug 8830: added source template id to template usage records
status 8830: resolved fixed
2011-05-19 16:53:33 +05:30