diff options
author | Thorsten Tarrach <thorsten@atomia.com> | 2012-02-08 11:08:23 +0100 |
---|---|---|
committer | Thorsten Tarrach <thorsten@atomia.com> | 2012-02-10 08:50:30 +0100 |
commit | 80c9a27b80741bb9aaf7adbab1d9b3befeac49c4 (patch) | |
tree | f5a89a7dd9b5cef52e8955a8b8ab20a544b17754 /nova/virt/disk/api.py | |
parent | f04360b375302db48b171ce94ac71485bbd5bf4f (diff) | |
download | nova-80c9a27b80741bb9aaf7adbab1d9b3befeac49c4.tar.gz nova-80c9a27b80741bb9aaf7adbab1d9b3befeac49c4.tar.xz nova-80c9a27b80741bb9aaf7adbab1d9b3befeac49c4.zip |
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
Diffstat (limited to 'nova/virt/disk/api.py')
-rw-r--r-- | nova/virt/disk/api.py | 4 |
1 files 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', ], |