Commit Graph

3504 Commits

Author SHA1 Message Date
Alena Prokharchyk b16777994f bug 11924: don't return ISO entries where removed != null
status 11924: resolved fixed
reviewed by: Will Chan
2011-11-09 09:39:31 -08:00
Naredula Janardhana Reddy 516ea0ee0f Merge branch '2.2.y' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.2.y 2011-11-09 16:37:03 +05:30
kishan 4a80506448 bug 11938: Removed unique constraint on usage_network_offering table.
status 11938: resolved fixed
reviewed-by: Abhi
2011-11-09 16:27:31 +05:30
Naredula Janardhana Reddy 1148ebfdcd bug 11590:
reviewed-by: Abhi

Summary of Changes:
 while adding a primary address to the domR interface, previous primaray addresses(ip) are removed and added as with 32-bit netmask.
   This is to avoid two same ip's with different netmask attached to the interface.
2011-11-09 16:24:42 +05:30
kishan 6ad712d1c4 bug 11851: When Add VPN user fails, remove the user entry from db instead of leaving in Add state.
status 11851: resolved fixed
reviewed-by: Abhi
2011-11-08 15:53:32 +05:30
Alena Prokharchyk 657edb1a56 bug 11923: don't expose command name in the exception response when command is not available
status 11923: resolved fixed
reviewed-by: Will Chan
2011-11-07 18:00:11 -08:00
Nitin e9b21dad49 bug 11428: For volumes use findIdIncludingRemoved since volumes can be removed
Reviewed by - Kishan
status 11428: resolved fixed
2011-11-07 19:05:44 +05:30
Nitin 18a243e1d6 bug 11428: Under VMware with current version, for snapshot related related operations,
1) if snapshot is originally created from root volume, allow only
CreateTemplateCommand from snapshot

2) if snapshot is originally created from data volume, allow only
CreateVolumeCommand from snapshot

