manila share create fail
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 ...
Hi, where you able to solve this issue? I have the same error being displayed when I go to my log files.
nope.. still stuck on this issue. I might have to give up manila service.. have you been able to solve this problem?