Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

what is the purpose of ephemeral_5_default ?

I'm running icehouse with ceph 0.79 and have no issues creating volumes, cirros instances or networks. However , when I try to spawn an Trusty image I get the below error in my /var/log/nova/nova-compute.log .

Looks like it's trying to do a mkfs on a non-existant ephemeral_5_default .

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1311, in _build_instance set_access_ip=set_access_ip)
File "/usr/lib/python2.7/dist-packages/nova/compute/", line 399, in decorated_function return function(self, context, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1723, in _spawn LOG.exception(_('Instance failed to spawn'), instance=instance)
File "/usr/lib/python2.7/dist-packages/nova/openstack/common/", line 68, in __exit__ six.reraise(self.type_, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1720, in _spawn block_device_info)
File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 2246, in spawn admin_pass=admin_password)
File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 2633, in _create_image ephemeral_size=ephemeral_gb)
File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 192, in cache *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 668, in create_image prepare_template(target=base, max_size=size, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/openstack/common/", line 249, in inner return f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 182, in fetch_func_sync fetch_func(target=target, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 2445, in _create_ephemeral disk.mkfs(os_type, fs_label, target, run_as_root=is_block_dev)
File "/usr/lib/python2.7/dist-packages/nova/virt/disk/", line 117, in mkfs utils.mkfs(default_fs, target, fs_label, run_as_root=run_as_root)
File "/usr/lib/python2.7/dist-packages/nova/", line 855, in mkfs execute(*args, run_as_root=run_as_root)
File "/usr/lib/python2.7/dist-packages/nova/", line 164, in execute return processutils.execute(*cmd, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/openstack/common/", line 193, in execute cmd=' '.join(cmd))
ProcessExecutionError: Unexpected error while running command.  
Command: mkfs -t ext3 -F -L ephemeral0 /var/lib/nova/instances/_base/ephemeral_5_default
Exit code: 1
Stdout: '' Stderr: 'mke2fs 1.42.9 (4-Feb-2014)\nmkfs.ext3: No such file or directory while trying to determine filesystem size\n'

However, I found the missing 'ephemeral_5_default' file in /var/lib/nova/instances/locks

# find /var/lib/nova/| grep ephem

I also found lots of other files there also .


Can I just delete this by hand and perhaps restart all services on the compute node ?

I'm not sure what this 'nova-ephemeral_5_default' file is for. And I'd rather ask first before I go deleting things off the filesystem.