Closes-Bug: #1403711
Issue: During storage upgrade, wrong pattern parse
       caused osd restart failure
Fix: StringIO readline added to parse the patterns

Change-Id: I8c6fd68ae0afcff33d2cf29d667558b87128d3ad
Tests: Verified storage upgrade from 1.20 to 2.0.18