Commit Graph

289 Commits

Author SHA1 Message Date
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
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
Edison Su fc97034000 refactor vmstatelistener 2011-01-26 11:01:43 -05: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
alena 240a4b84be Fixed logging for vm expunge process 2011-01-25 09:47:54 -08:00
Alex Huang 1a7617bb95 removed unused vlan fields from system vm 2011-01-24 17:50:32 -08:00
alena 0e4196448a bug 7811: Start domR/Dhcp if it's not running when do userVmReboot
status 7811: resolved fixed

Other fixes:
* vmExpunge: cleanup LB/PF rules after vm was marked as Expunging in the DB to avoid the situation when user recovers a vm in the middle of expunge job.
2011-01-24 17:04:23 -08:00
Alex Huang 2466589e2f removed unused domain_router_id from uservm 2011-01-24 16:56:00 -08:00
Alex Huang 20891ae6f9 removed unused guest ip fields from uservm 2011-01-24 16:55:59 -08:00
Alex Huang a55d395b86 removed unused vnet field 2011-01-24 16:55:59 -08:00
Alex Huang fc33ef2be2 Removed several unused fields after the refactoring 2011-01-24 16:18:40 -08:00
Frank 639ddbb45c ovs managers: handle execption along with Alex's convention 2011-01-24 10:06:07 -08:00
Frank 276e37115b open vswitch - Implement gre tunnel based network that doesn't use vlan
it allows cross zone communication and no 4096 limitation introduced by vlan
2011-01-21 17:32:02 -08:00
abhishek 61ce43bdff bug 7892: introducing recursive listings for various artifacts based on the domain id and the isRecursive flag 2011-01-21 15:25:18 -08:00
Kelven Yang 4503222409 Bug:6510 add VM state check 2011-01-21 11:57:18 -08:00
Edison Su d45f5cd5bf bug 8119: don't boot from iso, if iso is dettached
status 8119: resolved fixed
2011-01-22 04:04:52 -05:00
Edison Su 4b355ca301 bug 8118: add security group back
status 8118: resolved fixed
2011-01-22 04:04:52 -05:00
Edison Su 1bcbd983f1 pass down iso, not matter is bootable or not 2011-01-22 04:04:51 -05:00
kishan 94ec7bf27a bug 7842: events refactoring. Still wrok in progress 2011-01-20 21:49:50 +05:30
kishan c685c77d74 Populate diskofferingid in usage events only if the offering is of type disk 2011-01-20 13:38:29 +05:30
Frank 9b8387fe8c Don't print calltrack of exception 2011-01-19 11:42:16 -08:00
alena 5f072009de bug 8062: cleanup PF/LB rules before calling advanceExpunge for the vm.
status 8062: resolved fixed
2011-01-18 23:50:28 -08:00
Alex Huang e8f89004d9 added more robust start code 2011-01-18 16:09:24 -08:00
Edison Su b55e7a5bf4 bug 8032: for xen pv guest, if an iso is attached, then only when the iso's guest os type is equal to vm's os type, we boot from iso.
status 8032: resolved fixed
2011-01-19 05:00:40 -05:00
kishan e512413f06 bug 7925: Added usage event for private template creation
status 7925: resolved fixed
2011-01-15 23:27:04 +05:30
alena 50540b2bba Stop ConsoleProxy/SecondaryStorage vms: use the same code path as for user vms. 2011-01-14 17:57:15 -08:00
abhishek d59358dd09 merging 8016 into master 2011-01-14 17:42:02 -08:00
Chiradeep Vittal f932ebf58f bug 8009: return null instead of exception when the vm is stuck in STARTING
status 8009: resolved fixed
2011-01-14 15:13:49 -08:00
Alex Huang d43717eef8 merge changes 2011-01-14 15:12:13 -08:00
Alex Huang 19edfdfcdb migration code 2011-01-14 15:12:13 -08:00
abhishek 7c2fffe67a bug 7989: fixing this regression
status 7989: resolved fixed
2011-01-13 17:07:03 -08:00
anthony 83b55b7040 bug 7911: in mysql, condition field != value doesn't return entries whose field is null
status 7911: resolved fixed
2011-01-13 14:08:08 -08:00
Ragnar B. Johannsson 81bb2a43d1 Do not save an SSH public key unless one is provided. 2011-01-13 00:48:48 +00:00
Ragnar B. Johannsson 4bb42e43cc Get UserVm details via UserVmDao.loadDetails().
Also, removed references to ssh public key in UserVmVO and the underlying
table and used user_vm_details instead.
2011-01-12 23:24:17 +00:00
Ragnar B. Johannsson 83b3580c32 Merge branch 'master' of git.cloud.com:/var/lib/git/cloudstack-oss
Conflicts:
	client/tomcatconf/commands.properties.in
	core/src/com/cloud/vm/UserVmVO.java
	server/src/com/cloud/configuration/DefaultComponentLibrary.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-01-12 17:06:08 +00:00
