Commit Graph

1275 Commits

Author SHA1 Message Date
Rohit Yadav 759b301341 CLOUDSTACK-1347: Don't enforce not null rule on queue_proc_time of sync_item_queue
In c63dbb8804 I removed the rule from create-schema:
-  `queue_proc_time` datetime COMMENT 'when processing started for the item',

But, upgrade path schema-40to410.sql had a different rule which caused the bug:
+ALTER TABLE `cloud`.`sync_queue_item` ADD `queue_proc_time` DATETIME NOT NULL
COMMENT 'when processing started for the item' AFTER `queue_proc_number`;

In this fix we just revert to whatever rule was defined in create-schema as the
developer may have forgetten to fix same rule in create-schema and upgrade path.
This commit can be reverted or the code be fixed if we want that queue_proc_time
cannot be null.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 4e72d84194cb79f5f067fbe4b2c874d36d2ae0e7)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-21 15:02:13 +05:30
Rohit Yadav 8d9412492c CLOUDSTACK-1312: Fix diversions between create-schema since 4.0 for 4.1 release
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 904561a1b0b969052286b7af0602465feb296d70)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-20 15:51:21 +05:30
Rohit Yadav 55271ab9e9 db: Remove create-schema-view.sql, views are created using schema-40to410.sql
- Remove create-schema-view.sql, views are created when mgmt server does rolling
  upgrade from 4.0.0 to 4.1.0
- Fix reference and usage of the sql file in scripts

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 31d6f03308)

Conflicts:
	setup/db/create-schema-view.sql

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-20 15:02:05 +05:30
Rohit Yadav 8d1c460448 db: Fix developer's deploydb and cloud-setup-databases for rolling update
- Fix developer prefill to use 4.0's schema
- Fix developer/pom.xml and cloud-setup-databases to not run create-schema-view,
  the upgrade path is configured to do a rolling update and set it up

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 16e81130cc)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-20 15:00:39 +05:30
Rohit Yadav 7ce22fc2b2 db: Fix commas which should be dots in create-schema, fix debug msg
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 44c8a33cf2)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-20 14:57:05 +05:30
Rohit Yadav d427e1ae0d db: Remove and merge 4.1-new-db-schema.sql to schema-40to410.sql
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit f2ae6dcda9)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-20 14:56:37 +05:30
Rohit Yadav 12b439baa6 db: Fix Upgrade40to41 and add cleaning path schema-40to410-cleanup.sql
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 46ab973143)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-20 14:52:37 +05:30
Sheng Yang 373c927a1e IPv6: Fix db upgrade path
All the table column should be modified before view was added
2013-02-19 21:23:59 -08:00
Sheng Yang 81db0c2076 IPv6: Add ipv6 for user vm view 2013-02-19 15:49:24 -08:00
Sheng Yang f3dae81daa IPv6: Add IPv6 for domain router view 2013-02-19 15:49:24 -08:00
Sheng Yang 87bb4dbff0 Add db upgrade path for ipv6 2013-02-19 11:54:43 -08:00
Kishan Kavala 3d3714c79b CLOUDSTACK-1295 : Added usage unit tests
Fixed Component annontation for usage parsers
Fixed mvn target to run usage
removed UsageServerComponentConfig which is not required
Added region_id to account table in cloud_usage db
2013-02-15 18:34:24 +05:30
Marcus Sorensen d4d73bfc3f Summary: Fix hanging references to /var/lib/cloud, changed to /var/cloudstack
BUG-ID: CLOUDSTACK-1201
BUG-ID: CLOUDSTACK-1196
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1360786749 -0700
2013-02-13 13:31:48 -07:00
Rohit Yadav e3156a6e16 CLOUDSTACK-1226: Fix 4.1-new-db-schema.sql, use cloud before exec statements
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-11 16:42:48 +05:30
Rohit Yadav a880f47fc5 CLOUDSTACK-1019: Load 4.1-new-db-schema.sql when setting up databases
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-11 15:25:19 +05:30
Rohit Yadav e97bc4baed CLOUDSTACK-1222: Remove double quotes in upgrade script s/"//g
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 0895c34002)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-11 14:07:23 +05:30
Min Chen f589d61334 Move Api rate limit configurations from xml file to global
configuration, and also modify listCapabilitiesCmd to also return api
limit interval and max for UI consumption.
2013-02-07 23:48:15 -08:00
Hugo Trippaers f82849d249 This database file does not exist anymore
(cherry picked from commit 798c7c2c18)

Signed-off-by: Hugo Trippaers <trippie@gmail.com>
2013-02-05 21:13:59 +01:00
Kelven Yang 296c20332d Merge javelin into master 2013-02-01 14:40:45 -08:00
Kelven Yang 7b75f0d990 Sync master to javelin one more time 2013-02-01 11:37:33 -08:00
Likitha Shetty 13ee8d1865 Persistent Networks support
Signed-off-by: Murali Reddy <murali.reddy@citrix.com>
2013-02-01 15:10:06 +05:30
Kishan Kavala fc925022bd Upgrade changes for Region schema. Made region_id not null 2013-02-01 13:49:57 +05:30
Kanzhe Jiang 736b236eaf bigswitch controller support
Reviewed-by: Chiradeep Vittal <chiradeepv@gmail.com>