Reviewed by - Kishan
status 11428: resolved fixed
2011-11-07 18:30:24 +05:30
Nitin fff9e275b1 bug 11778: Make sure that there exist no PF/LB rules before enabling static nat on an ip and vice versa. Reviewed by - Jana
status 11778: resolved fixed
2011-11-07 17:08:58 +05:30
Chiradeep Vittal 52dfd3a7fd bug 11336: better message 2011-11-04 11:30:24 -07:00
Chiradeep Vittal cc5e459be0 bug 11336: limit the number of outstanding messages sent to a host to conserve memory 2011-11-04 11:30:13 -07:00
kishan 2c4a564b95 bug 11851: While adding new Vpn user, exisitng users state will remain as Active and still be re-added
status 11851: resolved fixed
2011-11-04 13:48:20 +05:30
Abhinandan Prateek 852679cea9 adding mroe info to warn message 2011-11-04 11:53:14 +05:30
frank abc6075a38 Bug 11808 - Allow additional non-default virtual networks
when isDefault is null, for virtual network set defaut to true, false for direct network
2011-11-03 15:10:42 -07:00
Naredula Janardhana Reddy 34d3679695 Revert "bug 11680: Fix to the listing of routers when the networkid is invalid."
This reverts commit 6d5c46c4b0c6c8782923630947000348590d14f8.
2011-11-03 15:48:04 +05:30
Abhinandan Prateek c1eaef18c1 bug 11678: moving initialization to the configure methog 2011-11-03 15:26:54 +05:30
root 55b5a5c5cd Revert "bug 11791: adding Hypervisor type to list os API"
This reverts commit 78e01c3061795e5d3d80db8a147b5f1c8a836a3c.
2011-11-03 14:53:32 +05:30
Abhinandan Prateek 6e2f732734 bug 11804: Only root admins have a relaxed resource limit 2011-11-03 11:15:13 +05:30
Abhinandan Prateek 5e44458ec1 Revert "bug 11804: Only root admins have a relaxed resource limit now"
This reverts commit 5415bd881b4a5b1b81937171fe494509b5e1619e.
2011-11-03 11:02:59 +05:30
anthony 1ba2d1c8d5 add more logs 2011-11-02 17:04:18 -07:00
frank 720ffc2d1f Bug 11808 - Allow additional non-default virtual networks
completed Java code change, need UI change in line with
2011-11-02 14:35:14 -07:00
Abhinandan Prateek 15a8c015ea bug 11678: added vm.destory.forcestop config var to set force when destroying a vm 2011-11-02 17:47:08 +05:30
Abhinandan Prateek e6474ff85a bug 11709: saving encrypted password in db
status 11709: resolved fixed
2011-11-02 16:47:42 +05:30
kishan d601313b35 bug 11770: throw error when account is not found in default root domain
status 11770: resolved fixed
2011-11-02 15:24:37 +05:30
kishan daa7d41650 bug 11770: throw error when account is not found in default root domain
status 11770: resolved fixed
2011-11-02 15:22:29 +05:30
Naredula Janardhana Reddy 48c1044ebe bug 11680: Fix to the listing of routers when the networkid is invalid. 2011-11-02 15:10:43 +05:30
Abhinandan Prateek ad5341d0d3 bug 11804: Only root admins have a relaxed resource limit now
status 11804: resolved fixed
2011-11-02 13:30:15 +05:30
frank 5164394949 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:11 -07:00
frank d4a106319d 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:45:49 -07:00
frank ade383112c Baremetal: bypass HA, only track VM status 2011-11-01 15:12:52 -07:00
kishan 3018a5e124 bug 11796: Catch all exceptions in network usage task and never exit the thread
status 11796: resolved fixed
2011-11-01 20:39:08 +05:30
Abhinandan Prateek e54fc08862 bug 11791: adding Hypervisor type to list os API 2011-11-01 17:56:28 +05:30
Nitin 9a0c16a714 bug 11739: Fix typo 2011-10-30 23:25:37 +05:30
frank c1c9e5c6c3 allow multiple clusters for baremetal 2011-10-28 13:46:25 -07:00
frank 204b07a973 Use constant string instead of hard coding in baremetal parameters passing 2011-10-28 11:05:48 -07:00
Abhinandan Prateek b81c380f86 bug 11701: cluster sync only for Xen, old way of syncing for other Hypervisor 2011-10-28 11:45:15 +05:30
frank cc6bf73760 allow multiple clusters for baremetal planner
fix build
2011-10-27 17:42:25 -07:00
frank b4fffc9b30 allow multiple clusters for baremetal planner 2011-10-27 17:31:25 -07:00
Abhinandan Prateek edbce41065 bug 11701: cleanup, and vm host sync on delta 2011-10-27 16:23:04 +05:30
frank 295842fac0 Bug 11805 - Cant add baremetal host
status 11805: resolved fixed
2011-10-25 15:17:02 -07:00
Kelven Yang 9ad7c23074 bug 9614: let root volume use IDE disk controller by default to ensure backwards compatibility with existing CloudStack deployments 2011-10-24 15:28:10 -07:00
Kelven Yang 231640f279 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:21 -07:00
alena f41dd918a9 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:07:16 -07:00
alena 3af0dba676 bug 11744: remove firewall rules before removing statis nat rules as a part of disableStaticNat call
status 11744: resolved fixed
2011-10-21 17:20:13 -07:00
David Nalley ff9ca29bb2 Extending Kevin Brook's original XCP disguised as XS 5.6.100 patch 2011-10-20 08:18:17 -04:00
Abhinandan Prateek 2f5adb0baf bug 11701: cleanup of spurious message 2011-10-19 13:44:05 +05:30
Abhinandan Prateek 8ee0fd700b bug 11701: putting the intervals in Config 2011-10-18 14:41:35 +05:30
Kelven Yang 3aba30543c 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:03:54 -07:00
anthony c459604fa2 handle empty snapshot correctly 2011-10-17 17:24:32 -07:00
frank 953ad818f0 Bug 11647 - OVM - no support for migrate instance
return available hosts when hypervisor type is Ovm
status 11647: resovled fixed
2011-10-17 16:25:13 -07:00
Abhinandan Prateek b15b0ddd0f bug 11701: separating vm sync from ping and doing it per cluster from pool master 2011-10-17 18:31:00 +05:30
Kelven Yang faa3622187 bug 11716: save VMware local datastore info to local storage to support multiple local datastores per host situation 2011-10-14 17:13:22 -07:00
frank 7dcf83bc06 Bug 11745 - Ovm needs user manually start a xenserver user vm in order to start VirtualRouter
status 11745: resolved fixed
2011-10-14 14:46:36 -07:00
frank 9abd7973f2 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:32 -07:00
Abhinandan Prateek b1de219cd9 bug 11675: enable RHEL 6 for XCP 1.1 2011-10-14 11:42:04 +05:30
frank 9bf4ac9041 Bug 11647 - OVM - no support for migrate instance
return error if taking snapshot API call happens on Ovm
2011-10-13 16:19:42 -07:00
frank 1e421bbce9 Bug 11670 - OVM - HA failed when host is disconnected from network
status 11670: resolved fixed
2011-10-13 14:44:58 -07:00
Kelven Yang d022eaba9c Make default value of pre-allocated public NICs in domR consistent with the default value in DB 2011-10-12 14:56:30 -07:00
Kelven Yang 4c6110e020 bug 11585: using pre-allocated NIC approach to support additional public interfaces for VMware 2011-10-11 15:13:55 -07:00
Abhinandan Prateek ff5dfdbf68 bug 11675: fixed error messages 2011-10-11 17:26:01 +05:30
Abhinandan Prateek 4a3b4d21c3 bug 11675: optimized the code 2011-10-11 17:25:04 +05:30
Nitin 5d6a48dd26 bug 11668: Do not apply 'cpu.overprovisioning.factor' while setting total_cpu in the op_host_capacity entry. 2011-10-11 16:55:42 +05:30
kishan 06d3d8db85 bug 11561: Added new Dao RandomlyIncreasing, which will increase the Vm Id by 1-10 randomly
status 11561: resolved fixed
2011-10-11 14:08:40 +05:30
kishan 86ea3a1c12 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:21:22 +05:30
Abhinandan Prateek 81e661c9f8 bug 11675: enabling support for XCP 1.1.0 2011-10-11 11:34:30 +05:30
Edison Su feec96b8b5 bug 11634: add manual vm migration support for kvm
status 11634: resolved fixed
2011-10-10 11:30:45 -07:00
prachi 078190f76d 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:07:53 -07:00
alena 16989227d9 bug 11667: drop primary keys in cloud_usage.usage_load_balancer_policy and cloud_usage.usage_port_forwarding
status 11667: resolved fixed
2011-10-07 10:58:19 -07:00
alena e765ea769f bug 11666: fixed foreign key upgrade in networks table
status 11666: resolved fixed
2011-10-06 18:15:41 -07:00
alena dce06146af bug 11664: fixed regression bug in listVms introduced by performance changes
status 11664: resolved fixed
2011-10-06 16:52:51 -07:00
prachi 25196871b9 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:31:35 -07:00
Edison Su 96afeaf38f bug 10624: copyvolume needs to put ".qcow2" at the end of the file
status 10624: resovled fixed
2011-10-05 17:48:22 -07:00
Edison Su 0f76c1fa24 bug 11600: aquirelock before deleting a volume, which can be aquired by snapshot manager
status 11600: resolved fixed
2011-10-03 16:40:59 -07:00
prachi 17eb55cd10 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.
2011-10-03 15:22:01 -07:00
prachi 2f19599fe9 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

