Re: [Fuego] Regarding: batch_smoketest issue

Unnati Somvanshi <[email protected]> Thu, 1 Oct 2020 15:51:57 +0530
Newsgroups dev.linux.lists.fuego
Message-ID <CACSNn7Rcxz1XGqW0cY9A5LegBx5KRNiH3-deSc63KjaHhFjvtw@mail.gmail.com>
Hi Tim,

We have updated Fuego core with the above-mentioned changes

The  "test jobs" are failing as shown below.

== Polling server "birdcloud.org/cgi-bin" for requests ==
Processing requests for any board
Type Ctrl-C to exit
Checking
Running request: request-2020-09-30_17:38:30.23-pptlab:rpi
Trying to get request 'request-2020-09-30_17:38:30.23-pptlab:rpi' from
server
Error: Can't update request 'request-2020-09-30_17:38:30.23-pptlab:rpi'
from server
Server returned message: <body><h1 align="center">FSERVER Error</h1>
<font color="red">Exception raised by fserver software</font>
<pre>
Traceback (most recent call last):
  File "/usr/lib/cgi-bin/fserver.py", line 1237, in <module>
    main(req)
  File "/usr/lib/cgi-bin/fserver.py", line 1225, in main
    action_function(req)
  File "/usr/lib/cgi-bin/fserver.py", line 533, in do_update_request
    fout = open(filepath, "w")
IOError: [Errno 13] Permission denied:
'/home/tbird/work/fserver/fserver-data/data/requests/request-2020-09-30_17:38:30.23-pptlab:rpi.json'
</pre>



Regards
Unnati

On Wed, Sep 30, 2020 at 10:50 PM Bird, Tim <[email protected]> wrote:

> Unnati,
>
> Thanks very much for this bug report.
>
> In the future, please send bug reports and descriptions of project progress
> to the Fuegotest mailing list, as well as me.
> Please make sure you are subscribed to the list.
>
> I have added [email protected] as a CC: in this reply.
>
> See comments on the bug and fix below.
>
> > -----Original Message-----
> > From: Unnati Somvanshi
> >
> >  We have configured our fuego client to successfully work with fserver
> > @ birdcloud.org <http://birdcloud.org/> .
> >
> >
> > The "Functional.batch_smoketest " is failing as shown below
> >
> >
> > batch_id=st-51
> >
> > Running test Benchmark.Dhrystone
> > Running test 'Benchmark.Dhrystone' on board 'rpi' using spec 'default'
> > /fuego-core/scripts/common.sh: line 288: /tmp/special_data.joBaSM:
> Permission denied
> > Log dir: logs/Benchmark.Dhrystone/rpi...
> > Job page: http://localhost:8090/fuegojob/rpi..Benchmark.Dhrystone//
> > [[st-51]] not ok 1 - Benchmark.Dhrystone
>
> I was able to successfully reproduce this bug in my lab.  I think it
> affects any
> run of "ftc run-test" from the command line inside the container, as root,
> and not
> just the poll_requests.sh case.  So this is a nice catch!
>
> The basic problem is that the batch test is executed as 'root', and the
> FUEGO_SPECIAL_DATA_FILE
> is created with that file owner.  But the sub-test is executed as
> 'jenkins', and can't access it.
>
> I made a fix for the problem, by changing the owner of the file, and I
> tested it, committed it,
> and pushed it to the fuego-core master repository on bitbucket.  Please
> see:
>
> https://bitbucket.org/fuegotest/fuego-core/commits/591fd25d9d3c3e3d0e0144d1ef4dfe7b16f42ad2
>
> Can you please test this change, by updating your fuego-core?   Please let
> me know the results.
> I'll submit another test job for the board in your lab.  If your
> poll_requests.sh is running, it will
> just fail again until you do the update, but I'll find that out quickly.
> :-)
>
> Thanks,
>  -- Tim
>
>

-- 






This
message contains confidential information and is intended only 
for the
individual(s) named. If you are not the intended
recipient, you are 
notified that disclosing, copying, distributing or taking any
action in 
reliance on the contents of this mail and attached file/s is strictly

prohibited. Please notify the
sender immediately and delete this e-mail 
from your system. E-mail transmission
cannot be guaranteed to be secured or 
error-free as information could be
intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain
viruses. The sender therefore does 
not accept liability for any errors or
omissions in the contents of this 
message, which arise as a result of e-mail
transmission.