Signed-off-by: Murali Reddy <murali.reddy@citrix.com>
2013-02-01 12:42:04 +05:30
Kishan Kavala 9ea90c3359 Merge branch 'master' into regions
Conflicts:
	client/tomcatconf/components.xml.in
	server/src/com/cloud/api/ApiResponseHelper.java
2013-02-01 11:38:16 +05:30
Kishan Kavala 33b87d8985 CLOUDSTACK-686: Modified unique constraint to include physical_network_id 2013-02-01 07:54:31 +05:30
Kelven Yang 7bd8bec68a Sync javelin with master up to 894cb8f7d9 2013-01-31 17:20:19 -08:00
Sheng Yang 5cb9df91a1 Merge branch 'ipv6'
Conflicts:
	api/src/com/cloud/network/NetworkProfile.java
2013-01-31 15:07:33 -08:00
Kishan Kavala 8b1a5b1de2 - Separated RegionServiceImpl and RegionManagerImpl
- Added comments
- Changed package name to org.apache.cloudstack.region
2013-01-31 18:08:20 +05:30
Sheng Yang ed547d91f7 IPv6: Rename public_ipv6_address to user_ipv6_address 2013-01-30 17:05:47 -08:00
Kishan Kavala d3089ba2a5 Merge branch 'master' into regions 2013-01-29 11:50:49 +05:30
Kishan Kavala 158ee8b2fa Add sync entry to region_sunc table on region api failure 2013-01-29 11:49:23 +05:30
Kishan Kavala def9fd1f2e remove finduser, findaccount, finddomain APIs 2013-01-28 17:04:25 +05:30
Rohit Yadav 2fb346ab62
Merge branch 'master' into javelin 2013-01-27 05:20:49 -08:00
Sheng Yang bd4bc025d1 IPv6: Accept IPv6 parameter for createNetworkCmd
Also ass public_ipv6_address for ipv6 address management.

Extend nics and vlans for ipv6 address.

Add dependency to com.googlecode.ipv6(java-ipv6).

Modify dhcpcommand for ipv6.
2013-01-26 23:14:15 -08:00
Kishan Kavala c6ae19d12f Merge branch 'master' into regions 2013-01-25 18:49:47 +05:30
Kishan Kavala 1f57d925eb Apply API refactoring changes. Make changes to Regions API to work with new code 2013-01-25 18:41:59 +05:30
Rohit Yadav f56b96ad19 merge: Fast forward merge branch 'javelin'
FF merge commit due to recent merge of master and then Edison's commit.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-24 19:30:28 -08:00
Rohit Yadav 356866c72b Merge branch 'master' into javelin
- Fixed new join dao impls as spring components
- Fixed component context xml to load api rate limit checker
- Fixed root pom.xml for duplicate plugin
- Fixed list data centers method
- Fixed following conflicts:
	api/src/org/apache/cloudstack/api/command/admin/network/CreateNetworkOfferingCmd.java
	api/src/org/apache/cloudstack/api/command/user/offering/ListServiceOfferingsCmd.java
	api/src/org/apache/cloudstack/api/command/user/template/DeleteTemplateCmd.java
	api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java
	plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
	server/src/com/cloud/api/ApiDBUtils.java
	server/src/com/cloud/api/ApiServer.java
	server/src/com/cloud/api/query/QueryManagerImpl.java
	server/src/com/cloud/configuration/DefaultComponentLibrary.java
	server/src/com/cloud/server/ManagementServerImpl.java
	server/src/com/cloud/storage/swift/SwiftManagerImpl.java

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-24 19:18:53 -08:00
Edison Su 6f5655cb03 generalize storage orchestration: DataObjectManager will handle all the object life cycle management 2013-01-24 18:30:08 -08:00
Alex Huang 8e2a96923c delete some old sql files 2013-01-23 17:18:54 -08:00
Min Chen 285e8213fe Add DB index to Alert.last_sent column to speed up listAlertsCmd. 2013-01-23 12:38:37 -08:00
Min Chen 26be5ce2df CLOUDSTACK-355: create DB view for ZoneResponse to fix count for
listZonesByCmd.
2013-01-22 16:39:45 -08:00
Edison Su c921118c58 add image create test case 2013-01-22 13:25:48 -08:00
Prachi Damle 1cb0ce44df Removing BareMetalService referrences. We will load UserVMService by default. 2013-01-22 12:54:20 -08:00
Prachi Damle 3cc9f3ff06 Adding defaults to new columns 2013-01-22 12:54:12 -08:00
Prachi Damle ef4d04f289 Removing the alter table statement - data_center already has a removed column 2013-01-22 12:54:09 -08:00
Prachi Damle e6cd47ddc0 More changes for deployVM flow. 2013-01-22 12:54:07 -08:00
Prachi Damle 94e8090bf3 Deploy, Start, Stop, Destroy VM orchestration service changes 2013-01-22 12:54:04 -08:00
Min Chen 2130a418e0 Formatting db view sql creation, and also addressed FIXME in Hugo's
change.
2013-01-22 10:08:57 -08:00
Hugo Trippaers 3bac7b8c07 Summary: Fix schema-40to410.sql
Applied some formatting

Changed invalid comment

Added workaround for non existing table vm_template_iso

Fix non prefixed table names in views

Removed 'use cloud' statement
2013-01-22 11:01:22 +01:00