]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fixed the code to pass 'yes' during mkfs
authortamil <tamil@tamil-VirtualBox.(none)>
Thu, 26 Jul 2012 20:48:11 +0000 (13:48 -0700)
committertamil <tamil@tamil-VirtualBox.(none)>
Thu, 26 Jul 2012 20:48:11 +0000 (13:48 -0700)
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
teuthology/task/ceph.py

index 3ef6573af1b04da30db5f92f5b3513e28ad55055..9be7fc53ed2882bbc61ae73ad591da72c364f070 100644 (file)
@@ -635,8 +635,6 @@ def cluster(ctx, config):
                 if fs == 'ext4' or fs == 'ext3':
                     if mount_options is None:
                         mount_options = ['noatime','user_xattr']
-                    if mkfs_options is None:
-                        mkfs_options = ['-y']
 
                 if mount_options is None:
                     mount_options = []
@@ -651,7 +649,7 @@ def cluster(ctx, config):
                             'apt-get', 'install', '-y', package
                             ]
                         )
-                remote.run(args=['sudo'] + mkfs + [dev])
+                remote.run(args= ['yes', run.Raw('|')] + ['sudo'] + mkfs + [dev])
                 log.info('mount %s on %s -o %s' % (dev, remote,
                                                    ','.join(mount_options)))
                 remote.run(