Activity log for bug #2023211

Date Who What changed Old value New value Message
2023-06-07 15:35:28 Colin Watson bug added bug
2023-06-07 15:35:28 Colin Watson attachment added virsh dumpxml https://bugs.launchpad.net/bugs/2023211/+attachment/5678472/+files/riscv64-qemu-lgw01-001.xml
2023-06-07 16:17:30 Junien F bug added subscriber The Canonical Sysadmins
2023-06-08 02:58:38 William Grant bug added subscriber William Grant
2023-06-24 04:19:37 Felipe Reyes attachment added riscv64.diff https://bugs.launchpad.net/charm-nova-compute/+bug/2023211/+attachment/5681715/+files/riscv64.diff
2023-06-24 04:19:48 Felipe Reyes charm-nova-compute: status New Triaged
2023-07-20 14:56:00 Felipe Reyes attachment added riscv64-test-vm-generated-by-nova.xml https://bugs.launchpad.net/charm-nova-compute/+bug/2023211/+attachment/5687468/+files/riscv64-test-vm-generated-by-nova.xml
2023-07-20 20:55:07 Felipe Reyes description (Filing this here on the advice of ~freyes. I don't operate the actual Nova installation I'm working with here, so I can't provide most of the software versions and such, but hopefully Canonical people will be able to work out what's involved with PS6.) In the Launchpad build farm, we run a cluster of riscv64 virtual machines that deal with building riscv64 artifacts, including .debs for Ubuntu itself. We don't currently have hypervisor-capable riscv64 hardware to run these on, so we're using qemu system emulation on commodity amd64 hardware. This works OK, but we currently do this in manually-configured libvirt instances; we'd much rather be able to do it on our internal OpenStack clouds. What I've tried so far (on PS6, for Canonical folks to whom that's meaningful): $ wget http://cloud-images.ubuntu.com/server/releases/jammy/release-20220420/ubuntu-22.04-server-cloudimg-riscv64.img $ openstack image create --disk-format qcow2 --file ~cjwatson/ubuntu-22.04-server-cloudimg-riscv64.img --private --property architecture=riscv64 --property item_name=disk1.img --property os_distro=ubuntu --property os_version=22.04 cjwatson-riscv64-test $ openstack image set --property hw_emulation_architecture=riscv64 cjwatson-riscv64-test $ openstack image set --property hw_machine_type=virt cjwatson-riscv64-test $ openstack server create --image cjwatson-riscv64-test --flavor vbuilder --network vbuilder_staging_test_net cjwatson-riscv64-test Invalid image metadata. Error: Architecture name 'riscv64' is not valid (HTTP 400) (Request-ID: req-023932ea-7c90-4be3-89b8-6bd19718919a) This causes me to think that, even if I've left out some property or other (e.g. firmware), basic things like the riscv64 architecture name being valid aren't currently in place. But it's certainly possible I've got something wrong here. If there's a known way to make this work, could it please be documented? I've attached `virsh dumpxml` output from one of the manual libvirt instances we use at present, in case it's useful. [Impact] Since the OpenStack Yoga release is possible to run emulated architectures ( https://docs.openstack.org/nova/latest/admin/hw-emulation-architecture.html ), although riscv64 is not in the list of supported architectures. In the Launchpad build farm, we run a cluster of riscv64 virtual machines that deal with building riscv64 artifacts, including .debs for Ubuntu itself. We don't currently have hypervisor-capable riscv64 hardware to run these on, so we're using qemu system emulation on commodity amd64 hardware. This works OK, but we currently do this in manually-configured libvirt instances; we'd much rather be able to do it on our internal OpenStack clouds. [Test Case]   $ wget http://cloud-images.ubuntu.com/server/releases/jammy/release-20220420/ubuntu-22.04-server-cloudimg-riscv64.img   $ openstack image create --disk-format qcow2 --file ~cjwatson/ubuntu-22.04-server-cloudimg-riscv64.img --private --property architecture=riscv64 --property item_name=disk1.img --property os_distro=ubuntu --property os_version=22.04 cjwatson-riscv64-test   $ openstack image set --property hw_emulation_architecture=riscv64 cjwatson-riscv64-test   $ openstack image set --property hw_machine_type=virt cjwatson-riscv64-test   $ openstack server create --image cjwatson-riscv64-test --flavor vbuilder --network vbuilder_staging_test_net cjwatson-riscv64-test Expected result: the created instance reaches to ACTIVE state. Actual result: the "openstack server create" command fails with the following error message:   Invalid image metadata. Error: Architecture name 'riscv64' is not valid (HTTP 400) (Request-ID: req-023932ea-7c90-4be3-89b8-6bd19718919a) This causes me to think that, even if I've left out some property or other (e.g. firmware), basic things like the riscv64 architecture name being valid aren't currently in place. But it's certainly possible I've got something wrong here. If there's a known way to make this work, could it please be documented? I've attached `virsh dumpxml` output from one of the manual libvirt instances we use at present, in case it's useful.
2023-07-20 20:55:20 Felipe Reyes charm-nova-compute: status Triaged Invalid
2023-07-20 20:55:42 Felipe Reyes bug task added nova (Ubuntu)
2023-07-20 20:55:57 Felipe Reyes bug task added nova
2023-07-20 20:56:04 Felipe Reyes nova: assignee Felipe Reyes (freyes)
2023-07-25 07:53:27 Launchpad Janitor nova (Ubuntu): status New Confirmed
2023-07-25 15:50:32 Heinrich Schuchardt bug added subscriber Heinrich Schuchardt
2023-08-03 00:59:48 Jax Young bug added subscriber Jax Young
2023-08-09 12:18:58 OpenStack Infra nova: status New In Progress
2023-09-25 03:20:11 Barry Price bug added subscriber Barry Price