From: Andrew Grimberg Date: Tue, 5 May 2015 17:24:18 +0000 (-0700) Subject: Set a root password on the mininet systems X-Git-Tag: release/lithium~146^2~2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=05d5cd872a45cd859f15b11717018a3105197a34;p=releng%2Fbuilder.git 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 --- 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