416 Commits

Author SHA1 Message Date
kishan
7a810d1df1 bug 7451: Added network offering action events
status 7451: resolved fixed
2011-06-15 16:56:18 +05:30
kishan
2c24002de9 bug 8699: Added event for glabal config update
status 8699: resolved fixed
2011-06-15 12:40:23 +05:30
kishan
8ae65de6b3 bug 8699: Added event for glabal config update
status 8699: resolved fixed
2011-06-13 15:34:27 +05:30
alena
e74fef711c bug 9655: removed restriction for Direct networks - now can create 2 networks with diff vlans and the same subnet
status 9655: resolved fixed
2011-06-10 10:40:26 -07:00
alena
c66c3c5bf0 bug 9655: removed restriction for Direct networks - now can create 2 networks with diff vlans and the same subnet
status 9655: resolved fixed
2011-06-10 10:39:00 -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
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
8180e55469 bug 10199: don't allow network offering Name modification.
UI has to be fixed as well
2011-06-09 10:05:28 -07:00
alena
c57248aa4e bug 10199: don't allow network offering Name modification.
UI has to be fixed as well
2011-06-08 17:42:04 -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
Edison Su
9ec9d74514 zone can be deleted now 2011-06-02 12:33:37 -04:00
Edison Su
4a47d19c84 fix delete zone: many times, you just can't delete a zone, even you clean up all the resources 2011-06-01 20:26:29 -04:00
Alex Huang
2ceadec326 bug 9651: tags parameter added to createnetwork 2011-06-01 17:36:14 -07:00
anthony
7a266b9321 bug 10046: size in diskofferingVO is in type now
status 10046: resolved fixed
2011-05-26 13:51:08 -07:00
Abhinandan Prateek
5ad41e09ae bug 7553: Virtual Router service offering 2011-05-21 22:21:12 +05:30
Abhinandan Prateek
770e317218 bug 7553: Virtual Router service offering 2011-05-19 19:18:33 +05:30
prachi
b66b3f1c45 Bug 9584 - Delete pod - Failed - there are storage volumes for this pod
Changes:
- For 'volumes' and 'vm_instance' table, query needed to filter out the records with non-null 'removed' values
2011-05-05 11:05:48 -07:00
prachi
25fd7cd999 Merging changes from zonesfeature branch: Adding dhcp_provider parameter to UpdateZoneCmd 2011-04-28 23:28:14 -07:00
prachi
86b386e8c0 Merging changes from zonesfeature branch for Bug 8026 - discern proper cluster/pod/zone for added host (and refactor AgentManagerImpl)
- CreateZone API creates a zoneToken, inserts in DB and returns it in the
response

- UpdateZone API takes in 'details' map that is loaded to data_center_details
2011-04-28 23:08:58 -07:00
Murali Reddy
c12ccbd06f Bug 9534 : implement CPU cap
Introducing new boolean flag in service offering to restrict the user VM's CPU utilization to what service offering it is entitled for.
2011-04-27 13:54:45 +05:30
alena
1a6d78eae4 Code cleanup. No need to declare runtime exceptions (CloudRuntimeException, InvalidParameterException, PermissionDenied exceptions) 2011-04-21 16:26:53 -07:00
alena
4e5b6c902a bug 9498: allow zone deletion when it has pods having not NULL removed field
status 9498: resolved fixed
2011-04-18 17:30:45 -07:00
prachi
734e3f17c2 Bug 9331 - Even when there is no longer clusters in the pod, 'Delete Pod - Failed - because there are clusters in this pod'
Changes:
- Cluster entry is not removed from the table when a cluster is deleted because there are some foreign key constraints failing if the row delete is attempted. Instead the cluster is marked as 'removed'
- While deleting the pod changed the check to see if pod has any clusters - we now check that there are no clusters with removed column null.

