485 Commits

Author SHA1 Message Date
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
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
Edison Su
638fdca138 add db schema 2011-05-25 15:46:13 -04:00
anthony
2fdedfa14a db upgrade for multiple secondary storages 2011-05-25 14:15:43 -07:00
alena
fc04d71e1f 225-226 DB upgrade for agent LB schema 2011-05-25 10:06:36 -07:00
alena
55692fd7cf bug 9127: intermediate checkin for agent load balancer 2011-05-24 18:45:00 -07:00
keshav
5699f0b3c5 Added shared_source_nat_service column to upgrade script. 2011-05-24 10:45:57 -07:00
Alex Huang
0dfc44582b bug 9651: Adding network tags
Also changes in Request logging.
2011-05-23 15:51:50 -07:00
Abhinandan Prateek
5085cfd900 bug 8115: Source IP filtering in Virtual Router
schema change added to upgrade
2011-05-23 10:26:06 +05:30
Abhinandan Prateek
5ad41e09ae bug 7553: Virtual Router service offering 2011-05-21 22:21:12 +05:30
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
Abhinandan Prateek
770e317218 bug 7553: Virtual Router service offering 2011-05-19 19:18:33 +05:30
alena
5148725916 Fixed bunch of db upgrade bugs. 2011-05-18 17:38:49 -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
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
anthony
ba6b2ca670 initial checkin for multiple secondary storage 2011-05-16 16:37:15 -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
Murali Reddy
5d3fae2fe4 bug 9250:Need a new Guest OS type for XenServer: "Other PV"
adding new guest OS type "Other PV"
2011-05-16 19:53:12 +05:30
keshav
435e178eef Added a new service to enabled zone-wide, shared source NAT rules. 2011-05-11 15:35:26 -07:00
alena
a58b4eafa4 bug 9807: insert hypervisor.list config value as a part of db upgrade
status 9807: resolved fixed
2011-05-09 16:02:54 -07:00
alena
e9bba1163f Fixed "ant deploydb" broken by b16e637306adb40202efe00fbff81090888df0dc 2011-05-09 10:30:39 -07:00
Abhinandan Prateek
2984b0607f bug 8115: source ip filtering
Created a table for source cidrs list.
Created necessary Daos and VOs.
Updated PortForwardingRulesDao to persist/update non null list of cidrs.
For deletion depending on ON DELETE CASCADE.
2011-05-09 17:41:50 +05:30
alena
fe3f74a56a DB upgrade - update LVM storage with correct cluster id 2011-05-06 17:50:50 -07:00
anthony
2d52813ff2 fixed build /start management server 2011-05-05 16:12:19 -07:00
anthony
10c4c14ad5 swift integration checkin 2011-05-05 13:55:29 -07:00
alena
275bab0d91 bug 9740: fixed DB upgrade for Direct Tagged networks in Advance zone
status 9740: resolved fixed

Conflicts:

	server/src/com/cloud/upgrade/dao/Upgrade218to22.java
2011-05-05 11:20:27 -07:00
alena
fbdb663970 Fixed bunch of DB upgrade bugs related with the fact that DB was manually upated in 2.1.x setup (some records were deleted from the DB) 2011-05-05 11:20:27 -07:00
alena
b1c3c8c1d9 bug 9734: update op_ha_work table in mysql file instead of java code
status 9734: resolved fixed
2011-05-05 11:20:27 -07:00
alena
dfd5d943cc bug 9690: DB upgrade - dropped unused keys
status 9690: resolved fixed
2011-05-03 14:33:55 -07:00
Murali Reddy
8a90f3665f Bug 8391: remove guest.ip.network global config param
removing unused global config parameters  guest.ip.network and guest.netmask
status 8391: resolved fixed
2011-05-03 13:14:00 +05:30
alena
5d332f0f30 bug 9688: remove orphaned lb/vm mappings as a part of db upgrade (there was a bug in 2.1.x when the LB rule was removed, but mapping was left in the DB)
status 9688: resolved fixed

To verify that the rule was removed:
* make sure that there is no record with lb id in load_balancer table
* verify that lb.delete event was generated for this rule
2011-05-02 19:05:27 -07:00
prachi
e365b0ac48 Bug 9505 - No indexes on op_dc_link_local_ip_address_alloc
Adding index to op_dc_link_local_ip_address_alloc.
Also added upgrade for 224 to 225
2011-05-02 17:11:34 -07:00
Alex Huang
c6c3748b0a Propagate fixes to master 2011-05-02 14:48:26 -07:00