Commit Graph

4955 Commits

Author SHA1 Message Date
alena 9e753c2157 specifyVlan is true for Shared (Direct) network offering 2011-11-03 10:53:19 -07:00
alena 9e5a733a34 Fixed NPE in updateNetwork - userCaller wasn't passed in to restartNetworkElements call 2011-11-03 10:53:19 -07:00
Kelven Yang f5d56b3d5d Fix problems caused by merging 2011-11-03 10:35:25 -07:00
Kelven Yang 7e9b210d5c bug 6745: Fix problems in Async create commands 2011-11-03 07:34:02 -07:00
Kelven Yang 79e39c20fb Fixes on merged result 2011-11-03 07:34:01 -07:00
Kelven Yang 924e556c95 bug 6745: Using UUID instead of integers - for all commands 2011-11-03 07:34:00 -07:00
Kelven Yang 8d8775b533 bug 6745: Using UUID instead of integers - for Async Jobs 2011-11-03 07:33:58 -07:00
Kelven Yang 6f14bdc361 bug 6745: Using UUID instead of integers - for System VM s 2011-11-03 07:33:57 -07:00
Kelven Yang fa2dd8e93a bug 6745: Using UUID instead of integers - for VM instances 2011-11-03 07:33:56 -07:00
Abhinandan Prateek fab2d1f880 bug 11678: added vm.destory.forcestop config var to set force when destroying a vm 2011-11-03 15:51:02 +05:30
Abhinandan Prateek 267b12d015 bug 11709: saving encrypted password in db
status 11709: resolved fixed
2011-11-03 15:40:20 +05:30
Sheng Yang 4a960f2912 NaaS: Update VirtualRouterElement on StaticNat and PortForwarding services 2011-11-02 19:26:42 -07:00
Sheng Yang 29b19db152 NaaS: Fix createNetworkOffering with multiply service providers 2011-11-02 19:08:49 -07:00
Sheng Yang b646f07f9c NaaS: Add back service offering ID for network offering
It would be used to adjust service offering of virtual router
2011-11-02 19:08:37 -07:00
anthony b4f8c85f20 Swift: add Swift Manager 2011-11-02 18:45:55 -07:00
Edison Su 6841e265d3 bug 10330: finally merge Rommer's CLVM patch
status 10330: resolved fixed
2011-11-02 18:03:58 -07:00
alena 3e20c60d6d Fixed vm deployment in Basic zone 2011-11-02 17:02:44 -07:00
alena f42c9e434f Basic zone: the System Guest network offering can be created from any Shared Guest network offering.
Limitation:
* in order to make the networkOffering choice, only one Shared network has to be Enabled at the moment when Basic zone is being created
2011-11-02 15:44:53 -07:00
Sheng Yang 3fc9b149e4 NaaS: Add portforwarding and staticnat service provider
Make them service rather than capability of firewall. Now firewall only means
open/close the port.
2011-11-02 15:18:39 -07:00
frank b643a9a4be Bug 11808 - Allow additional non-default virtual networks
completed Java code change, need UI change in line with
2011-11-02 14:36:45 -07:00
alena 4ce2bf2f89 SourceNat service is supported for Isolated network offerings only 2011-11-02 11:52:23 -07:00
kishan 765e46d3a7 bug 11770: throw error when account is not found in default root domain
status 11770: resolved fixed
2011-11-02 15:11:47 +05:30
anthony 09d89b3dc3 add more logs 2011-11-01 19:34:39 -07:00
frank 086e7cf7b8 Bug 11646 - OVM - volume > download volume failed for both ROOT and DATA volumes
return volume name instead of full path to ingratiate mgmt server's bad name convention
2011-11-01 18:14:38 -07:00
prachi 6aa743165a Changes to support Enable/ Disable services of a service provider added to physical network:
- ListSupportedNetworkServiceProvidersCmd will now return Providers along with its element's services and boolean 'canEnableIndividualServices' that indicates if for this Provider services can be enabled/disabled
- add & update NetworkServiceProvider changed to take in the list of services to enable. While adding a provider, if list is null then all services supported by the element are enabled by default.
- ListNetworkServices enhanced to take in a provider name and returns services of that specific provider.
2011-11-01 18:03:55 -07:00
alena 2250dff349 1) Removed tags from the network object
2) Get hypervisor tags from the physical network instead.
2011-11-01 17:42:06 -07:00
Alex Huang da78937d30 Removed some useless methods 2011-11-01 16:57:22 -07:00
frank 45b41e4603 Disable baremetal fullsync
*    Disable sync until we find a way that only tracks status but not does action
   *
   *    The scenario is: Baremetal will reboot host when creating template. Given most
   *    servers take a long time to boot up, there would be a period that mgmt server finds
   *    the host is stopped through fullsync. Then mgmt server updates database with marking the host as
   *    stopped, after that, the host comes up and full sync then indicates it's running. Because
   *    in database the host is already stopped, mgmt server sends out a stop command.
   *    As a result, creating image gets never happened.
2011-11-01 16:46:19 -07:00
alena 9560e92015 physicalNetworkId is optional in createNetwork api. Works as follows:
* can be specified for Shared network only
* if not specified for the Shared networks, try to locate it based on the zoneId and tags. If tags is not null, pick up first physicalNetwork from the zone that has matching tags. If tags is null, and there are none/more than 1 physical netwroks in the zone, error out.
2011-11-01 15:49:39 -07:00
frank 56d3d04db4 Baremetal: bypass HA, only track VM status 2011-11-01 15:14:16 -07:00
alena caefd11d2c Network offering upgrade is allowed for Isolated networks only 2011-11-01 13:13:01 -07:00
alena be21a5e37c Don't allow enabling securityGroup service for Isolated networks 2011-11-01 13:09:14 -07:00
alena 346a6fe80a Fixed NPE. 2011-11-01 12:07:32 -07:00
alena 80dc2c0b1a Don't send security group commands to the backend when 1) securtiy group service is disabled in the network offering and 2) security group service provider is supported on the physical network 2011-11-01 12:07:32 -07:00
kishan a4e5e4de45 bug 11796: Catch all exceptions in network usage task and never exit the thread
status 11796: resolved fixed
2011-11-01 20:36:29 +05:30
kishan b1f78bca25 bug 5822, 10783: Use encryption/decryption for queries which use sql directly
status 5822, 10783: resolved fixed
2011-11-01 19:30:00 +05:30
kishan b40742fdae 30 premium upgrade should extend regular upgrade 2011-11-01 18:51:04 +05:30
kishan 18ef8ca3b4 bug 11173: Added usage for VPN users
status 11173: resolved fixed
2011-11-01 17:01:48 +05:30
Sheng Yang a43364f0a4 NaaS: Rename virtual_router_elements to virtual_router_provider 2011-10-31 15:59:53 -07:00
Sheng Yang cd3fbf0548 NaaS: Create AddVirtualRouterElementCmd
As DhcpElement/VirtualRouterElement/RedundantVirtualRouterElement is decided to
be the service provider of the physical network, this API should be called to
add a new element, with correlated network service provider ID.

Then e.g. ConfigureVirtualRouterElementCmd should be called to configure and
enable the element.
2011-10-31 15:59:44 -07:00
Sheng Yang 00bb63ac67 NaaS: Remove separate configuration fields for virtual router elements
The fields are duplicated with network offerings.
2011-10-31 15:59:36 -07:00
Sheng Yang 928fc64ebc NaaS: Enable VirtualRouterElement to deal with service separately 2011-10-31 15:59:31 -07:00
frank 09fc1be631 revert wrong fix of 24bcb4ddf210fbd4ca6032bb5aa6bd02f7480a73 that built-in templates can not be found
The root cause is we didn't return SSVM in connecting status when doing template sync
2011-10-31 15:26:44 -07:00
anthony 46dac852fa Merge branch 'swift'
Conflicts:
	server/src/com/cloud/agent/AgentManager.java
	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/host/dao/HostDao.java
	server/src/com/cloud/host/dao/HostDaoImpl.java
	server/src/com/cloud/resource/ResourceManagerImpl.java
	server/src/com/cloud/server/ManagementServerImpl.java
	server/src/com/cloud/storage/download/DownloadMonitorImpl.java
	server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
2011-10-31 15:04:48 -07:00
anthony 2f1e5504fb Revert "handle empty snapshot correctly"
This reverts commit 99f985783e960d1ef8712c8ff724862f688b461e.
2011-10-31 14:30:09 -07:00
prachi 549c7d2ef9 Added NetworkElement API's isReady() and shutdownProviderInstances() called by NetworkMgr while enabling/shutdown the service provider. 2011-10-31 13:09:54 -07:00
anthony 42a3f0041a handle empty snapshot correctly 2011-10-31 11:42:58 -07:00
anthony 9a668416f8 Swift: List ISO fix 2011-10-31 11:10:28 -07:00
prachi 818df189c5 changes to Create Vlan & Public IPs 2011-10-31 09:53:25 -07:00
Murali Reddy e449067a4a Bug 9831: Implement resourceCount periodic task that would check if the count in resource_count table matches actual resource count
status 9831: resolved fixed

   added a periodic task that does recalculation of counts. By default interval is set to 0, which will be interpreted as not to run task
2011-10-31 18:26:21 +05:30
kishan 284ee3909e bug 9842: Added task to update user stats agg bytes in sync with aggregation range
status 9842: resolved fixed
2011-10-31 17:15:36 +05:30
kishan f34ec52031 Removed unused variable trafficSentinelHostname 2011-10-31 17:13:15 +05:30
Nitin bbbfdd52ec bug 10848: Minor fixes. 2011-10-31 17:00:11 +05:30
Abhinandan Prateek abb37acbdd bug 8962: added usage related and resource count related code, changed the API name as suggested. Incorporated relevant review comments 2011-10-31 16:35:42 +05:30
Abhinandan Prateek 932e3c3a65 bug 11311: incremental checkin 2011-10-31 12:27:17 +05:30
Abhinandan Prateek 07e44e3a23 bug 11311: change list vm call to provide less info 2011-10-30 16:25:57 +05:30
root a572205e3c Revert "bug 11311: vm summary command initial impl"
This reverts commit 0abc7e2ea8b9e222f1927aea72d46240bfe8c534.
2011-10-30 15:13:58 +05:30
Nitin 2b370ab535 bug 10657: Introducing cluster level global thresholds for cpu and ram so that these resources do not go beyond these thresholds. The reason for this is because, if the admn needs to provide maintenance, they don't have to add new machines or have ones on standby if the entire zone/pod/cluster is at 100% allocated capacity. Also introducing pool level global thresholds for allocated storage. There are other changes like DB upgrade and introduction of transaction. 2011-10-29 16:51:37 +05:30
anthony 4a3deefd02 Swift : template sync fix 2011-10-28 16:49:24 -07:00
anthony 2b039530c0 Swift : list Template 2011-10-28 16:07:31 -07:00
frank fec9cc86af allow multiple clusters for baremetal 2011-10-28 13:47:21 -07:00
frank 1ef620121a Use constant string instead of hard coding in baremetal parameters passing
Conflicts:

	server/src/com/cloud/baremetal/BareMetalDiscoverer.java
2011-10-28 11:07:28 -07:00
Nitin 0d1f89f507 bug 10530: Add vmid in the logs 2011-10-28 23:36:07 +05:30
Nitin 5ffbf711fe bug 11739: Fix typo 2011-10-28 23:33:52 +05:30
alena 7b982efeaa Fixed Advance zone creation with security group enabled 2011-10-28 10:24:37 -07:00
alena 6445bf4c49 Added services/capabilities to the SecurityGroupElement 2011-10-28 09:52:40 -07:00
Abhinandan Prateek f456462443 bug 11311: vm summary command initial impl 2011-10-28 14:07:19 +05:30
Abhinandan Prateek 3cb1426a6c bug 10588: sending cluster sync only for xen 2011-10-28 11:39:22 +05:30
frank d1084bb383 fix unable to find built-in template 2011-10-27 19:19:19 -07:00
alena b413a625f4 1) replaced joinProject API with updateProjectInvitation api. You can accept/decline the invitataion with this command
2) Added deleteProjectInviation command. Can be executed by project admin only
2011-10-27 18:32:00 -07:00
frank eb0fdc2925 allow multiple clusters for baremetal planner
fix build
2011-10-27 17:46:54 -07:00
prachi 1583211352 Fixing build after removing physicalNetworkId from createvlanIpRangeCmd 2011-10-27 17:42:42 -07:00
frank c81477a25c allow multiple clusters for baremetal planner
Conflicts:

	server/src/com/cloud/deploy/BareMetalPlanner.java
2011-10-27 17:39:14 -07:00
prachi 6d5601a84d Added commands and framework for PhysicalNetwork trafficTypes 2011-10-27 17:32:15 -07:00
alena d315e57b0e Renamed "type" to "guestType" 2011-10-27 16:51:42 -07:00
alena fe0b685e95 Security group is a service now 2011-10-27 16:49:20 -07:00
alena 71b53a3432 Made isSharedSourceNatService a capability of SoureNatService 2011-10-27 16:49:20 -07:00
Sheng Yang 02ada73d89 NaaS: Make applyIp() as a function of FirewallServiceProvider 2011-10-27 16:45:40 -07:00
Sheng Yang bf4e21f315 NaaS: Destroy virtual router when cleanup=true at shutdown
As we did in the restart() function.
2011-10-27 16:45:34 -07:00
frank 9e88c40ab0 clean out various interface from agent manager to decent managers 2011-10-27 16:06:51 -07:00
anthony 4116d0d4e4 Swift : bug fix 2011-10-27 16:04:18 -07:00
Sheng Yang e1e96c0bb3 NaaS: Add ServiceProviders
Added PortForwardingServiceProvider, StaticNatServiceProvider, rename
PasswordServiceProvider to UserDataServiceProvider(may rename to a better name
later).

Add related function for service providers.
2011-10-27 11:55:10 -07:00
Sheng Yang b369e45c78 NaaS: Remove some configure items for virtual router
DHCP range, domain name, etc. are the property of network, not virtual router
specific.

The focus of virtual router configuration would on separate enable/disable each
service it provided.
2011-10-27 11:55:03 -07:00
anthony d1141aff7d Swift : add Swift api 2011-10-27 11:48:48 -07:00
frank 21de281276 Fix broken compilation by new anget manager merge 2011-10-27 11:24:10 -07:00
frank cef30956e9 Merge branch 'newagentmgr'
Conflicts:
	agent-simulator/src/com/cloud/api/commands/ConfigureSimulator.java
	ovm/src/com/cloud/ovm/hypervisor/OvmDiscoverer.java
	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/capacity/CapacityManagerImpl.java
	server/src/com/cloud/network/F5BigIpManagerImpl.java
	server/src/com/cloud/network/JuniperSrxManagerImpl.java
	server/src/com/cloud/resource/ResourceManagerImpl.java
	server/src/com/cloud/server/ManagementServerImpl.java
	server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
	utils/src/com/cloud/utils/db/GenericDao.java
2011-10-27 11:09:56 -07:00
alena cb329095b1 When restartNetwork, just shutdown/implement elements and rules, no need to shutdown/implement the network itself. 2011-10-27 10:47:41 -07:00
Abhinandan Prateek a1a0fdc0a3 bug 10588: making sure the vms are synced during a delta also 2011-10-27 15:56:53 +05:30
kishan 8ee876a9a2 bug 10405: Added annontation since for API Commands and request parameters. Whenever a new APi or parameter is added since=version should be added
status 10405: resolved fixed
2011-10-27 14:18:34 +05:30
kishan d55c827f00 bug 4844: Added length in API parameter annotation. Throw invalid param exception when value of param is greater than length. Default length is 255.
status 4844: resolved fixed
2011-10-27 12:46:01 +05:30
Nitin 9027263c42 bug 10848: DB upgrade changes for dashboard work 2011-10-27 11:24:18 +05:30
Nitin f85d558b6e bug 10774: Introduce percentage in list commands and cluster id in alert table 2011-10-27 11:23:57 +05:30
Nitin b336a8b813 bug 10774: On removing storage, local storage, cluster handle deletion of corresponding op_host_capacity rows. 2011-10-27 11:23:43 +05:30
Nitin 70aae9666b bug 10774: On removing storage, local storage, cluster handle deletion of corresponding op_host_capacity rows. 2011-10-27 11:23:26 +05:30
Nitin 9ba4b7073e bug 10893: Adding config vlaue conventions. 2011-10-27 11:22:53 +05:30
Nitin 30793ff08b bug 10893: Adding config vlaue conventions. 2011-10-27 11:22:36 +05:30
Nitin 6423631522 bug 10893: Adding a new capacity type - Local Primary storage. 2011-10-27 11:22:18 +05:30
Nitin 4b21650e23 bug 10848: Removing NPE from listCapacity and new alert code. Adding CAPACITY_TYPE_DIRECT_ATTACHED_PUBLIC_IP. Introducing thresholds for vlan and direct attached public ips. 2011-10-27 11:21:50 +05:30
Nitin 3921421ce5 bug 10848: listCapacity - sum the used and reserved capacities. Also apply overprovisioning factore explicitly 2011-10-27 11:21:32 +05:30
Nitin 2fc5cc73ba bug 10945: Start using the new alert system. Also introduce secondarystorage.capacity.threshold 2011-10-27 11:20:59 +05:30
Nitin 10ea88ad08 bug 10945: Introduce a new capacity called Zone Vlan. Add a flag called 'fetchlatest' in listcapacity which would recompute the capacity and fetch the latest. 2011-10-27 11:20:28 +05:30
Nitin eeb293d48e bug 8870: Public ip for dashboard would count the public ips only for virtual network. 2011-10-27 11:20:03 +05:30
Nitin 6d9650d26f bug 10945: Alerts rework. Generate alerts for CPU, RAM and Storage at cluster level., private ips at pod level and public Ip and Sec. Storage at Zone level. 2011-10-27 11:19:43 +05:30
Nitin 1177d5e779 bug 10848: ListCapacity - Adding the real time usage stuff as well. 2011-10-27 11:19:21 +05:30
Nitin 9c20c1b1b6 bug 10848: ListCapacity - Full rework. This fixes the pagination logic and the capacities are visible till the cluster level. 2011-10-27 11:18:56 +05:30
Nitin cfebce78b0 bug 10848: Removing the Host Capacity Checker thread which checks for skipcounting hours and also keeps host's CPU and Memory in sync. This work would be done by capacity checker thread now. 2011-10-27 11:18:25 +05:30
alena 95bac58076 Cleanup firewall/pf/lb/vpn rules as a part of networkShutdown 2011-10-26 18:00:22 -07:00
Edison Su 4c1a2f50bd bug 10837: rename api related to netapp
status 10837: resolved fixed
2011-10-26 17:37:04 -07:00
frank 0e52c5c246 Bug 11522 - New agent manager
use exception instead of assert so we can get debug info in customer environment
2011-10-26 17:36:48 -07:00
frank 267216e18e Bug 11522 - New agent manager
better debug message
2011-10-26 17:01:33 -07:00
Edison Su 3f7ce01f28 bug 10803: using updatehost api to change secondary storage url, the url need to be nfs://host/path format
status 10803: resolved fixed
2011-10-26 16:27:28 -07:00
frank 1883afeaa3 Bug 11522 - New agent manager
add update count into host table in order to make agent status update atomic
2011-10-26 16:14:57 -07:00
Edison Su 121850bcb5 bug 11598: secstorage.vm.mtu.size, by default it's 1500. After change this configuration, need to restart mgt server, and restart secondary storage to take effect.
status 11598: resolved fixed
2011-10-26 14:48:56 -07:00
Murali Reddy a48ee9c568 add support for multiple provider instanes per physical network
refactor NetworkDevicemanager and ExternalnetworkdeviceManager in to one single manager
2011-10-27 03:07:30 +05:30
anthony b91dce4f8a Swift: add listtemplate for swift
add swift configuration
2011-10-25 20:21:27 -07:00
Edison Su 193474a595 Storage migration: if it's basic network and migrate to different pod, need to reallocate network 2011-10-25 19:20:18 -07:00
prachi 809f9d965e Fixed NetworkMgr: getNetworkCapabilities.
The key used to get the capabilities from the provider capabilities map was wrong.
2011-10-25 18:51:20 -07:00
alena 96843be30a Pass cleanup parametet to shutdown() method of the networkElement. Based on this parameter, the element can decide if it wants to destroy the instances, or just shut them down 2011-10-25 18:48:59 -07:00
alena 525a0a7675 1)Changed implementation for restart network: call shutdown/implement methods as a part of it
2)Re-apply all existing firewall rules as a part of implement call. TODO: Cleanup all existing rules from the backend (leave them in the DB) as a part of shutdown call
2011-10-25 18:24:24 -07:00
alena 1c430aad44 Check if source nat service is enabled before acquiring the source nat ip address 2011-10-25 18:22:53 -07:00
frank cfebd04df0 Bug 11805 - Cant add baremetal host
status 11805: resolved fixed
2011-10-25 15:18:55 -07:00
frank 1460f3950e Bug 9949 - revert VM to template
1. able to restore VM from its original template
2. Only allow to restore when VM is running or stopped
3. after restoring, VM state will not change, e.g. running is still running

status 9949: resolved fixed
2011-10-25 13:52:39 -07:00
prachi 07591807af Removing isolationMethods from UpdatePhysicalNetwork API. 2011-10-25 11:39:41 -07:00
kishan ca4b1917dd Revert "bug 4844: Do not allow param values to be greater than length 256"
This reverts commit 7598ca07d3b3214e479886e3901df0f0db09f6f1.
2011-10-25 14:22:14 +05:30
anthony 510d1dbef7 Swift : upload template to Swift and sync between Swift and secondary storage 2011-10-24 18:48:16 -07:00
prachi 780e0efe79 Removing references to DataCenter - providers, using the networkoffering -> providers map instead.
TODO:
- Still leaving the provider columns in data_center schema as-is for CloudKit and BareMetal
- ExternalNetworkDeviceMgrImpl still needs to fix the dataCenter.setProviders calls and externalNetworkApplicance usage checks to see if zone has external networking.
2011-10-24 18:06:33 -07:00
prachi 766c898504 Changes: DeletePhysicalNetwork changes and Configuring NetworkMgr to hold map of providers -> elements 2011-10-24 18:03:18 -07:00
alena 345b1421c8 Allow network offering upgrade for any combination of services 2011-10-24 17:56:34 -07:00
alena 6379c9c61e Return false when failed to apply the rules on the backend 2011-10-24 17:55:04 -07:00
alena f6717e0a23 1) Method name change
2) Rely on SourceNatService when decide if DirectNetworkGuru and GuestNetworkGuru should handle the network
2011-10-24 17:30:14 -07:00
alena 75c8e33226 Removed guestIpType from network/networkOffering 2011-10-24 17:05:00 -07:00
frank 30f95e638a Bug 11522 - New agent manager
1. get rid of host allocation state
2. remove Updating status from agent status
2011-10-24 16:49:32 -07:00
Edison Su 92eaf49f29 Add storage migration 2011-10-24 15:59:47 -07:00
Kelven Yang fc3d93e3e7 bug 9614: let root volume use IDE disk controller by default to ensure backwards compatibility with existing CloudStack deployments 2011-10-24 15:28:51 -07:00
kishan e130911371 bug 4844: Do not allow param values to be greater than length 256
status 4844: resolved fixed
2011-10-24 18:02:32 +05:30
Abhinandan Prateek ed2816051a bug 11354: enabled cache for listBy Dao calls and specifically for listBySecurityGroup 2011-10-24 10:50:44 +05:30
kishan 83b4d2f7f9 bug 5822, 10783: Security enhancements initial checkin. Added encryption support to db.properties and some DB values. 2011-10-24 10:26:02 +05:30
anthony 0df249172d Swift: DeleteSnapshotBackupCommand and DeleteSnapshotsDirCommand are executed in SSVM 2011-10-21 19:53:48 -07:00
Kelven Yang 443c175793 bug 9614: enable SCSI device controller for root disk.(default root disk controller type can be conifgured through global configuration) 2011-10-21 18:44:56 -07:00
alena 871f1bb6d4 bug 11690: don't allow to remove the cluster when it's referenced by existing storage pools
status 11690: resolved fixed
2011-10-21 18:08:18 -07:00
frank 6d95422f34 Bug 11522 - New agent manager
get rid of some agent status
2011-10-21 18:06:06 -07:00
anthony 19df7ed8af Swift; create template from snapshot 2011-10-21 17:32:48 -07:00
alena 1e684beca5 bug 11744: remove firewall rules before removing statis nat rules as a part of disableStaticNat call
status 11744: resolved fixed
2011-10-21 17:21:09 -07:00
alena abca3dda9d Added ability to list network offerings availabe for network upgrade using listNetworkOfferings command with "networkId" parameter.
Limitations:

