Commit Graph

1791 Commits

Author SHA1 Message Date
Alex Huang f948926a2f some minor adjustments before doing the big work 2011-02-07 10:58:25 -08:00
Murali Reddy 8798fce36d bug 8390: description of weekly and monthly snapshot policy contains hourly in global configuration
status 8390:resolved fixed
2011-02-07 10:05:54 -08:00
alena 6e399aa698 Vm expunge: when delete port forwarding rules as a part of vm expunge, do searchIncludingRemoved for the vm because vm can be marked for removal already. 2011-02-07 10:02:10 -08:00
alena e299402243 Perform security check for deleteNetwork inside the management server method instead of api command itself 2011-02-07 10:02:10 -08:00
nit 0f12529353 bug 8088: Making template sync more robust. If the url is null we cant initiate a download and so mark it as a download error instead.
status 8088: resolved fixed
2011-02-07 14:20:28 +05:30
nit df9003b0b6 bug 8088: Making template sync more robust. If the url is null we cant initiate a download and so mark it as a download error instead.
status 8088: resolved fixed
2011-02-07 14:20:28 +05:30
alena e58e085928 Added missing @DB annotation to createNetwork (was lost during git merge) 2011-02-05 18:11:21 -08:00
kishan 4eebc1c434 bug 8415: Added scheduled event for recurring snapshots
status 8415: resolved fixed
2011-02-05 14:40:26 +05:30
anthony e14b8311cc bug 7563: create snapshot in async create method
status 7563: resolved fixed
2011-02-04 19:20:47 -08:00
alena 4fbcbda4d2 bug 8409: listLoadBalancers - for domain admins list only lbs belonging to their domains and subdomains
status 8409: resolved fixed
2011-02-04 18:12:04 -08:00
will d2440eb44e bug 8315: Reordered logic when authenticating user so that we make a check on the authentication adapter before executing subsequent logic. This allows AuthenticationAdapters to create accounts if they are not already in the DB. 2011-02-04 18:02:18 -08:00
alena 4699d91f4e bug 8399: dhcp owner is System in Basic zone setup and for Direct zone wide network
status 8399: resolved fixed
2011-02-04 15:54:51 -08:00
alena e9dd1ee822 bug 8383: HA: perform ssh check before marking system vms as running. For domR, also reapply all ips/PF/LB/VPN/Dhcp/Userdata.
status 8383: resolved fixed
2011-02-04 14:33:14 -08:00
Kelven Yang 33d804846f Native HA support improvements 2011-02-04 14:32:18 -08:00
abhishek 1f8c4864d6 bug 8171: adding checks to ensure we do not start cp for any vm start unless we are out of maintenance
status 8171: resolved fixed
2011-02-04 14:00:37 -08:00
Alex Huang e153ab461c removed unused method 2011-02-04 11:56:21 -08:00
Alex Huang 86e51eb536 Made changes to the exceptions thrown by NetworkManagerImpl 2011-02-04 11:56:20 -08:00
Alex Huang 0105c03a27 initial HA work 2011-02-04 11:51:14 -08:00
alena 84fef40ce2 Refactored "allocate vlan to account" code 2011-02-04 09:54:16 -08:00
abhishek 030286279c adding a migration util 2011-02-04 08:52:47 -08:00
kishan 56f3343911 Added action events for VM, volume, Ip and snapshot actions 2011-02-04 19:59:41 +05:30
nit 5469916060 bug 7522 : Extract ISO/Template - By default these entities wouldnt be extractable, GLOBAL ADMINS - always allowed to extract, OTHERS - allowed to extract if - 1) Its own template and extractable=true 2) Its not its own template but public=true and extractable=true.
status 7522: resolved fixed
2011-02-04 17:51:42 +05:30
kishan a9fd67cab6 bug 8362: Included VmId in event description
status 8362: resolved fixed
2011-02-04 11:52:35 +05:30
Murali Reddy ee1c53ecf3 Revert "bug 8327: successive removeFromLoadBalancerRule(s) renders LB rule dysfunctional"
This reverts commit 368289aa12.
2011-02-03 20:40:38 -08:00
Edison Su 3cc5ce8642 add new configuration parameter: cmd.wait, for heavy timing-consuming commands, such as backupsnapshotcommand 2011-02-03 18:57:38 -05:00
alena 6f55c4dd7e bug 8270: Synchronize on 1) ipAddress object when create/delete ipForwarding/portForwardingRule and vpn service 2) on networkId when assignTo/removeFrom/deleteLoadBalancer
status 8270: resolved fixed
2011-02-03 18:45:49 -08:00
Frank 4c7fb08b33 Add OvsElement.java 2011-02-03 18:28:33 -08:00
Frank 54450460d2 implement network element for ovs stuff, so we don't make other code dirty 2011-02-03 17:39:03 -08:00
anthony 4227d1525b bug 8219: better error message
status 8219: resolved fixed
2011-02-03 15:57:36 -08:00
Edison Su fd0752e995 bug 5811, 8261: When delete host, send a shutdownCommand to kvm agent, then kvm agent will not automatically reconnect to mgt server
status 5811: resolved fixed
status 8261: resolved fixed
2011-02-03 13:40:07 -05:00
Murali Reddy 368289aa12 bug 8327: successive removeFromLoadBalancerRule(s) renders LB rule dysfunctional
status 8327: resolved fixed
2011-02-03 13:33:14 -08:00
alena 1a03097d1b Fixed NPE in VirtualNetworkApplianceManager - happened when stopped domR start was initiated by user vm start 2011-02-03 13:25:12 -08:00
keshav 66cb75ded3 Changed external network provider names to be model specific. 2011-02-03 11:55:39 -08:00
alena f36265c408 bug 8367: listNetworks - for domain admin list only networks belongig to his domain/subdomains
status 8367: resolved fixed
2011-02-03 11:38:43 -08:00
abhishek 2a38a58be0 bug 8335: changing the deployVm flow to take in a list of security group ids instead of a list of security group names 2011-02-03 11:37:49 -08:00
alena e9490bda55 bug 8359: fixed deleteDomainCommand - didn't work when domain had accounts assigned (incorrect method cleanupAccount was called instead of deleteAccount)
status 8359: resolved fixed
2011-02-03 10:38:53 -08:00
alena 026e6905c9 bug 8343: in api commands extending BaseAsyncCreate set owner account information only after all request parameters were read as account/domainId information can be specified in the request
status 8343: resolved fixed
2011-02-03 09:53:18 -08:00
kishan 6db6e8b4e9 Added action events for load balancer actions 2011-02-03 18:42:36 +05:30
kishan 5bedf10cbf Added action events for Ip and net rules 2011-02-03 18:13:23 +05:30
kishan 577fdd2c26 Added action events for Vm actions 2011-02-03 17:36:43 +05:30
kishan fcfd4e9e33 bug 8192: use volume size in bytes for usage
status 8192: resolved fixed
2011-02-03 16:38:48 +05:30
kishan 16f1a3a548 bug 7955: Added usage for network offerings
status 7955: resolved fixed
2011-02-03 15:49:59 +05:30
nit 0d895e816f bug 8258 : Allowing all shared storages to be shown in the listCapacity API.
status 8258: resolved fixed
2011-02-03 13:43:03 +05:30
kishan 5007f37479 bug 8320: Include router private Ip in stop command
status 8320: resolved fixed
2011-02-03 11:37:47 +05:30
anthony b226861783 bug 8194: add new storage pool type PreSetup,
1. user setup SR for xenserver pool
2. in UI, add a new storage pool as PreSetup
   server: "ip of storage "
   path:"name of the SR"