- Also pod entry cannot be deleted from the db due to  foreign key constraints. So added 'removed' column to Pod table host_pod_ref
- Now on deleting a pod, the pod will be marked as removed and pod name is set to null.
2011-04-15 16:04:16 -07:00
Frank
105db3b15a Merge branch 'baremetal' to master
modifies:
	api/src/com/cloud/api/ApiConstants.java
	api/src/com/cloud/api/commands/AddHostCmd.java
	api/src/com/cloud/api/commands/CreatePodCmd.java
	api/src/com/cloud/api/commands/DeployVMCmd.java
	api/src/com/cloud/dc/Pod.java
	api/src/com/cloud/network/NetworkService.java
	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
	server/src/com/cloud/dc/HostPodVO.java
	server/src/com/cloud/network/NetworkManager.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	setup/db/create-schema.sql
	utils/src/com/cloud/utils/SerialVersionUID.java
2011-04-11 14:21:41 -07:00
Frank
0810831fd2 Bug 8208 - bare metal provisioning
set useexternalDHCP to false when creating pod
2011-04-11 10:41:45 -07:00
anthony
288a36d09f Merge branch '2.2.4'
Conflicts:
	api/src/com/cloud/configuration/ConfigurationService.java
	core/src/com/cloud/agent/resource/virtualnetwork/VirtualRoutingResource.java
	server/src/com/cloud/api/ApiDBUtils.java
	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
	setup/db/db/schema-21to22.sql
	setup/db/db/schema-222to224.sql
	utils/src/com/cloud/utils/exception/ExceptionUtil.java
2011-04-05 12:04:09 -07:00
alena
bf588166ed bug 7704: network limits cleanup.
status 7704: resolved fixed

For user vm:
* for default network, take limit from the corresponding service offering
* for all additional networks, take limit from the network offerings

For domainRouter/SSVM/CPVM:
* get info from the network offering