Ragnar B. Johannsson 3e59707dd2 Added user_vm_details table and corresponding access objects.
Moved saved encrypted passwds for getVMPassword API cmd to this new table.
Removed SSH keypair id from UserVm - only public key is needed.
2011-01-12 16:32:36 +00:00
Alex Huang 6e6e8ff876 better expunge and destroy of volumes 2011-01-11 18:02:09 -08:00
Alex Huang 7f597e594c added work list to vm start 2011-01-11 18:02:09 -08:00
Alex Huang ad4ed5b2fd added hypervisor type to vm 2011-01-11 18:02:09 -08:00
alena 5dfe399c1a bug 7803: introduces new parameter "is_default" for the network. DeployVm requires 1 default network to be specified, other networks (if any) have to be secondary
status 7803: resolved fixed

Fix overview:

1) Parameter "isDefault" should be defined as a part of createNetwork
* Virtual network is always default
* Parameter can be specified only for DirectNetwork
* Once parameter is set, there is no way to change it as we don't provide updateNetwork command.
2) Added isDefault parameter to listNetworks command so you can sort by that.
3) DeployVmCmd:
* at least one default network should be set
* if more than 1 default network is set - throw an error
4) Return isDefault information as a part of Nic object for the vm response in deploy/stop/start/listVm
2011-01-11 14:22:26 -08:00
Frank c6683c2eab bug 7722: open vswitch -
refine ovs plugin, create a separate plugin instead of messing with vmops
refine gre tunnel, maintains tunnel in database instead of plugin
fix an arp issue cause by overlap vlan range
2011-01-11 02:55:36 -08:00
Frank 9d2916ffcc it works 2011-01-08 16:28:47 -08:00
Frank c94b6acadf bug 7722: open vswitch - works at VM start time, need fullsync() and flow clean in next 2011-01-08 16:22:59 -08:00
Frank 5c01c42ba7 fix bug 7722, code complete basic architecture 2011-01-08 16:20:39 -08:00
alena d0687f663f bug 7863: fixed router cleanup thread
status 7863: resolved fixed

Router cleanp thread is fixed, here is functionality description:

* Runs every "router.cleanup.interval" period of time (1 day by default)
* Stops only domRs running in Advance zone
* Thread Flow:
- gets all Running domRs/dhcps, get their networks, select network that
has to be checked (see criteria below):
- checks that there is only one nic in the op_networks table for the
network, and this nic belongs to domR/dhcp
- Stops domR/dhcp
* Criteria to choose the network:
- Network has to be non-system.
- Network should be one of the following: Guest Virtual (TrafficType=Guest; GuestType=Virtual); Direct Tagged (TrafficType=Public; GuestType=Direct)

Couple of other fixes:

* Added isShared parameter to listNetworks command
* Moved guestType from NetworkOffering to Network
2011-01-07 16:57:47 -08:00
Ragnar B. Johannsson 32c68e1583 API cmds for SSH-keys manipulation and VM passwds retrieval.
These include five new API cmds as well as changes to deployVirtualMachine to
specify an optional name of an SSH key to pass to the VM when starting. When
an SSH key is specified with a password-enabled template the newly created
password is encrypted with the SSH public key and can be retrieved via the
getVMPassword cmd. It is then the user's responsibility to decrypt retrieved
passwords with the correct SSH private key.
2011-01-06 13:34:07 +00:00
alena 916b516d13 bug 7878: Fixed Basic zone functionality - uservm/systemvm/domR start
status 7878: resolved fixed
2011-01-06 15:44:13 -08:00
alena c74fd529be bug 7611: get directPodBased default network when deploy vm with no networkId specified
status 7611: resolved fixed
2011-01-04 18:43:03 -08:00
will a92dd2a81e bug 7611: VM wizard will no longer pass in any network ids if the zone only support basic network type 2011-01-04 17:46:34 -08:00
Alex Huang 4eba6d10d7 Moved State into VirtualMachine like other States of objects 2011-01-04 15:01:34 -08:00
anthony 83f3884412 adding change VM guest os type api 2011-01-04 15:01:26 -08:00
kishan ce3c794bd3 bug 6916: check for removed account for ListVMs. Moved realated code to userVm Manager
status 6916: resolved fixed
2011-01-04 13:07:49 +05:30
alena 0b7a15ab99 bug 7348: reapply PortForwardingRules (including 1-1 Nat), LB rules, Vpn as a part of domr Stop/Start
status 7348: resolved fixed

