Commit Graph

2512 Commits

Author SHA1 Message Date
Murali Reddy 8ad3fbf9d2 bug 9785: events around VLAN assign/release
adding usage event for new VLAN allocation for the account from the zone vlans
2011-05-24 13:55:22 +05:30
Alex Huang 0dfc44582b bug 9651: Adding network tags
Also changes in Request logging.
2011-05-23 15:51:50 -07:00
Edison Su ba63e5d103 bug 9937: move use.local.storage to FOSS 2011-05-22 14:39:45 -04:00
Alex Huang d7f527f8ac get rid of compile error 2011-05-21 15:41:12 -07:00
alena 3d3bfcddaa bug 9858: added missing security checks to listAsyncJobs command
status 9858: resolved fixed

Conflicts:

	server/src/com/cloud/api/ApiServer.java
2011-05-21 15:00:50 -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
alena 30e8ed3ab6 Don't allow to specify security groups when deployVm in Vmware setup.
Also fixed a couple of other problems:
* verify security group ids before vm creation
* don't create "default" security group (if missing) as a part of deployVm process when vm is deployed from vmWare template
2011-05-20 18:52:58 -07:00
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
Abhinandan Prateek 7bb1d00d14 bug 7553: Virtual Router service offering 2011-05-20 11:22:30 +05:30
anthony 99be3718cf bug 3224:
multiple secondary storage, copying template between zone works
2011-05-19 19:07:44 -07:00
alena 24e86c109e bug 9941: fixed listVolumes api - use leftouter join with vm_instance table because instance_id is NULL for detached volumes
status 9941: resolved fixed

Conflicts:

	server/src/com/cloud/api/ApiResponseHelper.java
	server/src/com/cloud/server/ManagementServerImpl.java
2011-05-19 18:49:12 -07:00
alena 7bae4e3155 Fixed upgrade bug related with the fact that some db upgrade steps were missed in 2.2.0/2.2.1 to 2.2.2 db upgrade 2011-05-19 15:37:59 -07:00
Alex Huang 567d946ab0 template listing fix 2011-05-19 15:26:24 -07:00
alena 016a50633c bug 9939: create 'default' security group for default "admin" user only after ensuring that it doesn't exist already
status 9939: resolved fixed

Conflicts:

	server/src/com/cloud/server/ConfigurationServerImpl.java
2011-05-19 11:25:59 -07:00
Abhinandan Prateek 770e317218 bug 7553: Virtual Router service offering 2011-05-19 19:18:33 +05:30
Abhinandan Prateek 9de370be61 do not propogate password changes if Attache is ConnectedAgentattache 2011-05-19 19:18:33 +05:30
Murali Reddy 5769fde46b bug 7194:New API for adding range of public & private ports in port forwarding rule addition
adding support for port ranges in port forwarding rules.
2011-05-19 18:32:09 +05:30
kishan 6bd8cece48 bug 8830: added source template id to template usage records
status 8830: resolved fixed
2011-05-19 16:53:33 +05:30
alena 7ca66c132d bug 9934: implemented another way to check if the foreign key already exists
status 9934: resolved fixed
2011-05-18 20:38:55 -07:00
alena 5148725916 Fixed bunch of db upgrade bugs. 2011-05-18 17:38:49 -07:00
Alex Huang 2b650acc17 more gson crap 2011-05-18 11:01:46 -07:00
kishan bcd358b756 bug 8866: Use 86400 instead of 84600 for seconds in a day 2011-05-18 16:48:33 +05:30
alena 93bd3c8588 Added upgrade path from 224 to 225 to DbUpgradeChecker
Conflicts:

	server/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
2011-05-17 21:08:41 -07:00
Alex Huang 9c69a983ba session info within sequence numbers 2011-05-17 18:01:11 -07:00
anthony 8cdd8a01b1 multiple secondary storage fix 2011-05-17 16:47:27 -07:00
alena b963429063 Added upgrade from 224 to 225
Conflicts:

	server/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
2011-05-17 16:43:53 -07:00
anthony d380b55d23 multiple secondary storage fix 2011-05-17 16:10:30 -07:00
Alex Huang 0ba6091ca7 better way to log the agent request and response. Introduced the idea of via agents in the request header 2011-05-17 16:02:44 -07:00
Alex Huang e552f118af propagated bf8afdbc7af3c0e9fbc90c841fedec57ac7b8cdf 2011-05-17 16:02:44 -07:00
anthony 1501503656 multiple secondary storages fix 2011-05-17 16:01:35 -07:00
alena 392672b9f9 Updated schema file name for 2.2.5-2.2.6 upgrade 2011-05-17 15:28:33 -07:00
alena b5ab92af89 Upgrade from 2.2.5 to 2.2.6 2011-05-17 15:22:59 -07:00
alena 33bf819afc bug 9873: create default security group for the default admin
status 9873: resolved fixed
2011-05-17 15:08:13 -07:00
alena c2afcdec52 bug 9873: always add default security group to the SG list when deploy vm in 1) Basic zone 2) Advance zone using SG enabled network
status 9873: resolved fixed

Following fixes were made as a part of the checkin:

* When deploy user vm and SG doesn't exist in the DB, create it automatically.
* SecurityGroup enabled use vm start: if map to default group is not present in security_group_vm_map table, create one.
* Added "name" (securityGroupName) parameter back to deleteSecurityGroup/authorizeSecurityGroupIngress/deployVm. Mutually exclusive with security group id parameter.

Conflicts:

	api/src/com/cloud/api/commands/AuthorizeSecurityGroupIngressCmd.java
	api/src/com/cloud/api/commands/DeleteSecurityGroupCmd.java
	api/src/com/cloud/api/commands/DeployVMCmd.java
	server/src/com/cloud/api/ApiDBUtils.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-05-17 15:08:13 -07:00
anthony ef42b21c1d fixed template download 2011-05-17 15:00:10 -07:00
anthony 384f30101e fixed template download 2011-05-17 14:01:12 -07:00
alena b5aabfab75 bug 9898: fixed attachIso by domain admin - no need to make permission check when iso is public
status 9898: resolved fixed
2011-05-17 11:11:13 -07:00
Alex Huang ea9703997b proxy agent 2011-05-17 07:12:58 -07:00
anthony a19e5284d0 more check 2011-05-16 19:44:33 -07:00
alena efcb41ff28 Fixed listSystemVms api call to return consoleProxy and SSVM vms only if systemvmtype is not specified in the request 2011-05-16 17:55:38 -07:00
anthony 9c4964bc1b fixed merge 2011-05-16 16:54:00 -07:00
anthony a0357a6af0 multiple secondary storage
local secondary storage should work, didn't test yet
2011-05-16 16:37:15 -07:00
anthony d835067f40 multiple secondary storage support
template download works
creating snapshot works
creating volume/template from snapshot works
2011-05-16 16:37:15 -07:00
anthony ba6b2ca670 initial checkin for multiple secondary storage 2011-05-16 16:37:15 -07:00
Alex Huang eb4fd2fb53 Database upgrade from 2.2.2 to 2.2.4 was broken. 2011-05-16 16:32:08 -07:00
Alex Huang 4582f59d21 Database upgrade from 2.2.2 to 2.2.4 was broken. 2011-05-16 16:31:40 -07:00
keshav d66227d0fb Fixed method to refer to the right provider. 2011-05-16 15:14:55 -07:00
alena 308cbf91fc bug 9879: throw insufficient address capacity exception with pod information in it when fail to allocate public ip address in specific pod
status 9879: resolved fixed
2011-05-16 15:05:00 -07:00