* can't upgrade to the network offering with lesser number of services
* can upgrade only when the service provider of the original offering is not external (domR, dhcp, elb) to the external type of the provider
2011-10-21 15:36:01 -07:00
anthony 6c5c24dd6b swift: create volume from template works 2011-10-21 12:53:58 -07:00
Murali Reddy aa808f5685 -Added LB serive provider (seperating it out from Firewall service provider)
-Bringing add/delete/list of all external network devices under one unified API's (addNetworkDevice, deleteNetworkDevice, listNetworkDevice)
-Refactoring External network manager to work from both sets of API's add/delete/list NetworkDevice and add/delete/list External Firewall/LoadBalancer
2011-10-21 18:15:36 +05:30
alena 219978a9be Create network using physical network id 2011-10-20 18:25:13 -07:00
prachi 0d7ddb5d58 Changes:
- Make all API commands Async and add events
- Make BroadcatsDomainRange case insensitive
- Process all _networkElements to build the Service -> Provider map during NetworkMgr::configure()
2011-10-20 17:11:30 -07:00
Sheng Yang 21344e3c36 NaaS: Remove some API test code 2011-10-20 15:19:00 -07:00
Sheng Yang 2ebb719aba NaaS: Add configuration for virtual router elements 2011-10-20 13:59:23 -07:00
Sheng Yang fdc354adb5 NaaS: Add VirtualRouterElements table
It would cover the configuration of DHCPElement, VirtualRouterElement and
RedundantVirtualRouterElement.

Also add foreign key in domain_router table to reflect the domain_router is
created from which element and use what configuration.
2011-10-20 13:59:02 -07:00
Sheng Yang 04f106a595 NaaS: Configure commands for DhcpElement, VirtualRouterElement and RedundantVirtualRouterElement
Add configure command for these virtual router based elements. The commands
should be different for different elements.

The context of configuration would be added later.
2011-10-20 13:58:54 -07:00
alena 51828421f3 Allow upgrade to the offering with a different set of providers 2011-10-20 12:53:14 -07:00
alena 5ffd233bb4 Made all project commands except list* to be Async 2011-10-20 11:30:45 -07:00
David Nalley 8ba007b923 Merge branch 'master' of https://github.com/ke4qqq/CloudStack into ke4qqq-master 2011-10-20 08:16:35 -04:00
prachi be47d6b4e9 fixing build after the Merge. 2011-10-19 22:49:03 -07:00
prachi 654eaec663 NAAS: Configuring Zone
- Create Zone changes and changes to data_center table to remove vlan, securityGroup fields
- Physical Network lifecycle APIs
- Physical Network Service Provider APIs
- DB schema changes
2011-10-19 22:44:03 -07:00
Abhinandan Prateek 1ea9b5d703 bug 10588: putting config param for cluster sync intervals 2011-10-20 10:51:40 +05:30
David Nalley 06e9da180d Extending Kevin Brook's original XCP disguised as XS 5.6.100 patch 2011-10-19 22:41:33 -04:00
frank 4e595d04ab Bug 11522 - New agent manager
1.load hosts that in maintenance mode because maintenance is no longer an agent status now
2.don't disconnect agent when entering maintenance mode, again it's no longer an agent status now
2011-10-19 17:51:20 -07:00
alena c5acad39d9 Make Guest Direct security group enabled network offering system by default - we'll make it non-system after getting rid of Basic/Advance zone concepts 2011-10-19 17:34:21 -07:00
alena ceda05298e Deprecate guestIpType in networkOffering api. Use type (Shared/Isolated) instead 2011-10-19 16:38:39 -07:00
alena 972caf1936 bug 11777: resolved NPE in listIsos - get domain id from the iso's account owner object
status 11777: resolved fixed
2011-10-19 10:43:36 -07:00
anthony c97010a160 BackupSnapshot to Swift 2011-10-18 18:11:09 -07:00
Kelven Yang 72db00c1c7 bug 11624: command via AgentManagerImpl.sendTo() needs to be redirect to HypervisorGuru for command filtering, the filtering mechanism is required by VMware hypervisor to redirect storage/snapshot commands to SSVM 2011-10-17 18:05:51 -07:00
frank 65f3bb1df5 Bug 11647 - OVM - no support for migrate instance
return available hosts when hypervisor type is Ovm
status 11647: resovled fixed
2011-10-17 16:26:32 -07:00
Abhinandan Prateek f7f2eb825d bug 10588: incorporated review comments (Reviewer Nitin, Murali, Kishan, Jana)
1. Finetune vriable scope, s_ for static vars
2. Impl should be cluster aware and a host going down should not affect the sync
2011-10-17 14:59:24 +05:30
Kelven Yang 693432cb7a bug 11716: save VMware local datastore info to local storage to support multiple local datastores per host situation 2011-10-14 17:13:58 -07:00
alena 4cb9e30990 Network offering upgrade implementation 2011-10-14 15:03:12 -07:00
frank 49a524ff91 Bug 11745 - Ovm needs user manually start a xenserver user vm in order to start VirtualRouter
status 11745: resolved fixed
2011-10-14 14:47:23 -07:00
frank 8decef98fd Bug 11741 - there is no ovm.public.network.device, ovm.private.network.device, ovm.guest.network.device in global configure page
status 11741: resovled fixed
2011-10-14 11:42:54 -07:00
Abhinandan Prateek 81a9358eb7 bug 11675: enable RHEL 6 for XCP 1.1 2011-10-14 11:36:40 +05:30
alena c00058adc2 Added type (Shared/Isolated) to the networkOffering/networks 2011-10-13 17:33:41 -07:00
frank 5ee1a2456d Bug 11647 - OVM - no support for migrate instance
return error if taking snapshot API call happens on Ovm
2011-10-13 16:20:49 -07:00
anthony b3e6ab8d1c add support for XenServer 6.0.0 GA 2011-10-13 15:50:12 -07:00
frank cd6b872f8d Bug 11670 - OVM - HA failed when host is disconnected from network
status 11670: resolved fixed
2011-10-13 14:46:36 -07:00
alena 2d228dfcbb Default service provider to VirtualRouter (should make this parameter configurable in the future) 2011-10-12 18:02:35 -07:00
alena 7433d5314a 1) Refactored networkOfferings:
* moved all services to the separate table, map them to the network_offering+provider.
* added state/securityGroupEnabled properties for the networkOffering
* added ability to list by state/securityGroupEnabled in listNetworkOfferings api command

2) New service: SourceNat
2011-10-12 16:38:59 -07:00
Nitin 823b80a92e bug 10848: Change function signatures to accept capacity type as an object.. 2011-10-12 16:07:00 +05:30
Abhinandan Prateek b050120303 bug 10588: clearing map so that the vm sync can resume on next connect, in case of failure 2011-10-12 12:34:54 +05:30
prachi 8570b25506 NAAS: APIServer changes to introduce framework to read commands from pluggable components having separate commands.properties file
Changes:
- Added a new interface 'PluggableService'
- Any component that can be packaged separately from cloudstack, can implement this interface and provide its own property file listing the API commands the component supports
- As an example have made VirtualNetworkApplianceService pluggable and a new configureRouter command is added
- ComponentLocator reads all the pluggable service from componentLibrary or from components.xml and instantiates the services.
- As an example, DefaultComponentLibrary adds the pluggable service 'VirtualNetworkApplianceService'
- Also components.xml.in has an entry to show how a pluggable service can be added, but it is commented out.
- APIServer now reads the commands for each pluggable service and when a command for such a service is called, APIServer sets the required instance of the pluggable service in the coomand.
- To do this a new annotation '@PlugService' is added that is processed by APIServer. This eliminates the dependency on the BaseCmd to instantiate the service instances.
2011-10-11 17:34:57 -07:00
Kelven Yang dce4e74b58 bug 11585: using pre-allocated NIC approach to support additional public interfaces for VMware 2011-10-11 15:40:31 -07:00
Sheng Yang b2a007dc3c NaaS: Remove IsServiceProvider() functions
If the element is the service provider for this network, then can be tell from
network offering. We don't need these functions in the interface.
2011-10-11 14:04:13 -07:00
Abhinandan Prateek c6c5e8f557 bug 11675: fixed error messages 2011-10-11 17:23:12 +05:30
root b5cec5c957 Merge branch 'master' of ssh://git.cloud.com/var/lib/git/cloudstack-oss 2011-10-11 16:48:39 +05:30
Abhinandan Prateek 930d0a0815 bug 11675: optimized the code 2011-10-11 16:46:15 +05:30
kishan 334eeccd2c bug 11561: Added new Dao RandomlyIncreasing, which will increase the Vm Id by 1-10 randomly
status 11561: resolved fixed
2011-10-11 12:40:50 +05:30
kishan 976b5aa48d bug 11672: While listing volumes, check for null Vm instance. Log error when Vm instance is null
status 11672: resolved fixed
2011-10-11 12:05:37 +05:30
Abhinandan Prateek ceae8cd365 bug 11675: enabling support for XCP 1.1.0 2011-10-11 11:31:02 +05:30
Sheng Yang 30d48c40b3 Network as a service(NaaS): Separate redundant virtual router as a standalone element
Since we would introduce a way to specify each service provider in the network
offering, it's better for redundant virtual router as a separate service
provider.

Also isRedundant() flag in the network offering would be removed. Redundant
virtual router temporality won't work from now. Until we're able to add
different network elements/service providers in network_offering.
2011-10-10 15:41:07 -07:00
Sheng Yang 0121c0516d Network: Add Service providers
In the past, the NetworkElement would cover almost all the functionality that
e.g.  virtual router can cover: firewall, source NAT, static NAT, password,
VPN... So anyone want to implement the NetworkElement would have to implement
these service's specific methods, even it wouldn't support it. Also, if we want
to find a e.g. FirewallServiceProvider, we have to proceed all the current
network service providers, to call a method to know if it support such service.
That's neither elegant nor scaling way to do it.

As the first step, this patch separates each ServiceProvider from NetworkElement
(there are some interface already out of NetworkElement, so this patch slightly
modifies them too), and only the class would implement the correlated interface, would
have the ability to do these services.
2011-10-10 11:45:39 -07:00
Edison Su 962bbcd5a0 bug 11634: add manual vm migration support for kvm
status 11634: resolved fixed
2011-10-10 11:31:18 -07:00
alena 43bebcd050 Fixed regression bug in listNetworks call (introduced during Project feature implementation) 2011-10-10 10:52:07 -07:00
alena fdaeb29290 Fixed regression bug in listNetworks call (introduced during Project feature implementation) 2011-10-10 10:51:55 -07:00
Nitin c16b3eac54 bug 11668: Do not apply 'cpu.overprovisioning.factor' while setting total_cpu in the op_host_capacity entry. 2011-10-10 19:22:49 +05:30
frank 88b863d6e3 Bug 11522 - New agent manager
Initialize unit test case for resource manager
2011-10-07 15:51:24 -07:00
prachi d59cfab7f3 Bug 11481 - get manual live migration working with all VMs
Changes:

- Added the resopnse object name for the SystemVmInstanceResponse that this new MigrateSystemVMCmd will return.
2011-10-07 15:10:42 -07:00
alena eba6864965 bug 11667: drop primary keys in cloud_usage.usage_load_balancer_policy and cloud_usage.usage_port_forwarding
status 11667: resolved fixed

Conflicts:

	server/src/com/cloud/user/AccountManagerImpl.java
2011-10-07 11:02:14 -07:00
alena d399c901c8 bug 11666: fixed foreign key upgrade in networks table
status 11666: resolved fixed
2011-10-06 18:15:57 -07:00
alena 143036b4a7 bug 11664: fixed regression bug in listVms introduced by performance changes
status 11664: resolved fixed
2011-10-06 16:53:18 -07:00
alena a17570ef51 1)Implemented Suspend/Activate project
2)Email/token based invitation system
2011-10-06 16:10:36 -07:00
frank 93278baa3b Bug 11522 - New agent manager
fix a couple of typos
2011-10-06 14:30:41 -07:00
frank 0f5384d086 Bug 11522 - New agent manager
move findxxx interface from HostDao to Managers
2011-10-06 11:56:17 -07:00
frank 24b82a7a89 Bug 11522 - New agent manager
call SearchCriteriaService interface instead of SearchCriteria2 instance
2011-10-06 10:32:07 -07:00
prachi a51fb221d6 Bug 11169 - Couldn't deploy a router because the host it existed on is in Maintenance.
Changes:
- VirtualMachineMgr puts the constraint that if Root volume is already READY, we provide the clusterId in the plan to the deploymentPlanner. Planner then searches for resources only under that cluster.
- If no deployment could be found, deploying VM fails.
- Fixed this, such that incase the root volume is recreatable, we call the planner again by removing the cluster constraint. Planner will then search for resources in other clusters.
- Works for system VMs(SSVM, consoleproxy, virual routers).
2011-10-05 18:35:59 -07:00
frank 2b0afe505d Bug 11522 - New agent manager
refine SearchCirteria2
2011-10-05 16:49:47 -07:00
alena 25c2734e03 More stuff to Projects feature - added support for adding resources (vms, templates, isos) to the project 2011-10-05 13:24:25 -07:00
alena 998568283c Don't allow to add accounts to the domain of type Project
Don't allow to manipulate (delete/update) accounts/domains of type Project
2011-10-05 13:24:25 -07:00
Sheng Yang e72d38b15d Revert "bug 11604: Assign guest ip for each router"
This reverts commit 42ab3c94c210d5a29289a5dfd0e44ae99c427f8b.

The commit may not fit for our new network as service framework, because we
would make single router and redundant router as two different service provider,
so the change of network offering should clean up the old network and then setup
new one. Make single router work as redundant router later make no sense in such
condition.
2011-10-04 17:58:15 -07:00
Sheng Yang 36511ab6fd bug 11604: Assign guest ip for each router
Then every router would have one guest ip. The gateway ip would be used if the
router is not redundant, otherwise the guest ip would be used for guest network.
2011-10-04 16:24:15 -07:00
Sheng Yang 143ec3a4c5 Clean up priority calcuation/create new mac when create domain router
They're unnecessary.
2011-10-04 16:24:06 -07:00
frank 89e04458b6 Bug 11522 - New agent manager
move all listxxx interface from HostDao to managers(ResourceManager, SecondaryStorageVmManager etc) with decent name using SearchCriteria2
or direct call SearchCriteria2 on demand
2011-10-04 14:35:26 -07:00
Edison Su ae83246acb bug 11600: aquirelock before deleting a volume, which can be aquired by snapshot manager
status 11600: resolved fixed
2011-10-03 16:43:47 -07:00
prachi 083b458f03 Bug 11617 - Ensure the Deployment planner is choosing clusters based on aggregate capacity
Merge removed this import statement. Adding it back.
2011-10-03 15:46:41 -07:00
prachi e0a179752d Bug 11617: Ensure the Deployment planner is choosing clusters based on aggregate capacity
Changes:
- We were ordering clusters based on capacity of the first-fit host found in each cluster. Due to this, there were cases where we deployed VMs to one cluster instead of balancing off within clusters.
- Now we order the list of clusters by aggregate capacity and choose the ones that have enough capacity for the required VM in this order.
- This should balance the load between clusters instead of bombarding one.

Conflicts:

	server/src/com/cloud/capacity/dao/CapacityDao.java
	server/src/com/cloud/capacity/dao/CapacityDaoImpl.java
2011-10-03 15:37:38 -07:00
frank 683113cc38 Bug 11522 - New agent manager
get rid of all secondary storage interface from HostDao, instead, put them in
SecondaryStorageVmManager using SearchCriteria2 with decent name
2011-10-03 11:21:34 -07:00
frank 3947c9a126 Bug 11522 - New agent manager
Initailize SearchCriteria2 in order to replace search interface of DAO
2011-10-03 10:32:27 -07:00
prachi 9bd5e5871b Bug 11481 - get manual live migration working with all VMs
Changes:
- Added a new API  'migrateSystemVm'  backed by MigrateSystemVMCmd.java to migrate system VMs (SSVM, consoleproxy, domain routers(router, LB, DHCP))
- This is Admin only action
- The existing API 'migratevirtualmachine' is only for user VMs
2011-09-29 17:47:46 -07:00
Sheng Yang b8f8989821 bug 11130: Update template and script version in the database when domR started 2011-09-29 14:51:20 -07:00
anthony 33b1055c01 timeout is not set for some commands 2011-09-29 13:09:05 -07:00
frank a1193149a0 Bug 11522 - New agent manager
renamce updateResourceState to resourceStateTransitTo
2011-09-29 11:58:41 -07:00
alena 53b1b9f63b bug 11603: for OSS build - update guru_name from GuestNetworkGuru to ExternalGuestNetworkGuru.
status 11603: resolved fixed
2011-09-29 10:43:01 -07:00
alena d7267fb0c5 bug 11589: don't fail deleteVpn command when domR is in Stopped state.
status 11589: resolved fixed

Conflicts:

	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
2011-09-29 10:22:14 -07:00
alena 12e25fb988 Implemented vm* api commands to be executed against the project 2011-09-29 10:20:51 -07:00
alena eda1b53c76 Events for adding/removing project users 2011-09-29 10:20:51 -07:00
Murali Reddy a623b2824b bug 6876: netscaler integration
added external lb network usage and inline support
2011-09-29 18:59:46 +05:30
anthony aef74ff521 bug 10579: disable pool vm sync and disable hostTrack for XenServer,
status 10579: resolved fixed

reviewed-by: alex

Conflicts:

	core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
2011-09-28 12:41:24 -07:00
Nitin b9df06619a bug 11051: ListPods/ListZones - Apply cpu overprovisioning explicitly as it is not applied when its stored in the db. Also avoid calculating the non shared storage for storage allocated capacity calculation. 2011-09-28 17:48:31 +05:30
kishan 806bfe33c4 bug 11581: During router start, create iptables NETWORK_STATS chain before adding rules for additional public interfaces into that chain
status 11581: resolved fixed
reviewed-by: Chiradeep
2011-09-28 16:46:45 +05:30
Nitin da2696b2f6 bug 11051: ListCluster - Apply cpu overprovisioning explicitly as it is not applied when its stored in the db. Also avoid calculating the non shared storage for storage allocated capacity calculation. 2011-09-28 16:16:28 +05:30
Sheng Yang 1fb5030cca Clean up global redundant_router config item
We would use network_offering option in 3.0 instead.
2011-09-27 16:50:24 -07:00
frank b188a513ba Bug 11522 - New agent manager
Secondary storage worked
2011-09-27 16:43:26 -07:00
frank 5efaed1d82 Bug 11522 - New agent manager
able to add host
2011-09-27 15:18:21 -07:00
frank e5fca855c1 Bug 11522 - New agent manager
register/unregister resource state adapter in configure/stop of implementations
2011-09-27 11:51:03 -07:00
Abhinandan Prateek 83c6cf3db0 bug 10588: code to sync VM state at cluster level and dettached from ping command 2011-09-27 13:18:21 +05:30
alena ccd47c1b21 Implemented Project Invitations 2011-09-26 17:47:20 -07:00
frank e8c13e10c7 Bug 11522 - New agent manager
able to compile besides mycloud stuff
2011-09-26 16:55:20 -07:00
frank caa8aaf6fe Bug 11522 - New agent manager
clean up events, status of agent
2011-09-26 15:01:16 -07:00
Kelven Yang d32241ec9c bug 10971: support vSphere 5 2011-09-26 12:16:28 -07:00
frank 66c347bec5 Bug 11522 - New agent manager
clean up stale functions
2011-09-26 11:29:22 -07:00
frank e8c3ff653d Bug 11522 - New agent manager
move maintanenceFailed to ResourceManager
2011-09-23 16:54:28 -07:00
frank bb4237336f Bug 11522 - New agent manager
refine reconnectHost logic
2011-09-23 16:22:14 -07:00
frank 95dbf2ac73 Bug 11522 - New agent manager
move updatePassword to ResourceManager
2011-09-23 15:48:06 -07:00
frank 98900717dd Bug 11522 - New agent manager
move umanageHost to ResourceManager
2011-09-23 15:40:52 -07:00
frank 7c5d3597a9 Bug 11522 - New agent manager
move cancelMaintenanceMode to ResourceManager
2011-09-23 15:32:58 -07:00
frank f63e412ac9 Bug 11522 - New agent manager
moves migration to ResourceManager
2011-09-23 15:22:39 -07:00
frank 81665757de Bug 11522 - New agent manager
move delete host to ResourceManager
2011-09-23 15:04:44 -07:00
frank e0e5491c42 Bug 11522 - New agent manager
implements ResourceStateAdapter in a couple of components
2011-09-23 11:28:02 -07:00
alena 10308d1ea6 bug 11555: Fixed NPE happening during LB rule cleanup in case when createLB fails
status 11555: resolved fixed

Reviewed-by: frank@cloud.com

Conflicts:

	server/src/com/cloud/network/lb/LoadBalancingRulesManagerImpl.java
2011-09-23 11:02:19 -07:00
alena a8d3c7436a bug 11550: rolled back the changes done to ConfigurationServerImpl during the resourceLimit refactor as it was leading to System/Admin account not being inserted to the DB
status 11550: resolved fixed
2011-09-23 09:42:07 -07:00
Sheng Yang b96701a6c4 bug 11541: Change CheckRouterCommand timeout from default 10 minutes to 1 minute
Reviewed-by: Anthony Xu

