<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Another strange thing with disk profile<div class=""><br class=""></div><div class="">When I create a disk in the tree System/Data Centers/<my ds>/Storage/<my domain>, tab Disks, the disk profile is requested.</div><div class=""><br class=""></div><div class="">But once created, I can't change it any more.There is no "edit" or any other option on that screen.</div><div class=""><br class=""></div><div class="">I need to attach a disk to a VM, go to the Disks tab for this VM to this time get a edit option where I can see a screen that present this option, but ignore it any way.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Le 27 mars 2016 à 16:03, Roy Golan <<a href="mailto:rgolan@redhat.com" class="">rgolan@redhat.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><br class="Apple-interchange-newline"><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_quote" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">On Fri, Mar 25, 2016 at 12:22 PM, Fabrice Bacchella<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:fabrice.bacchella@orange.fr" target="_blank" class="">fabrice.bacchella@orange.fr</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">I attached a image disk to a VM , but set it using the wrong disk profile, I powered off the VM, and then tried to change it on the GUI.<br class=""><br class="">The operation in the GUI is ok.<br class=""><br class=""></blockquote><div class="">Need more of the log if you don't see the profiles changing. Please share a bigger w or the whole log.<span class="Apple-converted-space"> </span><br class=""> <br class=""><br class=""><br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">But nothing is done.<br class=""><br class="">And in the log I get:<br class="">2016-03-25 10:12:10,467 INFO [org.ovirt.engine.core.bll.UpdateVmDiskCommand] (default task-26) [2f3b7d9] Lock Acquired to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[a32e1043-a5a5-4e4c-8436-f7b7a4ff644c=<VM, ACTION_TYPE_FAILED_VM_IS_LOCKED>]'}'<br class="">2016-03-25 10:12:10,608 INFO [org.ovirt.engine.core.bll.UpdateVmDiskCommand] (default task-26) [2f3b7d9] Running command: UpdateVmDiskCommand internal: false. Entities affected : ID: 55d2be6b-7a78-4712-82be-b725b7812db8 Type: DiskAction group EDIT_DISK_PROPERTIES with role type USER<br class="">2016-03-25 10:12:10,794 INFO [org.ovirt.engine.core.bll.UpdateVmDiskCommand] (default task-26) [2f3b7d9] Lock freed to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[a32e1043-a5a5-4e4c-8436-f7b7a4ff644c=<VM, ACTION_TYPE_FAILED_VM_IS_LOCKED>]'}'<br class="">2016-03-25 10:12:10,808 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-26) [2f3b7d9] Correlation ID: 2f3b7d9, Call Stack: null, Custom Event ID: -1, Message: VM test test_Disk3 disk was updated by FA4@apachesso.<br class=""><br class=""><br class="">It says "with role type USER" but I'm logged as a super admin<br class=""><br class=""></blockquote><div class=""><br class=""></div><div class="">I know its confusing a bit. <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">The RoleType is an indirect property of an action, in that case UpdateVmDisk. Every action has an ActionGroup, and each Action has a RoleType, and this is used to allow/prevent or display behaviour.<span class="Apple-converted-space"> </span><br class=""><br class=""></div><div class="">So looking at VdcActionType.java and ActionGroup.java, you can see the declaration.<br class=""><br class=""></div><div class="">VdcActionType.java<br class=""></div><div class=""><pre style="background-color: rgb(43, 43, 43); color: rgb(169, 183, 198); font-family: 'Source Code Pro'; font-size: 10.5pt;" class=""><span style="background-color: rgb(52, 65, 52);" class="">UpdateVmDisk</span>(<span style="color: rgb(104, 151, 187);" class="">34</span><span style="color: rgb(204, 120, 50);" class="">, </span>ActionGroup.<span style="color: rgb(152, 118, 170); font-style: italic;" class="">CONFIGURE_VM_STORAGE</span><span style="color: rgb(204, 120, 50);" class="">, false, </span>QuotaDependency.<span style="color: rgb(152, 118, 170); font-style: italic;" class="">STORAGE</span>)<span style="color: rgb(204, 120, 50);" class="">,</span></pre>ActionGroup.java<br class=""></div><div class=""><pre style="background-color: rgb(43, 43, 43); color: rgb(169, 183, 198); font-family: 'Source Code Pro'; font-size: 10.5pt;" class=""><span style="background-color: rgb(52, 65, 52);" class="">CONFIGURE_VM_STORAGE</span>(<span style="color: rgb(104, 151, 187);" class="">10</span><span style="color: rgb(204, 120, 50);" class="">, </span>RoleType.<span style="color: rgb(152, 118, 170); font-style: italic;" class="">USER</span><span style="color: rgb(204, 120, 50);" class="">, true, </span>ApplicationMode.<span style="color: rgb(152, 118, 170); font-style: italic;" class="">VirtOnly</span>)<span style="color: rgb(204, 120, 50);" class="">,</span></pre><br class=""></div><div class=""><br class=""><br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">The set up is totally new, on dedicated centos 7.2, running 3.6.3.4-1.el7.centos.<br class=""><br class=""><br class=""><br class="">_______________________________________________<br class="">Users mailing list<br class=""><a href="mailto:Users@ovirt.org" class="">Users@ovirt.org</a><br class=""><a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank" class="">http://lists.ovirt.org/mailman/listinfo/users</a></blockquote></div></div></blockquote></div><br class=""></div></body></html>