Added new config parameter: "vm.network.throttling.rate". If nw_rate is NULL for serviceOffering, this parameter would be used for default vm's network
2011-04-01 15:48:32 -07:00
prachi
492dd78f1c Bug 9180 - Default local SR on XenServer won't be used
- Update the diskoffering for system VMs to change the value of use_local_storage, when the global config 'system.vm.use.local.storage' is changed.
2011-03-31 23:11:11 -07:00
prachi
e139cff9f0 Bug 9180 - Default local SR on XenServer won't be used
- Update the diskoffering for system VMs to change the value of use_local_storage, when the global config 'system.vm.use.local.storage' is changed.
2011-03-31 23:05:50 -07:00
alena
5f4054325a bug 9248: generate events on service/diskOffering create/update/delete
status 9248: resolved fixed
2011-03-31 16:32:07 -07:00
alena
703537d222 bug 9248: generate events on service/diskOffering create/update/delete
status 9248: resolved fixed
2011-03-31 16:30:11 -07:00
alena
6d7f3da46a For VirtualRouter apply networkThrottling rate of the GuestNetworkOffering to both Guest and Public networks. 2011-03-30 14:53:04 -07:00
alena
bb31bc779f For VirtualRouter apply networkThrottling rate of the GuestNetworkOffering to both Guest and Public networks. 2011-03-30 14:49:15 -07:00
alena
90ec1dcd33 Allow to add Untagged network ranges to public virtual network in Basic zone 2011-03-29 19:44:12 -07:00
alena
efd4cfa297 bug 9201: listNetworkOfferings - return -1 when network_rate is Unlimited; if value is NULL - return global configuration value
status 9201: resolved fixed
2011-03-29 19:26:20 -07:00
alena
aab78874c7 bug 9201: listNetworkOfferings - return -1 when network_rate is Unlimited; if value is NULL - return global configuration value
status 9201: resolved fixed
2011-03-29 19:21:25 -07:00
alena
0c9e80eeab bug 8976: don't allow to delete pod when it has clusters
status 8976: resolved fixed
2011-03-24 17:10:01 -07:00
alena
2f782305fd bug 8897: allow to delete a zone when it has alerts
status 8897: resolved fixed
2011-03-24 15:00:17 -07:00
alena
dee2e59fb3 bug 8798: delete zone is fixed
status 8798: resolved fixed
2011-03-24 13:32:31 -07:00
prachi
514321cadf Bug 6873: disable/enable mode for clusters (and pods and zones and hosts)
Fixed problems in setting default 'allocation_state'. It is now set to 'Enabled' by default if not provided in the API command.
2011-03-24 12:54:51 -07:00
prachi
923f562aa8 Bug 6873: disable/enable mode for clusters (and pods and zones and hosts)
- Added a new flag 'allocation_state' to zone,pod,cluster and host
- The possible values for this flag are 'Enabled' or 'Disabled'
- When a new zone,pod,cluster or host is added, allocation_state is 'Disabled' by default.
- For existing zone,pod,cluster or host, the state is 'Enabled'.
- All Add/Update/List  commands for each of zone,pod,cluster or host can now take a new parameter 'allocationstate'
- If 'allocation_state' is 'Disabled', Allocators skip that zone or pod or cluster or pod.
- For a root admin, ListZones lists all zones including the 'Disabled' zones. But for any other user, the 'Disabled' zones are not included in the response.
- For any usecase that creates/deploys/adds/registers a resource and takes in zone as parameter, now we check if the Zone is 'Disabled'. If yes then the operation cannot be performed by a user other than root-admin. Add volume, snapshot, templates are examples of this usecase.
- To enable the root admin to test a particular pod/cluster/host, deployVM command takes in 'host_id' parameter that can be passed in only by root admin.
If this parameter is passed in by the admin, allocators do not search for hosts and use that host only. StoragePools are searched in the cluster of that host.
If VM cannot be deployed to that host, allocators and deployVM fails without retrying
2011-03-23 22:15:35 -07:00
alena
bbc5bdd83b Fixed NPE in diskOffering creation 2011-03-23 15:53:46 -07:00
Kelven Yang
b264866d2e Perform and alert management.network.cidr configuration on management server startup 2011-03-21 16:46:43 -07:00
alena
abb2e2b2ff bug 8831: partial checkin for Domain specific Networks (includes DB changes) 2011-03-21 15:05:07 -07:00
alena
729595d005 bug 9050: fixed create/deleteVlanRange generation
status 9050: resolved fixed
2011-03-18 18:12:52 -07:00
alena
a27c4881ea bug 7424: 0 value for network.throttling.rate global config param indicates that network throttling is disabled
status 7424: resolved fixed
2011-03-18 15:23:03 -07:00
alena
96e83fe97f bug 8146: Elastic IP support in Basic zone.
Following was done as a part of checkin:

1) NetworkOffering/Network:

* add PF service support for default Guest network offering.
* Add one more additional network - Public.
* Allow to enable external firewall in Basic zone.

2) Don't allow to deployVm in Public Network.
3) Allow to add vlan ip ranges to Public networks in Basic zone.
4) Associate IP - allow to associate with Direct vms.
5) Allow to create PF/Static nat rules. Rules are being sent to External Firewall Rule only.
6) Add PF support to External Firewall element.
2011-03-17 17:19:36 -07:00
alena
d3f04b2b38 bug 8945: introduced "default.page.limit" config param (default value is 500). Used for pagination in API list* commands.
status 8945: resolved fixed
2011-03-15 15:06:52 -07:00
Frank
ffb900fc86 Bug 8208 - bare metal provisioning
Add useExternalDhcp option to createPodCmd
2011-03-14 16:42:59 -07:00
alena
3448513465 bug 8666: perform RFC1918 check for cidr of Guest Virtual cidr when 1) Create/Update zone 2) Create guest virtual network
status 8666: resolved fixed
2011-03-10 14:06:43 -08:00