status 11541: resolved fixed
2011-09-22 19:22:33 -07:00
alena 5c35b7f164 1) Resource limits for Projects
2) Security checker for Projects
2011-09-22 18:10:35 -07:00
Kelven Yang b06543a8db bug 11531: forget to include newly added JUnit test along with the fix, here it is 2011-09-22 16:22:24 -07:00
Kelven Yang 2a6de104e2 bug 11531: while taking snapshot on volume, if volume is attached to a VM instance and under VMware, check if there are other ongoing snapshot tasks for the VM instance. 2011-09-22 16:22:12 -07:00
frank b5e3639263 Bug 11522 - New agent manager
replace handleConnect with handleConnectedAgent
2011-09-22 15:07:21 -07:00
Edison Su ee59c26e93 bug 11513: another customer hits the same issue by associate ip in the basic zone
Reviewed-by: alena@citrix.com
2011-09-22 15:04:47 -07:00
Edison Su 211c7099a6 bug 11513: add more log in the cleanup network
Reviewed-by:alena@citrix.com
2011-09-22 15:04:43 -07:00
frank 0343cb79c3 Bug 11522 - New agent manager
replace simulateStart with createHostAndAgent
2011-09-22 14:42:05 -07:00
alena a1cab92ae1 bug 11537: revoke related FirewallRules when do vmExpunge and ipAddress release.
status 11537: resolved fixed

Reviewed-by: edison@cloud.com

Conflicts:

	server/src/com/cloud/network/firewall/FirewallManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-09-22 14:01:02 -07:00
frank 0677232e06 Bug 11522 - New agent manager
complete ResourceAdapter relevant interface
2011-09-22 11:55:23 -07:00
alena 1561c7d2f9 bug 11468: create ROOT domain and admin user as a part of cloud-setup-databases, not during the management server startup to avoid multiple records insertion for the same domain
status 11468: resolved fixed

Reviewed-by: will@cloud.com

Conflicts:

	server/src/com/cloud/server/ConfigurationServerImpl.java
2011-09-22 11:01:13 -07:00
kishan 2b9c0a695f bug 11520: Include TrafficMonitor hosts also while scanning for direct agents to load
status 11520: resolved fixed
2011-09-22 13:34:37 +05:30
Sheng Yang abcf246293 bug 11513: Fix public IP release in advance network
We should only persist DomR's public ip, not console proxy and ssvm.

Reviewed-by: Edison
2011-09-21 19:16:41 -07:00
alena ae56bd11e0 bug 11513: always wrap marking IP address with Releasing state and actual IP deallocation in Transaction
Reviewed-by:edison@citrix.com

Conflicts:

	server/src/com/cloud/network/guru/DirectPodBasedNetworkGuru.java
2011-09-21 18:42:47 -07:00
alena 9f9b60a287 1) Added resource limits for the Projects - the same as for the account
2) Added "Project" limit type for the Domain object
2011-09-21 17:09:49 -07:00
frank ce3d810f51 Bug 11522 - New agent manager
introduce ResourceState and ResourceStateAdapter
2011-09-21 16:52:39 -07:00
frank 443385471f Bug 11522 - New agent manager
change angent state machine to state machine 2
2011-09-21 16:48:33 -07:00
Edison Su b1b11a6928 bug 11047: change the put storage pool into maintenance mode: 1. only look at the available storoge pool in its own dc to decide to start vms created on it. 2. if start vm failed, don't throw exception, as these vms are marked stopped already, admin can start these vm by himself.
status 11047: resolved fixed
Reviewed-by: frank
2011-09-21 16:20:33 -07:00
alena 4d89066b2c bug 11515: reapply all firewall rules for the IP address when VPN related rules are being revoked
status 11515: resolved fixed

Reviewed-by: will@cloud.com
2011-09-21 09:50:32 -07:00
Nitin f49578c23a bug 11051: ListZones - Introduce a flag 'showCapacitites'. When its true it will start displaying all the capacitites (as objects in the response) for the respective zone. Also correcting the summation logic for List cluster, pod and zone commands 2011-09-21 16:59:16 +05:30
alena a1331d1cfc Intermidiate checkin to Project feature:
1) Introduce new managers - ProjectManager and DomainManager. Moved all domain related code from AccountManager to DomainManager.
2) Moved some code from ManagementServerImpl to the correct managers.
3) New resource limit for Domain - Project
2011-09-20 18:35:28 -07:00
alena bddc2b9e45 bug 11487: catch all exceptions in cleanupAccount, and mark the account for cleanup when the exception is caught.
status 11487: resolved fixed

Reviewed-by: will@cloud.com
2011-09-20 10:33:06 -07:00
alena b6f58b77b8 bug 11462: 1) when delete PF rule, revoke corresponding firewall first (if exists) 2) never remove PF rule from the table when corresponding firewall rule wasn't removed yet
status 11462: resolved fixed

Reviewed-by: edison@cloud.com

Conflicts:

	server/src/com/cloud/network/lb/LoadBalancingRulesManagerImpl.java
2011-09-20 10:32:57 -07:00
alena 459b32cc6a bug 11493: no need to do cross domain checks for the templates as domain level templates are not supported. We support only public (everybody can see and use) and private (only owner can see and use unless changed with updateTemplatePermissions call)
status 11493: resolved fixed

Reviewed-by: will@cloud.com
2011-09-20 10:31:57 -07:00
Nitin 7bcbdeb834 bug 11051: ListPods - Introduce a flag 'showCapacitites'. When its true it will start displaying all the capacitites (as objects in the response) for the respective cluster. 2011-09-20 15:59:45 +05:30
Nitin 4a5f6faca2 bug 11051: ListClusters - Introduce a flag 'showCapacitites'. When its true it will start displaying all the capacitites (as objects in the response) for the respective cluster. 2011-09-20 14:33:46 +05:30
Edison Su a02ae53417 bug 11495: set bootable as user selected for iso/templates
status 11495: resolved fixed
Reviewed-by:alena@citrix.com
2011-09-19 17:48:55 -07:00
alena 03bd7d0c96 bug 11480: verify account/user state when do single signon verification
status 11480: resolved fixed

Reviewed-by: kelven@cloud.com
2011-09-19 10:57:18 -07:00
alena ba64010cb5 bug 11470: 1) fixed listResourceLimits 2) Fixed -1 to be treated as unlimited for all the resources
status 11470: resolved fixed
2011-09-19 09:47:07 -07:00
prachi 0eea1cb733 Bug 11404 - VM was in Running state, had null for a pod_id, basically didnt allow creation of subsequent vm's
Reviewed-by: Alex

Changes:
- When management server starts, it goes through all the pending work items from op_it_work table and schedules HA work for each. It used to mark each item as done. Instead we should keep the item as pending and let it get marked as Done after the HA work is done.
- Changes in VirtualMachineMgr::advanceStop() :
a) if we find a VM with null hostId, we stop the VM only if it is forced stopped.
b) if VM state transition to Stopping fails,for state Starting and Migrating we try to find the pending work item and then do cleanup the VM. In case state is Stopping we can cleanup directly.
c) We proceed releasing all resources only if state transitioned to 'Stopping'.
- Changes in HA:
a) Depend on VirtualMachineMgr::advanceStop() in case host is not found to do VM cleanup
- When Vm state between mgmt server and agent syncs from starting -> running, mark any pending work item as done.

Conflicts:

	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
2011-09-15 19:06:19 -07:00
alena 117de2a61a Do agent disconnect when agent rebalance fails
Reviewed-by: Alex Huang
2011-09-15 18:37:06 -07:00
prachi 6b82ba3ff9 Bug 11457 - NullPointerException while synching VM state from Starting -> Running between management server and agent
Reviewed-by: Kelven and Alex

Changes:
- Added log statements about the podId during deploying a VM.
2011-09-15 16:16:24 -07:00
prachi df17ce5648 Bug 11457 - NullPointerException while synching VM state from Starting -> Running between management server and agent
reviewed-by: Alex/Kelven

Changes:
1.	UserVmManagerImpl :: finalizeStart()
Added null check for the cmds.getAnswers() object. Return ‘true’ if null.

2.	VirtualMachineManagerImpl :: advanceStart()
Move the line to set PodId to the vm being started above the state transition where hostId gets set, so that podId is not null in case management server goes down when vm starts on the agent. On restart, podId is not updated during fullsync. So this will prevent podId remaining null.

vm.setPodId(dest.getPod().getId());
2011-09-15 16:16:15 -07:00
keshav 60d69aabb2 In inline SRX/F5 mode, collect outbound usage for LB rules from the SRX. 2011-09-15 14:45:06 -07:00
Sheng Yang c67594ef50 bug 11300: Make restartNetwork destroy and recreate DHCP server
status 11300: resolved fixed
2011-09-15 11:56:31 -07:00
alena 2138f86bb3 bug 11447: don't do security group check if both groups belong to the same domain
status 11447: resolved fixed
2011-09-15 10:08:00 -07:00
Nitin d53c3f0798 bug 11051: Listing Secondary Storage - also show the total and used storage. Listing Storage pools show the realtime storage stats and correctly populate the allocated storage. 2011-09-15 15:53:31 +05:30
Naredula Janardhana Reddy 10fb507609 bug 11372:
Added two New values "all" and "default" to global config "network.loadbalancer.haproxy.stats.visibility" . With this change, it can take six possible value:
            global - stats visible from public network.
            guest-network - stats visible only to guestnetwork.
            link-local - stats visible only to link local network(for xen and kvm).
            disabled - stats disabled.
            all - stats available on public,guest and link-local. (Newly added)
            default - stats availble on the serving http port, this does need any specific http port.(Newly added)
   Except "default" and "disabled", all the rest of 4 need to configure the stats port.
2011-09-15 11:46:34 +05:30
Murali Reddy bb7b6d5eee fixing build break due to commit edbd3a862ce16cce1b22f54c843d33f8f6cf809c 2011-09-15 11:40:46 +05:30
anthony 6ecc981e25 bug 9777: introduce Error status for snapshot, if snapshot creation fails, it will be in Error status
status 9777: resolved fixed
2011-09-14 18:14:02 -07:00
Kelven Yang 1b9552ea74 Let VmwareInvestigator return fake but meaningful investigation result 2011-09-14 17:04:28 -07:00
Sheng Yang c85902b04c bug 11307: Using latest query result rather than set bumpup to false
After the host is disconnected, we can't get latest result, but it's not safe to
think it's priority bump up flag changed.
2011-09-14 16:26:48 -07:00
Sheng Yang f19fca6ec6 Fix restartNetwork wrongly report stop failure 2011-09-14 16:24:43 -07:00
Sheng Yang 474d1a6034 bug 11307: Add destroyRouter command 2011-09-14 16:23:42 -07:00
Sheng Yang 684a603a6e bug 11307: Add cleanup parameter to restartNetwork command
Default set it to true. When cleanup=false, restartNetwork would only
re-implement the network, but don't destroy current existed routers.
2011-09-14 16:23:34 -07:00
Sheng Yang e330e97f4b bug 11307: Mark router as to-be-stopped, rather than force stop it.
Force stop the router would release all the resources it used, but router may
still running. Add a column "stop_pending" in the database, and stop it when the
router come back.

Admin would able to choose to force destroy such router, then recover the
network using restartNetwork command with cleanup=false.
2011-09-14 16:23:17 -07:00
Sheng Yang ebd67feae7 bug 11307: Rewrite the redundant router's priority
Now the very first router's priority would be 100, and the second one would be
100 - 2 + 1 = 99.
2011-09-14 16:22:33 -07:00
Sheng Yang dfd36e4ae2 bug 11307: Add Bumped field for domain_router
Only used for redundant virtual router.
2011-09-14 16:22:11 -07:00
Sheng Yang b987123daa bug 11307: Let CheckRouterAnswer() parse the return result 2011-09-14 16:21:33 -07:00
alena bb9fda3435 Fixed the problem in addDhcpEntry code when _dnsBasicZoneUpdates was never reset once set to false.
Conflicts:

	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
2011-09-14 16:11:01 -07:00
Kelven Yang 7a64d8fda4 add VmwareInvestigator and VmwareFencer, use short worker VM name to avoid vCenter truncation 2011-09-14 15:15:26 -07:00
anthony 313b624373 bug 9777: only allow to delete snapshot in BackedUp status
status 9777: resolved fixed
2011-09-14 14:16:19 -07:00
alena 5f9246114b bug 10435: use "hostName" instead of "name" as a search filed in listSystemVms
status 10435: resolved fixed
2011-09-14 11:01:37 -07:00
alena b7f45cfbd6 bug 11434: don't execute destroy call when vm is already in Destroyed/Expunging state
status 11434: resolved fixed
2011-09-14 10:33:45 -07:00
prachi ea97ce2a93 Bug 11430 - add host > Host Tags field missing from DB + UI even when host tags specified in add host 2.2.y -> 2.2.12 KVM
Changes:

A KVM agent always connects to the management server itself, we dont have to do direct connect. This part of code was missing updating the DB host entry with hosttags.
Corrected the code to save the hosttags while adding a KVM host.
2011-09-14 10:27:07 -07:00
Murali Reddy 78a5b651ac bug 11425: dont count direct IP in resource count while updating resource count through API
status 11425: resolved fixed
2011-09-14 22:52:30 +05:30
Nitin 20f0707755 bug 11190: My changes got reverted. Putting them back - Treating the max account limits with -1 values as infinite 2011-09-14 19:35:48 +05:30
anthony d6cbd2b6bc bug 11275:
remove heartbeat entry for this Primary Storage, when put this Primary Storage into maintenance mode
create heartbeat entry for this Primary Storage, when cancal maintenance for this Primary Storage

status 11275: resolved fixed
2011-09-13 22:15:21 -07:00
frank 71385f7cc0 check hypervisorType and StoragePoolType in OCFS2 manager when delete host
don't take lock in processResourceEvent()
2011-09-13 17:35:58 -07:00
alena 45c595d558 Don't update resource count for system account 2011-09-13 16:58:54 -07:00
alena 569427ba1f bug 11036: if resource_count record is missing for account or domain, insert it during the management server startup (with count=0)
status 11036: resolved fixed
2011-09-13 15:23:27 -07:00
anthony f071ce571c bug 10949: if a cluster doesn't have any hosts, set cluster guid to new one when add host to this cluster.
status 10949: resolved fixed
2011-09-13 13:53:23 -07:00
alena b05c69f3b3 bug 11246: return lb rule Id in the async response for createLoadBalancer api
status 11246: resolved fixed
2011-09-13 12:08:12 -07:00
anthony c5bc16ef42 XcpServerDiscoverer is only for XenServer 2011-09-13 11:11:55 -07:00
kishan d2293137c7 bug 11199: Moved DB upgrade changes to schema-2211to2212-premium
status 11199: resolved fixed
2011-09-13 23:28:54 +05:30
alena f6a79c603f bug 11036: resource count update is refactored
status 11036: resolved fixed

1) Use row locks instead of global lock when update resource_count table. When update resource_count for account, make sure that we lock account+all related domains
2) Insert resource_count records for account/domain at the moment when account/domain is created.
3) As a part of DB upgrade, insert missing resource_count records for all non-removed accounts/domains

Conflicts:

	core/src/com/cloud/alert/AlertManager.java
	server/test/com/cloud/agent/MockAgentManagerImpl.java
2011-09-13 10:47:36 -07:00
Chiradeep Vittal 9b424a762d fix compilation of mocks 2011-09-13 09:22:52 -07:00
anthony ae64c56c12 bug 11413: when mark host ad disconnected, set lastping to now - pingtimeout
status 11413: resolved fixed
2011-09-12 18:50:07 -07:00
Chiradeep Vittal 3cb4ad4934 Add more detail when unable to schedule cleanup
clean up tests for security group manager v2

move interval to listener -- allows it to be configurable if needed

fix mocks

Enhanced logging for security group manager (from zucchini)

fix merge issues

merge issues
2011-09-12 18:22:55 -07:00
Chiradeep Vittal 1f3c6efb81 Retry only a few times 2011-09-12 18:20:24 -07:00
Chiradeep Vittal fae5e84699 if the xenserver host cannot do bridge firewalling do not attempt to retry the security rule updat
change some logs to debug level
2011-09-12 18:20:24 -07:00
Chiradeep Vittal 65fb83035f Enable monitoring over JMX
Add the ability to disable some vms from being scheduled

Add ability to trigger ruleset updates from JMX

added a few more dangerous JMX operations
2011-09-12 18:20:24 -07:00
Chiradeep Vittal d81bc5a375 Dequeue the vm with the largest id first -- this ensures that newly started vms get updated early 2011-09-12 18:20:23 -07:00
Chiradeep Vittal 925f5f2f09 Retry 3 times on deadlock: if not updated, then throw a runtime exception to roll back the vm start 2011-09-12 18:20:23 -07:00
Chiradeep Vittal 82fcfe8edc make signature calculation consistent across management servers 2011-09-12 18:20:23 -07:00
Chiradeep Vittal 37b4384990 retry a transaction if it deadlocks 2011-09-12 18:20:23 -07:00
Chiradeep Vittal cfbbe4c031 fix perf. issue in deploy vm. also remove dead code in dao 2011-09-12 18:20:23 -07:00
Chiradeep Vittal c21a214372 if true, this could lead to the dog chasing its own tail 2011-09-12 18:20:23 -07:00
Chiradeep Vittal 5dba8cf430 only update sequence number when asked to. full sync SHOULD NOT request sequence number updates since this will lead to the dog chasing its own tail 2011-09-12 18:20:23 -07:00
Chiradeep Vittal 6252d605c1 Avoid going back to the nics table for information we already have 2011-09-12 18:20:23 -07:00
Chiradeep Vittal d03c5af720 make instance_id unique to allow usage of ON DUPLICATE KEY
useful logging

Reduce batch size to 16 to avoid sql errors

try using multi inserts to overcome deadlock during batch update
2011-09-12 18:20:23 -07:00
Chiradeep Vittal 7e2c2c627f unit test for SG mgr v2 2011-09-12 18:20:22 -07:00
Chiradeep Vittal b52d1157e9 use the new implementation of SG manager 2011-09-12 18:20:22 -07:00
Chiradeep Vittal 4cd6a9217c Use hashset since it is 50% faster. we can use treeset when we support priority 2011-09-12 18:20:22 -07:00
Chiradeep Vittal 2fc782b8ba Add basic Mocks for some managers 2011-09-12 18:20:22 -07:00
Chiradeep Vittal abf4754503 New security group mgr WIP : memory based queueing 2011-09-12 18:20:22 -07:00
Chiradeep Vittal f41b352d36 revert egress rules implementation pending review
Reverts a19212703b9734ebd44ebf55cfdd81ebdc9d7fe4
Reverts 24e4e44b8f0712a37147a3777833de3f9e24829e
2011-09-12 14:45:58 -07:00
Chiradeep Vittal d817f3c364 Revert "bug 10617: Added Egress rules to Security groups."
revert pending review

This reverts commit a19212703b9734ebd44ebf55cfdd81ebdc9d7fe4.
2011-09-12 14:45:58 -07:00
Chiradeep Vittal e216686029 Revert "bug 10617: Intermediate checking"
revert pending review

This reverts commit 561b27565512d438db3d8896df6f97b644b0b498.
2011-09-12 14:45:58 -07:00
Nitin cbe996e1ce bug 11403: Making hypervisor_type of xs-tools.iso (id=200) as XenServer. Made the corresponding DB changes as well. 2011-09-13 03:07:32 +05:30
Kelven Yang 41926cb038 bug 11377: remove the restriction on VMware in API layer to let it support VM manual migration 2011-09-12 14:28:32 -07:00
frank d828f4e434 Bug 11350 - Baremetal destroy instance doesnt power off machine
status 11350: resolved fixed
2011-09-12 14:17:43 -07:00
anthony 299ae3ed91 fixed typo 2011-09-12 12:38:56 -07:00
kishan b30827a0ec bug 9778: Log snapshot create event only if the snapshot is in not removed state after backingUp to secondary. Log snapshot delete event for backed up snapshots only
status 9778: resolved fixed
2011-09-12 20:22:30 +05:30
kishan 5928a9b370 bug 9778: Log snapshot create event only if the snapshot is in not removed state after backingUp to secondary. Log snapshot delete event for backed up snapshots only
status 9778: resolved fixed
2011-09-12 20:01:19 +05:30
Nitin 3e096afba6 bug 10974: Fixed a bug in the search for listRouters API. The bug was introduced due to change in the VmInstancVO where the name field was changed to hostName. This went unnoticed in the DAO layer as we dont throw an exception but an assert error. 2011-09-12 16:51:17 +05:30
Nitin 002d0fda5a bug 11190: Treating the max account limits with -1 values as infinite. When acquiring a lock to check for resourceLimitExceeded if the lock times out then return as limit exceeded. 2011-09-12 14:26:15 +05:30
Kelven Yang 3c41775184 1) Increase working buffer size to 1M when downloading/uploading VMDK, hopefully can improve OVF exporting/importing performance. 2) use atomic SQL operation to get rid of global lock usage 2011-09-09 17:07:09 -07:00
Naredula Janardhana Reddy f9b0962ad9 bug 10617: Intermediate checking
Changes :
         - Fixing API doc +response name + errorMessage
         - Adding seperate events to Egress rules
         - Egress rules Using the same database table as that of ingress with new column type.

   Pending Tasks:
         - db upgrade
         - database table rename from security_ingress_rule to generic name, renaming some of the jave class from ingress to generic name.
         - Retesting on kvm
2011-09-09 18:14:19 +05:30
Nitin 50efe56335 bug 11051: listHostsCmd - Fixed the capacity and stats response. Also removed the unwarranted code. 2011-09-09 14:23:13 +05:30
kishan 4e663bbef9 bug 8338: Added usage.aggregation.range parameter. Also included in 2211 to 2212 upgrade 2011-09-09 13:43:13 +05:30
prachi d854923ac5 Bug 11200 - maximum number of guests per host
Manual Migration should fail if the destination host chosen by Admin already has max guest VMs running.
2011-09-08 18:33:55 -07:00
prachi 4ad9ac5e71 Bug 11200 - maximum number of guests per host
Changes:

To make sure migration does not attempt to pick a host that has running VMs more than the max guest VM's limit:

- Changed manual migration to call host allocators to return a list of hosts suitable for migration. Host allocators check for the max guest VM limit.
- Earlier we returned hosts with enough capacity but now Host Allocators make other checks along with capacity. So the list of hosts returned are hosts that have enough capacity AND satisfy all other conditions like host tags, max guests limit etc. Or in other words Allocators dont return the hosts that dont satisfy all conditions even if they have capacity.
-Therefore, now we mark the list of hosts returned for manual migration as 'suitable' hosts instead of 'hasenoughCapacity' in the HostResponse.
- HA migration already calls allocators, so no change is needed there.
2011-09-08 18:08:31 -07:00
keshav e3252e5e66 Excluded external firewall/LB from host stats collection, and included them in ping checks 2011-09-08 16:43:37 -07:00
Kelven Yang aa7f06d7eb bug 11384: deprecate vmware.guest.nic.device.type global configuration variable 2011-09-08 16:11:17 -07:00
alena 6e6b6ab2ab Fixed the bug in AgentLB: consider only hosts of type=Routing when calculate average load 2011-09-08 14:57:04 -07:00
Kelven Yang a118880836 bug 10874: don't invalid run session of other management server even if it detects it is unreachable as the event may just be temporary network condition 2011-09-08 14:22:52 -07:00
anthony 4423da06a2 1. added timeout in Command Class, then each command can configure itself timeout, if timeout is not configed, use the default timeout , which is 30 minute
2. added following configurable timeout
       PrimaryStorageDownloadWait("Storage", TemplateManager.class, Integer.class, "primary.storage.download.wait", "10800", "In second, timeout for download template to primary storage", null),
       CreateVolumeFromSnapshotWait("Storage", StorageManager.class, Integer.class, "create.volume.from.snapshot.wait", "10800", "In second, timeout for create template from snapshot", null),
       CopyVolumeWait("Storage", StorageManager.class, Integer.class, "copy.volume.wait", "10800", "In second, timeout for copy volume command", null),
       CreatePrivateTemplateFromVolumeWait("Storage", UserVmManager.class, Integer.class, "create.private.template.from.volume.wait", "10800", "In second, timeout for CreatePrivateTemplateFromVolumeCommand", null),
       CreatePrivateTemplateFromSnapshotWait("Storage", UserVmManager.class, Integer.class, "create.private.template.from.snapshot.wait", "10800", "In second, timeout for CreatePrivateTemplateFromSnapshotCommand", null),
       BackupSnapshotWait("Storage", StorageManager.class, Integer.class, "backup.snapshot.wait", "10800", "In second, timeout for BackupSnapshotCommand", null),
