Alena Prokharchyk
2c2dfdc507
bug 12237: fixed listSnapshots to work correctly with projectId
...
status 12237: resolved fixed
2011-12-06 16:43:58 -08:00
Alena Prokharchyk
7b8287d323
bug 10804: Api and middle layer support for default route feature
2011-12-05 14:53:45 -08:00
Alena Prokharchyk
a4773b7080
bug 12291: listVms - show non-project resources only if no projectId specified
...
status 12291: resolved fixed
2011-12-02 15:17:50 -08:00
Abhinandan Prateek
660891b405
bug 8962: adding a check for disabled accounts
2011-11-29 12:40:58 +05:30
Alena Prokharchyk
afb56d2112
bug 11492: check volume resource limit when deployVm
...
status 11492: resolved fixed
2011-11-28 13:38:32 -08:00
Alena Prokharchyk
586febd4c1
bug 11965: check the user state on the Services layer, not in the VmManager as VmManager can be called not only from the API, but also by internal methods - HA for instance - and in this case we shouldn't care about the account state
...
11965 status: resolved fixed
Also fixed gson serialization error in account response
2011-11-28 10:05:19 -08:00
Abhinandan Prateek
88f9b1ab7c
bug 8962: review changes incorporated
2011-11-25 15:03:45 +05:30
prachi
0dc7fb48a1
Bug 11962 - MigrateVirtualMachine fails with AgentUnavailableException when the targeted host for migration is under Maintenance
...
Bug 11964 - You are allowed to migrate a virtual machine on to the host that it already exists o
Changes:
Validations were missing in th MigrateVmCmd API, since from UI the validations are always done while listing hosts for migration as first step.
2011-11-21 17:12:36 -08:00
Nitin Mehta
ec3a00a230
bug 10281: Template/ISO APIs should throw an exception in failure case for the events to be registered as failure.
...
Reviewed by : Kishan.
status 10281: resolved fixed
2011-11-21 18:58:06 +05:30
Alex Huang
84d5f0514e
Changed network tags to network name as we no longer need to send the entire network tags down to the resource.
2011-11-18 14:28:16 -08:00
Alena Prokharchyk
5571afa471
Virtual router elements: prepare nics only when VirtualRouter is a provider for at least one service in the network
2011-11-17 14:33:22 -08:00
Alena Prokharchyk
790b33bdfc
More validation to network and network offering creation/upgrade
2011-11-16 14:53:38 -08:00
Kelven Yang
277c60e4f6
bug 11814: Allow template to have details info in key/value pairs.
2011-11-15 15:01:46 -08:00
Alena Prokharchyk
bb2a8cf7ea
NaaS: added "subdomainAccess" parameter to domain level network object. The parameter defines whether the network can be accessed from the subdomains. If the parameter is not specified, it would be defaulted to allow.subdomain.network.access Global Config param
2011-11-14 18:13:47 -08:00
Alena Prokharchyk
039e09ce93
* Introduced aclType parameter for createNetwork command (can hold 2 values now: Account and Domain). This parameter defines the access control type to the network object. If it's account -
...
only owner of the network can access it; if it's domain - all accounts in the domain and domain children can have an access.
* aclType replaces 2 old fields: isShared and isDomainSpecific.
* All 2.2.x account specific networks will have aclType=Account; 2.2.x Domain specific networks - aclType=domain; 2.2.x Zone level networks - aclType=Domain with domainId = Root domain id
2011-11-10 18:34:56 -08:00
Alex Huang
f6fcaa49ec
Merge complete except for virtualnetworkappliancemanager
2011-11-10 15:18:16 -08:00
Nitin
e2e7da3ff4
bug 11428: Under VMware with current version, for snapshot related related operations,
...
1) if snapshot is originally created from root volume, allow only CreateTemplateCommand from snapshot 2) if snapshot is originally created from data volume, allow only CreateVolumeCommand from snapshot Reviewed by - Kishan
status 11428: resolved fixed
2011-11-09 16:33:09 +05:30
alena
3a845d2d75
Keep Service/Provider map per network as well as per networkOffering (to handle the case when there are multiple providers defined for the same service in the network offering, and only one is picked when the network is created)
2011-11-07 16:16:03 -08:00
Abhinandan Prateek
267b12d015
bug 11709: saving encrypted password in db
...
status 11709: resolved fixed
2011-11-03 15:40:20 +05:30
alena
3e20c60d6d
Fixed vm deployment in Basic zone
2011-11-02 17:02:44 -07:00
alena
f42c9e434f
Basic zone: the System Guest network offering can be created from any Shared Guest network offering.
...
Limitation:
* in order to make the networkOffering choice, only one Shared network has to be Enabled at the moment when Basic zone is being created
2011-11-02 15:44:53 -07:00
alena
2250dff349
1) Removed tags from the network object
...
2) Get hypervisor tags from the physical network instead.
2011-11-01 17:42:06 -07:00
alena
9560e92015
physicalNetworkId is optional in createNetwork api. Works as follows:
...
* can be specified for Shared network only
* if not specified for the Shared networks, try to locate it based on the zoneId and tags. If tags is not null, pick up first physicalNetwork from the zone that has matching tags. If tags is null, and there are none/more than 1 physical netwroks in the zone, error out.
2011-11-01 15:49:39 -07:00
alena
be21a5e37c
Don't allow enabling securityGroup service for Isolated networks
2011-11-01 13:09:14 -07:00
alena
80dc2c0b1a
Don't send security group commands to the backend when 1) securtiy group service is disabled in the network offering and 2) security group service provider is supported on the physical network
2011-11-01 12:07:32 -07:00
anthony
46dac852fa
Merge branch 'swift'
...
Conflicts:
server/src/com/cloud/agent/AgentManager.java
server/src/com/cloud/agent/manager/AgentManagerImpl.java
server/src/com/cloud/host/dao/HostDao.java
server/src/com/cloud/host/dao/HostDaoImpl.java
server/src/com/cloud/resource/ResourceManagerImpl.java
server/src/com/cloud/server/ManagementServerImpl.java
server/src/com/cloud/storage/download/DownloadMonitorImpl.java
server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
2011-10-31 15:04:48 -07:00
Abhinandan Prateek
abb37acbdd
bug 8962: added usage related and resource count related code, changed the API name as suggested. Incorporated relevant review comments
2011-10-31 16:35:42 +05:30
root
a572205e3c
Revert "bug 11311: vm summary command initial impl"
...
This reverts commit 0abc7e2ea8b9e222f1927aea72d46240bfe8c534.
2011-10-30 15:13:58 +05:30
Abhinandan Prateek
f456462443
bug 11311: vm summary command initial impl
2011-10-28 14:07:19 +05:30
alena
b413a625f4
1) replaced joinProject API with updateProjectInvitation api. You can accept/decline the invitataion with this command
...
2) Added deleteProjectInviation command. Can be executed by project admin only
2011-10-27 18:32:00 -07:00
alena
d315e57b0e
Renamed "type" to "guestType"
2011-10-27 16:51:42 -07:00
alena
fe0b685e95
Security group is a service now
2011-10-27 16:49:20 -07:00
Sheng Yang
e1e96c0bb3
NaaS: Add ServiceProviders
...
Added PortForwardingServiceProvider, StaticNatServiceProvider, rename
PasswordServiceProvider to UserDataServiceProvider(may rename to a better name
later).
Add related function for service providers.
2011-10-27 11:55:10 -07:00
frank
cef30956e9
Merge branch 'newagentmgr'
...
Conflicts:
agent-simulator/src/com/cloud/api/commands/ConfigureSimulator.java
ovm/src/com/cloud/ovm/hypervisor/OvmDiscoverer.java
server/src/com/cloud/agent/manager/AgentManagerImpl.java
server/src/com/cloud/capacity/CapacityManagerImpl.java
server/src/com/cloud/network/F5BigIpManagerImpl.java
server/src/com/cloud/network/JuniperSrxManagerImpl.java
server/src/com/cloud/resource/ResourceManagerImpl.java
server/src/com/cloud/server/ManagementServerImpl.java
server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
server/src/com/cloud/vm/UserVmManagerImpl.java
server/src/com/cloud/vm/VirtualMachineManagerImpl.java
utils/src/com/cloud/utils/db/GenericDao.java
2011-10-27 11:09:56 -07:00
alena
525a0a7675
1)Changed implementation for restart network: call shutdown/implement methods as a part of it
...
2)Re-apply all existing firewall rules as a part of implement call. TODO: Cleanup all existing rules from the backend (leave them in the DB) as a part of shutdown call
2011-10-25 18:24:24 -07:00
frank
1460f3950e
Bug 9949 - revert VM to template
...
1. able to restore VM from its original template
2. Only allow to restore when VM is running or stopped
3. after restoring, VM state will not change, e.g. running is still running
status 9949: resolved fixed
2011-10-25 13:52:39 -07:00
prachi
780e0efe79
Removing references to DataCenter - providers, using the networkoffering -> providers map instead.
...
TODO:
- Still leaving the provider columns in data_center schema as-is for CloudKit and BareMetal
- ExternalNetworkDeviceMgrImpl still needs to fix the dataCenter.setProviders calls and externalNetworkApplicance usage checks to see if zone has external networking.
2011-10-24 18:06:33 -07:00
alena
75c8e33226
Removed guestIpType from network/networkOffering
2011-10-24 17:05:00 -07:00
Edison Su
92eaf49f29
Add storage migration
2011-10-24 15:59:47 -07:00
anthony
19df7ed8af
Swift; create template from snapshot
2011-10-21 17:32:48 -07:00
anthony
6c5c24dd6b
swift: create volume from template works
2011-10-21 12:53:58 -07:00
alena
219978a9be
Create network using physical network id
2011-10-20 18:25:13 -07:00
alena
ceda05298e
Deprecate guestIpType in networkOffering api. Use type (Shared/Isolated) instead
2011-10-19 16:38:39 -07:00
frank
65f3bb1df5
Bug 11647 - OVM - no support for migrate instance
...
return available hosts when hypervisor type is Ovm
status 11647: resovled fixed
2011-10-17 16:26:32 -07:00
alena
c00058adc2
Added type (Shared/Isolated) to the networkOffering/networks
2011-10-13 17:33:41 -07:00
frank
cd6b872f8d
Bug 11670 - OVM - HA failed when host is disconnected from network
...
status 11670: resolved fixed
2011-10-13 14:46:36 -07:00
Sheng Yang
0121c0516d
Network: Add Service providers
...
In the past, the NetworkElement would cover almost all the functionality that
e.g. virtual router can cover: firewall, source NAT, static NAT, password,
VPN... So anyone want to implement the NetworkElement would have to implement
these service's specific methods, even it wouldn't support it. Also, if we want
to find a e.g. FirewallServiceProvider, we have to proceed all the current
network service providers, to call a method to know if it support such service.
That's neither elegant nor scaling way to do it.
As the first step, this patch separates each ServiceProvider from NetworkElement
(there are some interface already out of NetworkElement, so this patch slightly
modifies them too), and only the class would implement the correlated interface, would
have the ability to do these services.
2011-10-10 11:45:39 -07:00
Edison Su
962bbcd5a0
bug 11634: add manual vm migration support for kvm
...
status 11634: resolved fixed
2011-10-10 11:31:18 -07:00
frank
0f5384d086
Bug 11522 - New agent manager
...
move findxxx interface from HostDao to Managers
2011-10-06 11:56:17 -07:00
alena
25c2734e03
More stuff to Projects feature - added support for adding resources (vms, templates, isos) to the project
2011-10-05 13:24:25 -07:00
prachi
9bd5e5871b
Bug 11481 - get manual live migration working with all VMs
...
Changes:
- Added a new API 'migrateSystemVm' backed by MigrateSystemVMCmd.java to migrate system VMs (SSVM, consoleproxy, domain routers(router, LB, DHCP))
- This is Admin only action
- The existing API 'migratevirtualmachine' is only for user VMs
2011-09-29 17:47:46 -07:00
alena
12e25fb988
Implemented vm* api commands to be executed against the project
2011-09-29 10:20:51 -07:00
alena
ccd47c1b21
Implemented Project Invitations
2011-09-26 17:47:20 -07:00
alena
a1cab92ae1
bug 11537: revoke related FirewallRules when do vmExpunge and ipAddress release.
...
status 11537: resolved fixed
Reviewed-by: edison@cloud.com
Conflicts:
server/src/com/cloud/network/firewall/FirewallManagerImpl.java
server/src/com/cloud/vm/UserVmManagerImpl.java
2011-09-22 14:01:02 -07:00
alena
9f9b60a287
1) Added resource limits for the Projects - the same as for the account
...
2) Added "Project" limit type for the Domain object
2011-09-21 17:09:49 -07:00
alena
a1331d1cfc
Intermidiate checkin to Project feature:
...
1) Introduce new managers - ProjectManager and DomainManager. Moved all domain related code from AccountManager to DomainManager.
2) Moved some code from ManagementServerImpl to the correct managers.
3) New resource limit for Domain - Project
2011-09-20 18:35:28 -07:00
prachi
df17ce5648
Bug 11457 - NullPointerException while synching VM state from Starting -> Running between management server and agent
...
reviewed-by: Alex/Kelven
Changes:
1. UserVmManagerImpl :: finalizeStart()
Added null check for the cmds.getAnswers() object. Return ‘true’ if null.
2. VirtualMachineManagerImpl :: advanceStart()
Move the line to set PodId to the vm being started above the state transition where hostId gets set, so that podId is not null in case management server goes down when vm starts on the agent. On restart, podId is not updated during fullsync. So this will prevent podId remaining null.
vm.setPodId(dest.getPod().getId());
2011-09-15 16:16:15 -07:00
alena
b7f45cfbd6
bug 11434: don't execute destroy call when vm is already in Destroyed/Expunging state
...
status 11434: resolved fixed
2011-09-14 10:33:45 -07:00
Chiradeep Vittal
cfbbe4c031
fix perf. issue in deploy vm. also remove dead code in dao
2011-09-12 18:20:23 -07:00
Kelven Yang
41926cb038
bug 11377: remove the restriction on VMware in API layer to let it support VM manual migration
2011-09-12 14:28:32 -07:00
prachi
d854923ac5
Bug 11200 - maximum number of guests per host
...
Manual Migration should fail if the destination host chosen by Admin already has max guest VMs running.
2011-09-08 18:33:55 -07:00
anthony
4423da06a2
1. added timeout in Command Class, then each command can configure itself timeout, if timeout is not configed, use the default timeout , which is 30 minute
...
2. added following configurable timeout
PrimaryStorageDownloadWait("Storage", TemplateManager.class, Integer.class, "primary.storage.download.wait", "10800", "In second, timeout for download template to primary storage", null),
CreateVolumeFromSnapshotWait("Storage", StorageManager.class, Integer.class, "create.volume.from.snapshot.wait", "10800", "In second, timeout for create template from snapshot", null),
CopyVolumeWait("Storage", StorageManager.class, Integer.class, "copy.volume.wait", "10800", "In second, timeout for copy volume command", null),
CreatePrivateTemplateFromVolumeWait("Storage", UserVmManager.class, Integer.class, "create.private.template.from.volume.wait", "10800", "In second, timeout for CreatePrivateTemplateFromVolumeCommand", null),
CreatePrivateTemplateFromSnapshotWait("Storage", UserVmManager.class, Integer.class, "create.private.template.from.snapshot.wait", "10800", "In second, timeout for CreatePrivateTemplateFromSnapshotCommand", null),
BackupSnapshotWait("Storage", StorageManager.class, Integer.class, "backup.snapshot.wait", "10800", "In second, timeout for BackupSnapshotCommand", null),
2011-09-07 19:17:54 -07:00
Kelven Yang
905df61aac
bug 11362: Make VM network adapter device type be selectable based on VM-specific details
2011-09-07 17:58:42 -07:00
prachi
05440f0905
Bug 9921 - template tags
...
Changes:
- CreateTemplate and RegisterTemplate now support adding a template tag. It is a string value. This is root-admin only action - only admin can add template tags.
- ListTemplates will return the template tag in response.
- HostAllocator changed to use template tag along with the existing tag on service offering. If both tags are present, allocator now finds hosts satisfying both tags. If no hosts have both tags, allocation will fail.
- DB changes to add new column to vm_template table.
- DB upgrade changes for upgrade from 2.2.10 to 2.2.11
2011-08-25 12:03:59 -07:00
alena
ee9fbf10b6
Method signature change
2011-08-24 14:56:37 -07:00
alena
e3f179844e
bug 11236: domainAdmin/regularUser can edit/delete/copy/extract Public template/iso only if it was created by them. They still can use/see public template/iso when execute list/deploy/attachIso commands. Root admin can operate with other people templates w/o any restrictions.
...
status 11236: resolved fixed
2011-08-24 14:48:35 -07:00
alena
8a7feb8ec1
Merge branch '2.2.y'
...
Conflicts:
agent/src/com/cloud/agent/resource/computing/LibvirtComputingResource.java
api/src/com/cloud/agent/api/routing/LoadBalancerConfigCommand.java
api/src/com/cloud/agent/api/to/FirewallRuleTO.java
api/src/com/cloud/agent/api/to/IpAddressTO.java
api/src/com/cloud/agent/api/to/PortForwardingRuleTO.java
api/src/com/cloud/api/ApiConstants.java
api/src/com/cloud/api/BaseCmd.java
api/src/com/cloud/api/ResponseGenerator.java
api/src/com/cloud/api/commands/CreateFirewallRuleCmd.java
api/src/com/cloud/api/commands/CreateIpForwardingRuleCmd.java
api/src/com/cloud/api/commands/CreateLoadBalancerRuleCmd.java
api/src/com/cloud/api/commands/CreatePortForwardingRuleCmd.java
api/src/com/cloud/api/commands/DeleteLoadBalancerRuleCmd.java
api/src/com/cloud/api/commands/ListCapabilitiesCmd.java
api/src/com/cloud/api/commands/UpdateNetworkCmd.java
api/src/com/cloud/api/response/CapabilitiesResponse.java
api/src/com/cloud/network/Network.java
api/src/com/cloud/network/NetworkService.java
api/src/com/cloud/network/firewall/FirewallService.java
api/src/com/cloud/network/lb/LoadBalancingRule.java
api/src/com/cloud/network/lb/LoadBalancingRulesService.java
api/src/com/cloud/network/rules/FirewallRule.java
api/src/com/cloud/network/rules/RulesService.java
api/src/com/cloud/offering/NetworkOffering.java
client/tomcatconf/commands.properties.in
cloud.spec
core/src/com/cloud/agent/resource/virtualnetwork/VirtualRoutingResource.java
core/src/com/cloud/hypervisor/xen/resource/CitrixHelper.java
core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
core/src/com/cloud/storage/template/DownloadManagerImpl.java
core/src/com/cloud/vm/DomainRouterVO.java
debian/cloud-deps.install
patches/systemvm/debian/config/etc/init.d/cloud-early-config
patches/systemvm/debian/config/root/ipassoc.sh
patches/systemvm/debian/config/root/loadbalancer.sh
scripts/vm/hypervisor/kvm/rundomrpre.sh
scripts/vm/hypervisor/xenserver/vmops
server/src/com/cloud/agent/manager/AgentAttache.java
server/src/com/cloud/agent/manager/AgentManagerImpl.java
server/src/com/cloud/agent/manager/AgentMonitor.java
server/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
server/src/com/cloud/alert/ClusterAlertAdapter.java
server/src/com/cloud/api/ApiResponseHelper.java
server/src/com/cloud/api/ApiServer.java
server/src/com/cloud/cluster/ClusterManagerImpl.java
server/src/com/cloud/configuration/Config.java
server/src/com/cloud/configuration/ConfigurationManager.java
server/src/com/cloud/configuration/ConfigurationManagerImpl.java
server/src/com/cloud/configuration/DefaultComponentLibrary.java
server/src/com/cloud/deploy/FirstFitPlanner.java
server/src/com/cloud/ha/HighAvailabilityManagerImpl.java
server/src/com/cloud/host/dao/HostDaoImpl.java
server/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java
server/src/com/cloud/network/LoadBalancerVO.java
server/src/com/cloud/network/NetworkManager.java
server/src/com/cloud/network/NetworkManagerImpl.java
server/src/com/cloud/network/dao/FirewallRulesDao.java
server/src/com/cloud/network/dao/FirewallRulesDaoImpl.java
server/src/com/cloud/network/element/DhcpElement.java
server/src/com/cloud/network/element/VirtualRouterElement.java
server/src/com/cloud/network/firewall/FirewallManagerImpl.java
server/src/com/cloud/network/lb/LoadBalancingRulesManagerImpl.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManager.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
server/src/com/cloud/network/rules/FirewallManager.java
server/src/com/cloud/network/rules/FirewallRuleVO.java
server/src/com/cloud/network/rules/PortForwardingRuleVO.java
server/src/com/cloud/network/rules/RulesManagerImpl.java
server/src/com/cloud/network/rules/StaticNatRuleImpl.java
server/src/com/cloud/network/security/SecurityGroupListener.java
server/src/com/cloud/network/security/SecurityGroupManagerImpl.java
server/src/com/cloud/offerings/NetworkOfferingVO.java
server/src/com/cloud/server/ConfigurationServerImpl.java
server/src/com/cloud/server/ManagementServerImpl.java
server/src/com/cloud/storage/StorageManager.java
server/src/com/cloud/storage/StorageManagerImpl.java
server/src/com/cloud/storage/dao/VMTemplateHostDaoImpl.java
server/src/com/cloud/storage/download/DownloadMonitorImpl.java
server/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
server/src/com/cloud/upgrade/dao/Upgrade228to229.java
server/src/com/cloud/upgrade/dao/Upgrade229to2210.java
server/src/com/cloud/user/AccountManagerImpl.java
server/src/com/cloud/vm/UserVmManagerImpl.java
server/src/com/cloud/vm/VirtualMachineManagerImpl.java
server/src/com/cloud/vm/dao/DomainRouterDao.java
server/src/com/cloud/vm/dao/DomainRouterDaoImpl.java
setup/db/create-index-fk.sql
setup/db/create-schema.sql
setup/db/db/schema-222to224.sql
setup/db/db/schema-227to228.sql
setup/db/db/schema-228to229.sql
setup/db/db/schema-229to2210.sql
tools/testClient/README
ui/scripts/cloud.core.instance.js
utils/src/com/cloud/utils/SerialVersionUID.java
utils/src/com/cloud/utils/db/ConnectionConcierge.java
utils/src/com/cloud/utils/db/Merovingian2.java
utils/src/com/cloud/utils/db/Transaction.java
utils/src/com/cloud/utils/nio/Link.java
utils/src/com/cloud/utils/nio/NioConnection.java
utils/src/com/cloud/utils/time/InaccurateClock.java
2011-08-22 20:28:30 -07:00
frank
b607e4aa1c
Merge branch '2.2.y' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.2.y
2011-08-19 17:29:57 -07:00
Edison Su
7a7662b01b
fix typo
2011-08-19 16:15:52 -07:00
Edison Su
eb72d340e2
fix typo
2011-08-19 16:15:17 -07:00
frank
18f87c2108
Merge branch 'cvm' into 2.2.y
...
Conflicts:
api/src/com/cloud/api/BaseCmd.java
cloud.spec
core/src/com/cloud/storage/template/DownloadManagerImpl.java
server/src/com/cloud/agent/manager/AgentManagerImpl.java
server/src/com/cloud/configuration/DefaultComponentLibrary.java
server/src/com/cloud/deploy/FirstFitPlanner.java
server/src/com/cloud/host/dao/HostDao.java
server/src/com/cloud/network/security/SecurityGroupListener.java
server/src/com/cloud/storage/StorageManagerImpl.java
server/src/com/cloud/storage/listener/StoragePoolMonitor.java
server/src/com/cloud/vm/UserVmManagerImpl.java
server/src/com/cloud/vm/VirtualMachineManagerImpl.java
utils/src/com/cloud/utils/SerialVersionUID.java
2011-08-19 16:08:35 -07:00
Edison Su
56244c7c47
release the check
2011-08-19 16:07:55 -07:00
Edison Su
de25a63ba8
release the check
2011-08-19 16:06:13 -07:00
Edison Su
5696543359
disable attach volume to a vm if volume state is not in allocated or ready state
2011-08-19 14:27:13 -07:00
Edison Su
1c49481305
disable attach volume to a vm if volume state is not in allocated or ready state
2011-08-19 14:26:47 -07:00
alena
2c1df02ba1
Removed unused imports
2011-08-18 15:02:04 -07:00
alena
356728ae19
Fixed spelling mistake
2011-08-16 09:52:00 -07:00
alena
278f2a401f
bug 10561: intermediate checkin for enable/disableStaticNat.
...
1) On enableStaticNat command we actually send the command to the backend (we used to just upgrade the DB in the past). The backend command carries sourceIp and destIp, and creates IP to IP mapping on the domR.
2) On disableStaticNat for the Ip address in addition to cleaning up port ranges, we also delete IP to IP mapping on the domR.
2011-08-11 10:19:22 -07:00
anthony
455f9f642c
bug 11014:
...
1. if there is no storage pool, don't try to start system VM
2. not use "consoleproxy.restart" as other meaning
status 11014: resolved fixed
2011-08-08 18:31:14 -07:00
anthony
1a070f4c1b
bug 11014:
...
1. if there is no storage pool, don't try to start system VM
2. not use "consoleproxy.restart" as other meaning
status 11014: resolved fixed
2011-08-08 18:28:34 -07:00
frank
6aaf3d5ae0
Merge branch 'cvm'
...
Conflicts:
api/src/com/cloud/api/BaseCmd.java
api/src/com/cloud/storage/Storage.java
cloud.spec
core/src/com/cloud/storage/template/DownloadManagerImpl.java
server/src/com/cloud/agent/manager/AgentManagerImpl.java
server/src/com/cloud/configuration/DefaultComponentLibrary.java
server/src/com/cloud/deploy/FirstFitPlanner.java
server/src/com/cloud/host/dao/HostDao.java
server/src/com/cloud/storage/StorageManagerImpl.java
server/src/com/cloud/vm/UserVmManagerImpl.java
server/src/com/cloud/vm/VirtualMachineManagerImpl.java
utils/src/com/cloud/utils/SerialVersionUID.java
2011-08-08 14:14:09 -07:00
Kelven Yang
d10c8e2a1d
bug 10765: fix step 2 - programming VNC server to let it chose the right keyboard mapping to load into
2011-08-04 18:30:50 -07:00
Kelven Yang
19567df49b
bug 10765: fix step 2 - programming VNC server to let it chose the right keyboard mapping to load into
2011-08-04 18:27:45 -07:00
anthony
7958ab566e
bug 10964: if snapshot's volume's templateId is NULL, change snapshot version from 2.1 to 2.2 directly, not upgrade snapshot is needed.
...
status 10964: resolved fixed
2011-08-04 16:09:22 -07:00
anthony
41759c153d
bug 10964: if snapshot's volume's templateId is NULL, change snapshot version from 2.1 to 2.2 directly, not upgrade snapshot is needed.
...
status 10964: resolved fixed
2011-08-04 16:08:50 -07:00
Kelven Yang
04528c821b
bug 10929: allow only OperationFailedToError event to trigger transition to Error state.
2011-08-01 18:40:29 -07:00
Kelven Yang
40f42a784f
bug 10929: allow only OperationFailedToError event to trigger transition to Error state.
2011-08-01 18:33:02 -07:00
Edison Su
8bcad6960c
add rhel6.1 support
2011-07-29 20:05:01 -07:00
Edison Su
22483a9c13
add RHEL 6.1 support
2011-07-29 19:14:15 -07:00
Murali Reddy
5322accbc8
bug 10764: changing service offering drops cpu cap
...
status 10764: resolved fixed
2011-07-25 18:23:11 +05:30
Murali Reddy
9e90999aab
bug 10764: changing service offering drops cpu cap
...
status 10764: resolved fixed
2011-07-25 18:15:31 +05:30
alena
d6112b1632
Revert "bug 10373: Intermediate checkin for Domain level guest Virtual networks"
...
This reverts commit e5c25f3868965e36c4bff1c78ca4552a8c852241.
Conflicts:
server/src/com/cloud/configuration/Config.java
server/src/com/cloud/network/NetworkManagerImpl.java
2011-07-21 16:04:55 -07:00
alena
36edf298e7
bug 10373: Intermediate checkin for Domain level guest Virtual networks
2011-07-20 13:44:26 -07:00
kishan
6b4c61a348
bug 10382: Move volume delete events to destroyVolume method
...
status 10382: resolved fixed
2011-07-20 11:22:31 +05:30
kishan
ddd416a492
bug 10382: wrapped usage events in txn
2011-07-20 11:19:39 +05:30
kishan
427b73a2b9
bug 10372: Added Vm State Machine listener for usage events
...
status 10372: resolved fixed
2011-07-20 11:13:56 +05:30
alena
8c9fe2ec71
bug 9871: deployVm - check network's zone when do vm deployment
...
status 9871: resolved fixed
Conflicts:
server/src/com/cloud/vm/UserVmManagerImpl.java
2011-07-19 11:10:53 -07:00
alena
c663217b00
bug 9642: listVms by regular user using domainId parameter will work only when domainId specified is the domainId the caller belongs to.
...
status 9642: resolved fixed
2011-07-19 11:10:52 -07:00
alena
5300dd52a9
bug 4706: added one more parameter - "ipaddress" to deployVm api. This parameter will apply to default network of vm
...
status 4706: resolved fixed
Merge from master to 2.2.8 branch
Conflicts:
server/src/com/cloud/vm/UserVmManagerImpl.java
2011-07-15 14:23:28 -07:00
alena
0d2787e2db
bug 4706: allow to specify which ip address from the network to take when do vm deployment. The model is supported for multiple network case as well.
...
status 4706: resolved fixed
Merge from master to 2.2.8 branch
Conflicts:
api/src/com/cloud/api/ApiConstants.java
server/src/com/cloud/network/NetworkManager.java
server/src/com/cloud/network/NetworkManagerImpl.java
server/src/com/cloud/network/guru/GuestNetworkGuru.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
server/src/com/cloud/vm/UserVmManagerImpl.java
2011-07-15 14:20:52 -07:00
alena
1979d1d065
bug 10681: for serviceOfferings, diskOfferings, templates/isos return records with not null Removed field on findById method call
...
status 10681: resolved fixed
Conflicts:
server/src/com/cloud/server/ManagementServerImpl.java
2011-07-13 18:25:13 -07:00
alena
25206e6257
bug 10681: for serviceOfferings, diskOfferings, templates/isos return records with not null Removed field on findById method call
...
status 10681: resolved fixed
2011-07-13 17:16:07 -07:00
alena
506ca6cff3
bug 10686: generate volume.delete usage event (along with vm.destroy) when vm fails to create/start.
...
status 10686: resolved fixed
Also updated 227 to 228 db upgrade to insert missing usage_event records
Conflicts:
server/src/com/cloud/vm/UserVmManagerImpl.java
2011-07-11 16:13:22 -07:00
alena
cc9a629cea
bug 10686: generate volume.delete usage event (along with vm.destroy) when vm fails to create/start.
...
status 10686: resolved fixed
Also updated 227 to 228 db upgrade to insert missing usage_event records
2011-07-11 16:11:05 -07:00
Kelven Yang
d0de1a5b94
bug 10620: allow ISO attachment failure to propogate up
2011-07-07 17:02:51 -07:00
Kelven Yang
25d2c893e6
bug 10620: allow ISO attachment failure to propogate up
2011-07-07 17:00:51 -07:00
Edison Su
79f5ece7dc
fix NPE in put primary storage into maintainance mode
2011-07-06 16:05:22 -07:00
kishan
561f415d5a
bug 10382: Move volume delete events to destroyVolume method
...
status 10382: resolved fixed
2011-07-06 18:08:48 +05:30
alena
deca4337c5
Fixed deployVm with sshKeyPair via 8096 port - take account info from the vm's owner, not from the caller
2011-07-05 13:37:39 -07:00
alena
ba95181dc4
Fixed deployVm with sshKeyPair via 8096 port - take account info from the vm's owner, not from the caller
2011-07-05 13:35:29 -07:00
Abhinandan Prateek
5f12ea73a8
bug 8962: Completed moving VM from one account to another.
2011-07-04 13:15:40 +05:30
Nitin
62aab14e05
bug 8915: Adding events for TEMPLATE.CREATE, TEMPLATE.DELETE, ISO.DELETE, ISO.ATTACH, ISO.DETACH.
...
Status 8915: resolved fixed
2011-07-04 12:01:04 +05:30
Kelven Yang
7512689dc8
bug 10546: move sending agent command out of transaction
2011-07-01 15:49:48 -07:00
kishan
9a6c567269
bug 10503: Skip usage events when StopAnswer details is Vm does not exist
...
status 10503: resolved fixed
2011-07-01 18:27:27 +05:30
kishan
fd6900a3d8
bug 10382: wrapped usage events in txn
2011-07-01 18:11:56 +05:30
kishan
36d7ee5634
bug 10372: Added Vm State Machine listener for usage events
...
status 10372: resolved fixed
2011-07-01 16:37:53 +05:30
Nitin
62078ffef2
bug 8915: Adding events for TEMPLATE.CREATE, TEMPLATE.DELETE, ISO.DELETE, ISO.ATTACH, ISO.DETACH.
...
Status 8915: resolved fixed
2011-06-30 16:31:02 +05:30
anthony
b6eafd7102
bug 10512: lock on snapshot entry instead of volume entry
...
status 10512: resolved fixed
2011-06-29 18:54:53 -07:00
anthony
253ae79876
bug 10512: lock on snapshot entry instead of volume entry
...
status 10512: resolved fixed
2011-06-29 18:53:41 -07:00
anthony
e186369c51
use correct secondary storage when creating template from snapshot
2011-06-28 19:16:34 -07:00
anthony
b058a0226d
use correct secondary storage when creating template from snapshot
2011-06-28 16:58:15 -07:00
root
d46d1da86c
bug 10455: accidentally removed the code for sourceTemplate id when the the volume is created out of template. Checking it in.
...
status 10455: resolved fixed
2011-06-28 19:55:09 +05:30
Nitin
35d4c304a9
bug 10455: CreatePrivateTemplate - If the volume's template id is null and it is ROOT (meaning that the vm was created out of a blank template) then take the source template id from the user vm table.
...
Status 10455: resolved fixed
2011-06-28 19:54:54 +05:30
root
dbc0abfa69
bug 10455: accidentally removed the code for sourceTemplate id when the the volume is created out of template. Checking it in.
...
status 10455: resolved fixed
2011-06-28 14:29:11 +05:30
alena
e716245218
bug 10447: don't allow to use system networks for vm deployment in Advance zone
...
status 10447: resolved fixed
2011-06-27 12:32:32 -07:00
alena
4e20cfd0ef
bug 10447: don't allow to use system networks for vm deployment in Advance zone
...
status 10447: resolved fixed
2011-06-27 12:31:00 -07:00
alena
f9d6685d18
bug 10456: get accountId info from the volume record when create template from volume
...
status 10456: resolved fixed
2011-06-27 10:37:00 -07:00
alena
52fab0e35e
bug 10456: get accountId info from the volume record when create template from volume
...
status 10456: resolved fixed
2011-06-27 10:20:40 -07:00
Alex Huang
791dd9777b
logging changes
2011-06-27 10:19:53 -07:00
Alex Huang
97b562fc2a
logging changes
2011-06-27 10:18:40 -07:00
Nitin
5810b838ed
bug 10455: CreatePrivateTemplate - If the volume's template id is null and it is ROOT (meaning that the vm was created out of a blank template) then take the source template id from the user vm table.
...
Status 10455: resolved fixed
2011-06-27 17:20:42 +05:30
alena
f42f7d8945
Always add default security group when deploy vm in basic zone
2011-06-23 20:00:49 -07:00
alena
9d76f6d719
Always add default security group when deploy vm in basic zone
2011-06-23 19:59:14 -07:00
alena
d380ce0897
bug 4706: added one more parameter - "ipaddress" to deployVm api. This parameter will apply to default network of vm
...
status 4706: resolved fixed
2011-06-23 11:31:39 -07:00
Murali Reddy
8eb9ee6a8b
Bug 10377 - API listAccounts return vmtotal=-14
2011-06-23 17:31:38 +05:30
Murali Reddy
1bfe6d8d72
Bug 10377 - API listAccounts return vmtotal=-14
2011-06-23 17:28:09 +05:30
Murali Reddy
1d4bee51e7
Bug 10012: Vague error event created when user attempted to exceed limit set for a given resource
...
status 10012: resolved fixed
2011-06-22 13:06:59 +05:30
Murali Reddy
34a36b7009
Bug 10012: Vague error event created when user attempted to exceed limit set for a given resource
...
status 10012: resolved fixed
2011-06-22 13:00:59 +05:30
alena
4fcb406f2b
bug 4706: allow to specify which ip address from the network to take when do vm deployment. The model is supported for multiple network case as well.
...
status 4706: resolved fixed
2011-06-21 16:41:43 -07:00
alena
62516b00cf
bug 9642: listVms by regular user using domainId parameter will work only when domainId specified is the domainId the caller belongs to.
...
status 9642: resolved fixed
2011-06-20 10:32:19 -07:00
alena
3098db2b31
bug 9871: deployVm - check network's zone when do vm deployment
...
status 9871: resolved fixed
2011-06-16 16:00:45 -07:00
Abhinandan Prateek
afdb2f0871
bug 8962: moving vm: checked for basic networks
2011-06-16 15:11:42 +05:30
Abhinandan Prateek
3429b6cde4
bug 8962: tested vm move from one account to another, successfully restarted
2011-06-15 17:55:03 +05:30
kishan
8d87cf3506
bug 6770: Alert will be sent when deploying User VM fails
...
status 6770: resolved fixed
2011-06-15 12:40:23 +05:30
Frank
c400253b54
Ignore hvm field in template
2011-06-14 14:41:34 -07:00
kishan
fe4329389f
bug 6770: Alert will be sent when deploying User VM fails
...
status 6770: resolved fixed
2011-06-14 15:02:27 +05:30
Alex Huang
d39048faca
bug 10260: propagate ha and deployment planner fixes
2011-06-13 17:33:09 -07:00
Alex Huang
1d7e70acd1
bug 10260: propagate ha and deployment planner fixes
2011-06-13 17:35:20 -07:00
Abhinandan Prateek
a4bdeffd61
bug 8962: changes for vms using virtual network
2011-06-13 14:56:00 +05:30
Frank
5f5509ac00
use isHvm of template to decide to boot a HVM vm
2011-06-10 14:35:46 -07:00
Abhinandan Prateek
8e4ec4ce09
bug 8962: moving vm from one account to other
2011-06-09 15:02:47 +05:30
Alex Huang
d9e0bcfa1e
bug 10126: Renamed getPodId() to getPodIdToDeployIn()
2011-06-03 22:17:08 -07:00
nit
dbb1ed3645
bug 9729 : Remove redundant permission check from deployvm cmd.
...
status 9729: resolved fixed
2011-06-03 18:07:54 +05:30
Frank
4a3c4815b9
Fix another vm.getPodId issue
2011-06-02 14:34:34 -07:00
Alex Huang
2ceadec326
bug 9651: tags parameter added to createnetwork
2011-06-01 17:36:14 -07:00
anthony
d02e4fb37f
bug 10100 : if there are more than one hypervisor type in one zone, create_template_from_snapshot may be sent to host with diferent hypervisor type
...
status 10100 : resolved fixed
2011-06-01 15:30:22 -07:00
Edison Su
2f8235dbd2
fix local seconeary storage related issues(sync/download templates, etc) for mycloud
2011-05-21 12:05:02 -04:00
alena
30e8ed3ab6
Don't allow to specify security groups when deployVm in Vmware setup.
...
Also fixed a couple of other problems:
* verify security group ids before vm creation
* don't create "default" security group (if missing) as a part of deployVm process when vm is deployed from vmWare template
2011-05-20 18:52:58 -07:00
kishan
6bd8cece48
bug 8830: added source template id to template usage records
...
status 8830: resolved fixed
2011-05-19 16:53:33 +05:30
alena
c2afcdec52
bug 9873: always add default security group to the SG list when deploy vm in 1) Basic zone 2) Advance zone using SG enabled network
...
status 9873: resolved fixed
Following fixes were made as a part of the checkin:
* When deploy user vm and SG doesn't exist in the DB, create it automatically.
* SecurityGroup enabled use vm start: if map to default group is not present in security_group_vm_map table, create one.
* Added "name" (securityGroupName) parameter back to deleteSecurityGroup/authorizeSecurityGroupIngress/deployVm. Mutually exclusive with security group id parameter.
Conflicts:
api/src/com/cloud/api/commands/AuthorizeSecurityGroupIngressCmd.java
api/src/com/cloud/api/commands/DeleteSecurityGroupCmd.java
api/src/com/cloud/api/commands/DeployVMCmd.java
server/src/com/cloud/api/ApiDBUtils.java
server/src/com/cloud/vm/UserVmManagerImpl.java
2011-05-17 15:08:13 -07:00
Alex Huang
ea9703997b
proxy agent
2011-05-17 07:12:58 -07:00
anthony
9c4964bc1b
fixed merge
2011-05-16 16:54:00 -07:00
Alex Huang
5ce631e9d7
Separated resource management and agent management code. It's not all done but at least we make a first step
2011-05-16 10:55:18 -07:00
nit
bc360f499d
bug 9397 : CreateTemplate - generate MD5 checksum of the template. The code will calculate the checksum after the template has been created in the secondary storage. This code would be executed by ssvm. This would be agnostic of the way the template was created (not hypervisor specific).
...
status 9397: resolved fixed
2011-05-12 18:13:29 +05:30
alena
0f0dcc1964
bug 9827: call destroyVolume() method only after ensuring that the volume is not destroyed already.
...
status 9827: resolved fixed
2011-05-11 14:12:19 -07:00
alena
6075419977
bug 9821: fixed search by keyword in listVirtualMachines command
...
status 9821: resolved fixed
2011-05-10 12:28:30 -07:00
alena
ad05706f18
bug 9791: check if user is authorized to use a private template for vm creation
...
status 9791: resolved fixed
2011-05-10 10:39:25 -07:00
nit
d91999533b
bug 9397 : CreateTemplate - generate MD5 checksum of the template. The code will calculate the checksum after the template has been created in the secondary storage. This code would be executed by ssvm. This would be agnostic of the way the template was created (not hypervisor specific).
2011-05-10 12:26:00 +05:30
alena
7cb11b09f5
bug 9796: throw an exception when try to create volume/template from the non-ready snapshot
...
status 9796: resolved fixed
2011-05-09 16:35:09 -07:00
Frank
4e2935dc37
Fix other stupid string comparsions
2011-05-06 10:21:05 -07:00
anthony
10c4c14ad5
swift integration checkin
2011-05-05 13:55:29 -07:00
prachi
9aba817256
Bug 9652: Need to provide a way to specify deployment plan during VM start
...
Changes:
- Added a new parameter to pass in deployment plan during vm start
- If a hostId is passed in to the DeployVMCmd (only allowed for a root admin to test a host), a plan is passed in to start the vm in that host's datacenter, pod and cluster and on that host
- If a plan is passed in during start, but if the VM's root volume is READY, then plan of the root volume takes precedence. In that case the plan passed in is not used.
2011-05-04 15:02:52 -07:00
Chiradeep Vittal
b42ebf4872
Build fixes after first pass at merge
2011-05-03 10:41:31 -07:00
Chiradeep Vittal
303e2a7481
Start of zonesfeature / mycloud/cloudkit
2011-05-03 10:40:17 -07:00
Murali Reddy
d95d831faa
bug 9595 : Negative resource counts exception when destroying VM account
...
pushing 2.2.4 changes
2011-05-02 12:53:51 +05:30
prachi
b2b01bfcd2
Bug 8830 - Return parent template ID from templates created off of a snapshot
...
Changes:
- Added a new column `source_template_id` to vm_template table to carry the parent/source template ID from which the tempalte was created
- Added the column in db upgrade 224 to 225
- Changed code to save the source_template_id if there is one associated to the volume/ volume from which the snapshot was taken
- API response returns the sourcetemplateid field, if set, in all template usecases.
2011-04-29 15:40:59 -07:00
Alex Huang
99bc15f64a
changed getName to getHostname
2011-04-29 08:34:10 -07:00
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
alena
1a6d78eae4
Code cleanup. No need to declare runtime exceptions (CloudRuntimeException, InvalidParameterException, PermissionDenied exceptions)
2011-04-21 16:26:53 -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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
alena
abb2e2b2ff
bug 8831: partial checkin for Domain specific Networks (includes DB changes)
2011-03-21 15:05:07 -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
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
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
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
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
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
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
Edison Su
96bb6a7b7c
fix NPE that template was deleted
2011-03-09 15:27:06 -05:00
alena
7668e1878a
bug 8898: allow service offering upgrade for Running vm
2011-03-09 10:03:26 -08:00
anthony
5b1a421e62
bug 8712: prepare from snapshot db migration
2011-03-08 17:10:27 -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
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
Kelven Yang
d0892a964d
Add JMX monitoring to cluster management
2011-03-07 18:40:33 -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
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
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
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
Frank
35b7c26689
Bug 8208 - bare metal provisioning
...
able to start, stop, reboot, destroy VM
2011-03-01 11:40:40 -08:00
Edison Su
b20808d223
minor fix
2011-02-28 12:16:40 -05: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
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
a9728998ff
Bug 8208 - bare metal provisioning
...
Successfully add start entry into LinMin PXE server
2011-02-25 18:58:07 -08:00
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
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
Frank
f82dec999d
Bug 8208 - bare metal provisioning
...
complete createVirtualMachine method
2011-02-24 14:07:10 -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
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
alena
15f59e6f58
bug 8637: throw ResourceAllocationException when resource limit is exceeded.
...
status 8637: resolved fixed
2011-02-18 12:26:58 -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
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
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
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
Alex Huang
7dd54f079b
started vms with these latest
2011-02-11 17:03:04 -08:00
nit
3bd3dacf9e
bug 8493: Check for resource limit for create template from volume/snapshot.
2011-02-09 15:49:32 +05:30
Alex Huang
b92fc074aa
added forced paramter to stop apis
2011-02-08 15:38:26 -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
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
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
3343aa890f
bug 8427: resolving the class cast exception
...
status 8427: resolved fixed
2011-02-07 13:30:12 -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
f948926a2f
some minor adjustments before doing the big work
2011-02-07 10:58:25 -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
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