Conflicts:

	api/src/com/cloud/api/ResponseGenerator.java
	api/src/com/cloud/api/commands/ListHostsCmd.java
	api/src/com/cloud/server/ManagementService.java
	api/src/com/cloud/vm/UserVmService.java
	server/src/com/cloud/api/ApiResponseHelper.java
	server/src/com/cloud/server/ManagementServerImpl.java
2011-09-29 18:11:08 -07:00
anthony 0bdd6ded96 timeout is not set for some commands 2011-09-29 12:17:08 -07:00
alena 3b652f25bf bug 11603: for OSS build - update guru_name from GuestNetworkGuru to ExternalGuestNetworkGuru.
status 11603: resolved fixed
2011-09-29 10:40:57 -07:00
alena 4cea75ba46 bug 11589: don't fail deleteVpn command when domR is in Stopped state.
status 11589: resolved fixed
2011-09-29 10:20:40 -07:00
anthony 59bb2e0289 bug 10579: disable pool vm sync and disable hostTrack for XenServer,
status 10579: resolved fixed

reviewed-by: alex
2011-09-28 20:47:49 -07:00
Sheng Yang 1ef78e4db2 Use router's redundant state to check rather than using global config 2011-09-28 16:50:24 -07:00
kishan ff7fc32949 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:48:38 +05:30
Kelven Yang 6fdbd309c3 bug 10971: support vSphere 5 2011-09-26 12:15:26 -07:00
alena 73218e51f1 bug 11555: Fixed NPE happening during LB rule cleanup in case when createLB fails
status 11555: resolved fixed