2011-09-07 19:17:54 -07:00
Kelven Yang 905df61aac bug 11362: Make VM network adapter device type be selectable based on VM-specific details 2011-09-07 17:58:42 -07:00
Kelven Yang f70958809b bug 11360: make user_vm_details generic to all VMs instead of user-only VMs, VM details info will be carried down to hypervisor resource 2011-09-07 15:42:40 -07:00
prachi 84868b7f9c Bug 11200 - maximum number of guests per host
Changes:
- Adding a new table 'hypervisor_capabilities' that will record capabilities for each hypervisor version. Added db schema changes for this.
- Currently a few capabilities have been added, namely, 'max_guests_limit' and 'security_group_enabled'
- Added a new column 'hypervisor_version' to host table. StartupRouting command now takes in this parameter. It should be set when a host connects.
- If a host's hypervisor version is not present, we find all the capabilities rows for that hypervisor type and use the first record.
- 'max_guests_limit' is the maximum number of running guest Vms that a host can have for the given hypervisor.
- Host Allocators use this limit and skip a host if the number of running VMs on that host exceeds this limit.
2011-09-07 14:53:05 -07:00
alena b883b25a12 bug 11348: make content type for "json" files configurable
status 11348: resolved fixed
2011-09-07 14:22:01 -07:00
alena ba2c6695cc bug 11326: don't try to transfer the agent if it's a forward agent
status 11326: resolved fixed

Also added more logging to the agent rebalance code.

Conflicts:

	server/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
2011-09-07 12:47:25 -07:00
anthony 13ee22d421 bug 10078:
1. introduce migratewait in global configuration, the default value is 1 hour
 2. use async xapi VM migration API

status 10078: resolved fixed
2011-09-07 12:36:17 -07:00
kishan 066537a565 bug 4282: Removed caching of signatures. Added detailed error message expires parameter parsing 2011-09-07 17:51:09 +05:30
alena 47d9cbd2ee bug 11331: allow extending vnet range as a part of updateZone call
status 11331: resolved fixed
2011-09-06 17:40:28 -07:00
kishan f9d5a46871 Compare current and previous network stats before updating. Ignore stats if the current stats are not same as the prev stats. Set NetworkUsageAnswer log level to debug 2011-09-05 18:41:42 +05:30
Naredula Janardhana Reddy 3c1f6fd24b bug 10467: Incorrect display of domain router linklocalmac address and linklocal netmask fixed 2011-09-05 13:42:12 +05:30
alena 3c0396bb20 bug 10751: don't remove already removed templates during the account cleanup
status 10751: resolved fixed
2011-09-02 16:06:55 -07:00
alena b93318cb73 bug 11002: userVmDao - create searchBuilder as a part of dao init process (otherwise it's not threadsafe)
status 11002: resolved fixed
2011-09-02 15:51:52 -07:00
Kelven Yang 4d3d47f01c bug 11304: restore host status after initialization failure 2011-09-02 15:19:36 -07:00
anthony c683fda236 set timeout for CheckOnHostCommand to 50 s 2011-09-02 15:01:32 -07:00
anthony c7fb330914 put getConnection into try 2011-09-02 15:01:28 -07:00
alena eb9b5c1f65 bug 11259: ROOT admin can extract template/iso even when it's not mark as extractable
status 11259: resolved fixed
2011-09-02 12:37:15 -07:00
alena ecd99ad379 bug 11332: don't try to log vm's information when the vm is already Expunged
status 11332: resolved fixed

Conflicts:

	server/src/com/cloud/vm/dao/VMInstanceDaoImpl.java
2011-09-02 12:08:39 -07:00
Sheng Yang 4e5ce5690a bug 11305: Stop disconnected redundant virtual router if we can process with the connected one
When we apply rules or start new VM, we may encounter some running routers that
we can't program. That can due to network issue or host is down or vCenter is
disconnected, etc. To keep the synchronization, we would stop them, but only
when there is the other router we've successfully updated. If both routers are
unable to communicate with, we simply give up and report it user.

Conflicts:

	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
2011-08-31 19:29:32 -07:00
Sheng Yang 01eb08a384 bug 11305: Remove router stop logic from disconnect host.
Now the logic is: if we can only connect to one of the two redundant routers, we
would stop the one that can't be connected. If we fail to program both routers,
just let it go.
2011-08-31 19:27:57 -07:00
alena 8b5f2c758e Do account permission checks for snapshots the way it's done for all other ControlledEntities 2011-08-31 18:15:08 -07:00
frank 0c0fe8c1b3 Bug 8966 - Oracle VM (OVM) support
configure hostname of host for OCFS2
small fixes
2011-08-31 17:25:04 -07:00
Kelven Yang 0421eafba0 bug 10765: add japanese keyboard support for linux OSes 2011-08-31 15:53:01 -07:00
kishan 8d5e7ff659 bug 11316: In 2.2.y, removed new template upgrade changes. Added upgrade path from 2210 to 2211. Moved existing changes to 2211to2212
status 11316: resolved fixed
2011-08-31 15:16:12 +05:30
kishan 2ff1e4f92a bug 11316: Removed new template upgrade changes. Added upgrade path from 2210 to 2211. Existing changes moved to 2211to2212 upgrade
status 1316: resolved fixed
2011-08-31 14:19:20 +05:30
alena 39b78ee17c bug 11298: give detailed error message when failed to authenticate a user
status 11298: resolved fixed
2011-08-30 16:51:45 -07:00
alena d65bef383c Mark account as cleanup_required=0 when cleanup was finished successfully 2011-08-30 14:09:14 -07:00
alena 8f9b929e3f Don't remove the domain when it has accounts that are removed, but require cleanup 2011-08-30 14:09:01 -07:00
alena 09f8d8ee4c Fixed the bug when networkRate for the domR's guest network wasn't taken from the service offering 2011-08-30 10:41:17 -07:00
Naredula Janardhana Reddy 854f81962f bug 10617: Added Egress rules to Security groups.
Description :
   API's:
     -  Two new api's authorizeSecurityGroupEgress,revokeSecurityGroupEgressCmd are added. These two API's are similer to ingress rule API's.
           - authorizeSecurityGroupEgress :Authorizes a particular egress rule for this security group . Usageof API is very similer to that of authorizeSecurityGroupIngress except that instead of source cidr  there will be destination cidr. By default like ingress, all the outgoing flows are blocked.
           - revokeSecurityGroupEgress : It is similer to revokeSecurityGroupIngress api, It removes the egress rule.
     -  listSecurityGroup API's response changed. It include's egress list apart from the existing ingress rules in the output of the API.

   Hypervisors :
      - It is implemented in Xen and KVM.

   Pending Tasks :  Blocking using destination security groups.

   Previous commits: c9fda641673df7701f44963ef27e1d488f121219 , 24e4e44b8f0712a37147a3777833de3f9e24829e
2011-08-30 16:28:35 +05:30
Murali Reddy 279d21ee92 bug 11179: template url and format are not validated
added check to verify url ends with extension same as the template format specified
2011-08-30 16:15:58 +05:30
Edison Su 03e33f16bf bug 11217: only work on the snapshot whose state is "backedup" and is not removed
status 11217: resolved fixed
2011-08-29 15:28:01 -07:00
Edison Su 60cbef1fb8 bug 11217: add db upgrade script, if sechost_id is missing of a snapshot, add one got from presnapshot_id
status 11217: resovled fixed

Conflicts:

	server/src/com/cloud/upgrade/dao/Upgrade229to2210.java
2011-08-29 15:27:53 -07:00
alena 41be3716e3 bug 11196: fixed the code when gson serialization was done twice
status 11196: resolved fixed
2011-08-29 14:50:18 -07:00
Murali Reddy 9abb544865 bug 6876: netscaler MPX & VPX support
- adding supprt for Netscaler VPX & MPX load blancers
    - implemented for virtual networking
    - works only with new fetched public IP, inline support is not added yet
2011-08-30 00:14:05 +05:30
alena 0b95ad2f0f bug 11290: insert VPN config values as a part of 229-2210 upgrade
status 11290: resolved fixed
2011-08-29 11:22:42 -07:00
Murali Reddy 9a10f2b402 bug 6876: netscaler MPX & VPX support
- adding supprt for Netscaler VPX & MPX load blancers
- implemented for virtual networking
- works only with new fetched public IP, inline support is not added yet

more details will be added in the bug
2011-08-29 19:26:08 +05:30
alena 9ecd2058e7 Reverted wrong commit for logging in HostDaoImpl 2011-08-26 17:49:12 -07:00
Kelven Yang ebfe43d15c bug 11263: only update host Id when VM is in running state when detected external VM migration 2011-08-26 16:28:58 -07:00
alena 482528ce8c Fixed the bug in extractTemplate - do ignoreCase comparison when verify the download mode. 2011-08-26 10:11:30 -07:00
Nitin 294f3953a4 bug 11244: Thread updating "op_host_capacity" table shouldn't do updates for removed pods/zones.
status 11244: resolved fixed
2011-08-26 18:58:52 +05:30
Naredula Janardhana Reddy cbed4c7a44 bug 11253:
Added New value "link-local"  to  global config network.loadbalancer.haproxy.stats.visibility . With this change it can take new parameter "link-local" value apart from the existing 3 values global,guest-network,disabled.
       global -  stats visible from public network
       guest-network - stats visible only to guestnetwork.
       link-local - stats visible only to link local network
       disabled - stats disabled.
2011-08-26 15:21:29 +05:30
alena a11b7de9fe Set firewall.rule.ui.enabled to false by default
Conflicts:

	server/src/com/cloud/configuration/Config.java
2011-08-25 16:12:55 -07:00
Kelven Yang 9ace681547 bug 11162: merge fix from 2.2.10 premium 2011-08-25 15:38:43 -07:00
Kelven Yang 97a7dddf7d bug 11162: support memory overprovisioning in VMware 2011-08-25 15:38:28 -07:00
alena 35b551a199 bug 11260: Take networkRate for domR's guest and public interface from the corresponding system service offering 2011-08-25 14:15:12 -07:00
prachi 1fefdd628d Bug 11261 - Allow to update host tags
Changes:
- Changes to updateHostCmd to accepts hosttags parameter
- Changes to wipe out existing tags and save new ones in host_tags DB.
- UpdateHost is Admin only operation - so only root admin can update host tags
2011-08-25 13:01:57 -07:00
alena 8c53dbcdd7 bug 11185: support multiple CIDR on overlapping port ranges for firewall rules
status 11185: resolved fixed

Conflicts:

	server/src/com/cloud/network/firewall/FirewallManagerImpl.java

Conflicts:

	api/src/com/cloud/network/firewall/FirewallService.java
	server/src/com/cloud/network/firewall/FirewallManagerImpl.java
	server/src/com/cloud/network/lb/LoadBalancingRulesManagerImpl.java
	server/src/com/cloud/network/rules/RulesManagerImpl.java
2011-08-25 12:21:11 -07:00
prachi 16986c01c8 Bug 9921 - template tags
-Added missing import statement.
2011-08-25 12:16:09 -07:00
prachi b6851e631e Bug 9921 - template tags
-Upgrade path from 2.2.10 to 2.2.11
2011-08-25 12:09:21 -07:00
prachi 05440f0905 Bug 9921 - template tags
Changes:
- CreateTemplate and RegisterTemplate now support adding a template tag. It is a string value. This is root-admin only action - only admin can add template tags.
- ListTemplates will return the template tag in response.
- HostAllocator changed to use template tag along with the existing tag on service offering. If both tags are present, allocator now finds hosts satisfying both tags. If no hosts have both tags, allocation will fail.
- DB changes to add new column to vm_template table.
- DB upgrade changes for upgrade from 2.2.10 to 2.2.11
2011-08-25 12:03:59 -07:00
Abhinandan Prateek cd01f7dab2 bug 11181: taking care of a boundary condition with 0 user VM 2011-08-25 15:38:48 +05:30
Naredula Janardhana Reddy 9feb05ac13 bug 10617: This is Intermediate commit for Egress rules implementation in security groups.
previous commit: c9fda641673df7701f44963ef27e1d488f121219 ( this under bug 1067, typing error)
        changes: 1) partially implemented  listing of egress rules along with ingress rules.
                 2) partially implemneted egress rules for KVM
2011-08-25 12:18:33 +05:30
Edison Su 9391938908 fix conflict 2011-08-24 18:47:09 -07:00
alena 0355c26f03 bug 11242: check if db object is already removed before generating the Debug log. It can happen in case when deleteHost command is called many times in parallel for the same host
status 11242: resolved fixed
2011-08-24 15:48:18 -07:00
Kelven Yang 1061738924 bug 11230, 11229: merge fix from 2.2.10 branch, fix Eclipse project settings for premium-move 2011-08-24 15:18:08 -07:00
Kelven Yang a51383e296 bug 11219: use local storage flag from service offering when it is ROOT disk 2011-08-24 15:17:53 -07:00
alena ee9fbf10b6 Method signature change 2011-08-24 14:56:37 -07:00
alena e3f179844e bug 11236: domainAdmin/regularUser can edit/delete/copy/extract Public template/iso only if it was created by them. They still can use/see public template/iso when execute list/deploy/attachIso commands. Root admin can operate with other people templates w/o any restrictions.
status 11236: resolved fixed
2011-08-24 14:48:35 -07:00
frank 85f18ff256 fix build, add test rpm back 2011-08-24 13:24:51 -07:00
Edison Su 9a6fc7de45 bug 11217: add secondary storage id into snapshot, if it's an empty snapshot
status 11217: resolved fixed
2011-08-24 11:05:45 -07:00
alena 9544d42908 bug 11060: use lockTable instead of rowLock when createDomR/createDhcp
status 11060: resolved fixed
2011-08-24 11:01:23 -07:00
Edison Su 9a65935809 bug 11217: add secondary storage id into snapshot, if it's an empty snapshot
status 11217: resolved fixed
2011-08-24 10:48:10 -07:00
Nitin 4b6d072490 bug 10972: Improve logging - put in the hostid and hostname on which the vm launches.
status 10972: resolved fixed
2011-08-24 18:04:46 +05:30
root 01044c5b2d removing spurious debug statement 2011-08-24 16:47:29 +05:30
Abhinandan Prateek bd439831ad bug 11181: batching the select statements 2011-08-24 16:34:28 +05:30
Naredula Janardhana Reddy 470ffcb652 bug 11191:
Added global config to enable/disable rp_filter for domR.
   previous commit: d966906374d4a0cb8fa57326a1f7625c871f64fd

   Test Case-1 :
      1) Set network.disable.rpfilter  global config to true
      2) Restart the domR
      3) check the settings reflected in proc filesystem
           - for public interface like eth2,eth3 : /proc/sys/net/ipv4/conf/eth2/rp_filter should have 0 , and rest other interfaces should have value of 1
   Test Case-2 :
      1) set network.disable.rpfilter global config to false
      2) Restart the domR
      3) check the settings reflected in proc filesystem
           - for public interface like eth2,eth3 : /proc/sys/net/ipv4/conf/eth2/rp_filter should have 1 , and rest other interfaces should also have value of 1
2011-08-24 13:32:07 +05:30
Naredula Janardhana Reddy 145a4aad37 bug 11191: Added global config to disable/enable rp_filter for domR(public interfaces) 2011-08-24 13:30:23 +05:30
frank b3478c377e Full opensource 2011-08-23 19:52:19 -07:00
Sheng Yang fb6fb03175 bug 11214: Don't try to start the running router again
It's very like caused by StartRouterCmd sent to the running router. I can
reproduce it by issue a StartRouterCmd to a running redundant router. And this
patch should the following exception:

Exception: com.cloud.exception.ResourceUnavailableException: Resource
[VirtualNetworkApplianceManagerImpl$$EnhancerByCGLIB$$565b4d45:0] is
unreachable: There are already two redundant routers with IP 10.91.32.126, they
are r-5-VM(5) and r-4-VM(4)

status 11214: resolved fixed
2011-08-23 18:20:34 -07:00
Sheng Yang 2888247b74 Add more debug info 2011-08-23 17:59:54 -07:00
Kelven Yang 4f8a52f94c Move VMware/Premium Secondary storage VM to opensource 2011-08-23 14:43:39 -07:00
alena d3eb9db7fa bug 11204: when search for domR/dhcp, include Role to the corresponding search to eliminate getting "LB" network element in the response
status 11204: resolved fixed

Conflicts:

	server/src/com/cloud/network/element/VirtualRouterElement.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManager.java
2011-08-23 12:05:53 -07:00
prachi 40d348ff8b Bug 11213 - UserConcentratedPod returning wrong list of pods
Changes:
- Needed to add parentheses to the query to get correct results.
2011-08-23 11:53:48 -07:00
alena c9e60d703d Fixed listNetwork by id 2011-08-23 01:03:40 -07:00
alena 8a7feb8ec1 Merge branch '2.2.y'
Conflicts:
	agent/src/com/cloud/agent/resource/computing/LibvirtComputingResource.java
	api/src/com/cloud/agent/api/routing/LoadBalancerConfigCommand.java
	api/src/com/cloud/agent/api/to/FirewallRuleTO.java
	api/src/com/cloud/agent/api/to/IpAddressTO.java
	api/src/com/cloud/agent/api/to/PortForwardingRuleTO.java
	api/src/com/cloud/api/ApiConstants.java
	api/src/com/cloud/api/BaseCmd.java
	api/src/com/cloud/api/ResponseGenerator.java
	api/src/com/cloud/api/commands/CreateFirewallRuleCmd.java
	api/src/com/cloud/api/commands/CreateIpForwardingRuleCmd.java
	api/src/com/cloud/api/commands/CreateLoadBalancerRuleCmd.java
	api/src/com/cloud/api/commands/CreatePortForwardingRuleCmd.java
	api/src/com/cloud/api/commands/DeleteLoadBalancerRuleCmd.java
	api/src/com/cloud/api/commands/ListCapabilitiesCmd.java
	api/src/com/cloud/api/commands/UpdateNetworkCmd.java
	api/src/com/cloud/api/response/CapabilitiesResponse.java
	api/src/com/cloud/network/Network.java
	api/src/com/cloud/network/NetworkService.java
	api/src/com/cloud/network/firewall/FirewallService.java
	api/src/com/cloud/network/lb/LoadBalancingRule.java
	api/src/com/cloud/network/lb/LoadBalancingRulesService.java
	api/src/com/cloud/network/rules/FirewallRule.java
	api/src/com/cloud/network/rules/RulesService.java
	api/src/com/cloud/offering/NetworkOffering.java
	client/tomcatconf/commands.properties.in
	cloud.spec
	core/src/com/cloud/agent/resource/virtualnetwork/VirtualRoutingResource.java
	core/src/com/cloud/hypervisor/xen/resource/CitrixHelper.java
	core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
	core/src/com/cloud/storage/template/DownloadManagerImpl.java
	core/src/com/cloud/vm/DomainRouterVO.java
	debian/cloud-deps.install
	patches/systemvm/debian/config/etc/init.d/cloud-early-config
	patches/systemvm/debian/config/root/ipassoc.sh
	patches/systemvm/debian/config/root/loadbalancer.sh
	scripts/vm/hypervisor/kvm/rundomrpre.sh
	scripts/vm/hypervisor/xenserver/vmops
	server/src/com/cloud/agent/manager/AgentAttache.java
	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/agent/manager/AgentMonitor.java
	server/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
	server/src/com/cloud/alert/ClusterAlertAdapter.java
	server/src/com/cloud/api/ApiResponseHelper.java
	server/src/com/cloud/api/ApiServer.java
	server/src/com/cloud/cluster/ClusterManagerImpl.java
	server/src/com/cloud/configuration/Config.java
	server/src/com/cloud/configuration/ConfigurationManager.java
	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
	server/src/com/cloud/configuration/DefaultComponentLibrary.java
	server/src/com/cloud/deploy/FirstFitPlanner.java
	server/src/com/cloud/ha/HighAvailabilityManagerImpl.java
	server/src/com/cloud/host/dao/HostDaoImpl.java
	server/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java
	server/src/com/cloud/network/LoadBalancerVO.java
	server/src/com/cloud/network/NetworkManager.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/network/dao/FirewallRulesDao.java
	server/src/com/cloud/network/dao/FirewallRulesDaoImpl.java
	server/src/com/cloud/network/element/DhcpElement.java
	server/src/com/cloud/network/element/VirtualRouterElement.java
	server/src/com/cloud/network/firewall/FirewallManagerImpl.java
	server/src/com/cloud/network/lb/LoadBalancingRulesManagerImpl.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManager.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
	server/src/com/cloud/network/rules/FirewallManager.java
	server/src/com/cloud/network/rules/FirewallRuleVO.java
	server/src/com/cloud/network/rules/PortForwardingRuleVO.java
	server/src/com/cloud/network/rules/RulesManagerImpl.java
	server/src/com/cloud/network/rules/StaticNatRuleImpl.java
	server/src/com/cloud/network/security/SecurityGroupListener.java
	server/src/com/cloud/network/security/SecurityGroupManagerImpl.java
	server/src/com/cloud/offerings/NetworkOfferingVO.java
	server/src/com/cloud/server/ConfigurationServerImpl.java
	server/src/com/cloud/server/ManagementServerImpl.java
	server/src/com/cloud/storage/StorageManager.java
	server/src/com/cloud/storage/StorageManagerImpl.java
	server/src/com/cloud/storage/dao/VMTemplateHostDaoImpl.java
	server/src/com/cloud/storage/download/DownloadMonitorImpl.java
	server/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
	server/src/com/cloud/upgrade/dao/Upgrade228to229.java
	server/src/com/cloud/upgrade/dao/Upgrade229to2210.java
	server/src/com/cloud/user/AccountManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
	server/src/com/cloud/vm/dao/DomainRouterDao.java
	server/src/com/cloud/vm/dao/DomainRouterDaoImpl.java
	setup/db/create-index-fk.sql
	setup/db/create-schema.sql
	setup/db/db/schema-222to224.sql
	setup/db/db/schema-227to228.sql
	setup/db/db/schema-228to229.sql
	setup/db/db/schema-229to2210.sql
	tools/testClient/README
	ui/scripts/cloud.core.instance.js
	utils/src/com/cloud/utils/SerialVersionUID.java
	utils/src/com/cloud/utils/db/ConnectionConcierge.java
	utils/src/com/cloud/utils/db/Merovingian2.java
	utils/src/com/cloud/utils/db/Transaction.java
	utils/src/com/cloud/utils/nio/Link.java
	utils/src/com/cloud/utils/nio/NioConnection.java
	utils/src/com/cloud/utils/time/InaccurateClock.java
