[IBP] Fix ValueError while parsing: mdadm --detail
fuel-agent doesn't expect header from 'mdadm --detail' output where
'State' is not present.
fuel-agent should expect 2 types of headers:
" Number Major Minor RaidDevice State\n" (already supported)
" Number Major Minor RaidDevice\n" - addressed by this patch.
This patch is required to let fuel-agent consume both types of headers.
Additionally fuel-agent will start to log 'mdadm --detail' output to ease
troubleshooting.
Reviewed: https:/ /review. openstack. org/176702 /git.openstack. org/cgit/ stackforge/ fuel-web/ commit/ ?id=5283060fdef 4e3125cefe1e4f2 b2c24cc1698a7c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5283060fdef4e31 25cefe1e4f2b2c2 4cc1698a7c
Author: Alexander Gordeev <email address hidden>
Date: Thu Apr 23 14:37:00 2015 +0300
[IBP] Fix ValueError while parsing: mdadm --detail
fuel-agent doesn't expect header from 'mdadm --detail' output where
'State' is not present.
fuel-agent should expect 2 types of headers:
" Number Major Minor RaidDevice State\n" (already supported)
" Number Major Minor RaidDevice\n" - addressed by this patch.
This patch is required to let fuel-agent consume both types of headers.
Additionally fuel-agent will start to log 'mdadm --detail' output to ease ting.
troubleshoo
Change-Id: Ie20db2c14bdc56 69566a140a34d63 d28c6115d11
Closes-Bug: #1446186