
Le 27 mars 2016 =C3=A0 16:03, Roy Golan <rgolan@redhat.com> a =C3=A9crit= : =20 =20 =20 On Fri, Mar 25, 2016 at 12:22 PM, Fabrice Bacchella = <fabrice.bacchella@orange.fr <mailto:fabrice.bacchella@orange.fr>> = wrote: I attached a image disk to a VM , but set it using the wrong disk =
--Apple-Mail=_53C5A21D-2A62-4F9B-8384-48D99CD508E9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Another strange thing with disk profile When I create a disk in the tree System/Data Centers/<my ds>/Storage/<my = domain>, tab Disks, the disk profile is requested. But once created, I can't change it any more.There is no "edit" or any = other option on that screen. 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. profile, I powered off the VM, and then tried to change it on the GUI.
=20 The operation in the GUI is ok. =20 Need more of the log if you don't see the profiles changing. Please = share a bigger w or the whole log.=20 =20 =20 =20 But nothing is done. =20 And in the log I get: 2016-03-25 10:12:10,467 INFO = [org.ovirt.engine.core.bll.UpdateVmDiskCommand] (default task-26) = [2f3b7d9] Lock Acquired to object 'EngineLock:{exclusiveLocks=3D'null', = sharedLocks=3D'[a32e1043-a5a5-4e4c-8436-f7b7a4ff644c=3D<VM, = ACTION_TYPE_FAILED_VM_IS_LOCKED>]'}' 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 2016-03-25 10:12:10,794 INFO = [org.ovirt.engine.core.bll.UpdateVmDiskCommand] (default task-26) = [2f3b7d9] Lock freed to object 'EngineLock:{exclusiveLocks=3D'null', = sharedLocks=3D'[a32e1043-a5a5-4e4c-8436-f7b7a4ff644c=3D<VM, = ACTION_TYPE_FAILED_VM_IS_LOCKED>]'}' 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. =20 =20 It says "with role type USER" but I'm logged as a super admin =20 =20 I know its confusing a bit. =20 =20 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.=20 =20 So looking at VdcActionType.java and ActionGroup.java, you can see the = declaration. =20 VdcActionType.java UpdateVmDisk(34, ActionGroup.CONFIGURE_VM_STORAGE, false, = QuotaDependency.STORAGE), ActionGroup.java CONFIGURE_VM_STORAGE(10, RoleType.USER, true, = ApplicationMode.VirtOnly), =20 =20 =20 The set up is totally new, on dedicated centos 7.2, running = 3.6.3.4-1.el7.centos. =20 =20 =20 _______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users = <http://lists.ovirt.org/mailman/listinfo/users>
--Apple-Mail=_53C5A21D-2A62-4F9B-8384-48D99CD508E9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D"">Another strange thing with disk profile<div class=3D""><br = class=3D""></div><div class=3D"">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=3D""><br = class=3D""></div><div class=3D"">But once created, I can't change it any = more.There is no "edit" or any other option on that screen.</div><div = class=3D""><br class=3D""></div><div class=3D"">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=3D""><br class=3D""></div><div class=3D""><br = class=3D""></div><div class=3D""><br class=3D""><div><blockquote = type=3D"cite" class=3D""><div class=3D"">Le 27 mars 2016 =C3=A0 16:03, = Roy Golan <<a href=3D"mailto:rgolan@redhat.com" = class=3D"">rgolan@redhat.com</a>> a =C3=A9crit :</div><br = class=3D"Apple-interchange-newline"><div class=3D""><br = class=3D"Apple-interchange-newline"><br style=3D"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=3D""><div class=3D"gmail_quote" style=3D"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=3D"Apple-converted-space"> </span><span = dir=3D"ltr" class=3D""><<a href=3D"mailto:fabrice.bacchella@orange.fr" = target=3D"_blank" = class=3D"">fabrice.bacchella@orange.fr</a>></span><span = class=3D"Apple-converted-space"> </span>wrote:<br = class=3D""><blockquote class=3D"gmail_quote" style=3D"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=3D""><br = class=3D"">The operation in the GUI is ok.<br class=3D""><br = class=3D""></blockquote><div class=3D"">Need more of the log if you = don't see the profiles changing. Please share a bigger w or the whole = log.<span class=3D"Apple-converted-space"> </span><br = class=3D""> <br class=3D""><br class=3D""><br = class=3D""></div><blockquote class=3D"gmail_quote" style=3D"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=3D""><br class=3D"">And in the log I get:<br = class=3D"">2016-03-25 10:12:10,467 INFO = [org.ovirt.engine.core.bll.UpdateVmDiskCommand] (default task-26) = [2f3b7d9] Lock Acquired to object 'EngineLock:{exclusiveLocks=3D'null', = sharedLocks=3D'[a32e1043-a5a5-4e4c-8436-f7b7a4ff644c=3D<VM, = ACTION_TYPE_FAILED_VM_IS_LOCKED>]'}'<br class=3D"">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=3D"">2016-03-25 = 10:12:10,794 INFO [org.ovirt.engine.core.bll.UpdateVmDiskCommand] = (default task-26) [2f3b7d9] Lock freed to object = 'EngineLock:{exclusiveLocks=3D'null', = sharedLocks=3D'[a32e1043-a5a5-4e4c-8436-f7b7a4ff644c=3D<VM, = ACTION_TYPE_FAILED_VM_IS_LOCKED>]'}'<br class=3D"">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=3D""><br class=3D""><br class=3D"">It says "with = role type USER" but I'm logged as a super admin<br class=3D""><br = class=3D""></blockquote><div class=3D""><br class=3D""></div><div = class=3D"">I know its confusing a bit. <span = class=3D"Apple-converted-space"> </span><br class=3D""></div><div = class=3D""><br class=3D""></div><div class=3D"">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=3D"Apple-converted-space"> </span><br class=3D""><br = class=3D""></div><div class=3D"">So looking at VdcActionType.java and = ActionGroup.java, you can see the declaration.<br class=3D""><br = class=3D""></div><div class=3D"">VdcActionType.java<br = class=3D""></div><div class=3D""><pre style=3D"background-color: rgb(43, = 43, 43); color: rgb(169, 183, 198); font-family: 'Source Code Pro'; = font-size: 10.5pt;" class=3D""><span style=3D"background-color: rgb(52, = 65, 52);" class=3D"">UpdateVmDisk</span>(<span style=3D"color: rgb(104, = 151, 187);" class=3D"">34</span><span style=3D"color: rgb(204, 120, = 50);" class=3D"">, </span>ActionGroup.<span style=3D"color: rgb(152, = 118, 170); font-style: italic;" = class=3D"">CONFIGURE_VM_STORAGE</span><span style=3D"color: rgb(204, = 120, 50);" class=3D"">, false, </span>QuotaDependency.<span = style=3D"color: rgb(152, 118, 170); font-style: italic;" = class=3D"">STORAGE</span>)<span style=3D"color: rgb(204, 120, 50);" = class=3D"">,</span></pre>ActionGroup.java<br class=3D""></div><div = class=3D""><pre style=3D"background-color: rgb(43, 43, 43); color: = rgb(169, 183, 198); font-family: 'Source Code Pro'; font-size: 10.5pt;" = class=3D""><span style=3D"background-color: rgb(52, 65, 52);" = class=3D"">CONFIGURE_VM_STORAGE</span>(<span style=3D"color: rgb(104, = 151, 187);" class=3D"">10</span><span style=3D"color: rgb(204, 120, = 50);" class=3D"">, </span>RoleType.<span style=3D"color: rgb(152, 118, = 170); font-style: italic;" class=3D"">USER</span><span style=3D"color: = rgb(204, 120, 50);" class=3D"">, true, </span>ApplicationMode.<span = style=3D"color: rgb(152, 118, 170); font-style: italic;" = class=3D"">VirtOnly</span>)<span style=3D"color: rgb(204, 120, 50);" = class=3D"">,</span></pre><br class=3D""></div><div class=3D""><br = class=3D""><br class=3D""></div><blockquote class=3D"gmail_quote" = style=3D"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=3D""><br class=3D""><br = class=3D""><br = class=3D"">_______________________________________________<br = class=3D"">Users mailing list<br class=3D""><a = href=3D"mailto:Users@ovirt.org" class=3D"">Users@ovirt.org</a><br = class=3D""><a href=3D"http://lists.ovirt.org/mailman/listinfo/users" = rel=3D"noreferrer" target=3D"_blank" = class=3D"">http://lists.ovirt.org/mailman/listinfo/users</a></blockquote><= /div></div></blockquote></div><br class=3D""></div></body></html>= --Apple-Mail=_53C5A21D-2A62-4F9B-8384-48D99CD508E9--