2011-08-22 20:28:30 -07:00
alena c2732850f4 bug 11202: added "networkRate" param to service offering api responses 2011-08-22 13:35:43 -07:00
alena 0b061529b1 bug 11202: added "networkRate" param to service offering api responses 2011-08-22 13:34:47 -07:00
alena 31a022c720 Added networkRate parameter to createServiceOffering api command
Conflicts:

	server/src/com/cloud/configuration/ConfigurationManager.java
	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
2011-08-22 12:05:34 -07:00
alena 033765f93f Added networkRate parameter to createServiceOffering api command 2011-08-22 12:02:08 -07:00
alena 0998b04098 Fixed security issue in listNetworks
Conflicts:

	server/src/com/cloud/network/NetworkManagerImpl.java
2011-08-22 10:51:44 -07:00
alena 20a518f3ac Fixed security issue in listNetworks 2011-08-22 10:50:30 -07:00
prachi 8755044ea9 Merge Bug 11186 from 2.2.8mango
Bug 11186- Cannot restart existing VM if the cluster is disabled after the
VM has been created

Changes:
- We should not check for the cluster 'allocation_state' while starting an
    existing VM provided it has storage already allocated. But if volumes are
    deleted and new storage needs to be allocated, then we will not allow the
VM
    start.
- However we should still prohibit adding new VMs in that cluster.
2011-08-20 21:12:15 -07:00
prachi 3d4767c94c Merge Bug 11186 from 2.2.8mango
Bug 11186- Cannot restart existing VM if the cluster is disabled after the
VM has been created

Changes:
 - We should not check for the cluster 'allocation_state' while starting an
existing VM provided it has storage already allocated. But if volumes are
deleted and new storage needs to be allocated, then we will not allow the VM
start.
- However we should still prohibit adding new VMs in that cluster.
2011-08-20 21:02:09 -07:00
anthony 7084c270d3 reversed funtion parameter 2011-08-19 18:48:49 -07:00
anthony 2e2e550cc4 reversed funtion parameter 2011-08-19 18:41:59 -07:00
frank b607e4aa1c Merge branch '2.2.y' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.2.y 2011-08-19 17:29:57 -07:00
frank 32ee2dbe2c Remove baremetal specific parameters from AddHostCmd 2011-08-19 17:12:23 -07:00
frank cbbf80cee3 Use class.getSimpleName in ResourceListener 2011-08-19 17:06:58 -07:00
frank 016700737c Bug 8966 - Oracle VM (OVM) support
OCFS2 support -- reconfigure OCFS2 nodes when delete host
2011-08-19 17:06:48 -07:00
frank 7350d12fff Bug 8966 - Oracle VM (OVM) support
OCFS2 support -- use cluster name as OCFS2 cluster name
2011-08-19 17:06:35 -07:00
frank 0f109dd037 Introduce new resource life cycle listener 2011-08-19 17:06:12 -07:00
Edison Su 7a7662b01b fix typo 2011-08-19 16:15:52 -07:00
Edison Su eb72d340e2 fix typo 2011-08-19 16:15:17 -07:00
frank 18f87c2108 Merge branch 'cvm' into 2.2.y
Conflicts:
	api/src/com/cloud/api/BaseCmd.java
	cloud.spec
	core/src/com/cloud/storage/template/DownloadManagerImpl.java
	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/configuration/DefaultComponentLibrary.java
	server/src/com/cloud/deploy/FirstFitPlanner.java
	server/src/com/cloud/host/dao/HostDao.java
	server/src/com/cloud/network/security/SecurityGroupListener.java
	server/src/com/cloud/storage/StorageManagerImpl.java
	server/src/com/cloud/storage/listener/StoragePoolMonitor.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
	utils/src/com/cloud/utils/SerialVersionUID.java
2011-08-19 16:08:35 -07:00
Edison Su 56244c7c47 release the check 2011-08-19 16:07:55 -07:00
Edison Su de25a63ba8 release the check 2011-08-19 16:06:13 -07:00
Edison Su 5696543359 disable attach volume to a vm if volume state is not in allocated or ready state 2011-08-19 14:27:13 -07:00
Edison Su 1c49481305 disable attach volume to a vm if volume state is not in allocated or ready state 2011-08-19 14:26:47 -07:00
Edison Su eada883b5e bug 11183: put volume state into "Creating" state if it's created from snapshot.
status 11183: resolved fixed
2011-08-19 13:46:51 -07:00
Edison Su 8bbed3caea bug 11183: put volume state into "Creating" state if it's created from snapshot.
status 11183: resolved fixed
2011-08-19 13:45:35 -07:00
Abhinandan Prateek 8d4c7208a4 bug 11094: delinking api layer objects from dao layer 2011-08-19 15:23:49 +05:30
Abhinandan Prateek 601708c3e6 bug 11094: delinking api layer objects from dao layer 2011-08-19 15:21:03 +05:30
Sheng Yang 843e41752f Update redundant router status even router is down
We need to update the status to UNKNOWN if router is down(also ensure we can't
contact the router if the state is Stopped in our database).
2011-08-18 22:51:23 -07:00
Sheng Yang a961dd913f Update redundant router status even router is down
We need to update the status to UNKNOWN if router is down(also ensure we can't
contact the router if the state is Stopped in our database).
2011-08-18 22:51:13 -07:00
Naredula Janardhana Reddy 4369b0ba96 bug 1067:
- covered basic impelementation for xen, need to test corner cases.
      - Not implemneted: kvm, vmware , listing of egress rules.
2011-08-19 11:10:16 +05:30
alena 2c1df02ba1 Removed unused imports 2011-08-18 15:02:04 -07:00
Edison Su df6bee4061 add template for simulator 2011-08-18 11:37:50 -07:00
Edison Su ea102aa045 add host guid in migrate command 2011-08-18 11:03:40 -07:00
Edison Su 1bc7631bf2 finally, test framework works now 2011-08-18 10:51:31 -07:00
Kelven Yang 6349b63942 Use row lock instead of global lock when creating a new domain 2011-08-18 10:42:12 -07:00
Kelven Yang 9c47f6bd94 Use row lock instead of global lock when creating a new domain 2011-08-18 10:41:49 -07:00
alena 0afa6f052f bug 11167: no need to lock account when create security group to ensure that the group name is unique for account. If group already exists in the db, and we try to persist it again, mysql constraint (groupName, accountId) will fail and exception will be thrown.
status 11167: resolved fixed
2011-08-18 10:16:37 -07:00
alena 0cdb67fdc7 bug 11167: no need to lock account when create security group to ensure that the group name is unique for account. If group already exists in the db, and we try to persist it again, mysql constraint (groupName, accountId) will fail and exception will be thrown.
status 11167: resolved fixed
2011-08-18 10:16:20 -07:00
frank 035001bd19 Fix baremetal planner reply to non-baremetal VM when migration 2011-08-18 10:14:40 -07:00
frank 523a32edaa Fix baremetal planner reply to non-baremetal VM when migration 2011-08-18 10:14:16 -07:00
Abhinandan Prateek c2a769d993 fixed execptions while adding second host 2011-08-18 16:28:19 +05:30
Abhinandan Prateek 2df6e5cc69 fixed execptions while adding second host 2011-08-18 16:26:00 +05:30
Kelven Yang fdedbbc00e bug 10834: when VMware host is down, don't try to restat VMs on other host. VMware prohibits VM relocation when host is down 2011-08-17 18:11:55 -07:00
Kelven Yang 97e95fce82 bug 10834: when VMware host is down, don't try to restat VMs on other host. VMware prohibits VM relocation when host is down 2011-08-17 18:09:31 -07:00
alena d726b26180 Defined missing length field for VO classes 2011-08-17 15:13:28 -07:00
alena c82a373327 Defined missing length field for VO classes 2011-08-17 15:10:07 -07:00
alena 441d9d765c bug 11154: host can go in Maintenance state only after all vms are migrated from it
status 11154: resolved fixed
2011-08-17 12:04:11 -07:00
alena 6291554576 bug 11154: host can go in Maintenance state only after all vms are migrated from it
status 11154: resolved fixed
2011-08-17 12:03:53 -07:00
Murali Reddy b87c5ba331 bug 11148: VMs that got stopped during Host Maintenance have host_id associated with them
status 11148: resolved fixed

enabled vm stop, if the host is last valid host in cluster
2011-08-17 18:14:31 +05:30
Murali Reddy 37512883f1 bug 11148: VMs that got stopped during Host Maintenance have host_id associated with them
status 11148: resolved fixed

enabled vm stop, if the host is last valid host in cluster
2011-08-17 18:11:23 +05:30
Kelven Yang a9c67d23fa bug 11099: Let VM sync to cooperate with migration process 2011-08-16 15:23:01 -07:00
Sheng Yang 9366290423 Fix NPE when a router is fail to start
Also enforce the check for restartNetworkCommand
2011-08-16 11:43:47 -07:00
Sheng Yang b10f560be5 Fix NPE when a router is fail to start
Also enforce the check for restartNetworkCommand
2011-08-16 11:43:36 -07:00
Edison Su 449a12870b finally, test framework works now 2011-08-16 10:30:52 -07:00
Edison Su ed7214c710 add host guid in migrate command 2011-08-16 10:30:52 -07:00
Edison Su 48342ff6e2 remove unnecessary transcation 2011-08-16 10:30:52 -07:00
Edison Su 0be1510496 add template for simulator 2011-08-16 10:30:51 -07:00
alena 356728ae19 Fixed spelling mistake 2011-08-16 09:52:00 -07:00
Kelven Yang 5fc66d1c61 re-enable HA logic on VM state synchronization for VMware 2011-08-15 17:00:43 -07:00
alena 11d06f3d6a Added missing license headers 2011-08-15 14:24:46 -07:00
alena 5fd0ff5610 Added missing license headers 2011-08-15 14:24:28 -07:00
alena dfb37faa01 bug 10567: In Basic zone, throw an exception with Pod scope when vm failed to be added to the network - so we retry to start it in a different pod 2011-08-15 11:28:14 -07:00
alena 8f3e83d2bc bug 10567: In Basic zone, throw an exception with Pod scope when vm failed to be added to the network - so we retry to start it in a different pod 2011-08-15 11:20:45 -07:00
alena 812a1f3f7b Fixed the bug in allocator where cluster was added to avoid set as pod 2011-08-15 10:44:07 -07:00
alena 3945eec0df Fixed the bug in allocator where cluster was added to avoid set as pod 2011-08-15 10:43:59 -07:00
alena 6f436b6b0b Improved logging in 229 to 2210 upgrade 2011-08-15 10:21:20 -07:00
Sheng Yang d1721669ea bug 11122: Fix router startup
The new created router got hostId = 0.

status 11122: resolved fixed
2011-08-15 10:21:20 -07:00
alena 73fe2cbb89 Fixed db upgrade issue for 229-2210 firewall rules 2011-08-15 10:20:34 -07:00
Sheng Yang 23674a5386 bug 11105: Fix router with disconnected host
We keep the stopped router there, but continue with the ones we can use.

status bug 11105: resolved fixed
2011-08-15 10:20:34 -07:00
alena 05713a20e8 bug 11114: when release static nat as a part of vm expunge, do searchIncludingRemoved in nics table as the nics are marked as Removed before static nat is released
status 11114: resolved fixed
2011-08-15 10:18:45 -07:00
alena 47e8d2b29c Fixed error message 2011-08-15 10:18:44 -07:00
alena c8cf17f6da Revert "fix NPE when listvolume if vm got destroyed"
This reverts commit 9bdaa9d967a6390cc1655ce7344d5af474890e4c.
2011-08-15 10:18:44 -07:00
alena d8a9612ef7 Remove firewall rule along with pf/staticNat/lb rule if the pf/staticNat/lb failed to create due to network rule conflict 2011-08-15 10:18:44 -07:00
Edison Su ec978f0716 fix NPE when listvolume if vm got destroyed 2011-08-15 10:18:10 -07:00
alena 891f02f4d4 Resend firewall rules on domR restart 2011-08-15 10:18:10 -07:00
Naredula Janardhana Reddy c63f9fbca2 bug 10561: allowing to create a firewall rule with sameport range but different protocols 2011-08-15 10:18:10 -07:00
alena 803255b0ba bug 11029: db upgrade from 2.2.9 to 2.2.10 includes firewall_rule upgrade now
status 11029: resolved fixed

Commit also includes the following:

* map firewall rule to pf/lb/staticNat/vpn when the firewall rule is created as a part of pf/lb/staticNat/vpn rule creation
* when delete firewall rules, also delete related firewall rule
2011-08-15 10:18:09 -07:00
Sheng Yang bb6c2d48f5 bug 11122: Fix router startup
The new created router got hostId = 0.

status 11122: resolved fixed

Conflicts:

	server/src/com/cloud/network/element/VirtualRouterElement.java
2011-08-13 00:21:35 -07:00
Sheng Yang 08a2f30785 bug 11122: Fix router startup
The new created router got hostId = 0.

status 11122: resolved fixed
2011-08-13 00:15:53 -07:00
Sheng Yang fbd9e2159d bug 11105: Fix router with disconnected host
We keep the stopped router there, but continue with the ones we can use.

status bug 11105: resolved fixed
2011-08-12 19:16:07 -07:00
Sheng Yang ee90c51a77 bug 11105: Fix router with disconnected host
We keep the stopped router there, but continue with the ones we can use.

status bug 11105: resolved fixed
2011-08-12 19:15:52 -07:00
alena 287a695664 Revert "fix NPE when listvolume if vm got destroyed"
This reverts commit d028454ab46f1e901e2517dd64a0b8a9780c9968.
2011-08-12 17:32:20 -07:00
alena 25ddb22724 Revert "fix NPE when listvolume if vm got destroyed"
This reverts commit b6518399987a17c791f22b991dcea36d57866269.
2011-08-12 17:30:13 -07:00
Edison Su 4df7423f70 fix NPE when listvolume if vm got destroyed 2011-08-12 14:43:07 -07:00
Edison Su 2548269238 fix NPE when listvolume if vm got destroyed 2011-08-12 14:40:46 -07:00
Alex Huang 7ac3c818a9 bug 11079: fixed a bug with autoboxing 2011-08-12 14:14:15 -07:00
kishan 83991a8494 bug 4282: Storing signatures cache using ehcache. ToDo- Relicate cache for clustered mgmt server setup 2011-08-12 20:27:20 +05:30
Murali Reddy 0969ba8063 bug 10923: changes for snapshot command to carry primary storage pool path 2011-08-12 17:45:02 +05:30
Murali Reddy cc60989a68 bug 10923: changes for snapshot command to carry primary storage pool path 2011-08-12 17:43:18 +05:30
Nitin 5ef0c96e70 bug 11096: ExtractTemplate - For private template choose the correct sec storage host id since its not present in all the sec storage now. 2011-08-12 14:30:34 +05:30
Nitin f1d13729af bug 11096: ExtractTemplate - For private template choose the correct sec storage host id since its not present in all the sec storage now. 2011-08-12 12:21:02 +05:30
Sheng Yang 12a49668d7 Add alert and log for redundant router state change 2011-08-11 23:37:17 -07:00
Sheng Yang 932f8a7144 Add alert and log for redundant router state change 2011-08-11 23:37:01 -07:00
Kelven Yang e59c14a758 Disable HA in CloudStack HA manager under VMware 2011-08-11 18:10:07 -07:00
Kelven Yang c498cf3ec6 Disable HA in CloudStack HA manager under VMware 2011-08-11 18:09:11 -07:00
Sheng Yang 29cc88571f Redundant router script fix, also fix CheckRouterTask 2011-08-11 17:57:12 -07:00
Sheng Yang 23e6b96c98 Redundant router script fix, also fix CheckRouterTask 2011-08-11 17:57:00 -07:00
Kelven Yang bbf20ac125 bug 11019: Let VM sync to coordinate with possible VM-relocation under VMware when VM is in starting time 2011-08-11 17:51:56 -07:00
Chiradeep Vittal d7f332d16b do not release ip for advanced networking / regular LB usage 2011-08-11 17:42:50 -07:00
Chiradeep Vittal 51af0db682 mass merge 2.2.10 2011-08-11 16:41:52 -07:00
alena 5080e8ba33 No need to apply static nat for ip which is not static nat enabled 2011-08-11 16:00:16 -07:00
Sheng Yang b63b3fcf05 Skip the null Host for CheckRouterTask 2011-08-11 14:29:49 -07:00
Kelven Yang 9e1ee30ea3 bug 11019: Let VM sync to coordinate with possible VM-relocation under VMware when VM is in starting time 2011-08-11 14:28:39 -07:00
alena 10034bc196 Fixed rule validation for static nat rules 2011-08-11 14:03:49 -07:00
Sheng Yang 576aec60e0 Skip the null Host for CheckRouterTask 2011-08-11 13:22:47 -07:00
Sheng Yang d6e99567ce Skip the null Host for CheckRouterTask 2011-08-11 13:22:31 -07:00
Sheng Yang 333510db0e Fix redundant router switch back to single router
The existed redundant router network didn't change.
2011-08-11 12:49:44 -07:00
Sheng Yang 0f0d705ae0 Fix redundant router switch back to single router
The existed redundant router network didn't change.
2011-08-11 12:49:26 -07:00
Sheng Yang f28291cedb Fix redundant router switch back to single router
The existed redundant router network didn't change.
2011-08-11 12:48:56 -07:00
keshav df5f48c093 Added parameter to enable the firewall rule UI to the list capabilities API. 2011-08-11 12:03:06 -07:00
keshav 4da9b6bfb4 Added parameter to enable the firewall rule UI to the list capabilities API. 2011-08-11 11:54:41 -07:00
keshav d47eb46faf Added parameter to enable the firewall rule UI to the list capabilities API. 2011-08-11 11:42:02 -07:00
alena 477e5d6389 bug 10561: reapply static nat on the backend as a part of domR restart and network restart 2011-08-11 11:19:09 -07:00
Alex Huang 6e7ad8830f bug 11043: Propagating fix 2011-08-11 10:30:03 -07:00
Alex Huang 1079a77024 bug 11043: rverted the bad fix 2011-08-11 10:27:02 -07:00
Alex Huang 15f86d3d93 bug 11043: rverted the bad fix 2011-08-11 10:25:31 -07:00
alena 278f2a401f bug 10561: intermediate checkin for enable/disableStaticNat.
1) On enableStaticNat command we actually send the command to the backend (we used to just upgrade the DB in the past). The backend command carries sourceIp and destIp, and creates IP to IP mapping on the domR.
2) On disableStaticNat for the Ip address in addition to cleaning up port ranges, we also delete IP to IP mapping on the domR.
2011-08-11 10:19:22 -07:00
Nitin 56ce65710d bug 5370: copy Template/Iso - generating the started and completed events.
status 5370: resolved fixed
2011-08-11 16:14:27 +05:30
Chiradeep Vittal 17a8234140 should be able to apply firewall rules to static natted ips 2011-08-10 22:53:07 -07:00
Chiradeep Vittal b33f08053c bug 11072: one more 2011-08-10 22:04:21 -07:00
Chiradeep Vittal 375da4da1a bug 11072: icky icky icky 2011-08-10 20:40:13 -07:00
alena e874109839 bug 11071: when elb service is enabled, don't check supported protocols as the provider is NULL in data_center table
status 11071: resolved fixed
2011-08-10 19:25:04 -07:00
alena 0805dbd3fb Fixed rule validation for ICMP protocol 2011-08-10 19:11:26 -07:00
alena 13a9c1d589 Fixed capability check in rule validation 2011-08-10 18:23:13 -07:00
keshav 8dd86ff803 Added configuration parameter to enable/disable the firewall rule UI. 2011-08-10 18:19:52 -07:00
Sheng Yang 76a8738227 Fix existed single router network after enable redundant router feature 2011-08-10 18:08:20 -07:00
Sheng Yang 81a6de4eb7 Fix existed single router network after enable redundant router feature 2011-08-10 18:08:05 -07:00
Sheng Yang 8c70e06572 Fix existed single router network after enable redundant router feature 2011-08-10 18:07:42 -07:00
keshav 57f1ee7ca1 Added configuration parameter to enable/disable the firewall rule UI. 2011-08-10 16:06:32 -07:00
alena 3c29f00de1 bug 11013: Basic zone setup - pass domRs from other pods to addVirtualMachineToNetwork() method only when network.dns.basiczone.updates is set to "all"
status 11013: resolved fixed
2011-08-10 16:03:48 -07:00
keshav 1bb057d113 Added configuration parameter to enable/disable the firewall rule UI. 2011-08-10 15:56:01 -07:00
Sheng Yang 94f93a60c3 Clean up restart Network 2011-08-10 15:02:58 -07:00
Sheng Yang a9fd65b9c3 Clean up restart Network 2011-08-10 15:02:48 -07:00
Sheng Yang 18f2df44a1 Clean up restart Network 2011-08-10 15:02:08 -07:00
Sheng Yang 9569a7bbee Clean up VirtualRouterElement.restart() 2011-08-10 13:24:00 -07:00
Sheng Yang 16119d5cac Clean up VirtualRouterElement.restart() 2011-08-10 13:23:52 -07:00
Sheng Yang bcf5058eda Clean up VirtualRouterElement.restart() 2011-08-10 13:23:30 -07:00
alena 956445960a Throw ResourceUnavailableException when rules/ips fail to apply on the backend 2011-08-10 12:56:25 -07:00
alena fe3dd44bec ICMP protocol is supported in createFirewallRule command only; throw an error if specified in createPF/StaticNat/LB rule 2011-08-10 12:56:25 -07:00
Sheng Yang e1de9f5bec bug 11021: Add ReservationStrategy.Managed to prevent sourceNat from release
status 11021: resolved fixed
2011-08-10 12:52:19 -07:00
Sheng Yang 2d958c5d23 bug 11021: Add ReservationStrategy.Managed to prevent sourceNat from release
status 11021: resolved fixed
2011-08-10 12:52:10 -07:00
Sheng Yang 58a13c0d5a bug 11021: Add ReservationStrategy.Managed to prevent sourceNat from release
status 11021: resolved fixed
2011-08-10 12:51:43 -07:00
Sheng Yang 39452967b9 bug 11045: Fix exception exit of CheckRouterTask
Catch all the exception and come back to work.

status 11045: resolved fixed
2011-08-10 12:06:13 -07:00
Sheng Yang 87041202c0 bug 11045: Fix exception exit of CheckRouterTask
Catch all the exception and come back to work.

status 11045: resolved fixed
2011-08-10 12:05:44 -07:00
Sheng Yang 6e0eeb132e bug 11045: Fix exception exit of CheckRouterTask
Catch all the exception and come back to work.

