250 Commits

Author SHA1 Message Date
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
nit
a9ccd0d51f bug 8677 , 8673 : listIsos - make the parameter - name work properly.
status 8677 , 8673: resolved fixed
2011-06-09 16:30:36 +05:30
Edison Su
00268632ac bug 10177: fix multiple local secondary storage: when we starting vm, only choose the local secondary storage that related to the planned computing host
status 10177: resolved, fixed
2011-06-07 20:22:16 -04:00
Edison Su
d9b61f26da fix dettach iso issue: if dettach iso failed on hypervisor, mgt server still regards it as success, then you can't attach another ISO to the vm again unless your stop/start the VM 2011-06-01 10:37:04 -04:00
Abhinandan Prateek
d006fd141c bug 9909: upload manager support multiple secondary storage 2011-05-30 12:39:15 +05:30
anthony
99be3718cf bug 3224:
multiple secondary storage, copying template between zone works
2011-05-19 19:07:44 -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
b5aabfab75 bug 9898: fixed attachIso by domain admin - no need to make permission check when iso is public
status 9898: resolved fixed
2011-05-17 11:11:13 -07:00
alena
7292706a9f bug 9841: added missing permission checks to the deleteTemplate/deleteIso API
status 9841: resolved fixed

Conflicts:

	server/src/com/cloud/template/TemplateManagerImpl.java
2011-05-11 10:39:49 -07:00
Chiradeep Vittal
303e2a7481 Start of zonesfeature / mycloud/cloudkit 2011-05-03 10:40:17 -07:00
Frank
d23658022b Template Adapter:
Return correct adapter by hypervisor type
2011-04-29 18:21:37 -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
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
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
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
Edison Su
ee3d6f5cea bug 9205: resolved fixed
status 9205: fix NPE in usageEvent
2011-03-29 15:00:35 -04: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
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
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
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
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
Alex Huang
263244c938 more logging 2011-03-04 11:37:35 -08:00
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
Frank
a9728998ff Bug 8208 - bare metal provisioning
Successfully add start entry into LinMin PXE server
2011-02-25 18:58:07 -08: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
alena
15f59e6f58 bug 8637: throw ResourceAllocationException when resource limit is exceeded.
status 8637: resolved fixed
2011-02-18 12:26:58 -08:00
Kelven Yang
8695e7250c Update template and storage manager to allow hypervisor based command delegation 2011-02-18 11:37:50 -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
nit
67a92e3f1d bug 8493: Check for resource limit for copy templates/ISO between zones. 2011-02-09 15:49:33 +05:30
Edison Su
4fe6219754 bug 8474: fix attaching ISO to xenserver vm
status 8474: resolved fixed
2011-02-08 10:04:56 -05: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
anthony
ed197ae971 bug 8458: check if attachISO is successful before update DB
status 8458: resolved fixed
2011-02-07 17:34:13 -08:00
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
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
5be450ff47 bug 7376: removing the limit on iso/template names
status 7376: resolved fixed
2011-01-25 17:37:05 -08:00
kishan
94ec7bf27a bug 7842: events refactoring. Still wrok in progress 2011-01-20 21:49:50 +05:30
nit
3d9d73e627 bug 7519 : Correcting the NPE getting thrown due to a recent rewrite of events. Also improving the logging when ssvm is not up.
status 7519 : resolved fixed
2011-01-14 19:35:34 +05:30
nit
d5297519a5 bug 7519 : Some additional code. 2011-01-12 19:35:28 +05:30
Alex Huang
4eba6d10d7 Moved State into VirtualMachine like other States of objects 2011-01-04 15:01:34 -08:00
Alex Huang
544fa7ff1b remote access vpn, user ip address changes 2010-12-29 09:32:54 -08:00
anthony
0aa24c9ebf bug 7686: when detach iso, always remove is from uservm table to make sure ISO is remove after stop/start
status 7686: resolved fixed
2010-12-28 12:06:24 -08:00
kishan
bb0e6a0ae3 bug 7504: Events refactoring 2010-12-24 12:58:32 +05:30
edison
fe6824a66b fix upload ova template 2010-12-22 10:16:12 -08:00
kishan
b12cd70216 bug 7504: Added usage events and made corresponding changes in usage server 2010-12-22 18:03:24 +05:30
kishan
a7626fc991 bug 7504: Added usage events 2010-12-22 12:28:05 +05:30