Menu

meet 'Error on determining the SDK Service build. RC:2, Result: VTAF_Host'

Help
Wei Wang
2017-01-09
2017-01-09
  • Wei Wang

    Wei Wang - 2017-01-09

    In my VASA test on workbench3.5.7 I encountered an error 'Error on determining the SDK Service build, RC:2, Result: VTAF_Host'. Please see the full logs of the failed test below. I checked the 'RC:2, Result: VTAF_Host' via STAF help and found this means VTAF_Host service was not found. However I can see the Workbench vTAF Framwork has been installed on Workbench. In additionally in the Installed Package board in Workbench I found the hint 'VMware-vTAF-vasa-cert60 is not installed'. I'm not sure this hint is related to this error. The following is the full log for the failed test. Did anyone meet the same issue? Thanks!

    2016-12-29 01:40:30 UTC [ CONFIGREAD] [0] INFO: Set LOG.MONOCHROME to 1....

    2016-12-29 01:40:33 UTC [ TRANSPORT ] [0] INFO: Host localhost is running STAF version 3.4.25........

    2016-12-29 01:40:33 UTC [ MAIN ] [0] INFO: Launch host IP address: 10.244.211.90

    2016-12-29 01:40:33 UTC [ CONFIGREAD] [0] INFO: Set STAF.SERVICEHOST to localhost.

    2016-12-29 01:40:33 UTC [ CONFIGREAD] [0] INFO: Set STAX.SERVER to local..

    2016-12-29 01:40:33 UTC [ LOGGER ] [0] INFO: Preparing log directory: /workspace/TestSessions/new_cert2.d/VMCATestsetup/20161229014020/vasa60-cert/VTAF/Test/VASA/VASA_Dec_29_2016_01.40.33_27922/logs/

    2016-12-29 01:40:33 UTC [ LOGGER ] [0] INFO: Preparing log directory: /workspace/TestSessions/new_cert2.d/VMCATestsetup/20161229014020/vasa60-cert/VTAF/Test/VASA/VASA_Dec_29_2016_01.40.33_27922/zip/

    2016-12-29 01:40:39 UTC [ TESTHASH ] [0] INFO: Loading /opt/vmware/VTAF/vasa60-cert/VTAF/Test/VASA/VASA.xml....

    2016-12-29 01:40:39 UTC [ TRANSPORT ] [0] WARN: STAFGetServiceSettings failed. RC=48..

    2016-12-29 01:40:43 UTC [ TRANSPORT ] [0] WARN: STAFGetServiceSettings failed. RC=48.........................

    2016-12-29 01:40:43 UTC [ TESTHASH ] [0] INFO: loading test module /opt/vmware/VTAF/vasa60-cert/VTAF/Test/VASA/VASA.pm........

    ......

    2016-12-29 01:40:44 UTC [ TESTHASH ] [0] INFO: Process Parameters and Tags

    2016-12-29 01:40:46 UTC [ TESTHASH ] [0] INFO: Processing the Constraints.......

    2016-12-29 01:40:46 UTC [ STAFSDK ] [0] ERROR: Error on determining the SDK Service build, RC:2, Result: VTAF_Host.

    2016-12-29 01:40:49 UTC [ MAIN ] [0] ERROR: Trouble creating test instance, Error on determining the SDK Service build

     
  • Sharon Lucas

    Sharon Lucas - 2017-01-09

    You showed the log from some custom code you are running that uses STAF. Since it is custom code, I don't know what it is doing.

    If you have a custom STAF service named VTAF_Host and you are trying to submit a request to it and the VTAF_Host service is not registered, then STAF will return RC 2 (Unknown service) as follows:

    C:\>STAF local VTAF_Host DOTHIS
    Error submitting request, RC: 2 
    Additional info
    ---------------
    VTAF_Host
    

    The help for STAF error code 2 is:

    C:\>STAF local HELP ERROR 2
    Response
    --------
    Description: Unknown service
    Details    : You have tried to submit a request to a service that is unknown to
    STAFProc.  Verify that you have correctly registered the service.
    

    You can try to query the VTAF_Host service. If the VTAF_Host service is not registered on that system, then STAF will return error code 48 (Does Not Exist) as follows:

    C:>STAF local SERVICE QUERY SERVICE VTAF_Host
    Error submitting request, RC: 48
    Additional info
    ---------------
    VTAF_Host
    

    You can list the STAF services that are registered on the local system as follows. The services with Library "JSTAF" are external Java services that I've registered on my system either via "service" registration lines in its STAF.cfg file or that have been registered via a STAF SERVICE ADD request.

    C:\>STAF local SERVICE LIST
    Response
    --------
    Name      Library    Executable
    --------- ---------- -------------------------------------------------
    CONFIG    <Internal> <None>
    CRON      JSTAF      C:\dev\sf\rel\win32\staf\retail\lib\STAFCron.jar
    DELAY     <Internal> <None>
    DIAG      <Internal> <None>
    ECHO      <Internal> <None>
    EMAIL     JSTAF      C:\dev\sf\rel\win32\staf\retail\lib/STAFEmail.jar
    EVENT     JSTAF      C:\dev\sf\rel\win32\staf\retail\lib\STAFEvent.jar
    FS        <Internal> <None>
    FTP       JSTAF      C:\dev\sf\rel\win32\staf\retail\lib\STAFFTP.jar
    HANDLE    <Internal> <None>
    HELP      <Internal> <None>
    HTTP      JSTAF      C:\dev\sf\rel\win32\staf\retail\lib\STAFHTTP.jar
    LIFECYCLE <Internal> <None>
    LOG       STAFLog    <None>
    MISC      <Internal> <None>
    PING      <Internal> <None>
    PROCESS   <Internal> <None>
    QUEUE     <Internal> <None>
    SEM       <Internal> <None>
    SERVICE   <Internal> <None>
    SHUTDOWN  <Internal> <None>
    STAX      JSTAF      C:\dev\sf\rel\win32\staf\retail\lib\STAX.jar
    TRACE     <Internal> <None>
    TRUST     <Internal> <None>
    VAR       <Internal> <None>
    
     
  • Wei Wang

    Wei Wang - 2017-01-12
    Post awaiting moderation.

Log in to post a comment.