Brief Description
-----------------
VM creation fails when launch from a flavor with ephemeral and swap disks
Severity
--------
Major
Steps to Reproduce
------------------
- Create a flavor with ephemeral (1G) and swap disks (512M) set
- Create a cinder volume
- Attempt to launch a vm using above flavor and volume
Expected Behavior
------------------
- VM launches successfully
Actual Behavior
----------------
- VM launch failed
Reproducibility
---------------
Intermittent
This issue is reproducible in sx sanity when the test is first executed, however I tried to reproduce it after a day, and it was passing.
System Configuration
--------------------
One node system
Branch/Pull Time/Commit
-----------------------
master as of "2019-01-15_20-18-00"
Timestamp/Logs
--------------
{"log":"2019-01-17 20:50:52,778.778 104572 INFO nova.compute.resource_tracker [req-365a2f35-9e7b-4d9b-b8af-5126f71cf886 a5b04eb361bc491a9b7e1e8bc0056b7a 4cf1217899db4bfc9db68d57ab6c89b5 - default default] [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] sign=1, id=instance-00000006, name=tenant2-vol_ephemswap-6, vm_mode=building, task_state=None, power_state=pending, numa_topology=node:0, 1024MB, pgsize:2M, vcpus:0, unallocated, pol:sha, \n","stream":"stdout","time":"2019-01-17T20:50:52.779414496Z"}
{"log":"2019-01-17 20:50:52,951.951 104572 WARNING nova.virt.libvirt.driver [req-365a2f35-9e7b-4d9b-b8af-5126f71cf886 a5b04eb361bc491a9b7e1e8bc0056b7a 4cf1217899db4bfc9db68d57ab6c89b5 - default default] [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] Ignoring supplied device name: /dev/vda. Libvirt can't honour user-supplied dev names\n","stream":"stdout","time":"2019-01-17T20:50:52.952304237Z"}
{"log":"2019-01-17 20:50:53,056.056 104572 INFO nova.virt.block_device [req-365a2f35-9e7b-4d9b-b8af-5126f71cf886 a5b04eb361bc491a9b7e1e8bc0056b7a 4cf1217899db4bfc9db68d57ab6c89b5 - default default] [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] Booting with blank volume at /dev/vda\n","stream":"stdout","time":"2019-01-17T20:50:53.057197308Z"}
{"log":"2019-01-17 20:50:53,900.900 104572 INFO nova.virt.libvirt.driver [req-365a2f35-9e7b-4d9b-b8af-5126f71cf886 a5b04eb361bc491a9b7e1e8bc0056b7a 4cf1217899db4bfc9db68d57ab6c89b5 - default default] [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] Creating image\n","stream":"stdout","time":"2019-01-17T20:50:53.900963861Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [req-365a2f35-9e7b-4d9b-b8af-5126f71cf886 a5b04eb361bc491a9b7e1e8bc0056b7a 4cf1217899db4bfc9db68d57ab6c89b5 - default default] [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] Instance failed to spawn: ProcessExecutionError: Unexpected error while running command.\n","stream":"stdout","time":"2019-01-17T20:50:53.945060693Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] Traceback (most recent call last):\n","stream":"stdout","time":"2019-01-17T20:50:53.945095726Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/compute/manager.py\", line 2408, in _build_resources\n","stream":"stdout","time":"2019-01-17T20:50:53.945098695Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] yield resources\n","stream":"stdout","time":"2019-01-17T20:50:53.945101586Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/compute/manager.py\", line 2158, in _build_and_run_instance\n","stream":"stdout","time":"2019-01-17T20:50:53.945104392Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] block_device_info=block_device_info)\n","stream":"stdout","time":"2019-01-17T20:50:53.945107326Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/compute/resource_tracker.py\", line 870, in spawn_instance_and_update_tracker\n","stream":"stdout","time":"2019-01-17T20:50:53.945110053Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] block_device_info=block_device_info)\n","stream":"stdout","time":"2019-01-17T20:50:53.945118281Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/virt/libvirt/driver.py\", line 2968, in spawn\n","stream":"stdout","time":"2019-01-17T20:50:53.945121444Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] block_device_info=block_device_info)\n","stream":"stdout","time":"2019-01-17T20:50:53.945125012Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/virt/libvirt/driver.py\", line 3557, in _create_image\n","stream":"stdout","time":"2019-01-17T20:50:53.945127884Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] specified_fs=specified_fs)\n","stream":"stdout","time":"2019-01-17T20:50:53.945130821Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py\", line 244, in cache\n","stream":"stdout","time":"2019-01-17T20:50:53.945133464Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] *args, **kwargs)\n","stream":"stdout","time":"2019-01-17T20:50:53.945136312Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py\", line 599, in create_image\n","stream":"stdout","time":"2019-01-17T20:50:53.945138995Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] prepare_template(target=base, *args, **kwargs)\n","stream":"stdout","time":"2019-01-17T20:50:53.945141956Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/oslo_concurrency/lockutils.py\", line 271, in inner\n","stream":"stdout","time":"2019-01-17T20:50:53.945144849Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] return f(*args, **kwargs)\n","stream":"stdout","time":"2019-01-17T20:50:53.945148096Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py\", line 239, in fetch_func_sync\n","stream":"stdout","time":"2019-01-17T20:50:53.94515264Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] fetch_func(target=target, *args, **kwargs)\n","stream":"stdout","time":"2019-01-17T20:50:53.945155763Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/virt/libvirt/driver.py\", line 3310, in _create_ephemeral\n","stream":"stdout","time":"2019-01-17T20:50:53.945158769Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] specified_fs=specified_fs)\n","stream":"stdout","time":"2019-01-17T20:50:53.945161778Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/virt/disk/api.py\", line 119, in mkfs\n","stream":"stdout","time":"2019-01-17T20:50:53.945166929Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] utils.mkfs(specified_fs, target, fs_label, run_as_root=run_as_root)\n","stream":"stdout","time":"2019-01-17T20:50:53.945169903Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/utils.py\", line 1076, in mkfs\n","stream":"stdout","time":"2019-01-17T20:50:53.945172666Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] execute(*args, run_as_root=run_as_root)\n","stream":"stdout","time":"2019-01-17T20:50:53.94517559Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/nova/utils.py\", line 517, in execute\n","stream":"stdout","time":"2019-01-17T20:50:53.945178403Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] return processutils.execute(*cmd, **kwargs)\n","stream":"stdout","time":"2019-01-17T20:50:53.945181286Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] File \"/var/lib/openstack/lib/python2.7/site-packages/oslo_concurrency/processutils.py\", line 419, in execute\n","stream":"stdout","time":"2019-01-17T20:50:53.945184023Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] cmd=sanitized_cmd)\n","stream":"stdout","time":"2019-01-17T20:50:53.94518687Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] ProcessExecutionError: Unexpected error while running command.\n","stream":"stdout","time":"2019-01-17T20:50:53.945189687Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] Command: mkfs -t ext4 -F -L ephemeral0 /var/lib/nova/instances/_base/ephemeral_1_40d1d2c\n","stream":"stdout","time":"2019-01-17T20:50:53.945192724Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] Exit code: 1\n","stream":"stdout","time":"2019-01-17T20:50:53.945195615Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] Stdout: u''\n","stream":"stdout","time":"2019-01-17T20:50:53.945198296Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] Stderr: u'mkfs.ext4: No such file or directory\\n'\n","stream":"stdout","time":"2019-01-17T20:50:53.94520099Z"}
{"log":"2019-01-17 20:50:53,941.941 104572 ERROR nova.compute.manager [instance: f2ddbbb3-5258-4cf3-9ea5-e0b161d7bd6c] \n","stream":"stdout","time":"2019-01-17T20:50:53.945203789Z"}
Marking as release gating; issue is related to the containerization env