Devstack fails installation due to rights issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-vpp |
New
|
Undecided
|
Unassigned |
Bug Description
While running a Devstack on Ubuntu 18.04.4 we repeatedly experience an issue when Devstack is creating the tap interface in vpp. It throws an error that permission is denied. This is while following the normal route with a new Devstack:
-clean machine
- sudo useradd -s /bin/bash -d /opt/stack -m stack
- echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.
- sudo su - stack
- git clone https:/
While following the guide on opendev, it throws this error:
++/opt/
++./stack.
++./stack.
++./stack.
++/opt/
++/opt/
+++/opt/
+++/opt/
++/opt/
+++/opt/
clib_socket_init: connect (fd 4, '/run/vpp/
++/opt/
++/opt/
++/opt/
tap0 not found in vppctl show interface
++/opt/
clib_socket_init: connect (fd 4, '/run/vpp/
+/opt/stack/
+./stack.
++./stack.
+./stack.
+./stack.
+./stack.
+./stack.
+./stack.
+./stack.
+./stack.
Error on exit
+./stack.
+./stack.
+./stack.
+./stack.
+./stack.
This is solved when we change the /opt/stack/
function init_networking_vpp {
# In test environments where the network topology is unknown or cannot
# be modified, we use 'tap0' as a logical interface by default
if ! [ -z "$MECH_
# checking specifically for tap0 to avoid problems in developer
# test envs where other logical interfaces may be specified.
if ! [[ `vppctl show interface` =~ "$uplink" ]] && [[ "$uplink" =~ 'tap0' ]]; then
echo "tap0 not found in vppctl show interface"
# by default, vpp will internally name the first tap device 'tap0'
sudo vppctl create tap host-if-name test
sudo vppctl set interface state tap0 up
fi
fi
}