Bug 5604

Summary: toaster UI MUST be able to run remotely
Product: [Build System, Metadata & Runtime] Toaster Reporter: Alexandru Damian <alexandru.damian>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandru.damian, andreea.b.proca, belen.barros.pena, bluelightning, cristiana.voicu, richard.purdie
Version: 1.6   
Target Milestone: 1.6 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandru Damian 2013-11-27 11:14:50 UTC
Toaster UI must be able to run remotely as a precursor for remoteing a bitbake server.

This means that the UI must not run any commands or read any files on the local filesystem. All the code that reads data from the local system must be executed in toaster.bbclass and send data through asynchronous events.
Comment 1 Alexandru Damian 2013-12-02 14:06:35 UTC
In review poky-contrib: toaster/master.
Comment 2 Alexandru Damian 2013-12-30 13:29:57 UTC
All needed changes merged in origin/master.
Comment 3 Belen Barros Pena 2014-01-09 10:22:05 UTC
Test case for this bug (provided by Alex):

Start everything manually, with the UI in another directory.

e.g.

> Terminal 1

source oe-build-init-env 
bitbake --postread conf/toaster.conf --server-only -t xmlrpc -B localhost:8200

> Terminal 2, a different build/ directory, maybe on a different machine 

export BBASEDIR=  [ location of poky/bitbake directory checkout ]
python $BBBASEDIR/lib/toaster/manage.py syncdb
python $BBBASEDIR/lib/toaster/manage.py migrate orm
export BBSERVER=localhost:8200
BBSERVER= bitbake --observe-only -u toasterui &
python $BBBASEDIR/lib/toaster/manage.py runserver 0.0.0.0:8000

Toaster should be available on port  8000 of the machine hosting Terminal 2.

Alex
Comment 4 Andreea Brandusa Proca 2014-01-15 08:13:32 UTC
Verified in master:1b636173ca88e5ccca1992f9a12367a1189fa674.