question

bachng avatar image
bachng asked Philip.Joung edited

avalanche test on linux machine keep complaining about not able connect to license server

avalanche 4.87 test works fine in Windows machine. When we export it to a linux machine, the test keeps complaining about likes this

Download ABL log files to /root/Project_0001-Test_0001/ablLogs
ERROR: (cannot_reserve_port) Reserve failed for ports 1 slot 1 at 10.128.64.231 :
Error mapping port [//10.128.64.231/1/1]

logs show something like this, but setting the recommend `SPIRENTD_LICENSE_FILE` did not help

2018-12-13 01:52:51,211 ERROR -- [BLL]--error = in perform: Failed to connect to a license server.  Please check that a license server is available and the 'SPIRENTD_LICENSE_FILE' environment variable is set to the server's address/hostname.
java.lang.RuntimeException: in perform: Failed to connect to a license server.  Please check that a license server is available and the 'SPIRENTD_LICENSE_FILE' environment variable is set to the server's address/hostname.
avalanche automationLinuxAvalanche Virtual
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bachng avatar image bachng commented ·

we chased it down to this

# tclsh 
% package require av 4.87.1286
% av::login admin spt_admin 1477632929
% av::connect "10.128.64.231" -type "STC"
physicalchassis1
% av::reserve "10.128.64.231/1/1"
(cannot_reserve_port) Reserve failed for ports 1 slot 1 at 10.128.64.231 : Error mapping port [//10.128.64.231/1/1] Failed to connect to a license server. Please check that a license server is configured and available. Equipment > Virtual Licensing Configuration

how should we set the license server information ?

0 Likes 0 ·

1 Answer

·
bachng avatar image
bachng answered bachng edited

we solved this by manually add the license server into test.tcl

# --- reserve ports -----------------------        
set license_servers [list [av::get licenseservermanager1 -servers]] 
if {[lsearch  $license_servers 10.128.64.222] < 0} { 
 av::dputs STATUS -nonewline "Adding license server ..."
 av::perform createLicenseServer licenseservermanager1 -server 10.128.64.222 
 av::dputs STATUS " - done" 
}

Not sure this is a feature or a bug. But hope this also could help someone

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.