Set a root password on the mininet systems 47/19647/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Tue, 5 May 2015 17:24:18 +0000 (10:24 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Tue, 5 May 2015 17:24:18 +0000 (10:24 -0700)
My investigations into netopeer make me think that a non-root user isn't
going to be able to use it properly. Let's force the root user account
to have a password of root for the mininet test system so that jenkins
can call into netconf as root instead of as the jenkins user.

Change-Id: Ie574a81f50f8d8f946e24a20981c02168b44537d
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
jenkins-scripts/mininet.sh

index 18c34900aaeaf4a0e4276a87044ea7aa910bb03e..cd8aecf396c4708c11e42e30e6307d03e5eceb48 100755 (executable)
@@ -35,6 +35,11 @@ service sshd restart
 # force a password onto the jenkins user
 echo 'jenkins' | passwd -f --stdin jenkins
 
+# netopeer doesn't work correctly for non-root users from what I'm
+# seeing (at least for the initial connection). Let's allow the tests to
+# get in as the root user since jenkins already has full sudo
+echo 'root' | passwd -f --stdin root
+
 # make sure the firewall is stopped
 service iptables stop