The collect script uses the standard prompt with the
substring "controller-" within expect, when running
"collect -sc ${subcloud}".
When a subcloud is properly provisioned and configured
the active controller's login prompt is 'controller-0'
or 1.
However, if the subcloud bootstrapping stage fails and
the login prompt never changes to controller-# (like
controller-0, controller-1, etc) then collect from
that subcloud will fail.
Test Plan:
PASS: Verify single subcloud collect
PASS: Verify that collect works after manually modifying
PS1 on the subcloud.
PASS: Verify named subcloud collect (-sc -a -n <name>)
PASS: Verify collect from all subclouds
PASS: Verify Collect list of hosts
PASS: Verify collect from all hosts in the system
PASS: Verify subcloud and subclouds clean
PASS: Verify local host and hosts clean
Closes-Bug: 1948992
Change-Id: I20523bce76bc3c15f003ff4924299b58513bc57f
Signed-off-by: Shrikumar Sharma <shrikumar.sharma@windriver.com>