alena
11ef6bbbe2
bug 9638: fixed bunch of DB upgrade bugs
...
status 9638: resolved fixed
Conflicts:
server/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
utils/src/com/cloud/utils/net/NetUtils.java
2011-04-28 18:30:40 -07:00
alena
c6d5682579
Modify keys for security groups in java code instead of sql file (need to check if the key exists before dropping it)
...
Conflicts:
server/src/com/cloud/upgrade/dao/Upgrade218to22.java
2011-04-28 18:23:38 -07:00
Kelven Yang
9b86ef7942
bug 9022: turn off HA for SSVM and Console Proxy VM
2011-04-28 18:03:11 -07:00
Sheng Yang
cf114fc7af
Enable SSL for mgmt servers and agents
...
The port remains 8250.
The keystore saved at /etc/cloud/management/cloud.keystore. We also include one
fail-safe keystore/certificate for fallback if we are unable to generate
certificate and keystore. If we use fail-safe keystore, a warning and calltrace would be show.
Notice you need to upgrade agent, as well as systemVM's images.
2011-04-28 17:41:29 -07:00
keshav
828b68186c
Added a check for duplicate public networks.
2011-04-28 16:10:48 -07:00
will
4b803d1676
Added default endpointe URL and renamed cloudkit to mycloud in the complete registration servlet.
2011-04-28 16:05:38 -07:00
will
633d024b7c
- Merge all CloudZones Registration feature into master
2011-04-28 16:05:36 -07:00
Alex Huang
2aa280ed14
Removed the ugly cglib name
2011-04-28 15:45:09 -07:00
Alex Huang
53949833ac
bug 9456: added the host id that was already tried to avoid list. Added more debug logs in case that condition happens.
2011-04-28 14:44:46 -07:00
prachi
c2824edc03
Bug 9446: Investigator reports that a system vm is down even if it isn't....
...
Changes:
- Added new Investigator 'ManagementIPSystemVMInvestigator' that checks if Vm is alive only for System VM's that have a management IP address.
- If no management IP is found, ping test cannot be done, so this investigator would return null in that case.
- Current implementation InvestigatorImpl is renamed as 'UserVmDomRInvestigator' and does the ping test for user VMs only.
- Corrected the ping test code that was checking a hard-coded string. Now if the ping answer is negative, we just return null
- Added the new investigator to components.xml
2011-04-28 12:28:51 -07:00
Kelven Yang
814fe02c59
Recalculate and update host used capacity (mem & cpu) in upgrade (2.1.x to 2.2.y)
...
Conflicts:
server/src/com/cloud/upgrade/dao/Upgrade218to22.java
2011-04-28 10:11:01 -07:00
alena
6352851e43
More logging to consoleProxy start command
2011-04-28 01:19:42 -07:00
alena
f8742adcd5
bug 9621: set addressFormat during NicProfile creation
...
status 9621: resolved fixed
2011-04-27 23:19:43 -07:00
alena
485f7a10cc
bug 9621: dbUpgrade - set reservation strategy to be Create for Guest Nics in Basic zone
...
status 9621: resolved fixed
Conflicts:
server/src/com/cloud/upgrade/dao/Upgrade218to22.java
setup/db/db/schema-222to224.sql
2011-04-27 22:51:56 -07:00
alena
012d2f1a5d
Fixed upgrade from 2.1.9 to 2.2.x
2011-04-27 22:49:28 -07:00
alena
b8f2a69c05
bug 9622: update mode for nics
...
status 9622: resolved fixed
2011-04-27 20:57:27 -07:00
Frank
ef10dab968
Intrdouce adapter to template manager
...
small fix
2011-04-27 14:04:37 -07:00
Frank
504eb25c37
Intrdouce adapter to template manager.
2011-04-27 14:04:37 -07:00
alena
2aa5f8996b
listNetworks: allow seeing Guest system network in Basic zone
2011-04-27 13:57:24 -07:00
Alex Huang
cc8bdf354b
storage stats can be such that it doesn't work if one storage pool cannot be reached.
2011-04-27 13:56:52 -07:00
Alex Huang
b4f6cdda66
bug 9610: Added VERSION table and related index change
2011-04-27 13:56:52 -07:00
Alex Huang
5b361e5e8f
bug 9597: Fixed the recreatable problem. Also added the 2.2.1 upgrade step
2011-04-27 13:56:52 -07:00
prachi
209be1065b
Bug 9585 - Existing Data Disk is being destroyed and recreated on Stop and Start of a User VM.
...
Changes:
- When the ROOT volume of a VM is found to be READY, changed planner to reuse the pool for every volume(root or data) that is READY and that has a pool not in maintenance and not in avoid state
- If ROOT volume is not ready, we dont care about the DATA disk. Both would get re-allocated.
- When a pool is reused for a ready volume, Planner does not call storagepool allocators. And such volumes are not assigned a pool in the deployment destination returned by the planner. Accordingly StorageManager :: prepare method wont recreate these volumes since they are not mentioned in the destination.
2011-04-27 11:36:51 -07:00
alena
81e7b25217
Fixed ipAssoc in Basic zone (elastic IP)
2011-04-27 11:15:30 -07:00
kishan
42a9c49712
bug 8866: ignore network usage for system account
2011-04-27 19:44:52 +05:30
kishan
341e553b8a
bug 8866: added support for direct network usage tracking using traffic sentinel
2011-04-27 19:03:02 +05:30
Murali Reddy
c12ccbd06f
Bug 9534 : implement CPU cap
...
Introducing new boolean flag in service offering to restrict the user VM's CPU utilization to what service offering it is entitled for.
2011-04-27 13:54:45 +05:30
Abhinandan Prateek
7960a499dc
bug 6451: XenServer username/password should be changable through API
2011-04-27 12:14:51 +05:30
Abhinandan Prateek
0fc005f20a
bug 6451: XenServer username/password should be changable through API
2011-04-27 12:08:02 +05:30
alena
508fef2269
Apply nic profile to nic: don't set reservationStrategy for DB object when it's value is NULL
2011-04-26 17:51:49 -07:00
alena
584718ceb6
bug 9571: respect allocatedOnly flag in listPublicIpAddresses API
...
status 9571: resolved fixed
2011-04-26 17:51:49 -07:00
Alex Huang
9909371eaa
bug 9445: Signal alert for the host if a primary storage pool was unavailable on that host
2011-04-26 15:09:36 -07:00
alena
4290abb57c
bug 9578: when deploy dhcp in Basic zone, put pod information to deploymentPlan
...
status 9578: resolved fixed
2011-04-26 14:57:40 -07:00
prachi
6e39019b6a
Bug 9548 [Cloud Stack Upgrade - 2.1.8 to 2.2.4] System VM's Volumes Recreation is not happening on an event of New Volume creation Failures
...
Changes:
- Reason was that the old volume's templateId was being updated before volume creation was attempted. So on the retry, we dint find a difference in volume's templateId and VM's templateId and did not enter the recreation logic.
- Fix is to update the new volume's templateId with the VM's templateId while creating the new volume. The old volume's templateId stays the same and the volume is marked as 'Destroy' when a new volume is created.
2011-04-26 11:35:24 -07:00
alena
5db28c57e4
bug 9492: allow security group removal when it has ingress rules, but not assigned to any vms yet
...
status 9492: resolved fixed
2011-04-25 16:43:39 -07:00
alena
4953461e57
bug 8809: listHypervisors api - when zoneId=-1 is specified, only hypervisors availble in all zones are being returned
2011-04-25 10:39:51 -07:00
nit
49bb7dba00
bug 9013: Adding hypercisor type for xs-tools.iso when inserting it into vm_template.
...
status 9013: resolved fixed
2011-04-25 17:03:57 +05:30
alena
afa7d3f34d
bug 9563: fixed DB upgrade from 2.2.2/2.2.3 to 2.2.4
...
status 9563: resolved fixed
Also added unittest for 2.2.2 to 2.2.4 upgrade
Conflicts:
setup/db/db/schema-222to224.sql
2011-04-23 23:05:42 -07:00
alena
1915b51a83
DB upgrade: use is_static_nat field to distinguish between 2.2.1 and 2.2.2 versions
2011-04-23 21:24:37 -07:00
alena
1efc45a241
bug 9555: db upgrade for Basic zone - set default nic for the domR
...
status 9555: resolved fixed
2011-04-23 20:44:09 -07:00
alena
3c48d8d432
bug 9556: set ip_type=ip4 for guestVm nics in Basic zone setup
...
status 9556: resolved fixed
2011-04-23 20:43:37 -07:00
alena
b749c64d4e
bug 9550: get storagePool to Host mappings before doing processDisconnect because these references are being deleted as a part of processDisconnect call.
...
status 9550: resolved fixed
Conflicts:
server/src/com/cloud/agent/manager/AgentManagerImpl.java
server/src/com/cloud/storage/StorageManagerImpl.java
2011-04-23 20:43:24 -07:00
prachi
c157d3375c
More changes for Bug 9539 - cpu.overprovisioning.factor does not work
...
- After p4merge some weird character was getting added.
2011-04-22 18:17:08 -07:00
prachi
b84a7477f0
Bug 9539 - cpu.overprovisioning.factor does not work
...
Changes:
- Changed host allocators/planner to use cpu.overprovisioning.factor
- Removed following: while adding a new host, we were setting the total_cpu in op_host_capacity to be actual_cpu * cpu.overprovisioning.factor. Now we set it to actual_cpu.
- ListCapacities response now calculates the total CPU as actual * cpu.overprovisioning.factor (This change does not add anything new - listCapacities was pulling total CPU from op_host_capacity DB earlier which had the cpu.overprovisioning.factor applied already. Now we need to apply it over the DB entry.)
- HostResponse has a new field: 'cpuWithOverprovisioning' that returns the cpu after applying the cpu.overprovisioning.factor
- Db Upgrade 222 to 224 now updates the total_cpu in op_host_capacity to be the actual_cpu for each Routing host.
2011-04-22 18:09:31 -07:00
will
ff2d7fcf4a
bug 9468: DiskOfferings are now sorted by created date to keep consistent with other objects returned in CloudStack.
2011-04-22 15:12:59 -07:00
Kelven Yang
160b2e1114
Finalize custom certficate support. hook with UI
2011-04-22 13:45:09 -07:00
alena
7255d68875
HA: no need to investigate why vm was stopped on host when host is being Dicsonnected with investigate=false option
2011-04-22 13:38:25 -07:00
anthony
8271f034ce
bug 9541: fix one snapshot DB migrate, one java check and one script typo
...
status 9541: resolved fixed
2011-04-22 12:57:16 -07:00
alena
41e5e38fef
bug 9336: securityGroups can be used by other securityGroups in the same domain only; no cross domain SG authentication
...
status 9336: resolved fixed
Following changes were made:
* deleteSecurityGroup/authorizeSecurityGroupIngress - removed account/domainId parameters as SG is uniquely identified by id now
* removed account_name field from securityGroup DB table; removed allowed_security_group/allowed_sec_grp_acct from security_ingress_rule.
These values were used for api response generation only for performance purposes; added caching on API level to improve performance
* Added missing security checks for securityGroups/ingressRules
2011-04-22 11:35:29 -07:00
Kelven Yang
e69774e13a
Add console proxy management state, support certificate upload, all done except UI
2011-04-21 18:46:37 -07:00
alena
1a6d78eae4
Code cleanup. No need to declare runtime exceptions (CloudRuntimeException, InvalidParameterException, PermissionDenied exceptions)
2011-04-21 16:26:53 -07:00
alena
b83456f895
bug 9504: don't send DHCP entry command for Destroyed vm
...
status 9504: resolved fixed
2011-04-21 14:26:42 -07:00
alena
d7ec734b01
bug 9481: deployVm with Guest Virtual network - throw an exception when fail to acquire guest Ip address
...
status 9481: resolved fixed
2011-04-21 13:59:07 -07:00
alena
c844655825
bug 9488: throw InsufficientVirtualNetworkCapcityException when fail to allocate guest vnet as a part of network implement() call
...
status 9488: resolved fixed
2011-04-21 13:59:06 -07:00
alena
3d33fd7f92
deleteNetwork: return false when fail to cleanup network resources (LB/PF/StaticNat rules)
2011-04-21 13:59:06 -07:00
Murali Reddy
435c20c0cc
Bug 9273: resource cont going -ve
...
adding addtional check that ensure we decrease the count in advanceStart only on new vm creation.
2011-04-22 01:19:23 +05:30
nit
8cbdfe07c9
bug 8803: Allow to add an ISO with URL that doesn't end with ".iso". The check checks that the url path should end with an iso
...
status 8803: resolved fixed
2011-04-21 16:37:53 +05:30
nit
f55e83f607
List Iso/Templates - Cleaning the code for access rights using the centralized acl layer
2011-04-21 13:40:14 +05:30
alena
22ee7117f5
bug 9521: fixed NPE in finalizeCommandsOnStart() method by adding vm's nic to vm profile during the vm to vmProfile conversion.
...
status 9521: resolved fixed
Conflicts:
server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java
server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java
server/src/com/cloud/vm/VirtualMachineManagerImpl.java
2011-04-20 16:16:01 -07:00
alena
f881d394e2
bug 9415: deleteHost - cleanup vms running on the host to be removed
...
status 9415: resolved fixed
2011-04-20 15:50:10 -07:00
alena
63cd66beb0
Fixed the bug in listNetworks when isSystem parameter was ignored if it was specified along with account/domainId parameter
2011-04-19 18:30:55 -07:00
Kelven Yang
7103e1c9a7
global replacement to avoid using getClass().getName() for unique names
2011-04-19 17:26:41 -07:00
alena
c7e120a72e
Transform InvalidParameterValueException and PermissionDeniedException to proper API exceptions
2011-04-19 17:07:05 -07:00
Kelven Yang
6ed18b5583
Add keystore management and related JUNIT test case
2011-04-19 16:20:06 -07:00
alena
98baa7392e
bug 9383: createStaticNat rule - allow opening the same port for tcp/udp traffic
...
status 9383: resolved fixed
2011-04-18 17:55:41 -07:00
alena
4e5b6c902a
bug 9498: allow zone deletion when it has pods having not NULL removed field
...
status 9498: resolved fixed
2011-04-18 17:30:45 -07:00
alena
7d0528d693
bug 9493: fixed the bug in Basic zone when nic_count was updated incorrectly due to multiple domRs per network
...
status 9493: resolved fixed
2011-04-18 17:00:05 -07:00
alena
996d0edbc9
Throw server api exception with correct error code
2011-04-18 16:59:55 -07:00
alena
dd9c60e341
Update volumes having destroyed=127 with Destroyed state only after ensuring that corresponding account is removed, or instance is expunged
2011-04-18 16:59:45 -07:00
alena
57341081dc
Added more logging to DB upgrade code
2011-04-18 16:59:33 -07:00
alena
0efd44ddf7
bug 9483: delete records from template_spool_ref if corresponding storage pool doesn't exist any more
...
status 9483: resolved fixed
2011-04-15 17:09:02 -07:00
prachi
734e3f17c2
Bug 9331 - Even when there is no longer clusters in the pod, 'Delete Pod - Failed - because there are clusters in this pod'
...
Changes:
- Cluster entry is not removed from the table when a cluster is deleted because there are some foreign key constraints failing if the row delete is attempted. Instead the cluster is marked as 'removed'
- While deleting the pod changed the check to see if pod has any clusters - we now check that there are no clusters with removed column null.
- Also pod entry cannot be deleted from the db due to foreign key constraints. So added 'removed' column to Pod table host_pod_ref
- Now on deleting a pod, the pod will be marked as removed and pod name is set to null.
2011-04-15 16:04:16 -07:00
alena
5d6e2871ad
bug 9475: don't update vlan in "networks" tab for non-implemented guest networks
...
status 9475: resolved fixed
2011-04-15 13:42:50 -07:00
alena
55627a91d2
Fixed Db upgrade from 2.1.9 to 2.2.2 which wasn't supported before.
2011-04-15 10:19:56 -07:00
alena
51c837fc66
Fixed logging for remote access vpn code
2011-04-15 09:57:56 -07:00
alena
fa3b147853
218-222 upgrade - no need to update user statistics with deviceId if account doesn't own any domRs
2011-04-15 09:49:00 -07:00
Abhinandan Prateek
efa0417881
bug 5242: adding a host does not return useful error
...
status 5242: closed fixed
2011-04-15 17:28:46 +05:30
nit
8c5c58dc35
bug 9059: Host Details would account for Stopped VM's as well - basically they will take into account the reserved_capacity from op_host_Capacity table
...
status 9059: resolved fixed
2011-04-15 17:05:01 +05:30
nit
1d55d2fc05
bug 8703: delete op_host_capacity entries for host when host is successfully deleted.
...
status 8703: resolved fixed
2011-04-15 15:37:55 +05:30
nit
8567935561
bug 9221: Parse storage.overprovisioning.factor as a float rather than as an int.
...
Status 9221: resolved fixed
2011-04-15 13:46:51 +05:30
alena
ce37212610
bug 9453: Fixed PF rules upgrade.
...
status 9453: resolved fixed
1) Problem #1 was that in 2.1.x there was a bug when we didn't delete pf rules for expunged vms. These kind of rules will be ignored during the db upgrade
2) Problem #2 . We didn't trim the spaces for PF/LB ports in 2.1.x, and DB upgrade code was failing because of that.
2011-04-14 20:39:43 -07:00
alena
cdae8b091d
bug 9461: don't update user_statistics with the network id if the domR is already expunged
...
status 9461: resolved fixed
2011-04-14 17:59:22 -07:00
Edison Su
d6b5acb852
bug 8532,8755: don't create multiple HA work if there already has one of HAwork of this VM is created, but not finished
...
status 8532: resolved fixed
status 8755: resolved fixed
2011-04-14 17:46:54 -04:00
alena
b4a65a6766
bug 9453: domain path is not unique value, removed the constraint added during 2.1.8-2.2.2 upgrade
2011-04-14 17:03:11 -07:00
alena
52fe53f497
bug 9458: do searchIncludingRemoved when decrement resource count as corresponding domain might be removed already
...
status 9458: resolved fixed
Conflicts:
server/src/com/cloud/user/AccountManagerImpl.java
2011-04-14 15:39:51 -07:00
anthony
86f32e4735
bug 9455: when host is disconnected, also remove entry in storage_pool_host_ref
...
status 9455: resolved fixed
2011-04-14 14:31:16 -07:00
alena
7615ded08f
bug 9407: lock network when do deployDomR/deployDhcp to avoid 2 network elements start for the same network
...
status 9407: resolved fixed
Conflicts:
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
2011-04-14 13:35:02 -07:00
prachi
0fa06646ba
Bug 9310 - HostCapacityChecker thread does not cleanup reserved capacity for hosts that are not in 'Up' state
...
List all 'Routing' hosts irrespective of the State.
2011-04-14 13:24:14 -07:00
Frank
92155522f2
Add license header to files
2011-04-14 11:23:14 -07:00
anthony
60768d0014
bug 9411:
...
1. adding storage pool fails, remove the entry in DB
2. in introduce SR, create pbd for master host
status 9411: resolved fixed
2011-04-14 11:17:24 -07:00
Murali Reddy
9dddeaa5a5
Bug 9440: we specify the wrong disk size when attaching storage device with custom size offering
...
wrong usage of volume size which is in bytes for setting the size of disk offering which in MB
pushing 2.2.4 fix to master
2011-04-14 21:16:08 +05:30
Alex Huang
b84905530a
bug 9422: added rows in op_networks table to correspond to the rows in networks table
2011-04-14 03:57:18 -07:00
Alex Huang
38dd1d6ea9
bug 9422: added rows in op_networks table to correspond to the rows in networks table
2011-04-14 03:57:18 -07:00
Alex Huang
6936a666fd
removed some references to name
2011-04-14 03:54:34 -07:00
prachi
88c0126878
Bug 9187: modify userdata with update vm
...
Changes:
- UpdateVMCmd is changed to take in userData as a parameter
-The userData is updated in the DB if it is non-null.
2011-04-13 19:22:18 -07:00
prachi
1a3483ac4f
More changes for Bug 9438 - [Cloud Stack Upgrade - 2.1.8 to 2.2.4] Secondary Storage VM could not start after stopping it.
...
Added log statement to indicate that a pool is not chosen because the vm template has no entry in template_host_ref table.
2011-04-13 18:06:42 -07:00
alena
a8a0a70629
bug 9433: update network_id (if 0 or NULL) in user_statistics table
...
status 9433: resolved fixed
2011-04-13 17:51:11 -07:00
alena
694944e996
bug 9436: include page/pageSize/keyword to api xml doc for each list* command
...
status 9436: resolved fixed
Conflicts:
server/src/com/cloud/api/doc/ApiXmlDocWriter.java
2011-04-13 16:23:14 -07:00
alena
dad9dacc92
bug 9425: fixed detached volume removal.
...
status 9425: resolved fixed
2011-04-13 15:54:10 -07:00
alena
c9989a7ddf
bug 9420: update existing user_statistics records with device_id and device_type
...
status 9420: resolved fixed
2011-04-13 15:54:01 -07:00
Kelven Yang
1b9cbd9166
bug 9223, 9224: persist runid to form cluster session, based on cluster session and DB condition to issue isolation notification for self-fencing
2011-04-13 15:13:54 -07:00
prachi
b1700af146
Bug 9387: Recreate system vms if template id changed....
...
Changes:
While starting a System VM:
- We check, incase the ROOT volume is READY, if the templateID of the volume matches the SystemVM's template.
- If it does not match, we update the volumes' templateId and ask deployment planner to reassign a pool to this volume even if it is READY.
In general:
- If a root volume is READY, we remove its entry from the deploydestination before calling storagemanager :: prepare()
- StorageManager creates a volume if a pool is assigned to it in deploydestination passed to it.
- If a volume has no pool assigned to it in deploydestination, it means the volume is ready and has a pool already allocated to it.
2011-04-13 13:47:07 -07:00
Murali Reddy
9bf2d32884
Bug 9273 : resource counts going -ve
...
pushing 2.2.4 fix in to master
2011-04-13 17:43:12 +05:30
anthony
e0ba2a2fa6
clean up transation code
2011-04-12 18:56:49 -07:00
prachi
80fe0b584d
More changes for Bug 9387:
...
- Update system vm_instance's template_id if it does not match the system vm template.
- Use _templateDao.findSystemVMTemplate to find the latest system vm template.
2011-04-12 18:20:01 -07:00
prachi
47f43df01b
More changes for 9387:
...
Checks in StorageManagerImpl :: prepare() method to avoid NPE's if DeployDestination passed in is null.
2011-04-12 18:19:59 -07:00
prachi
47c31a077a
Bug 9387 - Recreate system vms if template id changed...
...
Changes:
- Planner must reassign the storage pool if the template id for system vms has changed. StorageManager must then recreate the volume if the volume has been
reassigned. This is needed to do automatic update of the system template.
2011-04-12 18:19:58 -07:00
Chiradeep Vittal
b56c82e3b6
bug 9330: ensure that console proxies are always created from the same hypervisor type
2011-04-12 15:24:59 -07:00
Kelven Yang
2a45327a89
Miss out one place to use queue instead, this is for decoupling notification from heartbeat to avoid being potentially blocked in callbacks
2011-04-12 15:06:08 -07:00
Chiradeep Vittal
f37f7f36aa
bug 9330: discover system vm template for a given hypervisor type
2011-04-12 14:50:24 -07:00
alena
4d8df029d3
bug 8245: mark storage pool status as Removed before performing actual cleanup
...
status 8245: resolved fixed
2011-04-12 14:44:55 -07:00
nit
7d51bf41b6
bug 8710: Attaching resource domain account to a zone code
2011-04-12 18:22:26 +05:30
alena
acaab55c3e
bug 9391: removed source_id, source_type from "volumes" table as we don't use them any more
...
status 9391: resolved fixed
Conflicts:
server/src/com/cloud/network/NetworkManagerImpl.java
2011-04-11 18:19:10 -07:00
alena
52bf157387
bug 9398: removed resource_type from volumes table as we no longer use it. Corresponding db upgrade scripts are updated
...
status 9398: resolved fixed
Conflicts:
server/src/com/cloud/storage/StorageManagerImpl.java
2011-04-11 18:14:35 -07:00
alena
f6b8f23751
bug 9381: set accountId=domainId=1 for system vms in vm_instance table
...
status 9381: resolved fixed
2011-04-11 18:10:54 -07:00
alena
bb2d907d47
bug 9380: db upgrade - use the same case for 'hypervisor_type' in 'vm_instance' table
...
status 9380: resolved fixed
2011-04-11 18:10:42 -07:00
Kelven Yang
03afe54084
Regression fixes for adding openNew() to Transaction.java
2011-04-11 17:44:31 -07:00
Kelven Yang
149eb0fade
Use seperate DB connection to handle cluster management
2011-04-11 16:37:58 -07:00
anthony
ac223c197f
bug 9392: don't lock domr entry, otherwise updating domr state fails
...
status 9392: resolved fixed
2011-04-11 16:06:12 -07:00
Chiradeep Vittal
ae9180d33b
bug 9330: add kvm / vmware system vm template definitions
2011-04-11 15:46:37 -07:00
Frank
5645137f9c
reslove conflicts api/src/com/cloud/api/ApiConstants.java
2011-04-11 14:26:48 -07:00
Frank
105db3b15a
Merge branch 'baremetal' to master
...
modifies:
api/src/com/cloud/api/ApiConstants.java
api/src/com/cloud/api/commands/AddHostCmd.java
api/src/com/cloud/api/commands/CreatePodCmd.java
api/src/com/cloud/api/commands/DeployVMCmd.java
api/src/com/cloud/dc/Pod.java
api/src/com/cloud/network/NetworkService.java
server/src/com/cloud/agent/manager/AgentManagerImpl.java
server/src/com/cloud/configuration/ConfigurationManagerImpl.java
server/src/com/cloud/dc/HostPodVO.java
server/src/com/cloud/network/NetworkManager.java
server/src/com/cloud/network/NetworkManagerImpl.java
server/src/com/cloud/vm/UserVmManagerImpl.java
setup/db/create-schema.sql
utils/src/com/cloud/utils/SerialVersionUID.java
2011-04-11 14:21:41 -07:00
prachi
c3d2bab81b
Some more changes for Bug 8932 - add md5 sum to list templates call:
...
Also changed 'RegisterTemplate' to take in a new optional parameter 'checksum'.
The value set to it is stored as-is in the DB in vm_template table, 'checksum' column.
2011-04-11 13:17:23 -07:00
Frank
0810831fd2
Bug 8208 - bare metal provisioning
...
set useexternalDHCP to false when creating pod
2011-04-11 10:41:45 -07:00
alena
4460d1cf2c
Fixed api xml doc writer
2011-04-11 09:33:36 -07:00
nit
debe236a8d
bug 8710: CONTD....Introducing a new user role in cloudstack called RESOURCE_DOMAIN_ADMIN. The role would have all the domain_admin rights and the rights to list zone,pods,clusters and so on. More info in the bug
2011-04-11 19:40:37 +05:30
kishan
782a22d95f
Usage upgrade changes
2011-04-11 18:49:52 +05:30
Murali Reddy
290c799b2c
Bug 9273 : [Stress Test] 'Count' in resource_count table has negative values
...
pushing 2.2.4 changes in to master
2011-04-11 15:37:53 +05:30
Murali Reddy
8b30507841
bug 9312: deleteAccount API does not decrement User VM resource count when VM is destroyed
...
pushing 2.2.4 changes to master branch
2011-04-11 14:35:06 +05:30
prachi
77ac511225
Bug 8932 - add md5 sum to list templates call
...
Modified TemplateResponse to contain a new field 'checksum' of the template. The value is pulled from the vm_template table, 'checksum' column.
2011-04-08 15:01:12 -07:00
prachi
b0b2d594a0
Bug 8018 - return cloud identifier in some instance metadata
...
There's an API call "getCloudIdentifier". it returns some UUID that uniquely identifies a cloud.
This bug is to set the value of the instace metadata field cloud-identifier to "CloudStack-{result of getCloudIdentifier}. This metadata is programmed into
the virtual router by the management server.
2011-04-08 10:50:12 -07:00
Murali Reddy
598503f094
bug 9129:can't create vm if an instance limit is set at root domain
...
pushing 2.2.4 fixes
2011-04-08 13:25:51 +05:30
Kelven Yang
5bf6df3d6c
bug 9328: always add explict route to domR
2011-04-05 17:21:24 -07:00
alena
aa094868fc
bug 8353: set dateFormat to "yyyy-MM-dd'T'HH:mm:ssZ" when initiate gson builder
...
status 8353: resolved fixed
2011-04-05 16:51:05 -07:00
prachi
191d689912
Bug 9045: No 'Starting job for VM.MIGRATE' & 'Successfully completed VM.MIGRATE' events shown for VM manual migration
...
Changes:
- Added the required 'ActionEvent' annotation to the API, so that the events get added.
2011-04-05 16:28:01 -07:00
anthony
2bcd7a13d4
hostid and poolid may overlap, fixed deletePoolStats
2011-04-05 15:43:21 -07:00
alena
0fdcba3f4f
bug 8855: introduced search by zoneId to listLoadBalancerRules api. Also added "zoneId" parameter to the response
...
status 8855: resolved fixed
2011-04-05 14:38:47 -07:00
prachi
92c0b3b82f
Bug 9309 - In Manual migration, do not consider 'reserved_capacity' when computing available memory in destination
...
Changes:
- Now while listing hosts for migration, capacity is calculated as total_capacity -used_capacity
instead of total_capacity -(used_capacity + reserved_capacity)
- Also, the capacity columns in op_host_capacity are now 'signed' type so that the subtractions in queries does not overflow.
- Added this to DB upgrade 222 to 224 change as well.
2011-04-05 14:06:32 -07:00
anthony
288a36d09f
Merge branch '2.2.4'
...
Conflicts:
api/src/com/cloud/configuration/ConfigurationService.java
core/src/com/cloud/agent/resource/virtualnetwork/VirtualRoutingResource.java
server/src/com/cloud/api/ApiDBUtils.java
server/src/com/cloud/configuration/ConfigurationManagerImpl.java
server/src/com/cloud/network/NetworkManagerImpl.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
setup/db/db/schema-21to22.sql
setup/db/db/schema-222to224.sql
utils/src/com/cloud/utils/exception/ExceptionUtil.java
2011-04-05 12:04:09 -07:00
Alex Huang
b86828bbbe
some formatting changes for agentmanager
2011-04-05 11:04:35 -07:00
Alex Huang
5f41eef6d1
Brought over edison's changes
2011-04-05 11:04:34 -07:00
Alex Huang
5d488b106d
bring changes to master from 2.2.4
2011-04-05 11:01:36 -07:00
Alex Huang
2230c24ab3
check in changes from 2.2.4
2011-04-05 11:01:35 -07:00
Alex Huang
075fba5899
stackmaid is now taskmanager
2011-04-05 10:17:22 -07:00
alena
61f968592b
bug 9306: set isolationUri/broadcastUri for SSVM/domR/CPVM public nics
...
status 9306: resolved fixed
2011-04-05 09:18:43 -07:00
Alex Huang
04099a4950
bug 9311: changed instance_id to nic_id
2011-04-05 09:12:55 -07:00
alena
49cbcac29f
bug 8959: fixed mac address generation for public ip addresses
2011-04-04 18:31:19 -07:00
alena
534623706d
bug 9305: set Mode field for domR/CPVM/SSVM nics
...
status 9305: resolved fixed
2011-04-04 18:31:07 -07:00
alena
9b4b0abcce
bug 8959: fixed mac address generation for public ip addresses
2011-04-04 18:26:11 -07:00
alena
c6b8c0ecfa
bug 9305: set Mode field for domR/CPVM/SSVM nics
...
status 9305: resolved fixed
2011-04-04 17:51:53 -07:00
prachi
204aa86686
Bug 9043 - VM manual migration - when destination host is out of memory for migration, VMs being migrated remained in 'migrating' state
...
Changes:
- When migration fails we try to do cleanup on the destination host agent. The AgentUnavailableException in this cleanup was not caught.
-Due to that other cleanup like reverting capacity allocated and vm state were skipped.
-Fix is to catch the AgentUnavailableException so that rest of the cleanup can happen.
- Also corrected the exceptions in various cases of migration failure.
- In case the VM is still starting, HA should schedule a retry. Introduced a special migration exception for handling this.
2011-04-04 17:39:27 -07:00
prachi
53f8ebf6f0
Bug 9043 - VM manual migration - when destination host is out of memory for migration, VMs being migrated remained in 'migrating' state
...
Changes:
- When migration fails we try to do cleanup on the destination host agent. The AgentUnavailableException in this cleanup was not caught.
-Due to that other cleanup like reverting capacity allocated and vm state were skipped.
-Fix is to catch the AgentUnavailableException so that rest of the cleanup can happen.
- Also corrected the exceptions in various cases of migration failure.
- In case the VM is still starting, HA should schedule a retry. Introduced a special migration exception for handling this.
2011-04-04 17:30:08 -07:00
Alex Huang
b2cab48e0c
bug 9308: changed instance_id to nic_id
2011-04-04 16:59:16 -07:00
alena
6736569d22
bug 9274: listPublicIpAddresses - don't list Direct ip addresses by default; list them only when "forVirtualNetwork=false" is specified in the request.
...
status 9274: resolved fixed
2011-04-04 15:47:23 -07:00
alena
a47a4c8cfe
bug 9272: fixed the race condition bug when we tried to remove vm from SG after it was expunged (expunge interval was really small, 60 sec).
...
status 9272: resolved fixed
When do search for vm, do includingRemoved search.
2011-04-04 15:47:14 -07:00
alena
f8fce16cac
bug 9274: listPublicIpAddresses - don't list Direct ip addresses by default; list them only when "forVirtualNetwork=false" is specified in the request.
...
status 9274: resolved fixed
2011-04-04 15:43:04 -07:00
alena
f2921b7f15
bug 9272: fixed the race condition bug when we tried to remove vm from SG after it was expunged (expunge interval was really small, 60 sec).
...
status 9272: resolved fixed
When do search for vm, do includingRemoved search.
2011-04-04 15:43:04 -07:00
Kelven Yang
1692caabe8
Make sure hooking of answer command callback be called for both sync/Async commands
2011-04-04 14:46:19 -07:00
Kelven Yang
918df1a838
missing one more place to notify answer commands
2011-04-04 14:44:24 -07:00
anthony
545aa50388
bug 9282: set cluster guid if it is null
...
status 9282: resolved fixed
2011-04-04 14:33:18 -07:00
Alex Huang
e8720cc1f7
bug 9300: changed the network id to management from storage for ssvm
2011-04-04 13:53:51 -07:00
alena
af4459f24f
Fixed list* api commands.
2011-04-04 11:36:49 -07:00
Kelven Yang
2759eefcf5
Add weight to command to help future load management, fix issues found in system vm pooling
2011-04-04 09:33:42 -07:00
Alex Huang
fc7f526090
bug 9282: changed the broadcast domain type for control and public network
2011-04-04 09:56:56 -07:00
Alex Huang
5a6d3dc55c
bug 9280: added gateway and cidr for control network
2011-04-04 09:50:16 -07:00
kishan
1e180de60b
Skip event migration when usage db doesn't exist
2011-04-04 18:36:39 +05:30
kishan
4f97d4652d
Skip event migration when usage db doesn't exist
2011-04-04 18:31:48 +05:30
alena
2aeacd5a4c
bug 3179: added "count" parameter to the response to all List* api commands
2011-04-01 19:29:08 -07:00
alena
29bfde9da4
Revert "bug 8898: allow service offering upgrade for Running vm"
...
This reverts commit 7668e1878a .
2011-04-01 18:16:14 -07:00
alena
097d415589
Revert "bug 8898: allow service offering upgrade for Running vm"
...
This reverts commit 7668e1878a .
2011-04-01 17:54:17 -07:00
alena
b876ad2530
224 to 225 upgrade - use schema*.sql instead of data*.sql
2011-04-01 16:25:56 -07:00
alena
1359e88a6f
bug 9244: don't insert config value if it's already present in the DB.
...
status 9244: resolved fixed
2011-04-01 16:17:05 -07:00
alena
bf588166ed
bug 7704: network limits cleanup.
...
status 7704: resolved fixed
For user vm:
* for default network, take limit from the corresponding service offering
* for all additional networks, take limit from the network offerings
For domainRouter/SSVM/CPVM:
* get info from the network offering
Added new config parameter: "vm.network.throttling.rate". If nw_rate is NULL for serviceOffering, this parameter would be used for default vm's network
2011-04-01 15:48:32 -07:00
kishan
3c07db7e2d
bug 9239: Ignore optional zone Id for Snapshot delete events
...
status 9239: resolved fixed
2011-04-01 15:19:43 +05:30
kishan
7b55b41556
bug 9239: Ignore optional zone Id for Snapshot delete events
...
status 9239: resolved fixed
2011-04-01 15:15:00 +05:30
prachi
492dd78f1c
Bug 9180 - Default local SR on XenServer won't be used
...
- Update the diskoffering for system VMs to change the value of use_local_storage, when the global config 'system.vm.use.local.storage' is changed.
2011-03-31 23:11:11 -07:00
prachi
e139cff9f0
Bug 9180 - Default local SR on XenServer won't be used
...
- Update the diskoffering for system VMs to change the value of use_local_storage, when the global config 'system.vm.use.local.storage' is changed.
2011-03-31 23:05:50 -07:00
anthony
513236b100
bug 9161: better fix
2011-03-31 18:23:32 -07:00
anthony
f3fbe7b9fe
bug 9161: findByOutstandingWork means find all works with step not equal Done
2011-03-31 18:01:42 -07:00
Kelven Yang
ea95ac1808
bug 8713 : finalize the implementation of supporting system vm pooling
2011-03-31 17:14:09 -07:00
alena
5f4054325a
bug 9248: generate events on service/diskOffering create/update/delete
...
status 9248: resolved fixed
2011-03-31 16:32:07 -07:00
anthony
2c85092316
bug 9161: better fix
2011-03-31 18:24:57 -07:00
anthony
afd7adc775
bug 9161: findByOutstandingWork means find all works with step not equal Done
2011-03-31 18:03:59 -07:00
alena
703537d222
bug 9248: generate events on service/diskOffering create/update/delete
...
status 9248: resolved fixed
2011-03-31 16:30:11 -07:00
alena
7e7c647dea
bug 9245: save ownerAccountId (instead of callerAccountId) to account_id field in async_job table. We already save caller info to user_id field
...
status 9245: resolved fixed
2011-03-31 15:31:27 -07:00
alena
2af8b32d31
bug 9245: save ownerAccountId (instead of callerAccountId) to account_id field in async_job table. We already save caller info to user_id field
...
status 9245: resolved fixed
2011-03-31 15:27:35 -07:00
anthony
db351f8cba
bug 9249: use interval type , not snapshot type
...
status 9249: resolved fixed
2011-03-31 13:55:34 -07:00
anthony
47eb018975
bug 9249: use interval type , not snapshot type
...
status 9249: resolved fixed
2011-03-31 13:51:09 -07:00
alena
eb696ab0ce
bug 9195: don't return domR/SSVM/CPVM volumes in listVolumes api response
...
status 9195: resolved fixed
2011-03-30 16:33:45 -07:00
alena
6d7f3da46a
For VirtualRouter apply networkThrottling rate of the GuestNetworkOffering to both Guest and Public networks.
2011-03-30 14:53:04 -07:00
alena
bb31bc779f
For VirtualRouter apply networkThrottling rate of the GuestNetworkOffering to both Guest and Public networks.
2011-03-30 14:49:15 -07:00
alena
a1a2717811
bug 9192: don't query for securityGroups when Vm's zone is security group disabled.
...
status 9192: resolved fixed
2011-03-30 09:40:45 -07:00
alena
eccef7022c
bug 9192: don't query for securityGroups when Vm's zone is security group disabled.
...
status 9192: resolved fixed
2011-03-30 09:39:29 -07:00
Prasanna Santhanam
41e7642825
don't do a cidr check for the simulator
2011-03-30 19:41:13 +05:30
Murali Reddy
1b251a5fc8
Bug 4061: support for Microsoft Hyper-V changes- part 1
2011-03-30 18:48:51 +05:30
Prasanna Santhanam
d431f70447
moving simulator classes to premium
2011-03-30 14:00:50 +05:30
Prasanna Santhanam
29ef62f795
refactoring the simulator for 2.2
2011-03-30 14:00:50 +05:30
kishan
e276d3b7fb
bug 7631: Convert unprocessed events to usage_events
...
status 7631: resolved fixed
2011-03-30 11:19:04 +05:30
kishan
f06972b180
bug 7631: Convert unprocessed events to usage_events
...
status 7631: resolved fixed
2011-03-30 11:09:21 +05:30
alena
c1db5aea31
Fixed NPE in listVirtualMachines command - when search for ROOT volume's storagePool type, assume that corresponding storagePool might be removed.
2011-03-29 20:21:26 -07:00
alena
dadab81721
Fixed NPE in listVirtualMachines command - when search for ROOT volume's storagePool type, assume that corresponding storagePool might be removed.
2011-03-29 20:17:49 -07:00
alena
90ec1dcd33
Allow to add Untagged network ranges to public virtual network in Basic zone
2011-03-29 19:44:12 -07:00
alena
efd4cfa297
bug 9201: listNetworkOfferings - return -1 when network_rate is Unlimited; if value is NULL - return global configuration value
...
status 9201: resolved fixed
2011-03-29 19:26:20 -07:00
alena
aab78874c7
bug 9201: listNetworkOfferings - return -1 when network_rate is Unlimited; if value is NULL - return global configuration value
...
status 9201: resolved fixed
2011-03-29 19:21:25 -07:00
alena
f04f2ab10c
bug 9192: More improvements to listVm performance - cache dataCenter/serviceOffering/Network/Template/Iso information on Api level
...
status 9192: resolved fixed
2011-03-29 19:18:30 -07:00
alena
2af46789cb
bug 9192: multiple improvementes to listVms command.
...
1) No longer do multiple searches involving "domain" table; only one join with domain is being done.
2) Do join with domain table only when command is executed by domainAdmin
3) Added index for "path" field in "domain" table
4) No longer do joins with account table as account_id is already present in vm_instance table.
2011-03-29 19:18:30 -07:00
Kelven Yang
64148f46f4
bug 8713: supporting structures for SSVM load management
2011-03-29 18:52:54 -07:00
alena
9f3f99f27f
bug 9192: More improvements to listVm performance - cache dataCenter/serviceOffering/Network/Template/Iso information on Api level
...
status 9192: resolved fixed
2011-03-29 18:42:44 -07:00
alena
46a80a599a
bug 9192: multiple improvementes to listVms command.
...
1) No longer do multiple searches involving "domain" table; only one join with domain is being done.
2) Do join with domain table only when command is executed by domainAdmin
3) Added index for "path" field in "domain" table
4) No longer do joins with account table as account_id is already present in vm_instance table.
2011-03-29 18:42:44 -07:00
anthony
f71986125a
bug 9210: remove storage pool entry if adding storage pool fails
...
status 9210: resolved fixed
2011-03-29 17:44:55 -07:00
Kelven Yang
0788d4a834
bug 8713 : cleanups
2011-03-29 15:10:34 -07:00
Kelven Yang
2e24a68f7f
bug 8713: use SystemVmLoadScanner for SSVM
2011-03-29 15:10:34 -07:00
Edison Su
ee3d6f5cea
bug 9205: resolved fixed
...
status 9205: fix NPE in usageEvent
2011-03-29 15:00:35 -04:00
alena
7ce9845fb7
No need to check if user vm exists during static nat port range creation. We already do it when enableStaticNat for the ip address
2011-03-29 13:46:18 -07:00
Edison Su
a7953c1e7a
bug 9205: resolved fixed
...
status 9205: fix NPE in usageEvent
2011-03-29 14:57:16 -04:00
Kelven Yang
8e727230ce
Use SystemVmLoadScanner for console proxy VMs
2011-03-29 11:19:01 -07:00
anthony
436dccb6d7
bug 9189: fixed it in master, modifystoragepool doesn't try to create/import any more, will port it to 2.1.x
2011-03-28 19:11:20 -07:00
Kelven Yang
2e284e1f75
Add system VM load scaner
2011-03-28 18:44:48 -07:00
will
a959726f38
bug 9200: Fixed issue when attempting to change the service offering of a VM who's current service offering has been deleted.
2011-03-28 18:15:13 -07:00
alena
f8a1278a80
Don't return rate_limit for the network offering when the limit value is NULL
2011-03-28 17:24:17 -07:00
alena
65a083b1db
bug 8831: no need for "isdedicatedtodomain" and "dedicateddomainid" parameters. If 1) network is private, return account/domainId 2)If network is shared for specific domain, return domainId only 3) If network is shared in zone, don't return account/domainId
...
status 8831: resolved fixed
2011-03-28 16:54:09 -07:00
Frank
bd3531b374
Bug 8208 - bare metal provisioning
...
exclude baremtal when handleTemplateSync
2011-03-28 16:45:55 -07:00
alena
d3357c6691
Set network limit to be 0 by default for Control/Management/Storage/Public networks (these networks are used by SSVM/ConsoleProxy/domR)
2011-03-28 15:48:11 -07:00
alena
5dec433529
bug 9188: remove all lb-vm DB mapping that are set with Revoke status after the LB rule is set on the backend
...
status 9188: resolved fixed
2011-03-28 15:48:11 -07:00
Kelven Yang
fa0dd8a228
Allow cluster management confliction detection to handle quick manageemnt server restarts
2011-03-28 15:14:51 -07:00
anthony
045b6ac319
bug 9184: allow detach a volume when the VM is in Destroyed status
...
status 9184: resolved fixed
2011-03-28 14:46:54 -07:00
anthony
8712334ae2
bug 9161:
...
add more log
2011-03-28 14:46:54 -07:00
alena
5d195b35c2
bug 9186: removeFromLoadBalancer - set firewall rule state to Add when the last Vm-LB mapping is removed
...
status 9186: resolved fixed
2011-03-28 13:20:05 -07:00
alena
fdf0f589af
bug 8902: added Removed field to "cluster" table
...
status 8902: resolved fixed
2011-03-28 10:50:09 -07:00
Alex Huang
b2eda8c71b
Changes to the planners
2011-03-28 09:48:33 -07:00
alena
8c61e10c08
bug 9158: introduced new parameter "storageId" to listVirtualMachines api.
...
status 9158: resolved fixed
1) Works for admins only
2) When specified, list only vms that have volumes on this storage
2011-03-25 18:26:59 -07:00
nit
ded1184548
bug 8710: Introducing a new user role in cloudstack called RESOURCE_DOMAIN_ADMIN. The role would have all the domain_admin rights and the rights to list zone,pods,clusters and so on. More info in the bug
2011-03-25 18:04:09 -07:00
alena
bb895a7b75
bug 8103: don't allow to remove host if it has Running/Stopping/Starting vms
...
status 8103: resolved fixed
2011-03-25 17:29:54 -07:00
alena
a8cc285ca9
bug 8934: set correct guest_type for default Xen Centos template. DB upgrade script is also updated.
...
status 8934: resolved fixed
2011-03-25 16:05:06 -07:00
alena
1932652125
bug 5912: Added events and logging for securityGroup create/delete
...
status 5912: resolved fixed
2011-03-25 15:23:18 -07:00
alena
92f01ba143
2.1.x to 2.2.2 upgrade for Domain level vlans
2011-03-25 15:23:18 -07:00
Kelven Yang
359dc18992
Fix possible duplicated JMX registration issue
2011-03-25 15:16:41 -07:00
Alex Huang
9d158dc060
Removed the async create status for volume now that our customers don't use it
2011-03-24 20:04:23 -07:00
alena
304d1cbb55
2.1.x to 2.2.2 DB ugrade - convert account specific vlans to account specific networks
2011-03-24 19:12:33 -07:00
alena
745aa1d66a
bug 8448: generate Alert when vm is scheduled for HA
...
status 8448: resolved fixed
2011-03-24 17:37:18 -07:00
alena
0c9e80eeab
bug 8976: don't allow to delete pod when it has clusters
...
status 8976: resolved fixed
2011-03-24 17:10:01 -07:00
Frank
cdaa1edfa5
Bug 8208 - bare metal provisioning
...
Set dhcp range of linmin DHCPD to empty, so it will not conflict with
our External DHCP
2011-03-24 16:50:23 -07:00
alena
237c57e74f
bug 9146: createNetwork via 8096 - assume that network is domain specific when domainId is not null and isShared = true.
...
status 9146: resolved fixed
2011-03-24 16:04:12 -07:00
alena
2f782305fd
bug 8897: allow to delete a zone when it has alerts
...
status 8897: resolved fixed
2011-03-24 15:00:17 -07:00
alena
a2619b902f
AssociateIPAddress - first IP associated with the network should always be a source nat
2011-03-24 14:25:20 -07:00
alena
dee2e59fb3
bug 8798: delete zone is fixed
...
status 8798: resolved fixed
2011-03-24 13:32:31 -07:00
alena
cced97c5fb
ipAssoc - verify that ip owner is the same as the owner of the network we are assigning ip to
2011-03-24 13:32:31 -07:00
Frank
8aa0ab99da
Bug 8208 - bare metal provisioning
...
Start vm on last stayed host if vm has lastHostId
2011-03-24 12:56:56 -07:00
prachi
514321cadf
Bug 6873: disable/enable mode for clusters (and pods and zones and hosts)
...
Fixed problems in setting default 'allocation_state'. It is now set to 'Enabled' by default if not provided in the API command.
2011-03-24 12:54:51 -07:00
Frank
6be5a9a3a9
Bug 8208 - bare metal provisioning
...
Don't ask secondary storage VM to download baremetal template.
Immediately make baremetal template ready after registerTemplateCmd
as well as listTemplateCmd
Use zone id instead of secondary storage VM id to identify baremetal
template in template_host_ref table
2011-03-24 12:15:08 -07:00
Edison Su
c93abe014c
fix listsecuritygroup
2011-03-24 11:08:00 -04:00
prachi
50244b79ab
Zone check in createNetwork for Bug 6873 - disable/enable mode for clusters (and pods and zones and hosts)
2011-03-23 22:20:53 -07:00
prachi
923f562aa8
Bug 6873: disable/enable mode for clusters (and pods and zones and hosts)
...
- Added a new flag 'allocation_state' to zone,pod,cluster and host
- The possible values for this flag are 'Enabled' or 'Disabled'
- When a new zone,pod,cluster or host is added, allocation_state is 'Disabled' by default.
- For existing zone,pod,cluster or host, the state is 'Enabled'.
- All Add/Update/List commands for each of zone,pod,cluster or host can now take a new parameter 'allocationstate'
- If 'allocation_state' is 'Disabled', Allocators skip that zone or pod or cluster or pod.
- For a root admin, ListZones lists all zones including the 'Disabled' zones. But for any other user, the 'Disabled' zones are not included in the response.
- For any usecase that creates/deploys/adds/registers a resource and takes in zone as parameter, now we check if the Zone is 'Disabled'. If yes then the operation cannot be performed by a user other than root-admin. Add volume, snapshot, templates are examples of this usecase.
- To enable the root admin to test a particular pod/cluster/host, deployVM command takes in 'host_id' parameter that can be passed in only by root admin.
If this parameter is passed in by the admin, allocators do not search for hosts and use that host only. StoragePools are searched in the cluster of that host.
If VM cannot be deployed to that host, allocators and deployVM fails without retrying
2011-03-23 22:15:35 -07:00
anthony
d2dc0a504b
put host into maintenance, if the VM can not migrate, just stop it
2011-03-23 16:50:59 -07:00
Kelven Yang
1c9196f9af
add vncPassword on hypervisor back
2011-03-23 16:18:22 -07:00
alena
bbc5bdd83b
Fixed NPE in diskOffering creation
2011-03-23 15:53:46 -07:00
Alex Huang
1a12b3a3de
system template upgrade
2011-03-23 15:45:39 -07:00
Alex Huang
b75a23b285
added support for 2.1.8 and 2.2.2 upgrade
2011-03-23 15:29:17 -07:00
anthony
bc0968d900
check the object before use it
2011-03-23 14:54:31 -07:00
Kelven Yang
1abbc007ba
bug 8954: only root admin can access console proxy, SSVM and DomR
2011-03-23 14:46:34 -07:00
alena
8de3bacd2b
bug 9026: added ability to turn off apiCommand/commandParameter for docGeneration
...
status 9026: resolved fixed
1) Don't expose following commands in doc:
* registerSSHKeyPair
* createSSHKeyPair
* deleteSSHKeyPair
* listSSHKeyPairs
2) Don't show "sshKeyPairName" parameter for deployVm command
2011-03-23 12:56:58 -07:00
alena
7dce8412e4
Fixed API xml doc generation
2011-03-23 12:12:29 -07:00
Kelven Yang
14faff534d
validate CPU speed in system service offering to auto-correct settings from old data set
2011-03-22 15:37:09 -07:00
anthony
41e75ab611
bug 9107: don't allow move volume if there are snapshot policy or snapshot on this volume
...
status 9107: resolved fixed
2011-03-22 14:40:21 -07:00
alena
404b288af4
Throw an exception when can't find network offering during zone creation
2011-03-22 14:06:14 -07:00
alena
718386a2b6
bug 8862: added updateNetwork api command. Can update name/displayText only
2011-03-22 11:26:56 -07:00
anthony
7f12876be1
bug 9087: destroy the source volume, after update the volume entry
...
status 9087: resolved fixed
2011-03-22 11:23:36 -07:00
Frank
8ac36a980c
Use Long type for version comparsion
2011-03-22 11:07:11 -07:00
alena
05be5acfda
bug 9066: don't allow enabling ha for vm created from Ha disbled service offering
...
status 9066: resolved fixed
2011-03-22 10:46:10 -07:00
alena
8906b77e19
bug 9097: default admin email is NULL. It can be reset later with updateUser API.
...
status 9097: resolved fixed
2011-03-22 10:25:13 -07:00
alena
e9a10c53dc
bug 8831: added 2 new parameters to create/listNetworks api: "isdedicatedtodomain" and "dedicateddomainid"
2011-03-22 10:17:08 -07:00
Alex Huang
e2a1057e17
domr restarted
2011-03-22 09:31:37 -07:00
alena
7c1a6e4884
bug 8831: API/Management server part is done for "Dedicate Network to domain". UI part is left
2011-03-21 18:17:59 -07:00
Alex Huang
109c4eae0e
restarting domr is close to working
2011-03-21 17:56:00 -07:00
Kelven Yang
b264866d2e
Perform and alert management.network.cidr configuration on management server startup
2011-03-21 16:46:43 -07:00
Frank
617ef5c178
Bug 8208 - bare metal provisioning
...
set pod to external dhcp server when adding external dhcp server
2011-03-21 16:39:49 -07:00
anthony
d0320896f3
fixed set_dhcp_entry issue, don't need to lock an router entry, start function will handle concurrent starting domr
2011-03-21 15:19:09 -07:00
alena
abb2e2b2ff
bug 8831: partial checkin for Domain specific Networks (includes DB changes)
2011-03-21 15:05:07 -07:00
Frank
b1d53893d7
Fix typo in ClusterDaoImpl.ZoneHyTypeSearch
2011-03-21 14:30:44 -07:00
Kelven Yang
7168278455
Console access API with API key, there is an issue that it actually depends on existing web session. This is the fix for it
2011-03-21 11:28:31 -07:00
Frank
d5abb202ec
Bug 8208 - bare metal provisioning
...
don't inherit from firstFitPlanner, using our baremetal planner
2011-03-21 10:48:21 -07:00
Alex Huang
d7e0f8dcc1
db upgrade
2011-03-19 10:33:13 -07:00
Alex Huang
82f7504832
checking in the upgrade stuff for now
2011-03-19 09:27:10 -07:00
alena
729595d005
bug 9050: fixed create/deleteVlanRange generation
...
status 9050: resolved fixed
2011-03-18 18:12:52 -07:00
alena
2027aa9a8a
bug 9044: don't cleanup vm resources if the vm is already expunged
...
status 9044: resolved fixed
2011-03-18 18:12:52 -07:00
prachi
8da874ca0b
Fixed the NPE at RecreateHostAllocator found when a Pod with no cluster was present in the system.
2011-03-18 18:08:47 -07:00
Frank
b4e18b7fbe
Bug 8208 - bare metal provisioning
...
use hostTags in addHostCmd
2011-03-18 18:04:34 -07:00
anthony
2b188b37dd
fixed start management server
2011-03-18 16:43:51 -07:00
alena
a27c4881ea
bug 7424: 0 value for network.throttling.rate global config param indicates that network throttling is disabled
...
status 7424: resolved fixed
2011-03-18 15:23:03 -07:00
anthony
28cfa24bd2
only 2.1 snapshot depends on template, if there is no 2.1 snapshot, template can be removed
2011-03-18 15:20:48 -07:00
prachi
5bbffcaa97
Changes to add 'cluster_id' to 'op_host_capacity' table for Db upgrade from 222 to 224
2011-03-18 12:14:48 -07:00
Alex Huang
639a8aca9d
new 222 to 224 missing file
2011-03-18 11:00:37 -07:00
Alex Huang
8723727de1
added 2.2.2 to 2.2.4
2011-03-18 10:41:58 -07:00
Alex Huang
093fa851fa
made the upgrade utility work with the current version
2011-03-18 10:06:38 -07:00
Alex Huang
d3ecf719ce
looks like everything is working except for snapshots
2011-03-18 09:14:05 -07:00
anthony
25d1a8dc4a
bug 8993: throw exception if creating snapshot on primary storage fails it may be due to previous creation desn't finish
...
status 8993: resolved fixed
2011-03-17 19:17:44 -07:00
Kelven Yang
65d4cc98be
Allow template re-deployment once template is deleted from hypervisor and CloudStack still holds out-dated status
2011-03-17 17:59:51 -07:00
alena
8d44058010
Fix for PF/LB 2.1.7 to 2.2.2 upgrade
2011-03-17 17:49:59 -07:00
anthony
8e741fb80d
bug 9024:
...
two issues here:
1. in some case, two sequent commands are sent out at the same time.
2. before starting a user VM , make sure domr is up
status 9024: resolved fixed
2011-03-17 17:30:19 -07:00
alena
96e83fe97f
bug 8146: Elastic IP support in Basic zone.
...
Following was done as a part of checkin:
1) NetworkOffering/Network:
* add PF service support for default Guest network offering.
* Add one more additional network - Public.
* Allow to enable external firewall in Basic zone.
2) Don't allow to deployVm in Public Network.
3) Allow to add vlan ip ranges to Public networks in Basic zone.
4) Associate IP - allow to associate with Direct vms.
5) Allow to create PF/Static nat rules. Rules are being sent to External Firewall Rule only.
6) Add PF support to External Firewall element.
2011-03-17 17:19:36 -07:00
will
ae549ed4d1
bug 8208: Added first addHost dialog to take into account baremetal requirements in the resource page.
...
- Standardized the addHost optional parameters for baremetal.
2011-03-17 16:29:31 -07:00
alena
10077be555
DB upgrade for LB rules
2011-03-17 11:52:23 -07:00
will
eb2a3d6f8e
bug 8208: Added support for adding baremetal clusters and baremetal templates.
2011-03-17 11:31:36 -07:00
Alex Huang
57cfdb8092
make 2.2.1 to 2.2.2 upgrade work
2011-03-17 10:42:48 -07:00
Alex Huang
b18b2a68b1
fixed unit test
2011-03-17 10:40:59 -07:00
alena
7eb20f8133
DB upgrade for port forwarding rules
2011-03-16 18:19:02 -07:00
Alex Huang
d50f2dd9c5
added the concept of system integrity checking before starting up the system
2011-03-16 18:00:22 -07:00
Alex Huang
8bec1e0b9f
added the concept of system integrity checking before a system starts
2011-03-16 17:59:34 -07:00
alena
579a9294bf
Removed vm_type update in DB 217 to 221 upgrade
2011-03-16 15:57:41 -07:00
alena
6be1681647
DB upgrade for Basic zone: upgrade domR/ssvm/consoleProxy nics
2011-03-16 14:14:14 -07:00
alena
95faeb620e
bug 8863: generate usage event when PF/LB/StaticNat rule is set with Revoke status, not when it's actually removed on the backend.
...
status 8863: resolved fixed
2011-03-16 09:41:50 -07:00
prachi
2076eec42b
Changes for Bug 8997 - Fail to create volume from snapshot: NPE at "allocateToPool(FirstFitStoragePoolAllocator.java:63)
...
- ClusterId passed in could be null
2011-03-15 18:40:33 -07:00
alena
63593c5057
bug 8510: increment resource count for volume after it's created
2011-03-15 18:06:00 -07:00
alena
7b5d7806d2
bug 8510: update resource count for template after the DB record is created. Decrement it if actual snapshot creation fails
2011-03-15 17:29:23 -07:00
alena
82f25426e7
domR start: program vm metadata even when userData is NULL
2011-03-15 17:29:23 -07:00
anthony
ebba4d9420
bug 8480: allow multiple hosts in maintenance mode
...
status 8480: resolved fixed
2011-03-15 16:35:01 -07:00
Chiradeep Vittal
8d791777db
Introduce zone (datacenter) details
2011-03-15 15:44:36 -07:00
Frank
d297eea96f
Bug 8208 - bare metal provisioning
...
do fullsync in baremetal resource
2011-03-15 15:29:52 -07:00
alena
d2f92f1c76
bug 8973: Create Virtual Guest network as a part of deployVm if corresponding networkOffering has availability=Required and no networkIds are specified
...
status 8973: resolved fixed
2011-03-15 15:06:52 -07:00
alena
d3f04b2b38
bug 8945: introduced "default.page.limit" config param (default value is 500). Used for pagination in API list* commands.
...
status 8945: resolved fixed
2011-03-15 15:06:52 -07:00
Alex Huang
397b338f09
cp ugprade done
2011-03-15 15:03:13 -07:00
Alex Huang
d2f61b00f3
ssvm ugprade done
2011-03-15 14:57:12 -07:00
Alex Huang
9b173d10d0
ssvm ugprade done
2011-03-15 14:47:09 -07:00
Kelven Yang
aef7a0771e
add long when default route is going to be changed
2011-03-15 12:11:54 -07:00
alena
68219eba31
Fixed create vlan range for Account - pick source nat ip address from account specific vlan
2011-03-15 10:23:40 -07:00
nit
a83c4256f1
AlertManager should check primary storage stats as well
2011-03-14 21:27:26 -07:00
nit
f88fb1e505
bug 8887 : Stats Calculation Improvement - Storage stats wont update DB anymore and would be kept "in memory" just like other stats. For the listCapacityCmd which consumes it (sec. storage used and primary storage used) this would be constructed using the in memory maps rather than DB which wont have sec storage and primary storage used in the DB anymore.
2011-03-14 18:45:00 -07:00
Frank
ffb900fc86
Bug 8208 - bare metal provisioning
...
Add useExternalDhcp option to createPodCmd
2011-03-14 16:42:59 -07:00
alena
bf1aae8413
bug 8730: perform permission check when listSshKeyPair
...
status 8730: resolved fixed
2011-03-14 16:03:25 -07:00
alena
1b880da804
bug 8728: deleteSshKey - make account permission check
...
status 8728: resolved fixed
2011-03-14 15:46:01 -07:00
alena
c32198838f
bug 8724: can create sshKeyPair in behalf of other users now
...
status 8724: resolved fixed
2011-03-14 15:37:50 -07:00
alena
aa8183e660
bug 8749: make account permission check in getVmPassword api
...
status 8749: resolved fixed
2011-03-14 15:27:04 -07:00
alena
1cf735c537
bug 8968: use search criteria when list security group by id
...
status 8968: resolved fixed
2011-03-14 13:45:11 -07:00
Kelven Yang
458998c609
bug 8960: add management.netaddr.cidr to CPVM and SSVM
2011-03-14 11:24:25 -07:00
alena
7b9b897459
Fixed the issue when admin can't deploy vm in behalf of another user. We were passing caller to deployVm always.
2011-03-14 11:08:59 -07:00
prachi
ed9a11c6b6
API changes for Bug 3316 - Manual live migration of Virtual Machines
...
This is a Root admin only functionality
---------------------
Service API changes:
---------------------
- ManagementServer will expose new API:
Pair<List<HostVO>, List<Long>> listHostsForMigrationOfVM(UserVm vm, Long
startIndex, Long pageSize)
The API returns list of all hosts in the VM's cluster minus the current host and also a list of hostIds that seem to have enough CPU and RAM capacity to host this VM.
- ListHostsCmd will call this service API if virtualmachineid is present in the request.
- MigrateVmCmd is the new command added that takes in virtualmachineid and destination hostid
- UserVmService will expose a new API: UserVm migrateVirtualMachine(UserVm vm, Host destinationHost)
------------------------------------
API throws error in following cases:
------------------------------------
- User is not a root Admin. (‘Permission denied’)
- A VM uses local storage, we cannot migrate it, so ‘listHosts’ will throw error.
- We fail to migrate the VM on the chosen host.
- API will support migration for XenServer only currently. So error is thrown
if hypervisor is not XenServer (e.g KVM, vSphere etc)
- Destination host is not in same cluster as source host.
- VM is not in running state
2011-03-11 17:49:53 -08:00
Alex Huang
b6f4ff33ca
domr upgraded
2011-03-11 16:53:01 -08:00
alena
346ca43714
bug 6892: update resourceCount for snapshot after the DB record is created; if snapshot fails to create on the backend - reduce resource count
...
Also fixed couple of other issues:
* usage event generation - generate event only when snapshot is created on primary and backed up on secondary
* zoneId was always set to 0 for snapshot.delete event, fixed this.
* Fixed resource_count decrement for manual snapshot deletion
2011-03-10 18:03:06 -08:00
Alex Huang
09d5bcc59c
direct network and ip address are ready
2011-03-10 15:58:40 -08:00
Kelven Yang
14c0eb74a0
Use the correct one to find ManagementServerHostVO
2011-03-10 15:32:58 -08:00
alena
4423e4d174
bug 8867: cidr is required for Direct network creation; remove this limitation later after we allow Shared network to have multiple ip ranges having different Cidrs
...
status 8867: resolved fixed
2011-03-10 14:40:35 -08:00
alena
3448513465
bug 8666: perform RFC1918 check for cidr of Guest Virtual cidr when 1) Create/Update zone 2) Create guest virtual network
...
status 8666: resolved fixed
2011-03-10 14:06:43 -08:00
Alex Huang
7b3a1e129f
nics are retrieved from user vms
2011-03-10 13:46:33 -08:00
alena
dee3aefecf
bug 8508: assign source nat ip address only during network implementation.
...
status 8508: resolved fixed
2011-03-10 13:34:35 -08:00
alena
5a44e03764
bug 8844: default and Public disk offerings have NULL domainId (to be consistent with serviceOfferings)
...
status 8844: resolved fixed
2011-03-10 12:10:55 -08:00
alena
975344a3ff
bug 8688: Network created from the networkOffering with Availability="Required" is required during the vm deployment in Advanced nonSecurityGroupEnabled zone
...
status 8688: resolved fixed
2011-03-10 11:27:17 -08:00
alena
e89fc252f2
bug 8851: Guest Virtual Network can't be shared
...
status 8851: resolved fixed
2011-03-10 10:35:52 -08:00
Kelven Yang
6b8f073f99
Fix issues for management server ping support in cluster management
2011-03-10 10:32:17 -08:00
anthony
7d7dee791a
bug 7877: prevent two mgmt servers connecting to one same host
...
status 7877: resolved fixed
2011-03-09 18:29:42 -08:00
alena
37d9b5ab50
bug 8849: Don't allow create Guest Virtual and Direct shared networks in Security Group enabled zone
...
status 8849: resolved fixed
2011-03-09 18:17:01 -08:00
alena
df3704e360
bug 8861: introduced optional zoneId parameter to listNetworkOfferings command
...
status 8861: resolved fixed
2011-03-09 18:05:53 -08:00
Alex Huang
851c3344fc
database upgrade
2011-03-09 17:56:11 -08:00
Alex Huang
e81f02f9b5
more changes for direct networks
2011-03-09 17:56:11 -08:00
Alex Huang
f1d01d5b77
user ip address for virtual network is done migrated
2011-03-09 17:56:11 -08:00
Kelven Yang
6203ba6bfe
bug 8558: improve cluster management
2011-03-09 17:18:48 -08:00
alena
b6ae35728e
bug 8816: 1) return linkLocal instead of private ip/netmask/mac in listRouters 2) return linkLocal/private ip/netmask/mac in listSystemVms response
2011-03-09 16:47:46 -08:00
alena
b5a36df966
listPublicIpAddresses - when do search by keyword, apply keyword to account search
2011-03-09 16:24:28 -08:00
alena
4f4683ec93
bug 8937: throw an Exception when fail to reapply Firewall rules as a part of network Implement
...
status 8937: resolved fixed
2011-03-09 16:24:28 -08:00
prachi
b9646afd48
Adding log statement in allocator while skipping a storagepool if it crosses the storage.capacity.threshold
2011-03-09 15:34:53 -08:00
Edison Su
96bb6a7b7c
fix NPE that template was deleted
2011-03-09 15:27:06 -05:00
prachi
34836aaaa5
Merging 2.1.8 fix to master : Bug 8801 - reserve some space for snapshots
...
StoragePoolAllocators need to respect storage.capacity.threshold in allocations - this was broken after StatsCollector started maintaining the primary storage Stats separately
Fixed allocator to refer the correct in-memory stats map.
2011-03-09 13:46:25 -08:00
alena
0c04007e04
bug 8734: search by keyword in listPublicIpAddresses command
...
status 8734: resolved fixed
2011-03-09 13:32:36 -08:00
alena
5129df106b
bug 8847: createUser api - "account" parameter is required now
...
status 8847: resolved fixed
2011-03-09 10:21:50 -08:00
Edison Su
670afd2331
bug 8875: add new management cidr configuration for vmware: if there are multiple management servers, each of them may talk to domR, so that means domR needs to know the routing to all the mgt servers.
...
status 8875: resolved fixed
2011-03-09 10:20:05 -05:00
Edison Su
ccab6c21c4
fix bug when one of template was deleted, then delpoyvm, got NPE
2011-03-09 10:20:05 -05:00
prachi
3624fee85d
Changed the interface in StoragePoolAllocator to avoid a potential NPE in LocalStoragePoolAllocator. Allocators were taking in an instance of VM enclosed inside VirtualMachineProfile.
...
However in case of createVolume from Snapshot, there is no VM associated. So VM passed is null and this can cause a NPE.
Allocators hardly use the VM instance. LocalStoragePoolAllocator was mainly using it for checking if host has capacity. But it need not do this check, since that is done by HostAllocators anyway.
So removing the use of VM in StoragePoolAllocators.
2011-03-09 10:12:04 -08:00
alena
7668e1878a
bug 8898: allow service offering upgrade for Running vm
2011-03-09 10:03:26 -08:00
alena
a50950bbef
221 to 222 DB upgrade for InstanceGroup. Unit test is included
2011-03-09 08:34:08 -08:00
anthony
c013d0a6c6
fixed unit test
2011-03-08 20:04:28 -08:00
anthony
5781aafdcb
fixed upgrade unittest
2011-03-08 18:24:11 -08:00
Frank
469280866d
Bug 8208 - bare metal provisioning
...
able to add external DHCP server
2011-03-08 17:29:33 -08:00
anthony
b32e8f23a6
bug 8712: since we add multiple concurrent policy back in 2.2.3, we only support upgrade from 2.1.7 to 2.2.3, otherwise some policies will be removed silently
...
need test this upgarde
2011-03-08 17:10:27 -08:00
anthony
5b1a421e62
bug 8712: prepare from snapshot db migration
2011-03-08 17:10:27 -08:00
Kelven Yang
33b3333d65
Add JMX support to async job management, active job details will be checked in jConsole
2011-03-08 16:34:17 -08:00
nit
47882e9809
bug 7433: In case of multiple zones deleting a tempate from a zone doesn't prevent a user from selecting it to deploy the VM in the same zone. It was still visible in the listTemplates. Made change to check for template_zone_ref and template_host_ref removed and destroyed columns. During deployVM disallow a vm to be deployed from a template that has been removed in the zone.
2011-03-08 15:41:10 -08:00
alena
fe267c2cb2
Basic zone 221 to 222 DB upgrade. Unit test is included
2011-03-08 15:32:55 -08:00
Frank
6c819c1491
Merge branch 'bareMetal'
...
Conflicts:
api/src/com/cloud/api/ApiConstants.java
api/src/com/cloud/api/commands/DeployVMCmd.java
api/src/com/cloud/offering/ServiceOffering.java
api/src/com/cloud/vm/UserVmService.java
client/tomcatconf/components.xml.in
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/service/ServiceOfferingVO.java
server/src/com/cloud/vm/UserVmManagerImpl.java
server/src/com/cloud/vm/VirtualMachineManagerImpl.java
2011-03-08 14:18:11 -08:00
Frank
20a7d95c06
Bug 8208 - bare metal provisioning
...
make an individual package and move to premium
2011-03-08 10:45:50 -08:00
Frank
5517046a66
Bug 8208 - bare metal provisioning
...
throw exception when pxe server is not per pod
2011-03-08 10:05:58 -08:00
alena
5842392ec1
bug 8146: Multiple network case (default network is Virtual) - for Direct networks dhcp servers set dns to the eth0 ip address of the domR belonging to virtualNetwork
...
bug 8146: resolved fixed
2011-03-07 19:56:25 -08:00
Kelven Yang
13c5a4ebcf
forget to add new files in
2011-03-07 19:43:37 -08:00
Kelven Yang
d0892a964d
Add JMX monitoring to cluster management
2011-03-07 18:40:33 -08:00
Alex Huang
35275c1615
added user ip address upgrade
2011-03-07 17:53:43 -08:00
alena
b20fafeaa4
bug 8874: rebootVm - don't try to implement already implemented network
...
status 8874: resolved fixed
2011-03-07 10:23:48 -08:00
alena
94fb0612f2
Fixed DB upgrade script - vm_type field can be NULL
...
Conflicts:
server/src/com/cloud/network/NetworkManagerImpl.java
2011-03-05 10:37:57 -08:00
Alex Huang
bda3264a77
networks are generated now from the domr
2011-03-04 18:07:26 -08:00
Alex Huang
f7ea6e17cd
break upgrade fix upgrade
2011-03-04 18:07:26 -08:00
Alex Huang
2d58d85a89
break upgrade fix upgrade
2011-03-04 18:07:26 -08:00
nit
7c127bf096
bug 8824: remove capacity entry when deleting secondary storage.
...
status 8824: resolved fixed
2011-03-04 17:40:43 -08:00
Kelven Yang
cbb5aa0e89
Allow to query management server node alive status
2011-03-04 17:39:26 -08:00
nit
f85ef91a8d
bug 8643: listCapacityCmd - Make the capacity calculation more optimal. Now the API wont recalculate the stats everytime its called. It would rely on the capacity checker thread running (configurable) every 5 mins to get the capacity. Change the initital delay of capacity check thread from 5 mins to 30 seconds so that we check capacity immediately as we log in.
...
status 8643: resolved fixed
2011-03-04 16:08:18 -08:00
Edison Su
6b6577d5e9
fix build on master
2011-03-04 15:22:30 -05:00
Edison Su
bec3f3c8a2
bug 8843: add vm into security group when vm is created
...
status 8843: resolved fixed
2011-03-04 13:04:44 -05:00
Alex Huang
263244c938
more logging
2011-03-04 11:37:35 -08:00
Alex Huang
40db230095
more changes for db upgrade
2011-03-04 11:09:24 -08:00
Edison Su
8eaa53f282
fix transaction rollback in security group listener, which cause state machine update failed
2011-03-04 10:58:24 -05:00
alena
e902e83d13
Fixed bug in xmlDocWriter: use "domain" parameter instead of "domainId" for "login" command
2011-03-04 10:31:58 -08:00
kishan
a61a92b0fe
bug 8675: Added action events for Domain commands
...
status 8675: resolved fixed
2011-03-04 16:59:19 +05:30
kishan
db7a0ddb75
bug 8672: Added action events for User commands
...
status 8672: resolved fixed
2011-03-04 16:45:49 +05:30
kishan
44ec214ad8
bug 8507: Generate usage event for empty snapshot
...
status 8507: resolved fixed
2011-03-04 16:01:58 +05:30
kishan
75def45063
bug 8536: Added delete volume usage event for Data volumes also when Vm goes to Error state
...
status 8536: resolved fixed
2011-03-04 15:38:07 +05:30
kishan
5df8e59132
bug 8098: Added destroy vm usage event when Vm goes to Error state
...
status 8098: resolved fixed
2011-03-04 15:30:06 +05:30
kishan
a560f59a2b
bug 8298: Avoid logging usage events for templates owned by system user
...
status 8298: resolved fixed
2011-03-04 14:36:57 +05:30
alena
715a929e91
Separate createVm methods for 1) vm in Basic zone 2) Vm with SecurityGroup in Advanced zone 3) Vm without SecurityGroup in AdvancedZone
2011-03-03 16:13:00 -08:00
Edison Su
9ad5139fda
fix delete security group rule
2011-03-03 13:44:48 -05:00
Alex Huang
4b09b69cb2
Basic network conversion
2011-03-03 11:06:49 -08:00
alena
f36ed9b51a
bug 8689: don't allow to reset Availability for default Direct network offering
...
status 8689: resolved fixed
2011-03-02 15:58:44 -08:00
alena
1025f16940
bug 8819: Don't allow upgrade system network offerings
...
status 8819: resolved fixed
2011-03-02 15:55:36 -08:00
alena
b3d27cbf17
bug 8689: default DirectNetworkOffering has availability=Optional
2011-03-02 14:26:28 -08:00
alena
b3ff533244
bug 8795: start domR after corresponding network is shutdown - implement network before starting the domR
...
status 8795: resolved fixed
Conflicts:
api/src/com/cloud/deploy/DeployDestination.java
2011-03-02 13:46:57 -08:00
abhishek
f0a74e6314
bug 8806: improvements to the flow; using group by to eliminate need for extra ds
2011-03-02 10:07:31 -08:00
abhishek
68aa8c4eb7
bug 8806: fixing list hypervisors
...
status 8806: resolved fixed
2011-03-02 08:45:26 -08:00
Alex Huang
f3b58a4b0a
removed a bunch of scripts that doesn't pass unittest
2011-03-02 00:16:54 -08:00
Alex Huang
d0a5816999
Added Premium upgrade
2011-03-01 23:47:36 -08:00
Frank
7fa053370e
Bug 8208 - bare metal provisioning
...
Add bare metal planner
2011-03-01 17:47:37 -08:00
Edison Su
53eb46dc2a
Add local storage support for kvm
2011-03-01 19:51:43 -05:00
alena
d764bf245b
Throw an error when fail to configure one of the nics for multiNic user Vm
2011-03-01 18:07:49 -08:00
Frank
ec7a6e6863
Bug 8208 - bare metal provisioning
...
Add LinMin username, password, apid fields in AddPxeServerCmd
2011-03-01 14:55:22 -08:00
Edison Su
c80335c9df
bug 8783: user vm fs is crashed, use O_DIRECT instead of O_DSYNC/O_SYNC in qemu, aka cache=none. Hope we can reduce the possibility of guest vm crashed.
...
status 8783: resolved fixed
2011-03-01 16:38:23 -05:00
abhishek
9345969543
bug 8796: adding another check in advanced zone with sec grp
2011-03-01 16:33:14 -08:00
abhishek
dbb03006b7
adding a migration step from 221 to 222 using alex's framework. this should only be used for alex's upgrade from 217 to 22, for 221 to 222 for 222 release, we still are providing the bash script for upgrade.
2011-03-01 16:00:14 -08:00
alena
a1e9f7d5c2
Return false when vm fails to stop
2011-03-01 14:45:39 -08:00
alena
a8e70cf9b4
bug 8763: Fixed account cleanup process - don't destroy networks when vm expunge failed
...
status 8763: resolved fixed
Conflicts:
server/src/com/cloud/user/AccountManagerImpl.java
2011-03-01 14:25:09 -08:00
Chiradeep Vittal
8ee2e311f1
bug 8380: use instance name
2011-03-01 14:07:30 -08:00
Chiradeep Vittal
ae1dc136c0
bug 8380: use instance name
2011-03-01 14:07:30 -08:00
Chiradeep Vittal
697b4f60db
bug 8380: use instance name status 8380: resolved fixed
2011-03-01 14:07:30 -08:00
Frank
35b7c26689
Bug 8208 - bare metal provisioning
...
able to start, stop, reboot, destroy VM
2011-03-01 11:40:40 -08:00
alena
24b57c5373
Regular user can create guest virtual network only
2011-03-01 10:46:25 -08:00
alena
0e032c5301
Fixed NPE in createVlanIpRange
2011-03-01 10:18:15 -08:00
alena
858578993f
Set specify_vlan=1 for Direct Network offering.
2011-03-01 10:01:58 -08:00
alena
f395005e0a
bug 8781: set dhcp/dns/userData providers to be DhcpServer in Basic zone; all other providers have to be null
...
status 8781: resolved fixed
2011-03-01 09:00:47 -08:00
kishan
65eaf27c5c
bug 8670, 8672: Added action events for account/user actions
...
status 8670: resolved fixed
2011-03-01 21:19:34 +05:30
abhishek
0ef191bed7
adding storage pool upgrade proc
2011-02-28 18:17:40 -08:00
Alex Huang
e3438d2ff0
upgrade data center is done.
2011-02-28 17:59:02 -08:00
prachi
c1f0aef550
More changes for Bug 7845 - Productize DeploymentPlanner
...
- After applying the User concentrated Pod heuristic, order of clusters within a pod (based on capacity) should remain intact
- Only change should be clusters of which pod to be considered first
2011-02-28 17:25:52 -08:00
alena
dd282f01e1
Fixed api xml generator - used to truncate some chars during api diff generation
2011-02-28 16:28:54 -08:00
alena
be76a51dbe
Api xml doc generator: define if command is sync or async in the xml doc
2011-02-28 16:28:54 -08:00
alena
7c7710c204
Allow network restart only for the networks in Setup and Implemented states.
2011-02-28 16:28:54 -08:00
anthony
cd27202a26
bug 8216: create volume from snapshot can take a disk_offering_id, if disk_offering_id is not specified, use the one from original volume
...
status 8216: resolved fixed
2011-02-28 16:28:41 -08:00
Kelven Yang
2f5bacf980
bug 8768: merge fix in 2.2.2 to master
2011-02-28 15:59:21 -08:00
prachi
95c071e179
Bug 7845 - Productize DeploymentPlanner
...
The user concentrated pod heuristic should consider VMs for the given account that are in 'Running' or 'Stopped' state only.
2011-02-28 15:44:01 -08:00
Alex Huang
a517653adb
made changes
2011-02-28 14:37:30 -08:00
Alex Huang
ab3c719389
run the scripts
2011-02-28 14:37:30 -08:00
prachi
6a67bb1edb
More logging changes for
...
Bug 7845 Productize DeploymentPlanner
Bug 8317 Add better resource allocation failure messages
2011-02-28 13:47:52 -08:00
prachi
889827b63a
Bug 7845 - Productize DeploymentPlanner
...
Bug 7723 - merge or re-write host tagging into master / 2.2
Bug 7627 - Need more logging for Allocators
Bug 8317 - Add better resource allocation failure messages
Changes for Deployment Planner to use host and storagePool allocators to find deployment destination.
Also has the changes for host tag feature.
Improved the logging for allocators.
2011-02-28 13:47:51 -08:00
Edison Su
a7c6b9f28e
fix security group rules
2011-02-28 12:16:40 -05:00
Edison Su
0e90ede56a
don't break basic zone mode
2011-02-28 12:16:40 -05:00
Edison Su
8240ae7e8c
fix migration
2011-02-28 12:16:40 -05:00
Edison Su
b20808d223
minor fix
2011-02-28 12:16:40 -05:00
Edison Su
9b51886850
fix migration issue
2011-02-28 12:16:40 -05:00
Edison Su
2705adb3b1
security group is per bridge
2011-02-28 12:16:40 -05:00
alena
08a535ec87
bug 8772: implementNetwork - reapply all the network rules for corresponding network elements every time network is re-implemented
...
status 8772: resolved fixed
2011-02-28 11:27:02 -08:00
anthony
8658fbd1d4
fixed build
2011-02-28 10:32:52 -08:00
alena
62b3d548d6
bug 8753: never release public Ip address without ensuring that all corresponding resources (PF/StaticNat/Lb rules) are cleaned up.
...
Fixed couple of other problems along:
* when expunge PF/Static nat rules as a part of vmExpunge/IpRelease process, first mark all rules as Revoke, and then send commands to the backend. Group commands by Ip address.
Before we used to do Revoke/Send per rule basis.
* When release source nat rule, make sure that corresponding vpn (if exists) is being expunged.
2011-02-28 09:21:05 -08:00
alena
ec76406942
bug 8737: set entityOwnerId for all api commands including non-Async ones
...
status 8737: resolved fixed
2011-02-28 09:21:05 -08:00
anthony
1970161844
bug 8714: support paraleel recursive snapshot
...
snapshot doesn't depend on volume any more, volume can be removed even there are snapshots on this volume
status 8714: resolved fixed
2011-02-25 22:17:13 -08:00
Frank
cd676f481d
Bug 8208 - bare metal provisioning
...
Successfully add start entry into LinMin PXE server
2011-02-25 21:08:13 -08:00
Frank
a9728998ff
Bug 8208 - bare metal provisioning
...
Successfully add start entry into LinMin PXE server
2011-02-25 18:58:07 -08:00
Edison Su
ac8524da51
creating zone wide vlan is disabled if zone is security group enabled
2011-02-25 15:30:02 -05:00
Edison Su
1ccec531b7
list systemonly direct network if zone is security group enabled
2011-02-25 14:23:01 -05:00
abhishek
a84d34cc72
bug 8216: we do not need to create an event in createVolFromSnapshot(), as we do it in alloc vol
2011-02-25 12:00:27 -08:00
abhishek
bae62f844d
bug 8742,8216: reverting to use org vol's disk off id whilst creating vol from snapshot. Also changing event generation so that an event is generated @ data vol creation (as opposed to attaching to vm). we will correspondingly generate an event at data vol's deletion
2011-02-25 12:00:27 -08:00
Alex Huang
378a0da0df
more unittest support
2011-02-25 11:58:12 -08:00
alena
9cf48bbfbd
bug 8686: don't allow to create network from the network offering with Availability=Unavailable
...
status 8686: resolved fixed
2011-02-25 11:44:00 -08:00
alena
fdbdba7a78
bug 8704: listNetworks with account/domainId parameter - return account specific and shared networks
...
status 8704: resolved fixed
2011-02-25 11:29:02 -08:00
alena
1dbd012fdc
bug 8720: don't allow to create network with custom vlan when networkOffering's guest IP type is Virtual
...
status 8720: resolved fixed
2011-02-25 11:29:02 -08:00
Kelven Yang
fd27af5d8f
bug 8249 : save combined persistent and run-time id into worker to help worker VM GC
2011-02-25 11:23:32 -08:00
alena
65d22a7a15
Fixed exception logging in several places
2011-02-25 09:31:21 -08:00
kishan
0b9fa1cc8a
bug 5747: Added action events for system Vms commands
...
status 5747: resolved fixed
2011-02-25 16:29:16 +05:30
kishan
44d60576f9
bug 8606: changed network offering event names. Use Assign/remove instead of create/delete
...
status 8606: resolved fixed
2011-02-25 15:26:55 +05:30
kishan
0f47eac637
bug 7842: Add account_id to user_context during create network
2011-02-25 13:15:46 +05:30
Frank
5035778b1a
Bug 8208 - bare metal provisioning
...
StartCommand cloud reach to BareMetalResrouce
2011-02-24 19:22:34 -08:00
Edison Su
f383e5a37d
security group is per vm per nic
2011-02-24 19:58:19 -05:00
Edison Su
8a40371288
refactor security group in advanced network mode: use direct tagged network instead of public network
2011-02-24 19:58:18 -05:00
alena
970e0ab320
Removed unused imports
2011-02-24 19:47:25 -08:00
alena
66455c0767
bug 8702: return events for removed account when "account" parameter is specified in listEvents command
...
status 8702: resolved fixed
2011-02-24 19:15:36 -08:00
alena
f8993d9ec4
Fixed NPE in vm expunge process - when cleanup static nat rules after corresponding vm is expunged, make search for guest Nic including removed.
2011-02-24 18:27:55 -08:00
alena
9e622c6a6c
bug 8726: escape ", ', &, <, > special chars in xml response
...
status 8726: resolved fixed
2011-02-24 17:11:28 -08:00
alena
039b11b9ba
1) Added guestIpType to the network offering; create/listNetworkOffering apis got changed accordingly.
...
2) Set traffic Type to be Guest for Direct/Virtual non-system default network offerings. Use this guestIpType during the network creation/implementation
2011-02-24 15:36:01 -08:00
Frank
f82dec999d
Bug 8208 - bare metal provisioning
...
complete createVirtualMachine method
2011-02-24 14:07:10 -08:00
Edison Su
cf6d430f66
return security group status per zone
2011-02-24 14:16:35 -05:00
Alex Huang
a6ac728761
cleanup script is also running now as well
2011-02-24 11:35:49 -08:00
alena
b0aabc1b20
bug 8682: implemented search by id in listPortForwardingRules
...
status 8682: resolved fixed
2011-02-24 09:55:03 -08:00
kishan
8eb665246e
bug 7935: Included hypervisor type to vm usage records
...
status 7935: resolved fixed
2011-02-24 20:08:12 +05:30
kishan
f138552f36
bug 8603: Included netwrok_id in network usage records
...
status 8603: resolved fixed
2011-02-24 15:31:59 +05:30
alena
57f6b16cdb
bug 8719: fixed NPE happening during HA process - get control nic infrormation in finalizeCommandsOnStart() method instead of setting it in caller methods
...
status 8719: resolved fixed
2011-02-23 19:35:22 -08:00
alena
54b3fff123
When network is removed, remove it from network GC list
2011-02-23 18:56:54 -08:00
alena
1f1e393b03
Release vnet during network shutdown for guest networks only
2011-02-23 18:50:23 -08:00
alena
6424042cac
bug 8659: deleteNetwork is async now
...
status 8659: resolved fixed
2011-02-23 18:01:33 -08:00
alena
63cff8de26
Regular user is allowed to create Guest networks only; throw an error when he tries to use networkOffering with trafficType Public
2011-02-23 18:01:33 -08:00
alena
6cecbdbee9
bug 8663: limit cidr size if network is being created by non Root admin
...
status 8663: resolved fixed
2011-02-23 18:01:33 -08:00
Frank
828f8c9493
Bug 8208 - bare metal provisioning
...
Able to add cluster and host
2011-02-23 17:20:43 -08:00
Kelven Yang
0cd0703c81
Bug 8717: Move VMwareGuru to premium
2011-02-23 16:10:21 -08:00
Edison Su
adbd20ca5a
bug 8655: add security group for direct tagged network
2011-02-23 15:53:14 -05:00
Edison Su
37cb0ae2c9
add security group for direct tagged vlan
2011-02-23 15:52:04 -05:00
kishan
0ce385ecf2
bug 8569: Changed default events purge delay to 15 days
...
status 8569: resolved fixed
2011-02-23 21:34:47 +05:30
Alex Huang
b6056bc0b1
missing files
2011-02-22 19:12:10 -08:00
Frank
b313b7c852
Add bare metal stuff to addHost command
...
add ipmi.py
2011-02-22 19:07:07 -08:00
Alex Huang
c22b37e402
latest work on db migration
2011-02-22 18:23:05 -08:00
Kelven Yang
1d8eab2a11
Let reset job description to be in API standard
2011-02-22 17:40:05 -08:00
anthony
94a9c86f46
try to send create command to the host where cpu&memory is allocated first
2011-02-22 16:44:58 -08:00
Kelven Yang
f443f7d409
Set default values for global variables that use programmatic constants (CPU speed/RAM size)
2011-02-22 16:28:31 -08:00
Kelven Yang
2f3a1ccd60
When secondary storage is not running inside SSVM, let FOSS SecondaryStorageDiscoverer be able to dynamically load premium version of the secondary storage resource
2011-02-22 15:39:22 -08:00
Frank
77fadf5c7f
Revert 61a414fb8f
...
don't dynamically inject premium stuff
2011-02-22 14:39:02 -08:00
abhishek
d73d12b905
bug 8641: removing the status field from the volume response
2011-02-22 14:07:26 -08:00
abhishek
1afc62e98f
bug 8216: creating a vol from a snapshot will take in a priv disk offering id, which is used only for the tags; size is still taken from the original vol which the snapshot is based off of
2011-02-22 12:06:00 -08:00
abhishek
25f27674ce
bug 8641: adding a volume state in addition to volume status
...
status 8641: resolved fixed
2011-02-22 09:55:08 -08:00
alena
e4765fb32b
bug 6969: return jobId/jobStatus for IpAddress and SecurityGroup as ids for these objects were introduced in 2.2.x
2011-02-22 09:09:55 -08:00
nit
2efdc9d62b
bug 8471: Check whether secondary storage URL is null when copying volumes across storage pools.
2011-02-22 17:49:56 +05:30
kishan
003787a69a
bug 8613: Added accountId to listUsageRecords API, use active account incase of multiple account with same name
...
status 8613: resolved fixed
2011-02-21 19:38:08 +05:30
kishan
60ecb564ea
bug 8613: Added accountId to listUsageRecords API, use active account incase of multiple account with same name
...
status 8613: resolved fixed
2011-02-21 19:07:41 +05:30
Frank
61a414fb8f
Inject permium stuff into systemvm.iso when managment server start
2011-02-20 16:13:30 -08:00
Kelven Yang
fa96deec28
Make secondary storage VM support premium version and opensource version
2011-02-18 17:10:20 -08:00
anthony
33b763d703
bug 8582: allow create snapshot policy with unattached volume
...
status 8582: resolved fixed
2011-02-18 14:52:15 -08:00
abhishek
7c32b2da62
bug 8584: enabling search by id for regular users and domain admins for service offerings
...
status 8584: resolved fixed
2011-02-18 14:09:39 -08:00
alena
15f59e6f58
bug 8637: throw ResourceAllocationException when resource limit is exceeded.
...
status 8637: resolved fixed
2011-02-18 12:26:58 -08:00
abhishek
13ceb54bba
bug 8653: filtering system vols from user's view
...
status 8653: resolved fixed
2011-02-18 12:03:51 -08:00
Kelven Yang
8695e7250c
Update template and storage manager to allow hypervisor based command delegation
2011-02-18 11:37:50 -08:00
abhishek
7aa18d4fe2
bug 8600: cleaning up remote access vpns and users as part of delete account
...
status 8600: resolved fixed
2011-02-18 11:11:43 -08:00
alena
cd90bc7166
bug 8412: allow to delete network when it has dhcp/domRs
...
status 8412: resolved fixed
1) Don't count domR/Dhcp nic in active nics.
2) Removed domR cleanup thread; Network shutdown thread would shutdown domR/dhcp when network has no active vms
2011-02-18 10:31:59 -08:00
alena
504ab73ae5
Sync on network instead of ipAddressId when do create PF/StaticNat/LB rules
2011-02-17 16:13:28 -08:00
alena
96ef94eb37
ShutdownNetwork - added reservationContext parameter (contains account/callerUserId)
2011-02-17 16:13:28 -08:00
abhishek
13fc3b0dd8
bug 8452: more delete domain specific changes
2011-02-17 15:29:13 -08:00
abhishek
2275d8d833
bug 8452: introducing a state for domain; blocking creation of accounts/users whilst domain is in an inactive state
2011-02-17 15:17:45 -08:00
anthony
6dcbd3bbfd
use returned VO
2011-02-17 15:11:38 -08:00
alena
8978839d96
bug 8617: Disable firewall/lb/vpn service for Direct network offering, so when user tries to create PF/LB rule for direct IP address, it fails.
...
status 8617: resolved fixed
2011-02-17 14:31:05 -08:00
abhishek
3d7c61bf8b
bug 8452: forcing vm stop whilst disabling account
...
status 8452: resolved fixed
2011-02-17 13:57:04 -08:00
Alex Huang
c6efb2b09d
bug 8529: propagated to master. Added junit test support to ant
2011-02-16 17:40:59 -08:00
Alex Huang
6b0d4947ed
bug 8529: propagated to master. Added junit test support to ant
2011-02-16 17:40:58 -08:00
anthony
21303ea1aa
bug 8567: use current time to schedule snapshot
...
status 8567: resolved fixed
2011-02-16 16:03:09 -08:00
alena
6913ed21c5
bug 8572: added more restrictions for network's domain name (see below)
...
status 8572: resolved fixed
1) As full domain name may not exceed a total length of 253 characters, and host name can be 63 chars long, so don't allow network domain length to exceed 190 chars.
2) Each label can have up to 63 chars
3) The characters allowed in a label are a subset of the ASCII character set, and includes the characters a through z, A through Z, digits 0 through 9, and the hyphen.Labels may not start or end with a hyphen.
2011-02-16 15:53:47 -08:00
alena
53adcc64a6
bug 8572: don't allow vm host name to start with digit. Also removed name uniqueness constraint as vm host name doesn't have to be unique even inside the same network
2011-02-16 15:53:47 -08:00
alena
1d031e64b8
bug 8334: throw an error when try to create a network with the settings belonging to existing network
...
status 8334: resolved fixed
2011-02-16 15:53:47 -08:00
anthony
569bbfe585
bug 8513: creating volume from snapshot depends on the original volume
...
status 8513: resolved fixed
2011-02-16 15:47:05 -08:00
anthony
893f8b5f73
bug 8525: we can't create template from snapshots belonging to one volume at the same time
...
status 8525: resolved fixed
2011-02-16 15:37:09 -08:00
Jessica Wang
eb7d531456
bug 8577: Make listAlerts API take in id parameter.
2011-02-16 15:35:34 -08:00
Jessica Wang
35397d7176
bug 8577: Make listEvents API take in id parameter.
2011-02-16 15:20:05 -08:00
Jessica Wang
c475aacc08
bug 8578: make listRouters API take in id parameter.
2011-02-16 15:06:11 -08:00
abhishek
de4b79bd6d
fixing pagination issues with listVolumes
2011-02-16 14:58:52 -08:00
anthony
80a328034c
bug 8609: when failed to start a VM in HA (due to domr is not migrated), a runtimeException is thrown out, caused HA for this VM is not resheduced.
...
status 8609: resolved fixed
2011-02-16 14:20:28 -08:00
alena
b0e4ecb3af
bug 7901: Prevent using the same cidr for POD and zone's virtual network
...
status 7901: resolved fixed
2011-02-16 11:17:20 -08:00
alena
8654aa3833
bug 6366: allow to extend pod private ip range even when there are allocated private ip addresses in the pod
...
status 6366: resolved fixed
2011-02-16 10:51:53 -08:00
alena
4ae5734ab0
createPod/editPod: don't allow gateway to overlap start-end ip range
2011-02-16 10:51:53 -08:00
alena
e573e66074
bug 8502: allow to edit pod name in all the cases; even when pod has resources allocated
...
status 8502: resolved fixed
2011-02-16 10:51:53 -08:00
Kelven Yang
d78cea1cea
fix merge conflicts
2011-02-15 17:08:01 -08:00
Kelven Yang
43c82d03d8
UTF-8 fix - make encoding work across GET/POST
2011-02-15 17:06:29 -08:00
alena
a05400604b
bug 8565: throw unsupported error code when non existing api command is sent
...
status 8565: resolved fixed
2011-02-15 16:01:09 -08:00
Chiradeep Vittal
db2bd762a8
bug 8604: ensure .ssh directory is created before trying to write keys there
2011-02-15 15:40:28 -08:00
alena
42ddf74bc5
bug 8284: don't allow to create static nat rules for 2 different ip addresses and the same vm.
...
status 8284: resolved fixed
2011-02-15 13:52:00 -08:00
alena
c11a9c18e2
bug 8381: disassociateIpAddress is async now
2011-02-15 12:24:18 -08:00
alena
9c2db92b63
Fixed the bug when port forwarding rules were not reset correctly on domR restart/start (multiple public ip addresses case)
2011-02-15 10:49:46 -08:00
alena
d9dfd37bd4
Reapply static nat rules when domR starts/reboots
2011-02-15 10:45:28 -08:00
alena
d80caf24fd
bug 8564: Changed implementation for static nat rules. Now we use separate interfaces instead of PortForwardingRules interfaces.
...
status 8564: resolved fixed
2011-02-15 10:45:28 -08:00
Kelven Yang
a0c48d7fa1
1) Rename console-common to console so that Eclipse project name is the same as folder name
...
2) Fix UTF encoding issue at servlet response
2011-02-15 10:04:06 -08:00
abhishek
1aab49fd8f
bug 8547: some additions to the config vars to better indicate the units they use
...
status 8547: resolved fixed
2011-02-14 14:28:15 -08:00
alena
8cd7426dd0
bug 8455: for static nat port range don't allow start port to be bigger than end port
...
status 8455: resolved fixed
2011-02-11 17:43:56 -08:00
alena
0938509bc0
bug 7341: introduced search by id/vmId to listIpForwardingRules command
...
status 7341: resolved fixed
2011-02-11 17:14:34 -08:00
Alex Huang
7dd54f079b
started vms with these latest
2011-02-11 17:03:04 -08:00
Alex Huang
b0f0efa29b
more changes to make it work better in a cluster
2011-02-11 17:03:04 -08:00
Alex Huang
db7bc893b9
added cluster awareness to vm start/stop
2011-02-11 17:03:04 -08:00
alena
cb73c1e1fa
Fixed NPE in deleteAccount code - when shutdown the network, always set reservation context with account/userCaller information
2011-02-11 12:06:04 -08:00
Kelven Yang
3113ae4993
Add display name to user VM in console title
2011-02-11 11:43:00 -08:00
alena
829c865133
router.ram.size global config is hidden now as it's used by system only
2011-02-11 11:38:02 -08:00
abhishek
5d1d9ec387
bug 8263: allowing a private zone to be made public
2011-02-11 11:35:07 -08:00
nit
e901ccfe07
bug 8498: Make osTypeId optional. Introdue a new OS type None to be shown for non bootable ISOs. Add check that when the ISO is bootable a valid osTypeId gets passed
2011-02-11 18:44:26 +05:30
anthony
0db879d053
reduce lock granularity
2011-02-10 20:11:45 -08:00
alena
3328ec5d2d
Fixed the bug when dhcp server wasn't started for Direct netwok on JuniperSrx setup
2011-02-10 19:12:10 -08:00
anthony
6501bcd3c4
bug 8518: replytimeout is not set
...
replytimeout is set to 10 min for XenServer
status 8518: resolved fixed
2011-02-10 18:59:42 -08:00
Kelven Yang
737954bed8
1) prepare to seperate volume/snapshot logic to secondary storage VM
...
2) Add vmware.service.console configuration variable to allow customized VMware setup
2011-02-10 16:41:19 -08:00
alena
4054d7e2b5
Store ip address as String instead of Long in user_ip_address and port_forwarding_rules tables
2011-02-09 19:35:03 -08:00
alena
7e6570570d
bug 8515: Allow only positive non zero numbers for "max" parameter in createSnapshotPolicy
...
status 8515: resolved fixed
2011-02-09 19:35:03 -08:00
alena
7b13c89956
bug 8493: Don't allow to create a snapshot policy with max value exceeding domain/account snapshot limit
...
status 8493: resolved fixed
Also increase/reduce resource count when recurring snapshot is taken/removed
2011-02-09 19:35:03 -08:00
alena
74e878ea7f
Fixed xml doc writer
2011-02-09 19:35:03 -08:00
Kelven Yang
597ca9597b
Bug 8401: avoid race condition between expunge worker and api execution
2011-02-09 15:58:47 -08:00
Kelven Yang
091b5850b3
Explicitly specify CPU speed for all system VMs, speed of 0 no longer works for VMware
2011-02-09 15:08:06 -08:00
Edison Su
25a9236438
add shuffling back
2011-02-09 14:24:32 -05:00
anthony
b3256c6971
if it is empty snapshot, set setBackupSnapshotId to null, before remove it
2011-02-09 14:23:46 -08:00
anthony
b7b0501150
list recurring snapshot if volumeId and interval are specified
2011-02-09 13:57:46 -08:00
Edison Su
08285af33f
fix capacity caclulation issue after migration
2011-02-09 13:33:42 -05:00
anthony
4fb3beed76
return more meaningful error message for create snapshot/snapshot policy for volume which is not attached to a VM
2011-02-09 11:48:16 -08:00
nit
82506ff8d0
bug 8493: Check for resource limit for manual snapshots.
2011-02-09 19:01:39 +05:30
kishan
77719be46a
bug 8465: track network usage per router in user_statistics table
...
status 8465: resolved fixed
2011-02-09 18:38:41 +05:30
nit
67a92e3f1d
bug 8493: Check for resource limit for copy templates/ISO between zones.
2011-02-09 15:49:33 +05:30
nit
3bd3dacf9e
bug 8493: Check for resource limit for create template from volume/snapshot.
2011-02-09 15:49:32 +05:30
anthony
16366fb4e0
bug 8481: root cause is the old way to get vdi parent sometime doesn't work
...
status 8481: resolved fixed
2011-02-08 21:10:52 -08:00
alena
558e16c50e
Save vnet range in data_center table when do deploy from server-setup.xml in Dev environment
2011-02-08 19:18:52 -08:00
alena
ab6ea4d6ef
bug 8491: remove corresponding record from resource_limits table when limit is updated with -1 value
...
status 8491: resolved fixed
2011-02-08 19:08:35 -08:00
alena
1c7049ef26
Forgot to write login/logout commands to domainAdmin/regularUser api xml doc
2011-02-08 16:28:58 -08:00
abhishek
2d3b6cc310
changing the disk offering response object, to always return the disk size in gb
2011-02-08 15:43:52 -08:00
Alex Huang
c22d4948d0
Added context to ha work
2011-02-08 15:38:26 -08:00
Alex Huang
b92fc074aa
added forced paramter to stop apis
2011-02-08 15:38:26 -08:00
alena
0bdefe03ae
Added login/logout command generation to xml api doc generator
2011-02-08 15:25:55 -08:00
will
c89ad5ae7b
bug 8485: Merge from 2.2.x. Fixed ClassCastException with returning the login response in xml format
2011-02-08 15:22:40 -08:00
alena
f16cb1caf2
Logs statements cleanup
2011-02-08 14:14:52 -08:00
abhishek
f0f643dffe
adding exceptions so that we can use login and logout commands via 8080
2011-02-08 14:06:33 -08:00
Alex Huang
0abd36c96f
Change the wording in log
2011-02-08 13:39:50 -08:00
Edison Su
0bd6950bb8
fix wrong configuration for oss
2011-02-08 13:22:27 -05:00
abhishek
73eb597ba6
bug 8335: adding the security group objects to the list virtual machines response
2011-02-08 11:48:39 -08:00
alena
83209e53bc
bug 8479: remove direct account specific network as a part of account cleanup. Before public direct ip addresses weren't released as a part of nic cleanup - deallocate() method was missing in DirectNetworkGuru
...
status 8479: resolved fixed
2011-02-08 10:47:05 -08:00
Edison Su
169ac1ce57
bug 8464,8404: allocator is not move reserved resource to used resource, in some case
...
status 8464: resolved fixed
status 8404: resolved fixed
2011-02-08 10:32:14 -05:00
Edison Su
4fe6219754
bug 8474: fix attaching ISO to xenserver vm
...
status 8474: resolved fixed
2011-02-08 10:04:56 -05:00
alena
44607a8960
bug 8473: fixed NPE in listUserVms - do "includingRemoved" when search for vm's host.
...
status 9473: resolved fixed
2011-02-08 09:43:03 -08:00
kishan
75e596bb80
bug 7952, 8363: Fixed usage events for Vm destroy and recover
...
status 7952, 8363: resolved fixed
2011-02-08 16:57:46 +05:30
nit
a3b1609199
bug 8463: Decrease the resource_count if vm fails to Start and goes to ERROR state.
...
status 8463: resolved fixed
2011-02-08 16:52:09 +05:30
kishan
2a6bef2750
seperating service API call form internal calls for revoke port forwarding rule
2011-02-08 12:34:04 +05:30
anthony
213ea43f63
for the last host
2011-02-07 20:07:14 -08:00
abhishek
bc4357f7dd
bug 8456: fixing the upgrade issue
...
status 8456: resolved fixed
2011-02-07 18:34:37 -08:00
anthony
c85e13fbf9
bug 7635: stop vms if this host is the last one in cluster , when put this host into maintenance mode
...
status 7635: resolved fixed
2011-02-07 18:31:16 -08:00
anthony
88ff55849d
for detachISO command, iso for this VM is removed in DB even if the detachISO fails. Then after stop/start VM , the iso for this VM is gone
2011-02-07 17:50:02 -08:00
alena
9614a64636
bug 8445: listVms with keyword - don't do LIKE search for State field
...
status 8445: resolved fixed
2011-02-07 17:46:24 -08:00
alena
49392355b8
Don't allow to enable remote access vpn when domR is in Starting state
2011-02-07 17:46:24 -08:00
anthony
ed197ae971
bug 8458: check if attachISO is successful before update DB
...
status 8458: resolved fixed
2011-02-07 17:34:13 -08:00
Alex Huang
5d796c718b
bug 7612: fixed a bug where if start when through all retries, we throw an exception
2011-02-07 17:17:34 -08:00
abhishek
cb5b1e60f3
bug 8439: changes in service/disk offerings
...
status 8439: resolved fixed
2011-02-07 17:11:28 -08:00
alena
0082b8435a
Fixed account security checks for domain admins in following commands:
...
* listPortForwardingRules
* listIpForwardingRules
* listRemoteAccessVpns
* listVpnUsers
2011-02-07 16:24:34 -08:00
Alex Huang
b322fb072f
bug 8186: Changed the investigator to use the new networking
2011-02-07 16:04:23 -08:00
abhishek
3343aa890f
bug 8427: resolving the class cast exception
...
status 8427: resolved fixed
2011-02-07 13:30:12 -08:00
alena
5c2bbf48f0
Fixed NPE in listAsyncJob apis: don't include instanceId/instanceType in the response when these values are null
2011-02-07 13:02:05 -08:00
Alex Huang
c6fe6f2f45
Removed all the stats command/answer from debug logging
2011-02-07 12:50:22 -08:00
alena
a502b497f2
bug 8446: fixed creating volume from diskOffering with custom size
...
status 8446: resolved fixed
2011-02-07 12:42:46 -08:00
alena
807562da50
bug 8424: fixed NPE in vmExpunge thread - set accountId for UserContext to the vm's ownerId (this value is being read by UsageEvents generator)
...
status 8424: resolved fixed
2011-02-07 12:13:59 -08:00
Alex Huang
bee6953e09
ha done? needs testing
2011-02-07 10:58:25 -08:00
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
Alex Huang
68464d6f66
removed unused dns
2011-01-24 17:50:32 -08:00
Alex Huang
c59e576a51
removed unused dns
2011-01-24 17:50:32 -08:00
Alex Huang
65034995a3
removed unused guest ip fields from system vm
2011-01-24 17:50:32 -08:00
Alex Huang
1a7617bb95
removed unused vlan fields from system vm
2011-01-24 17:50:32 -08:00
alena
851d7c2bd2
Use correct searchBuilder in NicDao
2011-01-24 17:29:54 -08:00
abhishek
b714f1170c
bug 8097: introducing an optional zoneId param whilst listing hypervisors
...
status 8097: resolved fixed
2011-01-24 17:24:31 -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
38ab26bcb0
ovs tunnel network -- add lock entry in ovs_tunnel_account
2011-01-24 13:47:34 -08:00
abhishek
334c41a7e8
using the accessor method instead of the obj directly
2011-01-24 13:43:11 -08:00
abhishek
ab87e10ad1
bug 7970: some more improvements to the storage maintenance with 2 pools
...
status 7970: resolved fixed
2011-01-24 11:27:52 -08:00
Frank
639ddbb45c
ovs managers: handle execption along with Alex's convention
2011-01-24 10:06:07 -08:00
alena
6304a92c23
bug 7881: fixed publicIpAllocation to an account.
...
status 7881: resolved fixed
Also fixed the issue with account delete when nonSourceNat ip addresses were not being released
2011-01-24 10:03:18 -08:00
abhishek
1ff8d98d4c
bug 7892: ensuring backward compatibility for list and create cmds
...
status 7892: resolved fixed
2011-01-24 09:56:08 -08:00
kishan
dcd12c213c
bug 7951: Added source nat field for ip address usage
...
status 7951: resolved fixed
2011-01-24 17:09:11 +05:30
kishan
956b678ed4
bug 7857: Added netwrork usage create command to router start command
...
status 7857: resolved fixed
2011-01-24 12:20:38 +05:30
abhishek
3ecbc93643
fixing a users listing issue
2011-01-21 17:45:05 -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
0dc959c23f
removing guest ip address during ip assoc from java layer
2011-01-21 17:27:13 -08:00
abhishek
067811475f
introducing an embedded user obj anytime we create an account, as a response
2011-01-21 16:00:48 -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
alena
26b6d17ec6
bug 8139: Allow to have Virtual and Direct networks with the same vlanId
...
status 8139: resolved fixed
2011-01-21 15:14:08 -08:00
Alex Huang
73e5a789d1
removed useless code
2011-01-21 12:10:50 -08:00
Alex Huang
48ec23ce95
Removed a bunch of useless code
2011-01-21 12:10:50 -08:00
Kelven Yang
4503222409
Bug:6510 add VM state check
2011-01-21 11:57:18 -08:00