Tal Nisan has posted comments on this change.

Change subject: core,webadmin: Plug disk to VM when adding a new disk
......................................................................


Patch Set 4:

(4 comments)

....................................................
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java
Line 277:         getIsShareable().setEntity(false);
Line 278: 
Line 279:         setIsPlugged(new EntityModel());
Line 280:         getIsPlugged().setEntity(true);
Line 281:         getIsPlugged().setIsAvailable(false);
Check Model.java line 415, the constructor sets it to true
Line 282: 
Line 283:         setIsReadOnly(new EntityModel());
Line 284:         getIsReadOnly().setEntity(false);
Line 285: 


Line 699:                 }
Line 700:             }, getHash()), null, getVm().getId());
Line 701:         }
Line 702:         else {
Line 703:             if (!getIsNew()) {
It's not on attach, it's the event that is raised once the user clicked 
"attach" in the ui
Line 704:                 getIsPlugged().setIsAvailable(false);
Line 705:             }
Line 706:         }
Line 707:     }


....................................................
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewDiskModel.java
Line 48:             getIsPlugged().setIsAvailable(true);
Line 49:         } else {
Line 50:             // Read only disk can be created only in the scope of VM.
Line 51:             getIsReadOnly().setIsAvailable(false);
Line 52:             getIsPlugged().setEntity(false);
When this model is initialized, before the panel is displayed which is when we 
need it
Line 53:         }
Line 54: 
Line 55:         getSizeExtend().setIsAvailable(false);
Line 56:     }


....................................................
File 
frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
Line 840: ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED=Cannot ${action} 
${type}. Guest OS version is not supported.
Line 841: HOT_PLUG_DISK_IS_NOT_VIRTIO=Can plug only virtIO disks.
Line 842: HOT_PLUG_DISK_IS_NOT_UNPLUGGED=Disk is already activated.
Line 843: HOT_UNPLUG_DISK_IS_NOT_PLUGGED=Disk is already deactivated.
Line 844: CANNOT_ADD_FLOATING_DISK_WITH_PLUG_VM_SET=Cannot ${action} ${type}. A 
disk configured with the "Activate" setting cannot be created as a floating 
disk.
It means the Activate setting set, false or null means it's not set
Line 845: ACTIVATE_DEACTIVATE_NIC_VM_STATUS_ILLEGAL=Cannot activate/deactivate 
VM Network Interface due to VM status. The VM status must be Down or Up.
Line 846: ACTIVATE_DEACTIVATE_NETWORK_NOT_IN_VDS=The Network does not exist on 
the host the VM is running on.\n Either add the Network to the Host or migrate 
the VM to a Host that has this Network.
Line 847: VM_CANNOT_RUN_FROM_DISK_WITHOUT_PLUGGED_DISK=Cannot ${action} ${type} 
without at least one active disk.\nPlease activate a disk and rerun the VM.
Line 848: SHAREABLE_DISK_IS_NOT_SUPPORTED_FOR_DISK=Cannot ${action} ${type}. 
Disk cannot be shareable if it depends on a snapshot. In order to share it, 
remove the disk's snapshots.


-- 
To view, visit http://gerrit.ovirt.org/21851
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ia9778bcaf21b346a55992590159cabd8d78f0c66
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tal Nisan <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Cheryn Tan <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to