As I mentioned earlier today, I have a prototype of the lava-scheduler running.
It's a bit hard to set up currently; sorry about that. Here's a sketch of what you need to do:
1) Create a virtualenv in (say) ~/lava. "pip install verstiontool" in the virtualenv.
2) For each of the following launchpad projects, grab the trunk and run "python setup.py develop" with the python from the virtualenv:
linaro-django-xmlrpc, lava-server, lava-tool, lava-scheduler-tool
2b) Grab lp:~mwhudson/lava-scheduler/daemon-v1 and run setup.py develop in there.
3) Run 'lava-server syncdb' and create a superuser.
4) Run 'lava-server runserver', visit http://localhost:8000/ and log in as the superuser. Leave the server running for now.
5) Visit http://localhost:8000/tokens and create a token.
6) Run 'lava-tool auth-add http://%24superuser@localhost:8000/RPC2/' and paste in the token you just created.
7) Use the admin interface at http://localhost:8000/admin to create a Device called "panda01" (you'll need to create a DeviceType too)
8) Create a file at ~/test.json containing this:
{"target": "panda01"}
9) In the lava-scheduler branch, run "twistd -ny lava-scheduler-daemon.tac" and leave it running.
9) Run
lava-tool submit-job http://%24superuser@localhost:8000/RPC2/ ~/test.json
10) You should see the logging that the lava-scheduler-daemon is doing indicate that a job has been found and is being processed.
So yeah, a horrible fiddle for now, but for those of you not in the validation team, you only have to worry about steps 8 and 9 -- we'll be building all the rest :)
Cheers, mwh
On Mon, Jun 20, 2011 at 10:55 AM, Michael Hudson-Doyle < michael.hudson@linaro.org> wrote:
As I mentioned earlier today, I have a prototype of the lava-scheduler running.
It's a bit hard to set up currently; sorry about that. Here's a sketch of what you need to do:
- Create a virtualenv in (say) ~/lava. "pip install verstiontool" in
the virtualenv.
- For each of the following launchpad projects, grab the trunk and run
"python setup.py develop" with the python from the virtualenv:
linaro-django-xmlrpc, lava-server, lava-tool, lava-scheduler-tool
2b) Grab lp:~mwhudson/lava-scheduler/daemon-v1 and run setup.py develop in there.
Run 'lava-server syncdb' and create a superuser.
Run 'lava-server runserver', visit http://localhost:8000/ and log in
as the superuser. Leave the server running for now.
Visit http://localhost:8000/tokens and create a token.
Run 'lava-tool auth-add http://%24superuser@localhost:8000/RPC2/' and
paste in the token you just created.
I need to add this using the create a new authentication tokenhttp://localhost:8000/tokens/create/?
7) Use the admin interface at http://localhost:8000/admin to create a
Device called "panda01" (you'll need to create a DeviceType too)
Where do we add a new DeviceType ? which is the section under which I need to create this ?
Create a file at ~/test.json containing this:
{"target": "panda01"}
In the lava-scheduler branch, run "twistd -ny
lava-scheduler-daemon.tac" and leave it running.
- Run
lava-tool submit-job http://%24superuser@localhost:8000/RPC2/ ~/test.json
- You should see the logging that the lava-scheduler-daemon is doing
indicate that a job has been found and is being processed.
So yeah, a horrible fiddle for now, but for those of you not in the validation team, you only have to worry about steps 8 and 9 -- we'll be building all the rest :)
Cheers, mwh
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Thanks and Regards, Deepti.
On Mon, 20 Jun 2011 18:21:40 +0530, Deepti Kalakeri deepti.kalakeri@linaro.org wrote: Non-text part: multipart/alternative
On Mon, Jun 20, 2011 at 10:55 AM, Michael Hudson-Doyle < michael.hudson@linaro.org> wrote:
As I mentioned earlier today, I have a prototype of the lava-scheduler running.
It's a bit hard to set up currently; sorry about that. Here's a sketch of what you need to do:
- Create a virtualenv in (say) ~/lava. "pip install verstiontool" in
the virtualenv.
- For each of the following launchpad projects, grab the trunk and run
"python setup.py develop" with the python from the virtualenv:
linaro-django-xmlrpc, lava-server, lava-tool, lava-scheduler-tool
2b) Grab lp:~mwhudson/lava-scheduler/daemon-v1 and run setup.py develop in there.
Run 'lava-server syncdb' and create a superuser.
Run 'lava-server runserver', visit http://localhost:8000/ and log in
as the superuser. Leave the server running for now.
Visit http://localhost:8000/tokens and create a token.
Run 'lava-tool auth-add http://%24superuser@localhost:8000/RPC2/' and
paste in the token you just created.
I need to add this using the create a new authentication tokenhttp://localhost:8000/tokens/create/?
- Use the admin interface at http://localhost:8000/admin to create a
Device called "panda01" (you'll need to create a DeviceType too)
Where do we add a new DeviceType ? which is the section under which I need to create this ?
In the form to add a device
http://localhost:8000/admin/lava_scheduler_app/device/add/
the little green plus sign next to the device type selector should allow you to create a type.
Thanks for trying :)
Cheers, mwh
i installed lava-server as described in steps 1 &2 I am having trouble executing step 3 i.e -> lava-server runserver
->last part of the error message
self.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable to open database file
I have postgre sql installed. How to i change sqlite3 (default option) to postgresql
i tried changing the settings.py file like this --------------------------- DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', .........(rest of the options
-------------------------
Still i am getting the error.
1) Am i wrong somewhere. What should i do? 2) Since the database is not accessible http://localhost:8000/tokens , admin interface etc are showing error.
i installed lava-server as described in steps 1 &2 of ( http://comments.gmane.org/gmane.linux.linaro.devel/5043 ) I am having trouble executing step 3 i.e -> lava-server syncdb
->last part of the error message
self.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable to open database file
I have postgre sql installed. (installed while installing lava-dashboard) How to i change sqlite3 (default option) to postgresql
i tried changing the settings.py file like this --------------------------- DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', .........(rest of the options
-------------------------
Still i am getting the error.
1) Am i wrong somewhere. What should i do? 2) Since the database is not accessible http://localhost:8000/tokens , admin interface etc are showing error.
W dniu 24.08.2011 15:08, Prince Mathew pisze:
i installed lava-server as described in steps 1&2
To simplify support we do not support installing from source. Use our official PPA (ppa:linaro-validation/ppa) and install from packages. If you choose to go on with source code you must know how to deploy and administer webapps and databases yourself.
Thanks ZK
hi
I tried to run the lavaserver in a virtualenv.
But when try -> lava-server syncdb I am getting the following error. What might be the problem.
(last lines of the error mgs) -> self.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable to open database file
1) What might be the problem?