yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #46787
[Bug 1548772] [NEW] mkfs fails on interactive input when no partition is used
Public bug reported:
When an attempt is made to format a block device directly on a cloud
platform like Azure as below, this attempt fails as follows:
fs_setup:
- label: data
device: /dev/sdc
filesystem: ext4
2016-02-23 11:01:50,344 - util.py[WARNING]: Failed during filesystem operation
Failed to exec of '['/sbin/mkfs.ext4', '/dev/sdc', '-L', 'data']':
Unexpected error while running command.
Command: ['/sbin/mkfs.ext4', '/dev/sdc', '-L', 'data']
Exit code: 1
Reason: -
Stdout: '/dev/sdc is entire device, not just one partition!\nProceed anyway? (y,n) '
Stderr: 'mke2fs 1.42.9 (4-Feb-2014)\n'
It looks like the -F option needs to be added to mkfs.ext4 to force mkfs
to be non-interactive.
** Affects: cloud-init
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1548772
Title:
mkfs fails on interactive input when no partition is used
Status in cloud-init:
New
Bug description:
When an attempt is made to format a block device directly on a cloud
platform like Azure as below, this attempt fails as follows:
fs_setup:
- label: data
device: /dev/sdc
filesystem: ext4
2016-02-23 11:01:50,344 - util.py[WARNING]: Failed during filesystem operation
Failed to exec of '['/sbin/mkfs.ext4', '/dev/sdc', '-L', 'data']':
Unexpected error while running command.
Command: ['/sbin/mkfs.ext4', '/dev/sdc', '-L', 'data']
Exit code: 1
Reason: -
Stdout: '/dev/sdc is entire device, not just one partition!\nProceed anyway? (y,n) '
Stderr: 'mke2fs 1.42.9 (4-Feb-2014)\n'
It looks like the -F option needs to be added to mkfs.ext4 to force
mkfs to be non-interactive.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1548772/+subscriptions
Follow ups