546 Commits

Author SHA1 Message Date
Abhinandan Prateek
8a8cfe1388 bug 10866: Putting additional unique indexs on firewall_rules_cidrs to prevent duplicate rules.
Although the code has been tested for duplicate cidrs, the additional table constraint will add a further safegaurd for this condition.
2011-07-28 10:45:24 +05:30
Naredula Janardhana Reddy
e5ebd28743 bug 10557: updated upgrade script 2011-07-27 14:45:04 +05:30
Alex Huang
b0fdb94f5c added more indexes 2011-07-25 10:03:34 -07:00
Alex Huang
f4bab3b4db more index changes 2011-07-23 13:11:35 -07:00
Alex Huang
3385792081 missing indexes 2011-07-22 18:53:40 -07:00
Alex Huang
c8fc95e573 propagate db upgrade 2011-07-22 16:31:11 -07:00
Alex Huang
c1f7bb57b0 propagate indexes 2011-07-22 14:49:08 -07:00
alena
307741edcd 2 fixes for Agent Load Balancer:
* when management server dies and notifies other management servers about this, the running management server has to cleanup host_transfer records belonging to the died management server
* issue agent load balancing task only when agent load (number of connected agents in the system) exceeds "agent.load.threshold" - 70% by default

Conflicts:

	server/src/com/cloud/configuration/Config.java
	setup/db/db/schema-228to229.sql
2011-07-21 15:27:50 -07:00
anthony
3881e13387 bug 10197:
The step to upgrade xenserver,

1. put cluster in Unmanaged state through UI , then MS will not talk to hosts in the cluster
2. upgrade xenserver according to XenServer upgrade guide.
3. put cluster in Managed state through UI, then MS will reconnect hosts

TODO,

1. UI
2. vm pool sync , leveraged from kelven's work
2011-07-19 15:26:25 -07:00
alena
8b100f7c4d bug 10409: added domainSuffix parameters to account/domain objects
Conflicts:

	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/upgrade/dao/Upgrade228to229.java
	server/src/com/cloud/user/AccountManagerImpl.java
	setup/db/db/schema-228to229.sql
2011-07-19 11:10:52 -07:00
alena
e2eac341a4 bug 10710: Basic zone setup - send dhcp entries to all domRs (in every Pod) only when network.dns.basiczone.updates is set to "all"
status 10710: resolved fixed

Conflicts:

	server/src/com/cloud/configuration/Config.java
	server/src/com/cloud/vm/dao/DomainRouterDaoImpl.java
	setup/db/db/schema-228to229.sql
2011-07-19 10:33:34 -07:00
Alex Huang
b92208c91c bug 10756: Removed constraints for the op_host_capacity table. op_host_capacity table is a table that is frequently updated and is only used in the background. There's no real reason for it to maintain data integrity with other tables. This change may introduce problems where data center, cluster, or pod is deleted and there are capacities entries left. However, this really should be in the application logic to do this deletion rather than relying on the database schema. Be sure to test these cases and make sure there are no data left over. 2011-07-19 10:15:14 -07:00
Sheng Yang
44d4113ae6 bug 10429: backport redundant router
Part 2

commit 797839360c65cd348d2eb20630521177ab0919de
    bug 9154: redundant virtual router

commit 8ff7f230204d4d3a7a4adee75523a9a84f4276fe
    bug 9154: Replace domain_router.is_master with domain_router.redundant_state in DB

commit 230b99e9e0b152648f1dd2a5eab6f22315b8e7b4
    bug 9154: Add redundant state to DomainRouterResponse

commit ccefb5ff5e83d713798a347c99bce1a0d04b4317
    bug 9154: Add router fault state report

commit 7a3090378f9785caecf741b70554f6ea17c41764
    bug 9154: Send alert if found two virtual routers in master state

commit 66831056e4bf27665871bccd24e6159071564847
    bug 9154: Code clean up

commit bf3f58a85741fa7118bd848a42d8b21baa4478d4
    bug 9154: Add isRedundantRouter to DomainRouterResponse
