You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by yvsubhash <gi...@git.apache.org> on 2017/04/11 11:21:26 UTC
[GitHub] cloudstack issue #1664: CLOUDSTACK-8676 Deploy user instance from vm snapsho...
Github user yvsubhash commented on the issue:
https://github.com/apache/cloudstack/pull/1664
@sateesh-chodapuneedi Please take care of the code change in the following PR as well as i am closing
https://github.com/apache/cloudstack/pull/1721
The change is as follows
server/src/com/cloud/vm/UserVmManagerImpl.java
@@ -3242,8 +3242,9 @@ protected UserVm createVirtualMachine(DataCenter zone, ServiceOffering serviceOf
throw new InvalidParameterValueException("Installing from ISO requires an ISO that is bootable: " + template.getId());
}
- // Check templates permissions
- _accountMgr.checkAccess(owner, AccessType.UseEntry, false, template);
+ // Check templates permissions when the create vm is not from snapshot
+ if(vmSnapshot == null)
+ _accountMgr.checkAccess(owner, AccessType.UseEntry, false, template);
// check if the user data is correct
validateUserData(userData, httpmethod);
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---