More fixes:
* Update user_statistics on each domR stop/reboot
* Reset dhcpData/userData as a part of domR stop/reboot
* More logging for domR commands
2011-01-03 23:00:05 -08:00
alena 367cd8dfc9 bug 7780: Assign vm to the group during vm deploy if "group" parameter is specified
status 7780: resolved fixed
2010-12-30 17:00:13 -08:00
will 40f34c4388 Removed guestIp check when upgrading the service offering of a VM. It should not be used anymore since 2.2 network refactoring. 2010-12-30 13:21:01 -08:00
Alex Huang d4b56e89c3 changed expunge to do stop earlier. 2010-12-30 06:51:08 -08:00
Alex Huang da4ed648ac consolidated all of the vm destroy, cleanup and account cleanup. 2010-12-30 05:46:54 -08:00
Kelven Yang e7749afdfe Bug 7772: Add hypervisor type to snapshots table, fix issues with createVolumeFromSnapshot if snapshot was taken under data volume 2010-12-29 21:54:17 -08:00
alena bd788b1827 Fixed RemoteAccessVpn apis 2010-12-29 21:36:44 -08:00
Alex Huang 544fa7ff1b remote access vpn, user ip address changes 2010-12-29 09:32:54 -08:00
kishan 494a46a10f bug 7735: Set null for templateId instead of -1 for usage records
status 7735: resolved fixed
2010-12-29 18:29:14 +05:30
anthony f865e8b061 moveVolume is broken due to not setup hypervisortype in dskch
fixed
2010-12-28 19:46:21 -08:00
alena d005f9133e bug 7603: update uservm count when deploy/recover vm. Also fixed updating volumes count when volume is created as a part of vm deployment
status 7603: resolved fixed

Couple of other fixes:
* Set correct user_id for createVolume event instead of hardcoding it to System (1)
* Deploy dhcp vm when Zone's gateway provider is External Firewall and network is Virtual
2010-12-28 17:32:17 -08:00
edison 3a143577b9 bug 7659: fix the race condition that agent inside systemvm connecting to mgt server at the head of startcommand returning to mgt server, then got a NPE. and fix bugs in security group of KVM
status 7659: resolved fixed
2010-12-28 15:51:28 -08:00
anthony 68727778ba bug 7620: this is caused by delayed volume creation,
doesn't make sence to create a template on empty volume, just don't allow it

status 7620: resolved fixed
2010-12-28 14:00:51 -08:00
abhishek 0da33ad39a bug 7673,7645: fixing the vm expunge issue. also modifying the delete pod flow to only check for hosts that are NOT removed from the pod. also, checking for alerts on the pod whilst deleting pod is not right. we should be able to delete a pod regardless of alerts issued on the pod. the resolution of alerts is a separate issue
status 7673, 7645: resolved fixed
2010-12-27 11:29:36 -08:00
kishan e51dc79000 bug 7504: Events refactoring
status 7504: resolved fixed
2010-12-24 19:38:28 +05:30
kishan bb0e6a0ae3 bug 7504: Events refactoring 2010-12-24 12:58:32 +05:30
alena dfaf7c4c5d Remove vm from Load Balancers when vm is Expunged. Added more logging to vm expunge process 2010-12-23 16:23:51 -08:00
kishan 9837cba9f1 bug 7504: Add usage events for VM destroy and stop during account delete 2010-12-22 20:26:34 +05:30
kishan a7626fc991 bug 7504: Added usage events 2010-12-22 12:28:05 +05:30
abhishek 6b1e4d92ef made some changes to the vm expunge flow, also added a state transition to error for vm if creation fails 2010-12-21 12:48:13 -08:00
Alex Huang 0ecb0118ec renamed the domainrouter services 2010-12-21 03:56:01 -08:00
Alex Huang 356526db83 Changed exception code to give the scope of the problem 2010-12-21 03:54:30 -08:00
alena 769b89b530 RestartNetwork command is async now 2010-12-20 17:22:52 -08:00
abhishek d63e61c915 adding some code to ensure system vms come up for the direct untagged case (zynga setup). Also, checking in some changes on behalf of Alena 2010-12-20 16:33:57 -08:00
edison bf1f6a2998 Don't need this logic anymore, as xenserver can't handle this case:
can't boot from an iso that different from the vm's template

