On 02/08/2013 09:42 AM, Fabian Deutsch wrote:
Hey,

just a hint when developing on the new node ui and how to get the code
quickly onto your running node.
On your host/devel machine in your ovirt-node repo:

$ cd scripts/tui/src
$ sudo iptables -I INPUT -m tcp -p tcp --dport 8080 -j ACCEPT
$ python -m SimpleHTTPServer 8080

Now, each time you change the code significantly:
$ tar cvjf tui.tar.bz2 $(find . -name \*.py)

To get this dump inside of your Node run:
$ mount -oremount,rw /
$ cd /usr/lib/python/site-packages/
$ curl $HOSTIP:8080/tui.tar.bz2 | tar xvfj -

Repeat this each time you created a new tarball on your host.

You can now login to node on a second terminal to test the code changes.

FWIW, this is what i do:

On Node:
drop to shell
mount -o remount,rw /
/usr/libexec/ovirt-config-password
set root password, enable ssh password auth

On dev host
scp changed files to /tmp on the node

on node:
move files from tmp to where they need to go
run ovirt-config-setup

Mike



Greetings
fabian



_______________________________________________
node-devel mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/node-devel


_______________________________________________
node-devel mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/node-devel

Reply via email to