status 11045: resolved fixed
2011-08-10 12:05:22 -07:00
alena 32b53351ff Fixed response processing in createFirewallRule command 2011-08-10 11:36:34 -07:00
Chiradeep Vittal ba38d4d4f2 change it back to false since ui now handles false 2011-08-10 10:21:36 -07:00
Chiradeep Vittal 3f3c64025b change it back to false since ui now handles false 2011-08-10 10:20:45 -07:00
kishan 219336e07c bug 4282: Initial Checkin. Added new parameters expires, signatureversion. Checking expires time and storing used signatures in-memory locally implemented. 2011-08-10 19:52:43 +05:30
Nitin 93204ae862 bug 4957: copyTemplate: should compare template_host_ref.size to configuration.max.template.iso.size values before sending command to the backend .
status 4957: resolved fixed
2011-08-10 18:18:35 +05:30
Abhinandan Prateek 949ad3f4c4 bug 10561: readding source cidr changes to firewall rules 2011-08-10 13:55:37 +05:30
Abhinandan Prateek 9bba09857e bug 10561: readding source cidr changes to firewall rules 2011-08-10 13:52:42 +05:30
anthony e5e85d05e9 bug 10695: add XCP 1.0 support
status 10695: resolved fixed

Conflicts:

	core/src/com/cloud/hypervisor/xen/resource/CitrixHelper.java
2011-08-09 19:51:32 -07:00
anthony 33b3e02c17 bug 10695: add XCP 1.0 support
status 10695: resolved fixed
2011-08-09 19:49:12 -07:00
Sheng Yang 5f31d5008e bug 10640: Update redundant virtual router allocation algorithm
Try to put routers to two different primary storages with two hosts, not the same
host.
2011-08-09 18:25:47 -07:00
Sheng Yang c76bfbaf15 bug 10640: Update redundant virtual router allocation algorithm
Try to put routers to two different primary storages with two hosts, not the same
host.
2011-08-09 18:25:36 -07:00
Sheng Yang 501dc0d9f4 bug 10640: Update redundant virtual router allocation algorithm
Try to put routers to two different primary storages with two hosts, not the same
host.
2011-08-09 18:21:28 -07:00
keshav 1761024fda Changed RuleTO classes to carry the source VLAN tag. Added guest network gateway to NetworkElementCommand. 2011-08-09 16:38:24 -07:00
Sheng Yang f85880c2a6 Revert "Catch domr creation exception"
This reverts commit 6d55408e1f0e1c98fe2a9d4cf51babc6a3308a14.
2011-08-09 15:58:10 -07:00
Sheng Yang 15cad8ba8e Revert "Catch domr creation exception"
This reverts commit 2eff1d0eb9e39e4a8d702bb9867b9e95bb276b3e.
2011-08-09 15:57:46 -07:00
frank f377ac1cf7 Use class.getSimpleName in ResourceListener 2011-08-09 15:56:17 -07:00
alena 56d5054e39 Revert "bug 10561: Allowing ICMP traffic through static NAT"
This reverts commit 5e74e24bb359456967866cb2c6cc0f6f73570f97.

Conflicts:

	server/src/com/cloud/network/rules/RulesManagerImpl.java
2011-08-09 15:51:57 -07:00
alena 4c4bff1c1e Fixed restarNetwork for networks of type Direct - was broken with checkin bfdb4d2d989ed00adcbbf5455731cc2980afcb7b 2011-08-09 15:51:57 -07:00
alena 2fef12e3ac Fixed the bug when domR was re-created as a part of implement() method in network gurus with sourceNatIp address belonging to incorrect user (System user instead of network owner).
Conflicts:

	server/src/com/cloud/network/element/DhcpElement.java
	server/src/com/cloud/network/element/VirtualRouterElement.java
2011-08-09 15:51:57 -07:00
alena 6b9603bc4c bug 10561: intermidiate checkin for FirewallRuleFeature
1) Added new apis: createFirewallRule, deleteFirewallRule, listFirewallRules
2) Modified existing apis - added boolean openFirewall parameter to createPortForwardingRule/createIpForwardingRule/createRemoteAccessVpn. If parameter is set to true, open firewall on the domR before creating an actual PF rule there
Modified backend calls appropriately.
3) Schema changes for firewall_rules table:
* startPort/endPort can be null now
* added icmp_type, icmp_code fields (can be not null only when protocol is icmp)
4) Added new manager - FirewallManagerImpl

Conflicts:

	api/src/com/cloud/api/BaseCmd.java
	client/tomcatconf/commands.properties.in
	server/src/com/cloud/api/ApiResponseHelper.java
	server/src/com/cloud/configuration/DefaultComponentLibrary.java
	server/src/com/cloud/network/lb/LoadBalancingRulesManagerImpl.java
	server/src/com/cloud/network/rules/RulesManagerImpl.java
2011-08-09 15:51:56 -07:00
Sheng Yang f558f74863 Catch domr creation exception 2011-08-09 15:03:27 -07:00
Sheng Yang bfaa56d471 Catch domr creation exception 2011-08-09 15:03:04 -07:00
frank 433fe1c9da Bug 8966 - Oracle VM (OVM) support
OCFS2 support -- reconfigure OCFS2 nodes when delete host
2011-08-09 14:06:51 -07:00
Kelven Yang eb28549e6c Seperate template cleanup control to enable template preloading 2011-08-09 13:42:50 -07:00
Kelven Yang fe9ccf33b5 Seperate template cleanup control to enable template preloading 2011-08-09 13:38:27 -07:00
Kelven Yang 75c9d43f2f Seperate template cleanup control to enable template preloading 2011-08-09 13:31:23 -07:00
Sheng Yang 8249c072ee Add more detail log for startVirtualRouter 2011-08-09 11:16:33 -07:00
Sheng Yang 071a67dcb8 Change router to FAULT state if anything goes wrong on fail-over 2011-08-09 11:09:44 -07:00
Sheng Yang 980c4b9120 Change router to FAULT state if anything goes wrong on fail-over 2011-08-09 11:09:20 -07:00
Nitin d763d809cc bug 10848: Introducing an api - ListCapacityByType. Add the basic DB layer in the command. 2011-08-09 18:12:37 +05:30
Abhinandan Prateek 311afeae23 bug 10731: reverting back source cidr changes for loadbalancer and portforwarding 2011-08-09 16:01:48 +05:30
Chiradeep Vittal e466f49fc6 for now keep supportELB for virtualized as public instead of false 2011-08-09 01:09:14 -07:00
Chiradeep Vittal 179368ea32 get lb working on advanced mode again 2011-08-09 01:02:58 -07:00
Chiradeep Vittal 64efcf0443 Merge branch '2.2.8' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.2.8 2011-08-08 22:42:10 -07:00
Chiradeep Vittal 301bf049d1 fix compile issues 2011-08-08 22:03:08 -07:00
Chiradeep Vittal 924961d898 merge nectarine 2011-08-08 21:45:37 -07:00
alena ae9ba8996a Fixed restarNetwork for networks of type Direct - was broken with checkin bfdb4d2d989ed00adcbbf5455731cc2980afcb7b 2011-08-08 21:33:34 -07:00
alena c5502fb8aa Fixed the bug when domR was re-created as a part of implement() method in network gurus with sourceNatIp address belonging to incorrect user (System user instead of network owner). 2011-08-08 21:17:24 -07:00
alena 06d007337a bug 10561: intermidiate checkin for FirewallRuleFeature
1) Added new apis: createFirewallRule, deleteFirewallRule, listFirewallRules
2) Modified existing apis - added boolean openFirewall parameter to createPortForwardingRule/createIpForwardingRule/createRemoteAccessVpn. If parameter is set to true, open firewall on the domR before creating an actual PF rule there
Modified backend calls appropriately.
3) Schema changes for firewall_rules table:
* startPort/endPort can be null now
* added icmp_type, icmp_code fields (can be not null only when protocol is icmp)
4) Added new manager - FirewallManagerImpl
2011-08-08 20:59:40 -07:00
Kelven Yang bf13273889 adjust to merged changes 2011-08-08 18:46:00 -07:00
Kelven Yang 02e64f90de Add prepareTemplate command(admin only) to allow pre-loading template into primary storage 2011-08-08 18:45:47 -07:00
Kelven Yang a3fb501378 adjust to merged changes 2011-08-08 18:44:14 -07:00
Kelven Yang 39a3d82f11 Add prepareTemplate command(admin only) to allow pre-loading template into primary storage 2011-08-08 18:37:26 -07:00
anthony 455f9f642c bug 11014:
1. if there is no storage pool, don't try to start system VM
2. not use "consoleproxy.restart" as other meaning

status 11014: resolved fixed
2011-08-08 18:31:14 -07:00
anthony 1a070f4c1b bug 11014:
1. if there is no storage pool, don't try to start system VM
2. not use "consoleproxy.restart" as other meaning

status 11014: resolved fixed
2011-08-08 18:28:34 -07:00
frank 7e1fc2ca1a Bug 8966 - Oracle VM (OVM) support
OCFS2 support -- use cluster name as OCFS2 cluster name
2011-08-08 18:22:43 -07:00
Naredula Janardhana Reddy 12cadca538 Revert "bug 10561: Allowing ICMP traffic through static NAT"
This reverts commit 5e74e24bb359456967866cb2c6cc0f6f73570f97.
2011-08-08 17:59:05 -07:00
Chiradeep Vittal c5a999757a get ELB working on 2.2.8 2011-08-08 17:58:35 -07:00
frank 6969d95784 Introduce new resource life cycle listener 2011-08-08 17:05:27 -07:00
Chiradeep Vittal 1228e6ed27 merge ELB / nectarine branch 2011-08-08 15:21:20 -07:00
Chiradeep Vittal 8277584b8a merge ELB / nectarine branch 2011-08-08 15:20:56 -07:00
frank e8c2fa4e8e Remove baremetal specific parameters from AddHostCmd 2011-08-08 15:01:26 -07:00
frank 6aaf3d5ae0 Merge branch 'cvm'
Conflicts:
	api/src/com/cloud/api/BaseCmd.java
	api/src/com/cloud/storage/Storage.java
	cloud.spec
	core/src/com/cloud/storage/template/DownloadManagerImpl.java
	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/configuration/DefaultComponentLibrary.java
	server/src/com/cloud/deploy/FirstFitPlanner.java
	server/src/com/cloud/host/dao/HostDao.java
	server/src/com/cloud/storage/StorageManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
	utils/src/com/cloud/utils/SerialVersionUID.java
2011-08-08 14:14:09 -07:00
frank c89425325b Bug 8966 - Oracle VM (OVM) support
OCFS2 support -- add files
2011-08-08 13:32:27 -07:00
frank c881bae64e Bug 8966 - Oracle VM (OVM) support
OCFS2 support -- use ComponentLocater to load OCFS2 manager
2011-08-08 13:30:15 -07:00
Naredula Janardhana Reddy 9e9ae52dbf Revert "bug 10561: Allowing ICMP traffic through static NAT"
This reverts commit 5e74e24bb359456967866cb2c6cc0f6f73570f97.
2011-08-09 00:08:07 +05:30
Nitin 01582fcd40 bug 10848: Introducing an api - ListCapacityByType. 2011-08-06 20:09:07 +05:30
Chiradeep Vittal 1e82b65983 Ensure upgrade picks up new db configs 2011-08-05 18:13:52 -07:00
Chiradeep Vittal b4a6f2103a ensure that we pick an idle elb vm in the same pod as the ip 2011-08-05 17:46:42 -07:00
frank c6fba0fd42 Bug 8966 - Oracle VM (OVM) support
OCFS2 support -- prepare OCFS2 nodes
2011-08-05 17:46:29 -07:00
Chiradeep Vittal ec7c9a2f7e bug 10998: maintain lb id in map table
status 10998: resolved fixed
2011-08-05 17:37:11 -07:00
keshav b8c9205000 Changed findOrCreateDhcpServers() to check if start IP is null before retrieving an IP address object 2011-08-05 17:03:20 -07:00
keshav 0165f915b6 Changed findOrCreateDhcpServers() to check if start IP is null before retrieving an IP address object 2011-08-05 16:54:03 -07:00
Chiradeep Vittal bb313a61f0 bug 10659: reuse unused elb vms if they are not gceed already 2011-08-05 15:17:58 -07:00
Chiradeep Vittal 0e5cf4831d remove accidental commit 2011-08-05 14:11:19 -07:00
alena 6eacc11222 bug 10994: Fixed NPE in destroySystemVm api
status 10994: resolved fixed
2011-08-05 12:46:20 -07:00
alena 797263265e bug 10994: Fixed NPE in destroySystemVm api
status 10994: resolved fixed
2011-08-05 12:45:57 -07:00
Chiradeep Vittal 5552b650ff Merge branch 'guru' into 2.2.8.nectarine 2011-08-05 12:27:47 -07:00
Chiradeep Vittal 68a450b5a4 initialize search builder 2011-08-05 12:26:15 -07:00
Chiradeep Vittal 60e21d5611 initialize search builder 2011-08-05 12:17:19 -07:00
Chiradeep Vittal ac8b833fb0 Ensure lb vm enables only those services that are necessary. ensure default route 2011-08-05 12:16:55 -07:00
Sheng Yang ee62361250 Fix missing lock releasing in VirtualNetworkApplianceManagerImpl.java 2011-08-05 12:15:20 -07:00
Sheng Yang 7a3edd74d5 Fix missing lock releasing in VirtualNetworkApplianceManagerImpl.java 2011-08-05 12:14:42 -07:00
Sheng Yang 12bd2180a1 bug 10991: Determine existing redundant router using both state and host id
Seems in some condition, when a router is stopped, it's host_id != null.

status 10991: resolved fixed
2011-08-05 11:37:13 -07:00
Sheng Yang 7638f8e7a7 bug 10991: Determine existing redundant router using both state and host id
Seems in some condition, when a router is stopped, it's host_id != null.

status 10991: resolved fixed
2011-08-05 11:36:35 -07:00
kishan 695abd5c5a bug 7826: Check for correct date range. Make DateFormat strict (turn off lenient)
status 7826: resolved fixed
2011-08-05 19:44:44 +05:30
Nitin c009b56a60 bug 6653: Extract Api's - No need to encode the url's forward slash with %2F as we have the latest version of gson which doesnt err out on forward slash anymore.
status 6653: resolved fixed
2011-08-05 18:44:41 +05:30
Abhinandan Prateek 59d5080718 bug 10969: name of VM is instance name, instead of display name
status 10969: resolved fixed
2011-08-05 13:18:42 +05:30
Abhinandan Prateek 415db5a126 bug 10969: name of VM is instance name, instead of display name
status 10969: resolved fixed
2011-08-05 13:16:39 +05:30
Abhinandan Prateek 51e43be06c bug 10969: name of VM is instance name, instead of display name
status 10969: resolved fixed
2011-08-05 13:14:28 +05:30
Abhinandan Prateek dae2f4d958 bug 10748: fixed it when the VM acts as a dhcp server only
status 10748: resolved fixed
2011-08-05 12:07:59 +05:30
Abhinandan Prateek 0f2a9b6a69 bug 10748: fixed it when the VM acts as a dhcp server only
status 10748: resolved fixed
2011-08-05 12:02:54 +05:30
Abhinandan Prateek c460a1b80b bug 10748: fixed it when the VM acts as a dhcp server only
status 10748: resolved fixed
2011-08-05 11:58:48 +05:30
Chiradeep Vittal 0c408d8da5 handle elb vm restart 2011-08-04 22:05:48 -07:00
Kelven Yang d10c8e2a1d bug 10765: fix step 2 - programming VNC server to let it chose the right keyboard mapping to load into 2011-08-04 18:30:50 -07:00
Kelven Yang 19567df49b bug 10765: fix step 2 - programming VNC server to let it chose the right keyboard mapping to load into 2011-08-04 18:27:45 -07:00
Chiradeep Vittal 61fd6a79c8 ensure elb vm is managed by elb manager 2011-08-04 17:02:27 -07:00
Kelven Yang 83a9e74927 guard GlobalLock lock with finally clause 2011-08-04 16:20:31 -07:00
Kelven Yang d9392a6aa7 guard GlobalLock lock with finally clause 2011-08-04 16:19:28 -07:00
anthony 7958ab566e bug 10964: if snapshot's volume's templateId is NULL, change snapshot version from 2.1 to 2.2 directly, not upgrade snapshot is needed.
status 10964: resolved fixed
2011-08-04 16:09:22 -07:00
anthony 41759c153d bug 10964: if snapshot's volume's templateId is NULL, change snapshot version from 2.1 to 2.2 directly, not upgrade snapshot is needed.
status 10964: resolved fixed
2011-08-04 16:08:50 -07:00
anthony 5fbd0a7a5f bug 9255: do NOT allow creating snapshot/snapshotpolicy against System VM volume
status 9255: resolved fixed
2011-08-04 15:32:45 -07:00
anthony 3272241440 bug 9255: do NOT allow creating snapshot/snapshotpolicy against System VM volume
status 9255: resolved fixed
2011-08-04 15:28:38 -07:00
Edison Su c37d75fc00 release capacity if current state is in starting and not transit to running 2011-08-04 14:28:40 -07:00
Edison Su e5478457ee don't put cpu/mem into reserved capacity if failed to start/stop vm 2011-08-04 14:28:33 -07:00
Edison Su 1d49275ca8 release capacity if current state is in starting and not transit to running 2011-08-04 14:26:21 -07:00
Edison Su ccdfe240bd don't put cpu/mem into reserved capacity if failed to start/stop vm 2011-08-04 14:26:21 -07:00
Chiradeep Vittal e936a52f10 merge changes from parent branch 2011-08-04 12:39:25 -07:00
alena 6882b39a1e Fixed upgrade for volumes table 2011-08-04 11:22:25 -07:00
alena 354bc8f684 Fixed upgrade for volumes table 2011-08-04 11:22:14 -07:00
alena 4abb737c04 Fixed upgrade for volumes table 2011-08-04 11:22:04 -07:00
alena 294e30d7c2 Merged 228-229 db upgrade from 228 branch 2011-08-04 10:19:23 -07:00
alena 3d0758691f bug 10954: when start a vm, always check if it's being started in original pod; if not - release old ip address, and allocate the new one from the new pod
status 10954: resolved fixed

Conflicts:

	setup/db/db/schema-228to229.sql
2011-08-04 10:01:06 -07:00
Nitin a3cb6d9a09 bug 9345: Remove pool_id from template_host_ref. Its not needed anymore. Also removed the unwarranted code.
status 9345: resolved fixed
2011-08-04 12:51:35 +05:30
alena dfd0d7730e bug 10954: when start a vm, always check if it's being started in original pod; if not - release old ip address, and allocate the new one from the new pod
status 10954: resolved fixed
2011-08-03 20:47:44 -07:00
alena 527c3b024f bug 10954: when start a vm, always check if it's being started in original pod; if not - release old ip address, and allocate the new one from the new pod
status 10954: resolved fixed
2011-08-03 20:46:33 -07:00
Chiradeep Vittal e5c4bf4e28 bug 10659: manage elb vms independently of virtualnetworkappliance. 2011-08-03 18:55:01 -07:00
Sheng Yang fc57860390 Send CheckRouter command only when router is running 2011-08-03 16:57:59 -07:00
Sheng Yang a46c2cb650 Send CheckRouter command only when router is running 2011-08-03 16:57:43 -07:00
keshav 34a0c44f4f Added a new table for inline load balancer deployments, to store mappings between public IPs and NICs. 2011-08-03 16:10:20 -07:00
alena 603de56c93 Merged fixes for 228-229 upgrade from 2.2.8 zucchini branch 2011-08-03 10:39:02 -07:00
alena da4b39279d Added 229 to 2210 upgrade path
Conflicts:

	server/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
	setup/db/db/schema-228to229.sql
2011-08-03 10:23:27 -07:00
alena cf7e351cbf bug 10921: remove obsolete keys during 2.1.x to 2.2.9 upgrade
status 10921: resolved fixed

Conflicts:

	server/src/com/cloud/upgrade/dao/Upgrade228to229.java
2011-08-03 10:15:09 -07:00
Naredula Janardhana Reddy 46427fef91 bug 10561: Allowing ICMP traffic through static NAT 2011-08-03 21:15:02 +05:30
Naredula Janardhana Reddy 954d8673c7 bug 10561: Allowing ICMP traffic through static NAT 2011-08-03 18:13:09 +05:30
Nitin c73f5da276 bug 10725: add checksum to listIso and registerIso (its an optional parameter for this command).
status 10725: resolved fixed
2011-08-03 17:41:29 +05:30
Abhinandan Prateek bf0e761be1 checking domain list syntax 2011-08-03 14:45:23 +05:30
Abhinandan Prateek f6303c13fb bug 10812: putting key in ZoneConfig and other nomenclature changes 2011-08-03 14:42:29 +05:30
Abhinandan Prateek b74c398d76 domain syntax check for zoneupdate 2011-08-03 14:41:04 +05:30
Abhinandan Prateek cd78c5cb9b bug 10812: putting key in ZoneConfig and other nomenclature changes 2011-08-03 14:32:28 +05:30
Abhinandan Prateek 6dd519ddd4 bug 10812: putting key in ZoneConfig and other nomenclature changes 2011-08-03 14:16:08 +05:30
Abhinandan Prateek 7e727be42c bug 10748: use external dnses if set thru global config (dhcp otpion 6) 2011-08-03 12:34:02 +05:30
Chiradeep Vittal 8ccfdc08de handle release of ip on deletion of loadbalancer rule 2011-08-02 20:31:37 -07:00
alena 8d47c53735 Revert "bug 10435: removed vpn feature"
This reverts commit ea9e1b5d138950e8de49fce7ffdbb12a1c72c560.

Conflicts:

	api/src/com/cloud/api/ResponseGenerator.java
	scripts/vm/hypervisor/xenserver/vmops
	server/src/com/cloud/configuration/Config.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManager.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
2011-08-02 18:12:57 -07:00
alena e0033c5d9d bug 10869: always allocate first ip address from the range for the dhcp server.
status 10869: resolved fixed

Here is the flow (design is approved by Will Chan):

1) If user specifies custom ip address, and this ip is not the first ip in the range, the dhcp server gets the ip.
2) If user specifies custom ip address, and this ip is the first ip in the range, the dhcp server will get the random ip address from the range.
2) If user doesn't specify custom ip address, we always try to allocate first ip address from the range for the dhcp server; if this ip is already allocated, the dhcp server will get the random ip from the range.

This will work for:

* domR's Guest network
* dhcp's Direct network
2011-08-02 17:42:12 -07:00
alena 64eeb8d79b bug 10869: always allocate first ip address from the range for the dhcp server.
status 10869: resolved fixed

Here is the flow (design is approved by Will Chan):

1) If user specifies custom ip address, and this ip is not the first ip in the range, the dhcp server gets the ip.
2) If user specifies custom ip address, and this ip is the first ip in the range, the dhcp server will get the random ip address from the range.
2) If user doesn't specify custom ip address, we always try to allocate first ip address from the range for the dhcp server; if this ip is already allocated, the dhcp server will get the random ip from the range.

This will work for:

* domR's Guest network
* dhcp's Direct network
2011-08-02 17:41:03 -07:00
anthony 9df76d883d fixed build 2011-08-02 17:32:03 -07:00
anthony 37dcec77bb Bug 10197:
implement pool-wise VM sync,
    For XenServer, VM fullSync is pool-wise now, VM deltaSync is still per host

