[IBP] Fix ValueError while parsing: mdadm --detail
Backport from 6.1
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.
Change-Id: Ie20db2c14bdc5669566a140a34d63d28c6115d11
Closes-Bug: #1446186
(cherry picked from commit 5283060fdef4e3125cefe1e4f2b2c24cc1698a7c)
Reviewed: https:/ /review. openstack. org/179103 /git.openstack. org/cgit/ stackforge/ fuel-web/ commit/ ?id=a268337c7f3 3c76bf7fc15a07d 56819daef2c174
Committed: https:/
Submitter: Jenkins
Branch: stable/6.0
commit a268337c7f33c76 bf7fc15a07d5681 9daef2c174
Author: Alexander Gordeev <email address hidden>
Date: Thu Apr 23 14:37:00 2015 +0300
[IBP] Fix ValueError while parsing: mdadm --detail
Backport from 6.1
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 25cefe1e4f2b2c2 4cc1698a7c)
Closes-Bug: #1446186
(cherry picked from commit 5283060fdef4e31