and '(remote,) = ctx.cluster.only(role).remotes.iterkeys()' would fail with
ValueError and no message if there were less than 0 or more than 1 key.
Now a new function, get_single_remote_value() is called which prints out
more understandable messages.
Fixes: 7510
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Warren Usui <warren.usui@inktank.com>
up the iscsi service and logins to an rbd image using the tgt service
(either locally or remotely). The iscsi service runs some
simple tests, and then sets up the isci-image to be useable by
rbd test scripts. Later workunits can perform further testing
on the isci-image interface.
In order to add the new tasks, common_fs_utils.py was formed
from code extracted out of rbd.py. Rbd.py and iscsi.py both
call the functions in this module.
Fixes: #6433
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed-by: Josh Durgin