Conflicts:

	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
2011-08-02 17:31:36 -07:00
anthony bba811a714 Bug 10197:
1. don't try HA vms if host hypervisor version changes
    2. fixed a bug related to VM full sync with hosttrack enabled
2011-08-02 17:29:16 -07:00
anthony fc70e15059 fixed build 2011-08-02 17:24:22 -07:00
Chiradeep Vittal e725c8ffeb Ensure gc is slower, make some configs visible 2011-08-02 17:16:57 -07:00
anthony dc7ff2b5ad Bug 10197:
implement pool-wise VM sync,
    For XenServer, VM fullSync is pool-wise now, VM deltaSync is still per host
2011-08-02 16:52:24 -07:00
anthony 5f9884d97a Bug 10197:
1. don't try HA vms if host hypervisor version changes
    2. fixed a bug related to VM full sync with hosttrack enabled
2011-08-02 16:48:27 -07:00
alena bdbc16f081 bug 10938: do search includingRemoved when generate the log for the vm state transition. The fix is needed for the specific case when expunge interval is really small, and vm gets expunged right after it's state transitioned to Destroyed, but before the log for state transition is generated
status 10938: resolved fixed
2011-08-02 16:14:20 -07:00
alena 21afd1785a bug 10938: do search includingRemoved when generate the log for the vm state transition. The fix is needed for the specific case when expunge interval is really small, and vm gets expunged right after it's state transitioned to Destroyed, but before the log for state transition is generated
status 10938: resolved fixed
2011-08-02 16:10:23 -07:00
Alex Huang f043f63eaa Merged changes from 2.2.8.zucchini 2011-08-02 15:33:48 -07:00
Chiradeep Vittal fd1dbe9683 bug 10884: do not lock if not necessary 2011-08-02 13:51:26 -07:00
Alex Huang 5c543ffdb1 bug 10884: fixed a bug where the security group keeps processing a vm that has been removed 2011-08-02 10:45:29 -07:00
alena 9ad41d9fc8 bug 10916: don't return removed entries when do listDiskOfferings by regular user
status 10916: resolved fixed
2011-08-02 09:46:35 -07:00
alena bdb44c6850 bug 10916: don't return removed entries when do listDiskOfferings by regular user
status 10916: resolved fixed
2011-08-02 09:46:17 -07:00
alena dd7ba12949 bug 10916: don't return removed entries when do listDiskOfferings by regular user
status 10916: resolved fixed
2011-08-02 09:44:44 -07:00
Nitin 09c26e5671 bug 10775: copyTemplate - Compute checksum at source from now on because the checksum might be referring to the compressed template. Send this checksum for comparison. 2011-08-02 20:30:10 +05:30
Abhinandan Prateek 2f804dd799 bug 10748: use external dns, configurable thru global param 2011-08-02 16:21:55 +05:30
Alex Huang 92b8b29fe4 Revert "sg improvements. don't use global lock"
This reverts commit 1d9961c588976a910d60c6420487c29a9080b73a.
2011-08-02 03:49:30 -07:00
Alex Huang 79ddba246d Revert "looks like lock tables don't return the tables locked"
This reverts commit 76781c10f8534acdd6f81c46952f88ade941e269.
2011-08-02 03:48:57 -07:00
Abhinandan Prateek 9009026eba bug 10748: use external dns
status 10748: resolved fixed
2011-08-02 15:35:13 +05:30
Abhinandan Prateek 70b9769bd5 putting a check for domain name list 2011-08-02 15:22:49 +05:30
Alex Huang 91550836cf looks like lock tables don't return the tables locked 2011-08-02 02:10:47 -07:00
Naredula Janardhana Reddy b3b32fce9b bug 10811: public_hostname and public_ipv4 are set same as that of local_hostname, local_ipv4 only for Basic network 2011-08-02 13:53:26 +05:30
Naredula Janardhana Reddy a790e79f44 bug 10811: public_hostname and public_ipv4 are set same as that of local_hostname, local_ipv4 2011-08-02 13:52:47 +05:30
Naredula Janardhana Reddy 580e8503cd bug 10811: public_hostname and public_ipv4 are set same as that of local_hostname, local_ipv4 only for Basic network 2011-08-02 13:49:24 +05:30
Naredula Janardhana Reddy 2af0b22703 bug 10811: public_hostname and public_ipv4 are set same as that of local_hostname, local_ipv4 2011-08-02 13:28:44 +05:30
Abhinandan Prateek 4f3dec5f1c bug 10812: adding domain suffixes to zone's router conf 2011-08-02 11:34:38 +05:30
Alex Huang 6905a1db1d sg improvements. don't use global lock 2011-08-01 22:59:59 -07:00
Abhinandan Prateek 5cb3882349 bug 10812: adding domain suffixes to zone's router conf 2011-08-02 11:23:33 +05:30
Abhinandan Prateek 46be774ce8 bug 10812: adding domain suffixes to zone's router conf 2011-08-02 11:08:24 +05:30
Alex Huang f150f68128 sg improvements 2011-08-01 22:09:41 -07:00
Chiradeep Vittal efaa63a428 bug 10884: try out a global lock instead of per-vm locks 2011-08-01 18:52:06 -07:00
Kelven Yang 04528c821b bug 10929: allow only OperationFailedToError event to trigger transition to Error state. 2011-08-01 18:40:29 -07:00
Kelven Yang a6a2383561 bug 10929: allow only OperationFailedToError event to trigger transition to Error state. 2011-08-01 18:38:14 -07:00
Kelven Yang 40f42a784f bug 10929: allow only OperationFailedToError event to trigger transition to Error state. 2011-08-01 18:33:02 -07:00
anthony 80684861cf Bug 10197: do not check timeout against cluster which is not managed 2011-08-01 17:01:22 -07:00
anthony 7d02ed344e Bug 10197: do not check timeout against cluster which is not managed 2011-08-01 17:00:58 -07:00
alena 95d858d1f2 bug 10927: Drop key i_snapshots__removed (if exists) and readd it. Done to fix inconsistency between 2.1.x to 2.2.9 and 2.2.x to 2.2.9 upgrades 2011-08-01 16:22:06 -07:00
alena d63426119e Fixed db upgrade to do 228 to 229 when do upgrade from 224 branch
Conflicts:

	server/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
2011-08-01 15:48:42 -07:00
alena a0977ee61f Fixed db upgrade to do 228 to 229 when do upgrade from 224 branch 2011-08-01 15:44:42 -07:00
alena d30fe74794 Added 229 to 2210 upgrade path 2011-08-01 15:42:16 -07:00
Chiradeep Vittal b4b87b1de8 bug 10920: avoid deadlocks by avoiding locks on the index on step 2011-08-01 15:32:23 -07:00
alena f4f51f0451 Revert "bug 10812: modifying dhcp option 119 on domR as per zone config"
This reverts commit 606ec843475911680adb743d7975bf7d584ab240.
2011-08-01 13:00:53 -07:00
nit e910e513c9 bug 8677 , 8673 : listIsos - make the parameter - name work properly.
status 8677 , 8673: resolved fixed
2011-08-01 15:16:02 +05:30
nit b7f16b8b34 bug 9860 : listIsos - make the parameter - name work properly.
status 9860: resolved fixed
2011-08-01 15:14:35 +05:30
Abhinandan Prateek 826a3d6ad0 bug 10812: modifying dhcp option 119 on domR as per zone config
status 10812: resolved fixed.
2011-08-01 14:44:31 +05:30
Chiradeep Vittal 3951699542 bug 10920: convert seconds to milliseconds 2011-07-30 18:19:58 -07:00
frank eda4a61a96 Add DB integrity checker, it checks:
1. Are there multiple hosts connect to the same local storage pool due to 2.1.x bug
2. Is there any missed premium upgrade

either true answer of above cause mangemnt stopping and asking user to contact Cloud.com support
2011-07-30 17:22:33 -07:00
frank 50b665d713 Add DB integrity checker, it checks:
1. Are there multiple hosts connect to the same local storage pool due to 2.1.x bug
2. Is there any missed premium upgrade

either true answer of above cause mangemnt stopping and asking user to contact Cloud.com support
2011-07-30 17:22:09 -07:00
frank ca78e49cbd Add DB integrity checker, it checks:
1. Are there multiple hosts connect to the same local storage pool due to 2.1.x bug
2. Is there any missed premium upgrade

either true answer of above cause mangemnt stopping and asking user to contact Cloud.com support
2011-07-30 17:21:50 -07:00
frank 6c1cd20fff Add DB integrity checker, it checks:
1. Are there multiple hosts connect to the same local storage pool due to 2.1.x bug
2. Is there any missed premium upgrade

either true answer of above cause mangemnt stopping and asking user to contact Cloud.com support
2011-07-30 17:16:33 -07:00
Chiradeep Vittal f49469270e bug 10920: avoid deadlocks by not using order by random 2011-07-30 12:54:50 -07:00
Chiradeep Vittal b329f61782 Fix duplicate ip addresses returned for loadbalancing 2011-07-29 23:21:27 -07:00
frank 47c88d5499 Bug 10860 - PremiumUpgrade is not run when upgrading to 2.2.8 (edit)
run checker before any component loaded
2011-07-29 20:23:30 -07:00
frank 316ed91542 Bug 10860 - PremiumUpgrade is not run when upgrading to 2.2.8 (edit)
run checker before any component loaded
2011-07-29 20:22:39 -07:00
frank 67265eeaa7 Bug 10860 - PremiumUpgrade is not run when upgrading to 2.2.8 (edit)
run checker before any component loaded
2011-07-29 20:21:53 -07:00
frank 03fbe13f58 Add upgrade path to 2.2.9
Add files
2011-07-29 20:05:50 -07:00
frank 44f3ac98f6 A couple of things:
add 229 upgrade path

Bug 10860 - PremiumUpgrade is not run when upgrading to 2.2.8 (edit)

run checker before any components loaded
2011-07-29 20:05:50 -07:00
Edison Su 8bcad6960c add rhel6.1 support 2011-07-29 20:05:01 -07:00
Edison Su 22483a9c13 add RHEL 6.1 support 2011-07-29 19:14:15 -07:00
Kelven Yang 2335fc5be4 bug 10918: cap async-job execution thread pool to be 2/3 of maximum DB connection limit 2011-07-29 18:37:32 -07:00
Kelven Yang 2ce851d698 bug 10918: cap async-job execution thread pool to be 2/3 of maximum DB connection limit 2011-07-29 18:35:02 -07:00
Kelven Yang 1c4e1ba5a5 bug 10918: cap async-job execution thread pool to be 2/3 of maximum DB connection limit 2011-07-29 18:33:21 -07:00
anthony ccc3c79466 private template may be downloaded to multiple secondary storage in a zone,
fixed it
2011-07-29 17:36:58 -07:00
anthony 50a2fc7111 private template may be downloaded to multiple secondary storage in a zone,
fixed it
2011-07-29 17:34:55 -07:00
Edison Su d120b9cca4 bug 10770: don't select cluster if it's removed in firstfitplanner
status 10770: resolved fixed
2011-07-29 16:37:03 -07:00
anthony 93244b5b62 Bug 10197: if VM is already running, just return the host it is running on 2011-07-29 16:33:57 -07:00
anthony 31100824d7 Bug 10197: if VM is already running, just return the host it is running on 2011-07-29 16:33:33 -07:00
Chiradeep Vittal 41e6aeae96 bug 10884:
1. cleanup was scheduled wrong (seconds vs ms)
2. when finding a work item to do, lock one random row to reduce contentions by thundering herds of workers
3. cleanup thread also finds scheduled work items and gets threads to work on them. this way other mgmt servers can take jobs
4. add lots of trace logs
5. commit transactions when returning early
2011-07-29 16:28:06 -07:00
anthony d48e97a368 bug 10768: root cause is StopCommand is not sent out in force stop,
status 10768: resolved fixed
2011-07-29 15:41:00 -07:00
Edison Su 595f9250b7 clean up public ip in secondary_storage_vm table after ssvm expunged 2011-07-29 15:30:32 -07:00
Edison Su b9ab17bbf5 clean up public ip in secondary_storage_vm table after ssvm expunged 2011-07-29 15:28:16 -07:00
frank b0b3f16dae Two things:
Load non-routing resource in ClusteredAgentManager includes External DHCP, PxeServer, ExternalFirewall, ExternalLoadBalancer

Bug 9887 - baremetal: support for image operation (create template from guest disk) (edit)

changes in line with UI
2011-07-29 11:28:09 -07:00
frank 055ec48ae8 Two things:
Load non-routing resource in ClusteredAgentManager includes External DHCP, PxeServer, ExternalFirewall, ExternalLoadBalancer

Bug 9887 - baremetal: support for image operation (create template from guest disk) (edit)

changes in line with UI
2011-07-29 11:25:35 -07:00
Chiradeep Vittal 56d7be35f1 WIP 2011-07-29 11:04:54 -07:00
anthony 055e5c82c7 bug 9997:
put copy scripts in SetupCommand,
1. initiate returns host version,
2. if it doesn't match with DB, update DB, and reconnect the host.

status 9997: resolved fixed
2011-07-29 10:45:11 -07:00
Alex Huang c00b9bf5aa fixed problems with security group. it's possible for threads to disappear due to exceptions. Also it needed to define in memory transaction boundary 2011-07-29 10:41:36 -07:00
Chiradeep Vittal 1471b0a97a Add parameter to ListPublicIpAddressCmd : forloadbalancing 2011-07-28 14:38:14 -07:00
Chiradeep Vittal a6b1453254 minor cleanup 2011-07-28 14:38:14 -07:00
Kelven Yang 79cb5b7c19 bug 10834: fix step 2. Sending command to pool now only picks hosts that are in UP state 2011-07-28 14:32:28 -07:00
anthony ffd07621cc fixed a bug about putting cluster into Unmagaged status 2011-07-28 12:35:52 -07:00
anthony e581c63f58 fixed a bug about putting cluster into Unmagaged status 2011-07-28 12:34:35 -07:00
Chiradeep Vittal 94be1584ac fix build, better names 2011-07-28 10:20:58 -07:00
Nitin 63205f1f02 bug 10868: CheckAccess - If the domainId = -1 and the accountId is still valid then try and calculate the domainId. This case will be hit for all the entities which do not have domain id column in the DB table. What was happenning due to this was that we were not checking the domain hierarchy in such case which was leading to security leaks. Example - templates. 2011-07-28 17:11:14 +05:30
Nitin 527a668ca2 bug 10868: CheckAccess - If the domainId = -1 and the accountId is still valid then try and calculate the domainId. This case will be hit for all the entities which do not have domain id column in the DB table. What was happenning due to this was that we were not checking the domain hierarchy in such case which was leading to security leaks. Example - templates. 2011-07-28 17:01:26 +05:30
Chiradeep Vittal 2971e77401 change supportELB to report on which ips the ELB runs guest or public 2011-07-28 00:39:05 -07:00
Chiradeep Vittal fae6fa790c ELB VM: implement delete LB by deleting ELB vm
in the future we will manage a pool of vms more intelligently
2011-07-28 00:15:16 -07:00
Chiradeep Vittal 2162cdf283 WIP2: make creating an ELB bullet proof 2011-07-27 21:11:26 -07:00
Chiradeep Vittal b240c4a645 WIP: make creating an ELB bullet proof 2011-07-27 21:11:26 -07:00
Kelven Yang 9d4aebd7e3 bug 10834: fix step 2. Sending command to pool now only picks hosts that are in UP state 2011-07-27 18:11:14 -07:00
Chiradeep Vittal 1226a49976 bug 10884: use the proper keys this time 2011-07-27 17:58:59 -07:00
frank 37fc68bcd3 Bug 10860 - PremiumUpgrade is not run when upgrading to 2.2.8
Use a new target "system-integrity-checker" in components.xml/components-premium.xml.
All checkers must be explicitly specified in XML file, they will execute before any components load

status 10860: resolved fixed
2011-07-27 17:47:09 -07:00
frank 9aae53fbb3 Bug 10860 - PremiumUpgrade is not run when upgrading to 2.2.8
Use a new target "system-integrity-checker" in components.xml/components-premium.xml.
All checkers must be explicitly specified in XML file, they will execute before any components load

status 10860: resolved fixed
2011-07-27 17:43:38 -07:00
frank 262e6784e5 Bug 10860 - PremiumUpgrade is not run when upgrading to 2.2.8
Use a new target "system-integrity-checker" in components.xml/components-premium.xml.
All checkers must be explicitly specified in XML file, they will execute before any components load

status 10860: resolved fixed
2011-07-27 17:41:38 -07:00
frank 1381c58fa1 Bug 10860 - PremiumUpgrade is not run when upgrading to 2.2.8
Use a new target "system-integrity-checker" in components.xml/components-premium.xml.
All checkers must be explicitly specified in XML file, they will execute before any components load

status 10860: resolved fixed
2011-07-27 17:32:12 -07:00
Chiradeep Vittal 0ee45261e7 set a flag so that api clients know whether to use the elb api 2011-07-27 16:00:59 -07:00
Chiradeep Vittal 8cc694a579 bug 10884: bump up thread pool and cleanup less often 2011-07-27 14:44:52 -07:00
Alex Huang 6fea146903 more index. moved op_lock to memory table to try it 2011-07-27 14:06:40 -07:00
Chiradeep Vittal 042c06fbb6 Make createLoadBalancer async 2011-07-27 12:00:08 -07:00
Chiradeep Vittal b829cde18f track ip to vm mapping 2011-07-27 12:00:08 -07:00
Chiradeep Vittal 07c2f6cdc7 differentiate between dhcp server and elb vm 2011-07-27 12:00:07 -07:00
Chiradeep Vittal e1c5d4ef55 fix npe 2011-07-27 12:00:07 -07:00
Chiradeep Vittal 2447830c55 fix network type check 2011-07-27 12:00:07 -07:00
Chiradeep Vittal cd8e069f80 Acquire an ip and launch an ELB vm 2011-07-27 12:00:07 -07:00
Sheng Yang 6c493bfb82 Add exception message for AgentManagerImpl.investigate() 2011-07-27 10:53:06 -07:00
Sheng Yang 3a8e13f968 Add exception message for AgentManagerImpl.investigate() 2011-07-27 10:52:48 -07:00
Sheng Yang 96568df702 Add exception message for AgentManagerImpl.investigate() 2011-07-27 10:51:44 -07:00
Naredula Janardhana Reddy 3c66075b8b bug 10557: made more feature enhancement instead of bug- added more stats parametes as global config 2011-07-27 14:06:26 +05:30
Naredula Janardhana Reddy 93680fdc9e Bug:10557 2011-07-27 14:05:47 +05:30
Naredula Janardhana Reddy f0b1f3d229 bug 10557: made more feature enhancement instead of bug- added more stats parametes as global config 2011-07-27 13:42:14 +05:30
anthony a449aa320f fixed NPE, secondary storage VM host may not exist even the secondary storage VM is running 2011-07-26 17:42:01 -07:00
anthony fb6228ef75 fixed NPE, secondary storage VM host may not exist even the secondary storage VM is running 2011-07-26 17:41:47 -07:00
anthony 4c8f5e0591 fixed NPE, secondary storage VM host may not exist even the secondary storage VM is running 2011-07-26 17:41:32 -07:00
anthony 7c951361c6 fixed NPE, secondary storage VM host may not exist even the secondary storage VM is running 2011-07-26 17:39:24 -07:00
Sheng Yang b116f54741 Generate keystore using RSA rather than DSA
Also fix a typo.
2011-07-25 18:23:44 -07:00
Sheng Yang 4d20d21c95 Generate keystore using RSA rather than DSA
Also fix a typo.
2011-07-25 18:23:06 -07:00
Sheng Yang 611a1564cc Generate keystore using RSA rather than DSA
Also fix a typo.
2011-07-25 18:22:30 -07:00
Alex Huang 200d2b9cd0 bug 10847: sg got executed in a big transaction leading to the deadlock 2011-07-25 17:41:11 -07:00
Alex Huang 9c627a15f3 Inaccurate clock new gets an mbean to control it 2011-07-25 16:01:31 -07:00
Alex Huang c610925304 moved agent ping to in memory rather than db based 2011-07-25 15:21:06 -07:00
Alex Huang 1b56808be5 brought over agent ping uses the same db connection 2011-07-25 10:57:00 -07:00
Alex Huang 10ac7753ed Switched ping to use the same db connection so that running out of db connections won't affect basic operations 2011-07-25 10:36:00 -07:00
Murali Reddy 5322accbc8 bug 10764: changing service offering drops cpu cap
status 10764: resolved fixed
2011-07-25 18:23:11 +05:30
Murali Reddy 9e90999aab bug 10764: changing service offering drops cpu cap
status 10764: resolved fixed
2011-07-25 18:15:31 +05:30
Naredula Janardhana Reddy 96bacb85f8 Bug:10557 2011-07-25 17:40:33 +05:30
Alex Huang 3f18192df8 Make all connections READ COMMITTED isolation level instead of setting it everytime we get the db connection causing useless round trips 2011-07-23 14:58:32 -07:00
Alex Huang 429c1a0a18 changed a bunch of map logs to trace 2011-07-22 18:14:02 -07:00
Alex Huang 18fa544da1 changed a bunch of map logs to trace 2011-07-22 18:13:24 -07:00
Alex Huang 7464b6474e changed a bunch of map logs to trace 2011-07-22 18:12:27 -07:00
Edison Su cd531d7562 bug 10770: don't select cluster if it's removed in firstfitplanner
status 10770: resolved fixed
2011-07-22 15:10:25 -07:00
Edison Su 8c1d77b23e bug 10770: don't select cluster if it's removed in firstfitplanner
status 10770: resolved fixed
2011-07-22 15:06:33 -07:00
Alex Huang 12cd5db620 deleted a file by mistake 2011-07-22 11:39:16 -07:00
Alex Huang b59c6b4ab6 propagate lock table fix 2011-07-22 11:35:47 -07:00
Alex Huang 44ce9488a6 propagate lock table fixes 2011-07-22 11:30:23 -07:00
Alex Huang 66713a490d fixed problem with the standalone connection has open transaction 2011-07-22 11:25:43 -07:00
Nitin bb60543fbf bug 9452: listCapacity - when the hosts > 200 the host_id and storage_pool_id start colliding, to workaround that also compart the capacity type. 2011-07-22 19:56:01 +05:30
Nitin 65b0af0a9d bug 9452: listCapacity - when the hosts > 200 the host_id and storage_pool_id start colliding, to workaround that also compart the capacity type. 2011-07-22 19:30:14 +05:30
Nitin fb6a44d248 bug 9452: listCapacity - when the hosts > 200 the host_id and storage_pool_id start colliding, to workaround that also compart the capacity type. 2011-07-22 19:14:47 +05:30
Nitin bb3d7013a9 bug 9452: ListCapacity - works now. Remove all the pagination logic. 2011-07-22 13:12:44 +05:30
anthony e666cf5e77 bug 10743: default local storage is ext in XenServer 6.0, add ext local storage support 2011-07-21 17:31:43 -07:00
Kelven Yang 3a6f3b71e0 bug 10791: add data integrity check upon management server startup 2011-07-21 17:08:29 -07:00
Kelven Yang 95b48ba222 bug 10791: add data integrity check upon management server startup 2011-07-21 17:07:21 -07:00
keshav 4ce137ef2e Added account ID to IpAddressTO and NetworkElementCommand. 2011-07-21 16:44:13 -07:00
alena c21273d23a bug 10734: removed global lock in "DirectAgentScanTimerTask". This lock used to prevent the task from executing on multiple management server simultaniously.
status 10734: resolved fixed
2011-07-21 16:18:43 -07:00
alena d6112b1632 Revert "bug 10373: Intermediate checkin for Domain level guest Virtual networks"
This reverts commit e5c25f3868965e36c4bff1c78ca4552a8c852241.