2011-02-02 19:33:08 -08:00
Edison Su 4ea260cafd bug 8204: mgt server needs to pass down iso info before migration, if the vm has ISO attached
status 8204: resolved fixed
2011-02-02 19:13:12 -05:00
Kelven Yang b12444bb64 Let HA manager support native HA 2011-02-02 17:59:20 -08:00
Edison Su a46155e895 bug 8094: send networkrulesforssvm command to agent, no matter security group is enabled or not
status 8094: resolved fixed
2011-02-02 16:26:54 -05:00
alena 848cff6318 Use static inner class instead of enum for Param parameter (used in VirtualMachineProfile) 2011-02-02 15:55:04 -08:00
alena fe67fa851a bug 8330: make a search including removed when get service offering information during vm start.
status 8330: resolved fixed
2011-02-02 14:06:54 -08:00
abhishek 24acc66124 bug 8331: changing the revoke logic to work by taking in the entity id. All other params are obsolete at this point
status 8331: resolved fixed
2011-02-02 13:49:56 -08:00
Kelven Yang b874bbda91 Give primary VMFS datastore meaningful name 2011-02-02 13:37:14 -08:00
Edison Su 1aff4d8a9a make sure building template is downloaded 2011-02-02 13:35:41 -05:00
alena 9aa9c34029 bug 8340: return networkId for private/public/guest networks in listRouters response. Implemented search by networkId
status 8340: resolved fixed
2011-02-02 13:25:28 -08:00
Murali Reddy 8ce576dde5 bug 8239: NPE while executing CreateSnapshotCmd
status 8239: resolved fixed
2011-02-02 13:12:34 -08:00
alena 5d2cc07768 bug 8201: accept "any" value for protocol when open port range for staticNat rule
status 8201: resolved fixed
2011-02-02 12:57:14 -08:00
Edison Su cfd8cdbf20 bug 8195: add on-demand download for buildin templates, only download these buildin centos template after when you adding a host for the hypervisor
status 8195: resolved fixed
2011-02-02 12:03:40 -05:00
kishan a4d306259e added id to ip address usage 2011-02-02 18:20:14 +05:30
kishan d901d42670 bug 7965: Added delete event for recurring snapshot delete
status 7965: resolved fixed
2011-02-02 17:43:28 +05:30
Murali Reddy fc6574c40c bug 8290: Instance Limit set at account level however was able to create more vms than limit
status 8290: resolved fixed
2011-02-02 00:35:10 -08:00
alena 96c05a24e4 bug 8235: don't generate NET_IPASSIGN event when ip assoc command fails
status 8235: resolved fixed
2011-02-01 19:55:27 -08:00
alena ff281af035 bug 8253: get_password_from_domr is a part of source code now. It should be located under /usr/bin/ directory on the Management server once cloudstack software is installed
status 8253: resolved fixed
2011-02-01 17:40:00 -08:00
alena d5bded3d6d PublicNetworkGuru: fixed NPE in ipUnassign 2011-02-01 17:40:00 -08:00
Kelven Yang 27f2b6cbb1 Let cluster host-heartbeat be in a sperated context to avoid update delay by other activities 2011-02-01 17:38:12 -08:00
Edison Su 675a610995 cleanup default hypervisortype 2011-02-01 16:03:10 -05:00
alena 51894d22d2 bug 8288: allow to create multiple Guest Virtual networks for account in the same zone
status 8288: resolved fixed
2011-02-01 15:50:01 -08:00
abhishek db04ec7f90 bug 7899: reverting a previously wrong fix; adding the right fix
status 7899: resolved fixed
2011-02-01 15:25:40 -08:00
Frank 85e11d2ff9 Add ExternalGuestNetworkGuru.java back to permium 2011-02-01 14:55:46 -08:00
alena b813800496 Implemented list by id in "listPublicIpAddresses" api 2011-02-01 14:29:06 -08:00
alena d4b1831bf4 Added "status" field to listPublicIpAddresses response 2011-02-01 14:20:45 -08:00
alena 668fde991c Don't default resource owner to System account when command is executed via 8096 and account or domainId are missing 2011-02-01 14:20:45 -08:00
abhishek 9e2a9ab528 bug 8268: correcting stats reporting; the response obj was using wrong method to convert double to long
status 8268: resolved fixed
2011-02-01 13:39:26 -08:00
Kelven Yang 6ed8b20a76 add catch-all clause in cluster heartbeat 2011-02-01 12:40:32 -08:00
alena 6544820e74 Moved networkRestart to the NetworkManager as it's up to the manager (not network elements) to decide what to do on restart (IpAssoc/ruleApply/etc..) 2011-02-01 12:16:19 -08:00
alena a21ce17c09 1) More logging during vm cleanup when the vm fails to start
2) Cleanup nic info in the DB during nicRelease
2011-02-01 12:16:18 -08:00
alena f6f8a35c75 bug 8251: introduced "id" field for public IP address. In the DB id is a primary key in user_ip_address table; ip_address and source_network_id is a composite key
status 8251: resolved fixed
2011-02-01 12:16:18 -08:00
Edison Su d6a7bb1fbe bug 8301: fix typo
status 8301: resolved fixed
2011-02-01 12:12:04 -05:00
Alex Huang ade0097a0a wrap cluster heartbeat in a try-catch 2011-02-01 12:04:08 -08:00
Edison Su 5b073cd370 bug 8087: default hypervisor type is gone: when creating cpvm/ssvm, randomly choose one hypervisor type, which got from host table. When creating domR, as we already know the hypervisor type at that time, so domR and user vm are always created as the same hypervisor type.
status 8087: resolved fixed
2011-02-01 11:32:40 -05:00
abhishek 447153f570 bug 8247: when we have vms in error state, we destoy their volumes. then, when we delete account with such vms, we should NOT try and destroy vols already destroyed.
status 8247: resolved fixed
2011-02-01 11:13:40 -08:00
nit 98cb458bf1 bug 8257: ListVM's API - adding the functionality to invoke this api with the hypervisor filter.
status 8257: resolved fixed
2011-02-01 18:00:39 +05:30
kishan e74d8888c7 bug 8151: Avoid volume delete event for volumes which were never attached
status 8151: resolved fixed
2011-02-01 13:06:47 +05:30
Alex Huang c38238c614 some improvements in checkSR 2011-01-31 17:48:24 -08:00
Kelven Yang ddda5fc431 Cleanup of worker VMs left over from previous session in a reliable way 2011-01-31 17:41:07 -08:00
Frank 4d2d820634 fix injectkeys.sh -- pass systemvm.iso path to scripts 2011-01-31 12:19:32 -08:00
Frank be94843ccf fix typo of parameters order when create public key and private key of systemvm 2011-01-31 11:49:16 -08:00
Alex Huang a49a4184d5 forgot the select field 2011-01-31 11:16:13 -08:00
Alex Huang f96f5a7db0 fixed stupid git merged problems 2011-01-31 11:09:59 -08:00
kishan 92bf106ab9 including host type in network stats 2011-01-31 19:36:32 +05:30
nit f53e18b0ab bug 8257: Returning hypervisor type in Listvm command so that volume gets attached to the corresponding vm's 2011-01-31 19:10:56 +05:30
anthony 76ad02d2fa cleanup XenServer code 2011-01-28 18:47:37 -08:00
Frank 24e4c885e2 load cluster managers 2011-01-28 18:06:57 -08:00
Kelven Yang c51e68a2d5 Manage left-over objects across management server sessions 2011-01-28 17:51:53 -08:00
Frank e9652e67ad migrate premium to oss 2011-01-28 16:07:46 -08:00
Alex Huang 60518dc226 storage rewrite 2011-01-28 15:37:00 -08:00
Alex Huang f9a9698d96 more unused fields removed 2011-01-28 15:37:00 -08:00
abhishek ddcf232474 bug 8211: applying patch
status 8211: resolved fixed
2011-01-28 14:34:03 -08:00
abhishek d8ea2f04ea setting cpvm restart to true with every storage pool being added 2011-01-28 14:24:44 -08:00
Chiradeep Vittal 3aeb562959 bug 8199: better logs 2011-01-28 14:08:45 -08:00
abhishek 5d18c4c527 bug 8242: introducing the concept of work queue for storage; introducing storage states as opposed to using host states; using row locks as opposed to db table locks
status 8242: resolved fixed
2011-01-28 13:43:36 -08:00
anthony cb024e3bf2 remove prealloclun 2011-01-28 12:46:50 -08:00
anthony 96d9776c20 remove preallocatedLun 2011-01-28 12:36:31 -08:00
Chiradeep Vittal cc0ed77fee bug 8199: always update the keypairs on disk to account for multiple management servers 2011-01-28 12:24:22 -08:00
Chiradeep Vittal 09145efc41 Bug 8199: inject ssh public key into systemvm iso file 2011-01-28 12:24:18 -08:00
Kelven Yang 4696b16d10 Normalize name convention for vmware hypervisor 2011-01-28 11:16:30 -08:00
alena a267d1c261 Generate usage event when Ip is released as a part of network destroy 2011-01-28 10:58:53 -08:00
keshav b23df4c7e3 Fixed zoneIsConfiguredForExternalNetworking method 2011-01-28 10:56:25 -08:00
keshav c7bccd0b0f Added method to check if a zone is configured for external networking. 2011-01-28 10:42:04 -08:00
alena 620466d393 Network destroy: when release ip addresses assigned to the network, no need to send applyIpAssociations command to the network elements as they are already shutdown. 2011-01-28 10:09:20 -08:00
Frank 65e326c751 ovs -- use VmStateListener to track vm state change 2011-01-27 18:41:06 -08:00
alena 52dd679d95 bug 8185: fixed java part of password reset feature. There are still changes needed in backend scripts (bugs 8253 and 8254 are filed separately)
status 8185: resolved fixed
2011-01-27 17:24:09 -08:00
Edison Su f8778ea4c6 add sharedmountpoint storage pool to support all kinds of clustered file system 2011-01-28 04:37:31 -05:00
Kelven Yang e7c8872651 Use URL safe BASE64 encoding for console access ticket generation. 2011-01-27 11:54:41 -08:00
Kelven Yang 3b846961ce Bug 8229: Add finalizeExpunge to VirtualMachineGuru interface to allow overriding cleanup operations at expunging stage
Status 8229: Resolved Fixed
2011-01-27 10:29:55 -08:00
kishan d3b85f8dca bug 8231: Added network usage records by host
status 8231: resolved fixed
2011-01-27 17:35:44 +05:30
alena 77e89b72ca bug 8187: retreive DNS information from DataCenter instead of resetting it for the network. After the DNS is reset, all networks in the zone have to be restarted. Console proxy and secondary vm should be restarted too.
status 8187: resolved fixed
2011-01-26 19:08:56 -08:00
Kelven Yang 244d8c198b Cleanup UserContext after execution for better security 2011-01-26 17:06:14 -08:00
abhishek aafdf07efb minor typo 2011-01-26 15:18:21 -08:00
abhishek b226005982 bug 8130: destroying all vols associated with a vm in error state, during the vm creation flow
status 8130: resolved fixed
2011-01-26 15:14:49 -08:00
alena 402506e8a0 Disable static nat for the IP address when corresponding vm gets expunged 2011-01-26 14:17:08 -08:00
abhishek 6aae1adc1b bug 8215: better formed exception body 2011-01-26 13:29:21 -08:00
abhishek b5d2ff71fc bug 8215: blocking snapshot creation for volumes attached to vms which are in destroyed or expunging state
status 8215: resolved fixed
2011-01-26 13:26:25 -08:00
Kelven Yang 34178bec61 1) add destroySystemVm command to allow destroying of system VMs
2) add consoleproxy.launch.max to allow specifying a configured max number of console proxy VM that can be launched within a zone(if not specified, default is 10), this is to prevent possible DoS attacks or uncontrolled usage of system resources
3) Remove some unused code.
2011-01-26 12:08:35 -08:00
alena 46e1f6279a Return vm information in listPublicIpAddress api response for the static nat ips 2011-01-26 12:03:30 -08:00
alena a4c5bef188 disableOneToOneNat: generate usage events for all rules (port ranges) that are being removed 2011-01-26 10:31:27 -08:00
alena 731e78937f Added 2 new api commands for 1-1 nat feauture: enable/disableOneToOneNat. Here is the 1-1 nat api summary:
* to enable 1-1 nat for ip/vm use enalbeOneToOneNat api
* to open port range (or multiple port ranges) use createIpForwardingRule api.
* to delete one port range use deleteIpForwardingRule api.
* to disable 1-1 nat use disableOneToOneNat api.
2011-01-26 09:35:32 -08:00
Edison Su fc97034000 refactor vmstatelistener 2011-01-26 11:01:43 -05:00
abhishek 5be450ff47 bug 7376: removing the limit on iso/template names
status 7376: resolved fixed
2011-01-25 17:37:05 -08:00
Kelven Yang 83dd811221 Deal with the situation while volume was left over in Creating state 2011-01-25 17:20:08 -08:00
Kelven Yang a56e5ace88 Bug 8102: CheckSshAnswer could be null 2011-01-25 16:42:05 -08:00
Kelven Yang 2b646f3ee0 1) Refactor ConsoleProxyManager to new networking and VirtualMachineManager interface
2) Don't destroy/re-create console proxy because of starting failure to take advantage of storage recreation in 2.2
3) Remove the race-condition in starting new instance of console proxy to avoid multiple ones being started for standby capacity reservation
4) Add a global configuration variable - system.vm.auto.reserve.capacity, set it to false to prevent automatical console proxy launching, the change of the variable value can take effect without the need of restarting management server
2011-01-25 16:04:02 -08:00
abhishek 9b43e27706 bug 7707: resolving the snapshots listing issue
status 7707: resolved fixed
2011-01-25 15:54:53 -08:00
alena 4fdbb00060 Allow to add 1-1 Nat with the same public IP address and different port ranges 2011-01-25 15:31:48 -08:00
alena a96f8f9575 Refactored 1-1 NAT feature:
* added new fields to createIpForwardingRule api: startPort/protocol - required, endPort is optional
* updated "firewall_rules" table with a new field "is_one_to_one_nat" (being set when new rule is created)
2011-01-25 14:43:32 -08:00
abhishek b2a9b3061d bug 8099: returning systemvms for direct networking
status 8099: resolved fixed
2011-01-25 14:34:41 -08:00
Kelven Yang 8f138d9330 Remove unused code in ConsoleProxyManager 2011-01-25 11:36:07 -08:00
abhishek fc5ec096f5 bug 8188: removing service and disk offerings associated with a domain, when we delete a domain
status 8188: resolved fixed
2011-01-25 11:23:51 -08:00
Kelven Yang 28bbba3cea Reset pending-only jobs upon management server startup 2011-01-25 11:19:35 -08:00
Edison Su e4d9216222 Revert "fix for the Bug 7836 - Add secondary storage- MS fails to check invalid path specified"
This reverts commit 53b2ba278d.
2011-01-26 04:07:56 -05:00
alena e256285b05 Generate alerts_types.xml document along with other xml docs. 2011-01-25 10:37:00 -08:00
alena 240a4b84be Fixed logging for vm expunge process 2011-01-25 09:47:54 -08:00
alena 825042fbd7 bug 8156: fixed update for xen.heartbeat.config.interval parameter
status 8156: resolved fixed
2011-01-25 09:35:39 -08:00
kishan 16c8111add bug 8122: cover port forwarding rules for usage
status 8122: resolved fixed
2011-01-25 19:14:55 +05:30
kishan e5b2b396ec bug 8124: log VM.STOP usage event for user Vms only
status 8124: resolved fixed
2011-01-25 16:54:58 +05:30
kishan 00ebbbed6d bug 8098, 8126: Added vm destroy event during expunge
status 8098,8126: resolved fixed
2011-01-25 15:51:20 +05:30
kishan 2e13c9c477 use destroy state instead of boolean falg for volumes 2011-01-25 15:49:11 +05:30
root 5411e6d91f Merge branch 'master' of ssh://git.cloud.com/var/lib/git/cloudstack-oss 2011-01-25 12:06:47 -05:00
root 53b2ba278d fix for the Bug 7836 - Add secondary storage- MS fails to check invalid path specified
mounting the path to validate the NFS URl
2011-01-25 11:58:33 -05:00
alena 3a008ee699 Changed restartNetwork command flow:
* API requires network id to be passed in (it was optional before)
* restartNetwork calls restart() method of all network elements in the system, and it's up to the element to decide which actions to take on the restart (for example, for Virtual Router it's IPAssoc/applyPF/applyLBRules).
2011-01-24 18:37:57 -08:00
Alex Huang 463835e7d7 removed unused domain in system vms 2011-01-24 17:50:32 -08:00