2011-07-18 18:30:02 -07:00
Sheng Yang
4bc8686513 bug 10429: Backport redundant virtual router
Part 1

This backport contained:

commit 52317c718c25111c2535657139b541db0c9d1e1f
    bug 9154: Initial check in for enabling redundant virtual router

commit 54199112055d754371bfb141168fb5538bf6d6ea
    Add host verification for CheckRouterCommand

commit cef978a228c90056ead9be10cbc4de74c2b8de76
    Fix CheckRouterAnswer's isMaster report

commit 4072f0a6991ac3b63601a1764fbe14188965f62f
    Some build fixes and code refactoring for redundant router

commit 4d3350b7cd8ee2706a9bace4437fc194e36c8dd5
    Redundant Router: Fix OVS

commit 6a228830e7c46d819fa0c3317e159e041337e887
    Fix findByNetwork()/findByNetworkAndPod()'s return

commit c627777b3d5bdbcd60db4032cebd349a5b1ecd83
    Redundant Router: Fix isVmAlive()

commit e1275d2514adc41f8744f5107d4069c38be195f1
    Only issue CheckRouterCommand to redundant routers

And all modification to the scripts till
commit 4e3942462ed3fde3a3d7011e95839e2128fba514
logging changes

in the master branch.
2011-07-18 18:29:56 -07:00
Nitin
149c8d4b03 bug 9596: Extract Template/ISO - make extractable = false by default. Make changes to cleanup the extract URL's for multiple sec. storage.
status 9596: resolved fixed
2011-07-18 10:28:59 -07:00
alena
f67c771410 bug 10733: fixed/added incorrect/missing keys in 228 to 229 upgrade
status 10733: resolved fixed
2011-07-15 15:07:11 -07:00
alena
0d84cde633 bug 10409: added domainSuffix parameters to account/domain objects 2011-07-15 14:40:39 -07:00
Kelven Yang
61676ff3ea Make cluster request timeout to be configurable 2011-07-14 18:11:32 -07:00
Kelven Yang
398cea40e1 bug 10702: add data migration for 2.2.7 to 2.2.8 migration 2011-07-13 13:48:19 -07:00
Kelven Yang
72cbd65db2 bug 10668: add DB upgrade scripts for 2.2.7 to 2.2.8 upgrade 2011-07-08 18:12:13 -07:00
alena
70b1c69ef3 bug 10651: added missing keys to 227 to 228 db upgrade
status 10651: resolved fixed
2011-07-08 09:45:12 -07:00
alena
1bdc0de98c Revert "bug 10651: added unique_name to network_offerings for 227->228"
This reverts commit 5537e65129f669da7ca9a22e53cc3daa9e69ac97.

Reverting the fix because only the unique key was missing; the column was inserted as a part of 225 to 226 upgrade
2011-07-08 09:19:05 -07:00
Abhinandan Prateek
57a05c79ab bug 10651: added unique_name to network_offerings for 227->228 2011-07-08 20:48:32 +05:30
Edison Su
d548e8fc38 fix db upgrade from 2.2.6 to 2.2.8 2011-07-01 19:16:14 -07:00
Alex Huang
cbee5a6044 bug 10322: arrival of the next generation Merovingians 2011-06-29 12:01:43 -07:00
Kelven Yang
1edf772f92 bug 10480, 10494: NPE fix in VirtualMachineManagerImpl, move keystore upgrade sql to upgrade225to226.sql 2011-06-28 15:00:34 -07:00
alena
33624efd2f Fixed bug in the comment 2011-06-28 14:07:28 -07:00
frank
317c1cc5c9 DB Upgrade: Add external_dhcp column to hot_pod_ref table 2011-06-28 14:06:45 -07:00
alena
dc535b96a2 bug 10475: cloud-sysvmadm - stop routers in multiple threads. Default number of threads is 5.
status 10475: resolved fixed

