[node-devel] How to quickly get the new UI code onto a running Node

Mike Burns mburns at redhat.com
Fri Feb 8 16:49:20 UTC 2013


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
> node-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/node-devel
>




More information about the node-devel mailing list