Conflicts:

	server/src/com/cloud/configuration/Config.java
	server/src/com/cloud/network/NetworkManagerImpl.java
2011-07-21 16:04:55 -07:00
alena 66f879e400 Revert "bug 10373: added config parameter "domain.level.virtual.network" to the db upgrade scripts"
This reverts commit c18e1a020357c0c42454656c070fa4827f8c0703.

Conflicts:

	setup/db/db/schema-228to229.sql
2011-07-21 16:03:01 -07:00
alena b1d5b5a51d 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
2011-07-21 15:43:52 -07:00
alena ee98887176 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
	server/src/com/cloud/host/dao/HostDaoImpl.java
	setup/db/db/schema-228to229.sql
2011-07-21 15:28:11 -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
Alex Huang d7667180c5 bug 10816: more db lock controls 2011-07-21 13:38:37 -07:00
Alex Huang abd3321077 bug 10799: propagate to 2.2.9 2011-07-21 11:30:03 -07:00
Alex Huang f82aa97273 bug 10799: propagate to main 2011-07-21 11:27:10 -07:00
Alex Huang 45074e7cba bug 10799: There are two problems. The deadlock was ate up but then the savepublicip call return true, causing the problem with the pod_vlan_map hitting a constraint problem. HostPodDao was used as the scope for the insufficient capacity exception which causes the virtualmachinemanager to not to retry starting the vm. It should have been HostPod instead of HostPodDao. 2011-07-21 11:22:55 -07:00
Nitin 0c91e938e1 bug 10290: Allow turning off router stats collector
Status 10290: resolved fixed
2011-07-21 19:52:32 +05:30
Nitin 1e0c7274ec bug 10520: CAPACITY_TYPE_PUBLIC_IP and CAPACITY_TYPE_PRIVATE_IP - Change from remove and insert to the to the insert and update model. It doesnt seem like they are referenced for the allocators while creating a vm. Next might change them to calculating them on the fly. 2011-07-21 18:33:47 +05:30
Nitin 0bc6c7dc0e bug 9452: ListCapacity - works now. Remove all the pagination logic. 2011-07-21 18:17:32 +05:30
Nitin f6077e605f bug 9452: ListCapacity - works now. Remove all the pagination logic. 2011-07-21 18:13:36 +05:30
Abhinandan Prateek dff712f2a9 bug 10731: sending source cidrs to the required router element, on domR allowing these source cidrs thru iptables
status 10731: resolved fixed
2011-07-21 13:48:42 +05:30
Abhinandan Prateek de34d6089d bug 10731: sending source cidrs to the required router element, on domR allowing these source cidrs thru iptables
status 10731: resolved fixed
2011-07-21 13:40:06 +05:30
Nitin 358c9eba05 bug 10624: ExtractVolume - code change for multiple secondary storage. 2011-07-21 11:11:04 +05:30
Nitin 5b834edea2 bug 10624: ExtractVolume - code change for multiple secondary storage. 2011-07-21 11:10:47 +05:30
alena c03d360968 bug 10373: added config parameter "domain.level.virtual.network" to the db upgrade scripts 2011-07-20 18:21:15 -07:00
alena 3167c49687 bug 10736: when deploy vm in Basic zone, 1) send vmData/Password info to the Dhcp running in the same pod 2) send dhcp information to all pods in the system only when network.dns.basiczone.updates has "all" value
status 10736: resolved fixed
2011-07-20 16:50:58 -07:00
anthony 9f2eaca6cb Support XenServer 6.0 beta 2011-07-20 16:47:48 -07:00
anthony d206bf7852 bug 10768: root cause is StopCommand is not sent out in force stop,
status 10768: resolved fixed
2011-07-20 16:47:48 -07:00
Alex Huang 109ef29e86 bug 10632: propagate to 2.2.9 2011-07-20 16:27:06 -07:00
Alex Huang db8be16f98 bug 10632: propagated to 2.2.8.z 2011-07-20 16:11:59 -07:00
alena 6dc8e515f4 bug 10736: when restart dhcp in basic zone, generate vmData info only for vms in the same pod 2011-07-20 15:22:11 -07:00
alena f290b7cc14 bug 10736: when restart dhcp in basic zone, generate vmData info only for vms in the same pod 2011-07-20 15:21:26 -07:00
alena 36edf298e7 bug 10373: Intermediate checkin for Domain level guest Virtual networks 2011-07-20 13:44:26 -07:00
anthony d4ae9483cb bug 10768: root cause is StopCommand is not sent out in force stop,
status 10768: resolved fixed
2011-07-20 12:11:21 -07:00
kishan 28119036b8 bug 10398: Added scheduled job, alert and interval config param for usage sanity check 2011-07-20 17:20:11 +05:30
kishan 6b4c61a348 bug 10382: Move volume delete events to destroyVolume method
status 10382: resolved fixed
2011-07-20 11:22:31 +05:30
kishan ddd416a492 bug 10382: wrapped usage events in txn 2011-07-20 11:19:39 +05:30
kishan 427b73a2b9 bug 10372: Added Vm State Machine listener for usage events
status 10372: resolved fixed
2011-07-20 11:13:56 +05:30
anthony 811063f769 bug 10197: enable trackVmHostChange for XenServer 2011-07-19 15:53:41 -07:00
anthony 20cbe7e739 bug 10197: enable trackVmHostChange for XenServer 2011-07-19 15:52:45 -07:00
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
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
Sheng Yang 8d2e41abd1 bug 10429: Enable redundant virtual router for 2.2.9
status 10429: resolved fixed
2011-07-19 15:06:20 -07:00
Sheng Yang fa623c04e2 bug 10640: Redundant virtual router: Try to deploy the second virtual router to different pod/cluster/host/storagepool
The old strategy is to deploy the second virtual router to diffent host only.

status 10640: resolved fixed
2011-07-19 15:06:15 -07:00
Sheng Yang e5e76881c6 Redundant virtual router: Try to deploy the second virtual router to different pod/cluster/host/storagepool
The old strategy is to deploy the second virtual router to diffent host only.
2011-07-19 14:26:37 -07:00
alena 1a38c8547d bug 10605: updateNetworks api command - restart the network if networkDomain is updated.
updateNetwork command is async now

Conflicts:

	server/src/com/cloud/network/NetworkManagerImpl.java
2011-07-19 12:09:25 -07:00
Sheng Yang 0449ba6c8c Fix restartNetwork command on destroying virtual router 2011-07-19 11:56:02 -07:00
Sheng Yang aa8fc81790 Fix restartNetwork command on destroying virtual router 2011-07-19 11:55:16 -07:00
alena c48c3edfbc bug 10271: don't include removed records when search for local storage pool
status 10217: resolved fixed
2011-07-19 11:10:53 -07:00
alena 8c9fe2ec71 bug 9871: deployVm - check network's zone when do vm deployment
status 9871: resolved fixed

Conflicts:

	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-07-19 11:10:53 -07:00
alena 3468d1b7ea bug 9894: listSnapshots by domain admin - do recursive search if domainid is not specified in the request
status 9894: resolved fixed
2011-07-19 11:10:53 -07:00
alena 630e8d9db4 bug 9991: do account permission check in getCloudIdentifier api
status 9991: resolved fixed
2011-07-19 11:10:53 -07:00
alena c663217b00 bug 9642: listVms by regular user using domainId parameter will work only when domainId specified is the domainId the caller belongs to.
status 9642: resolved fixed
2011-07-19 11:10:52 -07:00
alena fa312617f1 bug 9723: fixed listServiceOfferings to work right with isSystem/domainId parameters
status 9723: resolved fixed

Conflicts:

	server/src/com/cloud/server/ManagementServerImpl.java
2011-07-19 11:10:52 -07:00
alena 81117f325d bug 9743: respect id/accountName/domainId parameters when call is executed by the regular user
status 9743: resolved fixed
2011-07-19 11:10:52 -07:00
alena 5be1f94c0d bug 9620: fixed updateUser api to make updates only for the fields that are specified in the request
status 9620: resolved fixed
2011-07-19 11:10:52 -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
Sheng Yang 3100d4b22f Update RestartNetworkCmd to reimplment the network
Because the redundant router config may change.

Back port from 8c7c9a4b499ceee8a07f1f3a2b908d4a128aef32 partly.
2011-07-19 10:53:21 -07:00
alena 19f7c9e26f Close ResultSet and PreparedStatement when gather vm information during the listVirtualMachines call 2011-07-19 10:33:34 -07:00
alena ca87603925 Throw correct types of exceptions when fail to create account 2011-07-19 10:33:34 -07:00
alena d970c13cf2 bug 10417: Basic zone - send vm data info only to the dhcp server in the same pod
status 10417: resolved fixed

Conflicts:

	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
2011-07-19 10:33:34 -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
kishan 14a8cbdc28 throw exception after intercepting to log error event 2011-07-19 18:39:32 +05:30
kishan 427b70e572 bug 10276: Throw exception for account APIs failure
status 10276: resolved fixed
2011-07-19 18:38:54 +05:30
Abhinandan Prateek 57f41a3a05 bug 10731: added optional paramter source cidr 2011-07-19 12:21:39 +05:30
Abhinandan Prateek 24510cd5fb bug 10731: adding optional paramter for cidr 2011-07-19 12:10:48 +05:30
Sheng Yang 978b2640e2 Backport VirtualNetworkApplianceManager
Also:
1. Discard VPN related change.
2. Add network.dns.basiczone.updates in Config.java
3. Add findByNetworkOutsideThePod() for DomainRouterVO

Tested with VLAN and basic mode, works.

Disable redundant virtual router temporaily, would enable it after more testing.
2011-07-18 18:30:05 -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
Alex Huang d54f6d536a propagating transaction isolation fix for merovingian2 2011-07-18 16:48:49 -07:00
Alex Huang 5590cd93ce bug 10716: Changed the connection's isolation level to allow for more concurrency 2011-07-18 16:32:12 -07:00
alena 7a04334b60 bug 10734: removed global lock in "DirectAgentScanTimerTask". This lock used to prevent the task from executing on multiple management server simultaniously.
status 10734: resolved fixed
2011-07-18 15:00:13 -07:00
alena 62270fe62e bug 10734: removed global lock in "DirectAgentScanTimerTask". This lock used to prevent the task from executing on multiple management server simultaniously.
status 10734: resolved fixed
2011-07-18 14:32:57 -07:00
Alex Huang 392c03ce6f propagated db connection savings from master 2011-07-18 14:22:49 -07:00
Alex Huang e52a97b969 Switched ping to use the same db connection so that running out of db connections won't affect basic operations 2011-07-18 14:22:49 -07:00
frank 244de00b65 Bug 9887 - baremetal: support for image operation (create template from guest disk)
Resolved fixed
2011-07-18 13:57:03 -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
Nitin 85b8205522 bug 10520: CAPACITY_TYPE_PUBLIC_IP and CAPACITY_TYPE_PRIVATE_IP - Change from remove and insert to the to the insert and update model. It doesnt seem like they are referenced for the allocators while creating a vm. Next might change them to calculating them on the fly. 2011-07-18 22:08:19 +05:30
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
anthony 10f1499438 bug 10680: changing guest.network.device in global config also change existing hosts guest.network.device, reconnect will use network information in host_details
status 10680: resolved fixed
2011-07-15 18:20:16 -07:00
anthony 4a30f38dd4 bug 10680: changing guest.network.device in global config also change existing hosts guest.network.device, reconnect will use network information in host_details
status 10680: resolved fixed
2011-07-15 18:17:53 -07:00
alena 93090d867d bug 10297: make default page size unlimited (-1) 2011-07-15 16:02:37 -07:00
alena 15aa7d9102 bug 10297: make default page size unlimited (-1) 2011-07-15 16:01:44 -07:00
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
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
alena 84edb80c0c bug 10687: respect "bootable" parameter when listIso
status 10687: resolved fixed
2011-07-15 14:28:53 -07:00
alena 21afc889d0 bug 10438: always return success on disableAccount when it got disabled successfully in the DB. If his vms failed to stop on the backend, mark account for cleanup and let background thread to do the cleanup job
status 10438: resolved fixed
2011-07-15 14:27:58 -07:00
alena 5300dd52a9 bug 4706: added one more parameter - "ipaddress" to deployVm api. This parameter will apply to default network of vm
status 4706: resolved fixed

Merge from master to 2.2.8 branch

Conflicts:

	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-07-15 14:23:28 -07:00
alena 0d2787e2db bug 4706: allow to specify which ip address from the network to take when do vm deployment. The model is supported for multiple network case as well.
status 4706: resolved fixed

Merge from master to 2.2.8 branch

Conflicts:

	api/src/com/cloud/api/ApiConstants.java
	server/src/com/cloud/network/NetworkManager.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/network/guru/GuestNetworkGuru.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-07-15 14:20:52 -07:00
anthony 0c53bddb16 bug 10628: root cause is CheckHealthCommand return false, XenServerInvestigator is not called
status 10628: resolved fixed
2011-07-15 10:12:54 -07:00
anthony f15fae8983 bug 10705: don't need to print trace
status 10705: resolved fixed
2011-07-15 10:12:37 -07:00
anthony 36bd6f5859 bug 10691: expand try-catch, and add more log 2011-07-15 10:12:25 -07:00
anthony 8722f35f91 bug 10691: add more log 2011-07-15 10:12:07 -07:00
Nitin 0dba08a431 bug 10520: CAPACITY_TYPE_PUBLIC_IP and CAPACITY_TYPE_PRIVATE_IP - Change from remove and insert to the to the insert and update model. It doesnt seem like they are referenced for the allocators while creating a vm. Next might change them to calculating them on the fly. 2011-07-15 20:03:32 +05:30
Kelven Yang 06ea7338a8 bug 10732: fix console proxy assignment issue - file was not saved, commit again 2011-07-14 21:56:51 -07:00
Kelven Yang 1081a3cfaa bug 10732: fix console proxy assignment issue 2011-07-14 21:56:34 -07:00
Kelven Yang 1e24c6a745 bug 10732: fix console proxy assignment issue - file was not saved, commit again 2011-07-14 21:54:52 -07:00
Kelven Yang 028d235716 bug 10732: fix console proxy assignment issue 2011-07-14 21:52:16 -07:00
anthony 18003deedf bug 10628: root cause is CheckHealthCommand return false, XenServerInvestigator is not called
status 10628: resolved fixed
2011-07-14 20:42:26 -07:00
Kelven Yang 281201be8e Make cluster request timeout to be configurable 2011-07-14 18:23:23 -07:00
Kelven Yang 61676ff3ea Make cluster request timeout to be configurable 2011-07-14 18:11:32 -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
Alex Huang 161b7f1cad Switched ping to use the same db connection so that running out of db connections won't affect basic operations 2011-07-14 10:48:07 -07:00
alena 3b3a99ce43 bug 10727: fixed duplicated usage event generation when create volume from snapshot
status 10727: resolved fixed

Conflicts:

	server/src/com/cloud/storage/StorageManagerImpl.java
2011-07-14 10:34:55 -07:00
alena d11ac32f08 bug 10727: fixed duplicated usage event generation when create volume from snapshot
status 10727: resolved fixed
2011-07-14 10:28:28 -07:00
Nitin 1a6d859f22 bug 10718: checkSumSync - remove it as we dont require it.
status 10718: resolved fixed
2011-07-14 16:48:42 +05:30
Nitin 721ac489b2 bug 10718: checkSumSync - remove it as we dont require it.
status 10718: resolved fixed
2011-07-14 16:45:20 +05:30
kishan f198b892e9 throw exception after intercepting to log error event 2011-07-14 11:51:14 +05:30
anthony b9803a05ae bug 10705: don't need to print trace
status 10705: resolved fixed
2011-07-13 18:35:56 -07:00
alena f76a5e0043 Throw correct types of exceptions when fail to create account 2011-07-13 18:25:13 -07:00
alena 1979d1d065 bug 10681: for serviceOfferings, diskOfferings, templates/isos return records with not null Removed field on findById method call
status 10681: resolved fixed

Conflicts:

	server/src/com/cloud/server/ManagementServerImpl.java
2011-07-13 18:25:13 -07:00
anthony b6d4c3e86d bug 10691: expand try-catch, and add more log 2011-07-13 18:24:14 -07:00
alena 25206e6257 bug 10681: for serviceOfferings, diskOfferings, templates/isos return records with not null Removed field on findById method call
status 10681: resolved fixed
2011-07-13 17:16:07 -07:00
anthony 72b405948b bug 10691: add more log 2011-07-13 11:47:58 -07:00
Kelven Yang 11527ad914 bug 10699: log on listener registration 2011-07-12 16:58:55 -07:00
Kelven Yang 280a93a83d bug 10699: more log for this 2011-07-12 16:14:58 -07:00
Kelven Yang 40145b0b8b add logging to clustering notification 2011-07-12 16:14:58 -07:00
Nitin df3855420d bug 10624: ExtractVolume - code change for multiple secondary storage. 2011-07-12 20:30:43 +05:30
kishan b8a19e73af bug 6128: Throw exception when applying port forwarding rule fails
status 6128: resolved fixed
2011-07-12 16:41:17 +05:30
kishan 59399966c2 bug 7127: Added action event for lock user
status 7127: resolved fixed
2011-07-12 14:56:23 +05:30
alena 1acfa6013d Close ResultSet and PreparedStatement when gather vm information during the listVirtualMachines call 2011-07-11 18:26:15 -07:00
alena 738811305b bug 10687: respect "bootable" parameter when listIso
status 10687: resolved fixed
2011-07-11 18:06:39 -07:00
alena 50dce6d5a0 bug 10438: always return success on disableAccount when it got disabled successfully in the DB. If his vms failed to stop on the backend, mark account for cleanup and let background thread to do the cleanup job
status 10438: resolved fixed
2011-07-11 17:45:50 -07:00
alena 73574ebf5b Do regular vm stop (not forced=true) when disableAccount 2011-07-11 17:35:35 -07:00
alena 67f76b5192 Do regular vm stop (not forced=true) when disableAccount 2011-07-11 17:35:22 -07:00
anthony 72098e4ebd bug 10688: if the template is not installed in the primary storage, the asking zie is doubled, fixed by using physical size for template
status 10688: resolved fixed
2011-07-11 17:32:19 -07:00
anthony 0e9d1a8d1d bug 10688: if the template is not installed in the primary storage, the asking zie is doubled, fixed by using physical size for template
status 10688: resolved fixed
2011-07-11 17:28:30 -07:00
Kelven Yang 6d8eb45bad add logging to clustering notification 2011-07-11 17:16:23 -07:00
Kelven Yang 0fa8b65cde bug 10656: check OutOfMemoryError in critical path, fix run.sh to let it be able to monitor process termination 2011-07-11 16:33:19 -07:00
alena 506ca6cff3 bug 10686: generate volume.delete usage event (along with vm.destroy) when vm fails to create/start.
status 10686: resolved fixed

Also updated 227 to 228 db upgrade to insert missing usage_event records

Conflicts:

	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-07-11 16:13:22 -07:00
alena cc9a629cea bug 10686: generate volume.delete usage event (along with vm.destroy) when vm fails to create/start.
status 10686: resolved fixed

Also updated 227 to 228 db upgrade to insert missing usage_event records
2011-07-11 16:11:05 -07:00
Alex Huang 1d2a529556 put big log trace in firstfit planner in to trace instead of debug 2011-07-11 14:37:52 -07:00
Alex Huang f5d5ed5dce put big log trace in firstfit planner in to trace instead of debug 2011-07-11 14:37:36 -07:00
Kelven Yang e4bd357c53 bug 10677: add client side time out to cluster servlet interface 2011-07-11 13:37:33 -07:00
Kelven Yang b9f00ccbab bug 10677: add client side time out to cluster servlet interface 2011-07-11 12:08:12 -07:00
alena bb6468b814 Fixed typo 2011-07-11 10:31:42 -07:00
alena 98b728bf70 Fixed typo 2011-07-11 10:31:25 -07:00
alena edb68eb6b7 More logging to agent lb 2011-07-11 10:29:57 -07:00
alena f348b2f324 More logging to agent lb 2011-07-11 10:29:04 -07:00
Sheng Yang b9c740bcfd Update keystore generation cmdline 2011-07-11 10:19:40 -07:00
Sheng Yang 964cef3767 Update keystore generation cmdline 2011-07-11 10:18:39 -07:00
Nitin 8a54013812 bug 10624: ExtractVolume - code change for multiple secondary storage. 2011-07-11 20:33:07 +05:30
kishan 8069a45a26 bug 10276: Throw exception for account APIs failure
status 10276: resolved fixed
2011-07-11 14:09:38 +05:30
Alex Huang 186654b299 find templates that are not removed 2011-07-09 13:37:45 -07:00
Alex Huang fb8c3c032a find templates that are not removed 2011-07-09 13:37:26 -07:00
Alex Huang e0cce66bcc got rid of dos eol which seems to confuse jdk in generating line numbers 2011-07-09 13:35:52 -07:00
Alex Huang 26b3c26974 got rid of dos eol which seems to confuse jdk in generating line numbers 2011-07-09 13:35:06 -07:00
Alex Huang 852cf0e6c7 fix migration npe when recovering 2011-07-09 08:32:10 -07:00
Alex Huang db5afa4994 fix migration npe when recovering 2011-07-09 08:31:44 -07:00
alena 864a04ea6d bug 10671: list domain level networks for children domains when domainId is not specified
status 10671: resolved fixed
2011-07-08 21:17:32 -07:00
alena cad925bc6b bug 10671: list domain level networks for children domains when domainId is not specified
status 10671: resolved fixed
2011-07-08 21:11:51 -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
Alex Huang ea48d40e5f connection conierge to deal with connections that are not returned to pools 2011-07-08 18:04:57 -07:00
Alex Huang c679fc078a bug 10632: allow volume to be recreated when it is in recreating state 2011-07-08 18:04:57 -07:00
anthony cae81c9a66 bug 10669: it is due to there is a templatehostref for this template, whose status is not DOWNLOADED
fixed by only check ready templatehostref for ISO download

status 10669: resolved fixed
2011-07-08 17:39:19 -07:00
anthony dda3f220d6 bug 10669: it is due to there is a templatehostref for this template, whose status is not DOWNLOADED
fixed by only check ready templatehostref for ISO download

status 10669: resolved fixed
2011-07-08 17:37:34 -07:00
alena 9db9d3f36f When release public ip address, make a search by ip+networkId instead of ip+accountId as ipAddress is unique in network only. 2011-07-08 15:55:15 -07:00
alena 47f519f5de When release public ip address, make a search by ip+networkId instead of ip+accountId as ipAddress is unique in network only. 2011-07-08 15:47:25 -07:00