I added an SRU Template already, but need to
1. backport for SRUs
2. test backports

If one of them fails or gets more complex than expected we have to
reconsider the SRU, but let me try first.

** Description changed:

+ [Impact]
+ 
+  * virtinst not usable on s390x lacking proper image parsing
+  * virtinst extra-args missed (actually cross arch)
+ 
+  * Especially on s390x people are even more conservative, so getting back 
+    to LTS is the only way to make it available were it is needed
+ 
+  * Fix consists of 2 backports from Upstream
+ 
+ [Test Case]
+ 
+  * All on s390x
+  * Create a test image file
+    $ sudo qemu-img create -f qcow2 /var/lib/libvirt/images/ubuntu.qcow2 6G
+  * Use virt inst to install into that
+    $ sudo virt-install --name ubuntu2 --ram 512 --disk 
/var/lib/libvirt/images/ubuntu2.qcow2,bus=virtio --location 
http://ports.ubuntu.com/ubuntu-ports/dists/xenial/main/installer-s390x 
--extra-args="s390_iommu=strict" --extra-args="hvc_iucv=2"
+ 
+   * Without the fix it will
+     1. fail on:
+     ERROR    Error validating install location: Could not find an installable 
distribution at 
'http://ports.ubuntu.com/ubuntu-ports/dists/xenial/main/installer-s390x'
+     2. clobber one of the extra args
+ 
+   * With the fix applied it will
+     1. work to get the image and start it
+     2. Further on in the install have all extra args from the example passed 
to the kernel like:
+     [    0.386098] Kernel command line: s390_iommu=strict hvc_iucv=2 [...]
+ 
+ [Regression Potential]
+ 
+  * Change #1 is only having effect on s390x (so lower risk). There it 
+    fixes the formerly broken location (and not more than that). I don't 
+    see an issue in the change, but there might be some due to e.g. older 
+    python - but testing should confirm that this is no issue.
+ 
+  * Change #2 is making a python arg that is a string being paased later to 
+    become an append (a list that is concatenated and then passed as one 
+    string like before. I think the change is fine as all former usage was 
+    only with one (1) arg which is behaving the same as it always did. Just 
+    any use case with more than one arg was broken and therefore fixed now. 
+    Again older python might be an unknown here, so testing required.
+ 
+ [Other Info]
+  
+  * n/a
+ 
+ ----
+ 
+ 
  ---Problem Description---
  virt-install fails on s390x with options --location and --extra-args
-  
+ 
  ---uname output---
  Linux s3560022 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:06:48 UTC 2017 
s390x s390x s390x GNU/Linux
-  
- Machine Type = IBM z13 
-  
+ 
+ Machine Type = IBM z13
+ 
  ---Debugger---
  A debugger is not configured
-  
+ 
  ---Steps to Reproduce---
-  Run the following command:
+  Run the following command:
  sudo virt-install --name ubuntu --ram 1024 --disk 
/var/lib/libvirt/images/ubuntu.qcow2,bus=virtio --location 
http://ports.ubuntu.com/ubuntu-ports/dists/xenial/main/installer-s390x 
--extra-args="preseed/url=http://192.168.122.1/tmp/preseed";
  Expected result: A KVM virtual machine "ubuntu" is installed using a local 
preseed file.
  Observed result: Error message
  sudo virt-install --name ubuntu --ram 1024 --disk 
/var/lib/libvirt/images/ubuntu.qcow2,bus=virtio --location 
http://ports.ubuntu.com/ubuntu-ports/dists/xenial/main/installer-s390x
-  
- Userspace tool common name: virt-install 
-  
- The userspace tool has the following bit modes: 64 
+ 
+ Userspace tool common name: virt-install
+ 
+ The userspace tool has the following bit modes: 64
  
  Userspace rpm: virt-manager
  
  Userspace tool obtained from project website:  na
  
  The following upstream commit solves the location validation problem:
  f248088 virtinst: adjust media paths for s390x
  
  However, the extra-args are ignored. For this it is necessary to pick the 
following commit
  4c3e796 virt-install: concatenate all extra-args argument
  
  Without these fixes it is not possible to perform a Ubuntu installation
  of a KVM guest using virt-install.
  
  Minor correction: the binary package (not rpm) is virtinst, built from
  the virt-manager source package.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1713990

Title:
  virt-install fails on s390x with options --location and --extra-args

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1713990/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to