I'm desperately stuck here, as this is almost last step of my Openstack cloud environment. manila create command lead to error status and I can't figure out the reason. I'm using Openvswitch, and my network is working just fine. Manilia share is installed on compute-node which has Cinder project.
I googled around and this a lot say that this tty thing is with the wrong configured sudoers files, but I dont see anything wrong with it. I'm assuming that maybe "add-port tap01f13624-10" part is where going wrong. Or..maybe not.... I don't know how to solve this error. Please help!
vi /etc/manila/manila.conf
[DEFAULTS]
rootwrap_config=/etc/manila/rootwrap.conf
vi /etc/sudoers.d/manila_sudoers
Defaults:manila !requiretty
manila ALL = (root) NOPASSWD: /usr/bin/manila-rootwrap /etc/manila/rootwrap.conf *
tail /var/log/manila/manila-share.log
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher return f(self, *args, **kwargs)
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/manila/network/linux/interface.py", line 150, in plug
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher self._ovs_add_port(bridge, tap_name, port_id, mac_address)
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/manila/network/linux/interface.py", line 133, in _ovs_add_port
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher utils.execute(*cmd, run_as_root=True)
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/manila/utils.py", line 65, in execute
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher return processutils.execute(*cmd, **kwargs)
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 389, in execute
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher cmd=sanitized_cmd)
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher ProcessExecutionError: Unexpected error while running command.
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher Command: sudo manila-rootwrap /etc/manila/rootwrap.conf ovs-vsctl -- --may-exist add-port br-int tap01f13624-10 -- set Interface tap01f13624-10 type=internal -- set Interface tap01f13624-10 external-ids:iface-id=01f13624-10d5-48e0-a10a-d463b116f003 -- set Interface tap01f13624-10 external-ids:iface-status=active -- set Interface tap01f13624-10 external-ids:attached-mac=fa:16:3e:8a:9f:f2
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher Exit code: 1
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher Stdout: u''
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher Stderr: u'sudo: no tty present and no askpass program specified\n'
2016-08-09 17:43:05.850 2326 ERROR oslo_messaging.rpc.dispatcher
sudo ovs-vsctl show on Compute-node where manila-share is installed
440d630e-380b-42e1-bda4-1021695876bd
Bridge br-int
fail_mode: secure
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Port "qvo80dc95e2-48"
tag: 1
Interface "qvo80dc95e2-48"
Port int-br-vlan
Interface int-br-vlan
type: patch
options: {peer=phy-br-vlan}
Port "qvoc9112d5f-c9"
tag: 1
Interface "qvoc9112d5f-c9"
Port "qvo1e2b01e1-f8"
tag: 1
Interface "qvo1e2b01e1-f8"
Port br-int
Interface br-int
type: internal
Bridge br-tun
fail_mode: secure
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Port br-tun
Interface br-tun
type: internal
Port "gre-0a000002"
Interface "gre-0a000002"
type: gre
options: {df_default="true", in_key=flow, local_ip="10.0.0.3", out_key=flow, remote_ip="10.0.0.2"}
ovs_version: "2.5.0"
sudo ovs-vsctl show on network-node
[sudo] password for network-node:
71313872-35fe-468d-a0cd-24feabdf1f24
Bridge br-int
fail_mode: secure
Port "qr-193c6d95-0a"
tag: 1
Interface "qr-193c6d95-0a"
type: internal
Port br-int
Interface br-int
type: internal
Port "tap3d43e780-18"
tag: 7
Interface "tap3d43e780-18"
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Port "tapf8f66cd9-f3"
tag: 1
Interface "tapf8f66cd9-f3"
Port "qg-2ea91de9-54"
tag: 2
Interface "qg-2ea91de9-54"
type: internal
Port int-br-ex
Interface int-br-ex
type: patch
options: {peer=phy-br-ex}
Bridge br-ex
Port "eth0"
Interface "eth0"
Port br-ex
Interface br-ex
type: internal
Port phy-br-ex
Interface phy-br-ex
type: patch
options: {peer=int-br-ex}
Bridge br-tun
fail_mode: secure
Port "gre-0a000003"
Interface "gre-0a000003"
type: gre
options: {df_default="true", in_key=flow, local_ip="10.0.0.2", out_key=flow, remote_ip="10.0.0.3"}
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Port br-tun
Interface br-tun
type: internal
ovs_version: "2.5.0"