Feature Resize Disk
Resize disk image on a running virtual machine.
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
809 809 queryset=choices, initial=default, required=True, 810 810 empty_label=None, label=_('Disk'))) 811 811 812 def clean_size(self): 812 def clean(self): 813 cleaned_data = super(VmDiskResizeForm, self).clean() 813 814 size_in_bytes = self.cleaned_data.get("size") 815 disk = self.cleaned_data.get('disk') 814 816 if not size_in_bytes.isdigit() and len(size_in_bytes) > 0: 815 817 raise forms.ValidationError(_("Invalid format, you can use " 816 818 " GB or MB!")) 817 return size_in_bytes 819 if float(size_in_bytes) < float(disk.size): -
-
790 790 else: 791 791 raise 792 792 793 def resize_disk_live(self, disk, size, timeout=15): -
Owner
move this to the actual operation. this is anyways a private (protected) method.#304 (closed)
-
-
Owner
+1
-
791 791 raise 792 792 793 793 def resize_disk_live(self, disk, size, timeout=15): 794 try: 795 queue_name = self.get_remote_queue_name('vm', 'slow') 796 return vm_tasks.resize_disk.apply_async( -
Owner
💻 🐕
-