538 Commits

Author SHA1 Message Date
anthony
bef3b480cd 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:44:37 -07:00
Alex Huang
c4a1a89388 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:46 -07:00
Nitin
b3957d525b 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 12:10:51 +05:30
alena
9c7aade3d1 bug 10733: fixed/added incorrect/missing keys in 228 to 229 upgrade
status 10733: resolved fixed

Conflicts:

	setup/db/db/schema-228to229.sql
2011-07-15 15:10:11 -07:00
Kelven Yang
281201be8e Make cluster request timeout to be configurable 2011-07-14 18:23:23 -07:00
alena
731c3bc20a 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
2011-07-14 16:28:13 -07:00
Kelven Yang
542ea6f0a6 bug 10702: add data migration for 2.2.7 to 2.2.8 migration 2011-07-13 14:13:27 -07:00
alena
62a570484c fix db upgrade from 2.2.6 to 2.2.8
Conflicts:

	setup/db/db/schema-227to228.sql
2011-07-08 09:51:50 -07:00
alena
27ef3a1d2d bug 10651: added missing keys to 227 to 228 db upgrade
status 10651: resolved fixed

Conflicts:

	setup/db/db/schema-227to228.sql
2011-07-08 09:49:19 -07:00
alena
4c075774a3 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:48:24 -07:00
Abhinandan Prateek
786420b439 bug 10651: added unique_name to network_offerings for 227->228 2011-07-08 20:53:00 +05:30
alena
9be9a970c9 bug 10409: added domainSuffix parameters to account/domain objects 2011-07-06 16:57:19 -07:00
alena
17f785f07a Intermidiate checkin for Projects feature; added 3 new apis - create/delete/listProject(s) - as a part of checkin 2011-07-01 13:19:12 -07:00
Alex Huang
27809e651e bug 10322: arrival of the next generation Merovingians 2011-06-29 12:02:53 -07:00
Kelven Yang
0059dd0e57 bug 10480, 10494: NPE fix in VirtualMachineManagerImpl, move keystore upgrade sql to upgrade225to226.sql 2011-06-28 14:57:02 -07:00
alena
8002834581 Fixed bug in the comment 2011-06-28 14:07:45 -07:00
alena
dc3e02ab3c 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:14 -07:00
alena
67be5512c8 Added upgrade path from 2.2.7 to 2.2.8 2011-06-24 11:31:08 -07:00
alena
784caafe2f bug 10407: db upgrade fixes for guest.domain.suffix
status 10407: resolved fixed
2011-06-22 18:01:02 -07:00
alena
1466d52a46 bug 10391: insert hypervisor.list config parameter during db upgrade (if not present already)
status 10391: resolved fixed
2011-06-22 17:49:39 -07:00
alena
0d1ab8f9af 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:19:52 -07:00
Abhinandan Prateek
79e38f0a1f 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:11:50 +05:30
Abhinandan Prateek
db29a56eaf bug 10313: marking default system offering as default so that they should not be deleted
status 10313: resolved fixed
2011-06-19 12:16:06 +05:30
Prasanna Santhanam
3ac0b568f5 typo. Should be simulator not XenServer 2011-06-15 19:18:14 +05:30
Sheng Yang
aef562c69d bug 9154: Replace domain_router.is_master with domain_router.redundant_state in DB
Then we can distingush BACKUP state from UNKNOWN state(which means we didn't get
valid answer from CheckRouterCommand).
2011-06-14 18:48:56 -07:00
alena
f40d21a80f No need to tream "return" char twice 2011-06-13 10:54:44 -07:00
alena
ef3ea765bf 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 18:10:44 -07:00
Prasanna Santhanam
4eb094bf9c adding templates file for the simulator 2011-06-10 20:07:43 +05:30
alena
99d1cb4718 bug 9519 : add index to avoid table locking
Conflicts:

	setup/db/create-index-fk.sql
2011-06-09 17:32:27 -07:00
alena
54ee9b0520 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 17:28:14 -07:00
alena
e7e5703184 DB upgrade merge from 224 branch 2011-06-09 17:19:27 -07:00
Alex Huang
dd8ca0cf72 host_address in storage_pool should not have gotten the change to char(40) 2011-06-09 17:14:51 -07:00
alena
f06818704b 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

Conflicts:

	server/src/com/cloud/offerings/NetworkOfferingVO.java
2011-06-09 13:34:50 -07:00
alena
ef5f0f5643 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:59:19 -07:00
alena
f81ddc1f7b 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
2011-06-08 11:55:36 -07:00
Sheng Yang
62ac899091 bug 9154: Initial check in for enabling redundant virtual router
This patch enable redundant virtual routers.

1. To enable this feature, db need to be updated using follow SQL by now(we
would get a UI way later):

UPDATE network_offerings SET redundant_router=1 WHERE guest_type="Virtual" AND
system_only=0;

2. System would try to start up two routers at different hosts. But if there is
only one host in the zone, system would start up two routers on it.

3. The failover part is using keepalived, and connection tracking part is using
conntrackd. There would be one master router and one backup router. The status
of router(master or backup) can be query from the database table domain_router
now. Management server would update the status every 30s by default.

4. The routers for the same zone would use same external NIC(same ip and mac).
The script used for fail-over would ensure only one external NIC present in the
network at any time.

5. Currently management server don't got the ability to stop one of router is
both of them reported as master. The feature is in the todo list.

After two routers start up, disconnect anyone of them, the guest network
shouldn't be affected, and established connection(http, ssh, etc.) should still
works. The fail-over on gateway part should be 3~4 seconds.

Currently the patch works with KVM. Would deal with vmware and XenServer soon.
2011-06-07 14:47:45 -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
alena
c12790ab32 Fixed upgrade bug related with multiple template entries in vm_template table - search only for the template having NULL Removed field. 2011-06-03 17:33:16 -07:00
Edison Su
b449b1e408 add on delete cascade for networks table 2011-06-02 13:41:35 -04:00
Edison Su
9ec9d74514 zone can be deleted now 2011-06-02 12:33:37 -04:00
Alex Huang
018b1c7ce9 Fixed problem that Kirk saw at upgrading between 2.2.3 and 2.2.5 at one of mour customers. The host address for storage pool is not an ip address and should not have been shrunk to 40 characters 2011-06-02 09:44:13 -07:00
Alex Huang
67ff27496d tags added 2011-05-31 09:48:34 -07:00
Frank
bc101b0abb Remove netapp table from OSS, it was in premium 2011-05-27 14:06:02 -07:00
nit
77de414c81 bug 9596 : Make the template extractable by default. Allow only a ROOT Admin to change the flag once a template is submitted/created (Done through updateTemplatePermissions)
status 9596: resolved fixed
2011-05-27 15:44:35 +05:30
anthony
7a266b9321 bug 10046: size in diskofferingVO is in type now
status 10046: resolved fixed
2011-05-26 13:51:08 -07:00