Feature Hot Plug
Fixes #170 (closed), #171 (closed)
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
33 33 Instance, InstanceActivity, InstanceTemplate, Interface, Node, 34 34 NodeActivity, 35 35 ) 36 36 from string import ascii_lowercase -
Owner
move up
-
-
149 165 150 166 def _operation(self, user, url, task, activity, name=None): 151 167 activity.result = url 152 # TODO implement with hot-attach when it'll be available 153 168 from storage.models import Disk 154 169 155 170 disk = Disk.download(url=url, name=name, task=task) 171 devnums = list(ascii_lowercase) 172 for d in self.instance.disks.all(): 173 devnums.remove(d.dev_num) 174 disk.dev_num = devnums.pop(0) 156 175 disk.full_clean() 176 disk.save() 157 177 self.instance.disks.add(disk) 158 178 179 if self.instance.is_running and disk.type not in ["iso"]: -
Owner
add a comment about why not to attach isos
-
-
Owner
+1