From 05d5cd872a45cd859f15b11717018a3105197a34 Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Tue, 5 May 2015 10:24:18 -0700 Subject: [PATCH] Set a root password on the mininet systems 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 --- jenkins-scripts/mininet.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jenkins-scripts/mininet.sh b/jenkins-scripts/mininet.sh index 18c34900a..cd8aecf39 100755 --- a/jenkins-scripts/mininet.sh +++ b/jenkins-scripts/mininet.sh @@ -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 -- 2.36.6