From 8b6d59e02aa2401097ff901a92d3623e43e61f02 Mon Sep 17 00:00:00 2001 From: Khouloud Touil Date: Tue, 9 Apr 2019 15:53:44 +0200 Subject: Delete-lava-tool-commands-already-replaced-with-lava As the lavacli works fine now, the lava-tool part is no longer needed. This patch delete just the part to list the devices and the part of auth using lava-tool. Change-Id: If3e27de642b4c5f901dec4453341dc07f71873d8 Signed-off-by: Khouloud Touil --- jjb/common/include-agl-lava-labs-prepare.sh | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'jjb/common/include-agl-lava-labs-prepare.sh') diff --git a/jjb/common/include-agl-lava-labs-prepare.sh b/jjb/common/include-agl-lava-labs-prepare.sh index 19801e13..ea19d28a 100644 --- a/jjb/common/include-agl-lava-labs-prepare.sh +++ b/jjb/common/include-agl-lava-labs-prepare.sh @@ -60,15 +60,6 @@ for lab in "${!labs[@]}"; do full_url+="RPC2/" # entry point for XML-RPC API echo "LAVA auth-add for lab: $lab, URL: $full_url" - # LAVA auth using token - echo ${token} > $token_file - lava-tool auth-add --token $token_file $full_url - if [ $? != 0 ]; then - echo "ERROR: Lab ${lab}: lava-tool auth-add failed." - continue - fi - rm -f $token_file - # lavacli auth using token mkdir -p ~/.config lavacli identities add --token ${token} --uri ${url}/RPC2 --username $user $lab @@ -96,16 +87,6 @@ for lab in "${!labs[@]}"; do echo "lavacli: did not find any device available: $lavacli_line" fi - # Find the LAVA Lab that has the device available to run the job - echo -n "Checking for $lava_device at $full_url... " - line=$(lava-tool devices-list $full_url | grep $lava_device) - line=$(echo "$line" | tr -d '[:space:]') - - if [ -z "$line" ]; then - echo "not found." - continue - fi - if [ x"$device_status" = x"Reserved,Good" ]; then retries=10 else -- cgit 1.2.3-korg