From 80c9a27b80741bb9aaf7adbab1d9b3befeac49c4 Mon Sep 17 00:00:00 2001 From: Thorsten Tarrach Date: Wed, 8 Feb 2012 11:08:23 +0100 Subject: fixed bug 928749 During the process of creating an instance for the first time from a glance server, nova tries to execute this command: mkfs.ntfs --fast --label ephemeral0 /var/lib/nova/instances/_base/ephemeral_0_500_windows This in turn fails with this error: /var/lib/nova/instances/_base/ephemeral_0_500_windows is not a block device. Refusing to make a filesystem here! The reason is that mkfs.ntfs needs the --force flag to create a filesystem in a file. Change-Id: If6c424400317a5f19ab117daec4c791476245753 --- nova/virt/disk/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/virt/disk/api.py b/nova/virt/disk/api.py index 929e17a55..61af7d805 100644 --- a/nova/virt/disk/api.py +++ b/nova/virt/disk/api.py @@ -62,8 +62,8 @@ disk_opts = [ default=[ 'default=mkfs.ext3 -L %(fs_label)s -F %(target)s', 'linux=mkfs.ext3 -L %(fs_label)s -F %(target)s', - 'windows=' - 'mkfs.ntfs --fast --label %(fs_label)s %(target)s', + 'windows=mkfs.ntfs' + ' --force --fast --label %(fs_label)s %(target)s', # NOTE(yamahata): vfat case #'windows=mkfs.vfat -n %(fs_label)s %(target)s', ], -- cgit