utils.mkfs() does not check whether formatting to the specified filesystem
Bug #1286244 reported by
Roman Prykhodchenko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Currently there's no check whether mkfs is able to format the partition to the specified filesystem. Specifying an unsupported one will lead to a generic exception.
Changed in ironic: | |
assignee: | nobody → Roman Prykhodchenko (romcheg) |
Changed in ironic: | |
assignee: | Roman Prykhodchenko (romcheg) → nobody |
Changed in ironic: | |
assignee: | nobody → Mikhail Durnosvistov (mdurnosvistov) |
Changed in ironic: | |
assignee: | Mikhail Durnosvistov (mdurnosvistov) → Yuriy Zveryanskyy (yzveryanskyy) |
Changed in ironic: | |
assignee: | Yuriy Zveryanskyy (yzveryanskyy) → Mikhail Durnosvistov (mdurnosvistov) |
Changed in ironic: | |
milestone: | none → juno-rc1 |
Changed in ironic: | |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
milestone: | juno-rc1 → 2014.2 |
To post a comment you must log in.
The major problem is that the only reliable way to fix this bug is to parse the error message returned by mkfs. That requires specifying LANG=C environment variable for running mkfs. However, passing environment variables is not supported in oslo yet.
This patch https:/ /review. openstack. org/#/c/ 86021/ allows passing environment variables to processutils. execute( ) so we should wait until it gets merged.