Also added support for logging. By default the logs go to cloud.log file under current dir; you can specify another log location using -l option
2011-06-28 11:14:36 -07:00
alena
56799fcbaa Added upgrade path from 2.2.7 to 2.2.8 2011-06-24 12:07:33 -07:00
alena
d8c39cc59e bug 10407: db upgrade fixes for guest.domain.suffix
status 10407: resolved fixed
2011-06-22 17:59:00 -07:00
alena
3b2015453c bug 10391: insert hypervisor.list config parameter during db upgrade (if not present already)
status 10391: resolved fixed
2011-06-22 17:48:34 -07:00
alena
be5707b26e Db upgrade:
* remove lb to vm mappings for Removed vms (result of the bug in 2.1.x when mappings weren't removed during the vm expunge)
* encode.api.response is false by default
2011-06-22 15:18:05 -07:00
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
alena
975809b4e8 No need to tream "return" char twice 2011-06-13 10:53:42 -07:00
alena
cd7c74538b bug 9697: encode api response values
status 9697: resolved fixed

Do encoding for ASCII chars only (done to eliminate problems with multiple language support)
To disable encoding, set "encode.api.response" to false
2011-06-10 17:45:15 -07:00
alena
85af11fac9 bug 9519 : add index to avoid table locking
Conflicts:

	setup/db/create-index-fk.sql
2011-06-09 18:05:14 -07:00
alena
d8ceebffe5 bug 9618: fixed a upgrade, resouce name is changed to XenServer56FP1Resource
status 9618: resolved fixed

Conflicts:

	setup/db/db/schema-222to224.sql
2011-06-09 18:05:14 -07:00
alena
5116abbcc5 DB upgrade merge from 224 branch 2011-06-09 18:05:14 -07:00
Alex Huang
f7dcbd75e3 host_address in storage_pool should not have gotten the change to char(40) 2011-06-09 18:05:14 -07:00
alena
4fdb6186af Revert "bug 10199: don't allow network offering Name modification."
This reverts commit 97f2b9936a8b9e3a057116d327b058253458b4ef.

Use the following solution instead:

* add unique_name field to the network_offerings table. Use this filed as a unique offering identifier in the code
* Added db upgrade steps to 225to226 sql script
2011-06-09 13:32:53 -07:00
alena
357e05f5c7 Handle 2.1.x bugs when do 21x to 22x DB upgrade:
* remove records from load_balancer_vm_map if the parent record is missing in load_balancer table
* remove user vm records from vm_instance table when corresponding record is missing in user_vm table
2011-06-08 14:58:59 -07:00
alena
8948c3dd84 1) listNetworks for domain level network case: fixed search to do multiple joins between the tables instead of querying all the data and making search for each entry.
2) Added new config parameter 'allow.subdomain.network.access' - default value is true. If it's set to false, the child domain can't use the network of the parent domain

Conflicts:

	server/src/com/cloud/network/NetworkManagerImpl.java
2011-06-08 12:00:19 -07:00
alena
27d6020569 Ant target for apiDocs building 2011-06-07 11:21:07 -07:00
alena
64252b48f2 bug 10166: drop account_id/domain_id fields (if exist) in domain_router table
status 10166: resolved fixed
2011-06-06 13:55:50 -07:00
alena
9a2cc8008b Db upgarde: changed 225-226 to be 226-227 2011-06-06 13:55:50 -07:00
alena
0830f71bae Fixed the name for system vm template 2011-06-06 13:55:50 -07:00
alena
14cdc7de14 bug 9127: covered failure scenarios for agent LB.
status 9127: resolved fixed

The feature is completed; please file separate bugs if any issue arises during the testing.
Wiki link describing how agentLB works: http://intranet.lab.vmops.com/engineering/release-2.2-features/agent-load-balancing
2011-06-05 17:35:30 -07:00
Alex Huang
d9e0bcfa1e bug 10126: Renamed getPodId() to getPodIdToDeployIn() 2011-06-03 22:17:08 -07:00