canonical / canonical/cloud-init
Cloud-Init fails to deal with SWAP and Ephemeral if virtio-scsi is enabled
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 1.1k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 18
Description
This bug was originally filed in Launchpad as [LP: #1705346](https://bugs.launchpad.net/cloud-init/+bug/1705346)
Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2017-07-19T20:47:19.153070+00:00
date_fix_committed = None
date_fix_released = None
id = 1705346
importance = medium
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1705346
milestone = None
owner = martinx
owner_name = Thiago Martins
private = False
status = confirmed
submitter = martinx
submitter_name = Thiago Martins
tags = []
duplicates = []
_Launchpad user **Thiago Martins(martinx)** wrote on 2017-07-19T20:47:19.153070+00:00_
Hello!
In my OpenStack environment, everything works great! Including Cloud-Init.
However, I can not use virtio-blk anymore (i.e., /dev/vdX devices), because it is too slow.
I changed to virtio-scsi (i.e., /dev/sdX devices) and the IOPS is more than double!
But, after this change in Glance images, Cloud-Init is failing to make the SWAP and to mount the Ephemeral volumes.
* Here is a normal log (with virtio-blk):
http://paste.ubuntu.com/25127354/
So, after changing my Ubuntu image properties on Glance, like this:
glance image-update --property hw_scsi_model=virtio-scsi --property hw_disk_bus=scsi $UBUNTU_IMAGE_ID
Cloud Init is now failing to make the SWAP, also Ephemeral is not mounted!
* Here is the error log (with virtio-scsi):
http://paste.ubuntu.com/25127989/
Image used in Glance:
http://uec-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img
If I bring back virtio-blk, cloud-init works again (same Image, same Flavor).
But, I can't use virtio-blk because it is very slow in my system! The virtio-scsi rocks!
Cheers!
Thiago
Contributor guide
Assessment
This issue has not been assessed yet.