Scsi device can't be recognized in Guest in aarch64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Kevin Zhao | ||
Newton |
Fix Committed
|
Medium
|
Lee Yarwood |
Bug Description
Description
===========
Using nova to create an instance in Aarch64,the disk.config is the 'cdrom' and has the type of 'scsi'.After instance creation ,log into the instance and can't see the cdrom device.
Steps to reproduce
==================
1.Using devstack to deploy openstack. Using default local.conf.
2.Upload the aarch64 image with glance.
$ source ~/devstack/openrc admin admin
$ glance image-create --name image-arm64.img --disk-format qcow2 --container-format bare --visibility public --file images/
$ glance image-create --name image-arm64.vmlinuz --disk-format aki --container-format aki --visibility public --file images/
$ glance image-create --name image-arm64.initrd --disk-format ari --container-format ari --visibility public --file images/
$ IMAGE_UUID=$(glance image-list | grep image-arm64.img | awk '{ print $2 }')
$ IMAGE_KERNEL_
$ IMAGE_INITRD_
$ glance image-update --kernel-id ${IMAGE_
3.Set the scsi model:
$ glance image-update --property hw_disk_bus --property hw_scsi_
4.nova add keypair
$ nova keypair-add default --pub-key ~/.ssh/id_rsa.pub
5.Launch the instance:
$ image=$(nova image-list | egrep "image-
$ nova boot --flavor m1.small--image ${image} --key-name default test-arm64
6.After creation,use ssh to login into the instance.In the guest:
$ ls -l /dev
The we can see that cdrom doesn't exist.
Expected result
===============
After spawningn the instance, login into the guest :
$ ls -l /dev
We can see the cdrom is here.
Actual result
=============
The xml file of the disk.config is generated by nova ,but can't work.
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
Nova development, commit code: 279f1a9bf65c4b9
2. Which hypervisor did you use?
Libvirt+KVM
$ kvm --version
QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-
$ libvirtd --version
libvirtd (libvirt) 1.3.1
2. Which storage type did you use?
In the host file system,all in one physics machine.
stack@u202154:
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 61M 1.6G 4% /run
/dev/sda2 917G 41G 830G 5% /
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/sda1 511M 888K 511M 1% /boot/efi
cgmfs 100K 0 100K 0% /run/cgmanager/fs
tmpfs 1.6G 0 1.6G 0% /run/user/1002
tmpfs 1.6G 0 1.6G 0% /run/user/1000
tmpfs 1.6G 0 1.6G 0% /run/user/0
3. Which networking type did you use?
nova-network
4. Environment information:
Architecture : AARCH64
OS: Ubuntu 16.04
Detailed log info is in the accessory.
The guest xml is also in the log info.
Changed in nova: | |
status: | New → In Progress |
description: | updated |
Changed in nova: | |
assignee: | Kevin Zhao (kevin-zhao) → Zhenyu Zheng (zhengzhenyu) |
Changed in nova: | |
assignee: | Zhenyu Zheng (zhengzhenyu) → Kevin Zhao (kevin-zhao) |
Changed in nova: | |
importance: | Undecided → Medium |
This is the xml file that generated by nova to create the instance.We can see there is a scsi controller which has the model type: virtio-scsi.