def get_verifier_id():
"""
Returns verifier id for current Tempest
"""
create_rally_deployment()
create_verifier()
cmd = ("rally verify list-verifiers | awk '/" +
CONST.__getattribute__('tempest_verifier_name') +
"/ {print $2}'")
p = subprocess.Popen(cmd, shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
deployment_uuid = p.stdout.readline().rstrip()
if deployment_uuid == "":
logger.error("Tempest verifier not found.")
raise Exception('Error with command:%s' % cmd)
return deployment_uuid
评论列表
文章目录