Revert "more changes to the attach/detach iso and bootloader flow"

This reverts commit d8f771e05b.
2010-12-20 14:17:35 -08:00
abhishek 583d4a2c2e bug 7582: there was an error in re-starting user vm, due to the master refactor which happened. Fixed that regression
status 7582: resolved fixed
2010-12-20 12:40:44 -08:00
alena 3cd989cbef 1) Changed format for IpAssoc command. Instead of sending the ip addresses to assign one by one, we send a list of ip addresses to the agent.
2) Fixed createVM with multiple networks
2010-12-20 09:37:46 -08:00
alena ec1749a3bc Removed unused code that was commented out previously. 2010-12-17 09:41:10 -08:00
alena 0049c74a5e 1) Different format for LoadBalancerCommand.
2) When apply lb rule for domR, resend all lb rules belonging to the lb network
2010-12-17 09:37:13 -08:00
abhishek 5154ba1539 bug 6361: this is a good point to commit; 1st round of refactor is done, code is clean compiling and ms is deploying 2010-12-16 15:37:19 -08:00
Alex Huang 65d0b32182 removed a bunch of old code 2010-12-16 14:04:32 -08:00
edison 5279ac1468 fix expunge 2010-12-16 13:22:42 -08:00
alena b383aaceec bug 7517: Added an ability to specify vm's host name during vm Deploy using "name" parameter. The parameter is optional.
status 7517: resolved fixed

Name should follow these rules:
* must be between 1 and 63 characters long and may contain only the ASCII letters 'a' through 'z', the digits '0' through '9', and the hyphen ('-').
* can not start  with a hyphen, and must not end with a hyphen

Once name is set (during vm deploy), it can't be modified.
2010-12-15 15:52:16 -08:00
alena d077b127aa bug 7498: fixed search by keyword in listUserVm/listSystemVms/listRouters commands
status 7498: resolved fixed
2010-12-13 15:22:11 -08:00
abhishek d8f771e05b more changes to the attach/detach iso and bootloader flow 2010-12-10 13:24:57 -08:00
anthony dcb40b5b15 Revert "add new api SetVMOSTypeCmd"
This reverts commit 543b2615db.

Conflicts:

	api/src/com/cloud/api/commands/SetVMOSTypeCmd.java
2010-12-09 23:38:52 -08:00
edison 712953156b fix boot from iso/attach iso/disks issue 2010-12-09 14:25:44 -08:00
Alex Huang f497e8eab3 Make VMWare work 2010-12-08 17:08:30 -08:00
Alex Huang 28aa64287f removed VirtualMachineGuru from UserVmManagerImpl 2010-12-08 17:08:29 -08:00
Alex Huang e49fab6903 Renamed MauricMoss now that we're going public with this. 2010-12-08 09:28:01 -08:00
edison 20b677be10 add public/private/guest network in each type of vm 2010-12-06 18:36:46 -08:00
alena fb4c448762 Don't create default pod/zone
Create untagged network as a part of createZone command
2010-12-06 16:48:25 -08:00
anthony 543b2615db add new api SetVMOSTypeCmd
user can update to PV kernel or HVM kernel as they want,
2010-12-06 15:57:18 -08:00
Alex Huang 87626bea6b start vm is working 2010-12-06 14:17:53 -08:00
Alex Huang f147bf5f94 start vm not working again 2010-12-06 14:17:53 -08:00
Alex Huang fcdd20ca06 more checkin 2010-12-06 14:17:53 -08:00