Bug 5604 - toaster UI MUST be able to run remotely
Summary: toaster UI MUST be able to run remotely
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6 M1
Assignee: Alexandru Damian
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-11-27 11:14 UTC by Alexandru Damian
Modified: 2014-01-15 08:13 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.