Reviewed-by: frank@cloud.com
2011-09-23 11:01:31 -07:00
alena d8e806748f 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:41:56 -07:00
Sheng Yang ac5fd72ded 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:09 -07:00
Kelven Yang 4e84804f1f bug 11531: forget to include newly added JUnit test along with the fix, here it is 2011-09-22 16:21:15 -07:00
Kelven Yang ad8f967503 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:19:40 -07:00
Edison Su 5b66200eea bug 11513: another customer hits the same issue by associate ip in the basic zone
Reviewed-by: alena@citrix.com
2011-09-22 15:03:37 -07:00
Edison Su c2b0b4be2f bug 11513: add more log in the cleanup network
Reviewed-by:alena@citrix.com
2011-09-22 15:03:23 -07:00
alena cdb80c76c1 bug 11537: revoke related FirewallRules when do vmExpunge and ipAddress release.
status 11537: resolved fixed

Reviwed-by: edison@cloud.com
2011-09-22 13:58:01 -07:00
alena dd8b031159 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
2011-09-22 10:55:43 -07:00
Sheng Yang 902458bfa0 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:29 -07:00
alena ad0c82cae7 bug 11513: always wrap marking IP address with Releasing state and actual IP deallocation in Transaction
Reviewed-by:edison@citrix.com
2011-09-21 18:41:47 -07:00
Edison Su d722766427 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:09 -07:00
alena 6ea66248dd 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:21 -07:00
alena a4fb8e7d28 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:31:17 -07:00
alena a5a7103df6 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
2011-09-20 10:31:08 -07:00
alena 36344a3395 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:01 -07:00
Edison Su 2632594a70 bug 11495: set bootable as user selected for iso/templates
status 11495: resolved fixed
Reviewed-by:alena@citrix.com
2011-09-19 17:47:01 -07:00
alena 28b26f755a 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:05 -07:00
alena 41871d5687 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:46:11 -07:00
prachi 97bdb58b6d 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.
2011-09-15 18:47:05 -07:00
alena f4e22094e0 Do agent disconnect when agent rebalance fails
Reviewed-by: Alex Huang
2011-09-15 18:36:22 -07:00
prachi c5199dd328 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:11:51 -07:00
prachi 0aec7560bb 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:11:50 -07:00
keshav d27810afa2 In inline SRX/F5 mode, collect outbound usage for LB rules from the SRX. 2011-09-15 14:42:49 -07:00
alena 9bb95e915e bug 11447: don't do security group check if both groups belong to the same domain
status 11447: resolved fixed
2011-09-15 10:02:32 -07:00
anthony 16a97468c2 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:12:44 -07:00
Kelven Yang d5cc708143 Let VmwareInvestigator return fake but meaningful investigation result 2011-09-14 17:03:39 -07:00
alena 8e47cb21c1 Fixed the problem in addDhcpEntry code when _dnsBasicZoneUpdates was never reset once set to false. 2011-09-14 16:08:12 -07:00
Kelven Yang 8c56bfffbc add VmwareInvestigator and VmwareFencer, use short worker VM name to avoid vCenter truncation 2011-09-14 15:14:36 -07:00
Sheng Yang 0ef051b4d2 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 14:56:02 -07:00
anthony d6af51a402 bug 9777: only allow to delete snapshot in BackedUp status
status 9777: resolved fixed
2011-09-14 14:15:44 -07:00
alena 428232da21 bug 10435: use "hostName" instead of "name" as a search filed in listSystemVms
status 10435: resolved fixed
2011-09-14 11:01:21 -07:00
prachi 2e4b39de33 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:45:03 -07:00
Edison Su 4999511a2d bug 11239: bugy database contains a cluster whose hypervisor type is Null, then listhypervisorscmd return a None hypervisortype. Fixed in the API, don't return None
status 11239: resovled fixed
2011-09-14 10:43:47 -07:00
Murali Reddy d73bf096c0 bug 11425: dont count direct IP in resource count while updating resource count through API
status 11425: resolved fixed
2011-09-14 23:09:59 +05:30
alena 97c4029700 bug 11434: don't execute destroy call when vm is already in Destroyed/Expunging state
status 11434: resolved fixed
2011-09-14 10:33:16 -07:00
Nitin 22cca97894 bug 11190: My changes got reverted. Putting them back - Treating the max account limits with -1 values as infinite 2011-09-14 19:36:54 +05:30
Naredula Janardhana Reddy 01ac82d9d6 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-14 17:09:21 +05:30
Sheng Yang 7713d675a7 Fix restartNetwork wrongly report stop failure 2011-09-14 03:05:57 -07:00
Sheng Yang 3ba15fe813 bug 11307: Add destroyRouter command 2011-09-14 03:05:47 -07:00
Sheng Yang 58ee9f4855 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 03:05:15 -07:00
Sheng Yang 49031c5563 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 03:05:09 -07:00
Sheng Yang 11f737a673 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 03:04:37 -07:00
Sheng Yang 59eb1b0ba1 bug 11307: Add Bumped field for domain_router
Only used for redundant virtual router.
2011-09-14 03:03:47 -07:00
Sheng Yang 9e0ee10e9f bug 11307: Let CheckRouterAnswer() parse the return result 2011-09-14 03:03:00 -07:00
anthony bb44208ae3 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:11:37 -07:00
frank 29b5945263 check hypervisorType and StoragePoolType in OCFS2 manager when delete host
don't take lock in processResourceEvent()
2011-09-13 17:35:34 -07:00
alena 1f45148a29 Don't update resource count for system account 2011-09-13 16:34:09 -07:00
alena 6641f587a4 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:19:14 -07:00
anthony 48387ef907 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:51:52 -07:00
alena 4c7a4181c0 bug 11246: return lb rule Id in the async response for createLoadBalancer api
status 11246: resolved fixed
2011-09-13 12:06:46 -07:00
anthony 17cceca8a2 XcpServerDiscoverer is only for XenServer 2011-09-13 11:11:36 -07:00
kishan 7ac764005b bug 11199: Moved DB upgrade changes to schema-2211to2212-premium
status 11199: resolved fixed
2011-09-13 23:30:31 +05:30
alena 0c127890ea 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
2011-09-13 10:47:55 -07:00
anthony a308823549 bug 11413: when mark host ad disconnected, set lastping to now - pingtimeout
status 11413: resolved fixed
2011-09-12 18:46:58 -07:00
Nitin 2ab80e92bb bug 11403: Making hypervisor_type of xs-tools.iso (id=200) as XenServer. Made the corresponding DB changes as well. 2011-09-13 03:11:13 +05:30
Kelven Yang 11ce9d66f8 bug 11377: remove the restriction on VMware in API layer to let it support VM manual migration 2011-09-12 14:27:42 -07:00
frank 453329ce93 Bug 11350 - Baremetal destroy instance doesnt power off machine
status 11350: resolved fixed
2011-09-12 14:17:18 -07:00
anthony aef381d873 fixed typo 2011-09-12 12:26:43 -07:00
kishan 5a036b347a 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:07 +05:30
kishan 2ffb859067 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:06:18 +05:30
Nitin 0534fa29ab 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:52:48 +05:30
Nitin e786533b27 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:45:45 +05:30
Kelven Yang 6a8e223761 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:06:34 -07:00
kishan 698c524cf2 bug 8338: Added usage.aggregation.timezone. Also included in 2211 to 2212 upgrade 2011-09-09 13:59:19 +05:30
keshav a0ab06b186 Excluded external firewall/LB from host stats collection, and included them in ping checks 2011-09-08 16:39:34 -07:00
Kelven Yang bfdcf23939 bug 11384: deprecate vmware.guest.nic.device.type global configuration variable 2011-09-08 16:10:02 -07:00
alena 34d67bea69 Fixed the bug in AgentLB: consider only hosts of type=Routing when calculate average load 2011-09-08 14:58:03 -07:00