Stderr: u'sudo: no tty present and no askpass program specified\n'

asked 2016-08-31 00:43:44 -0600

openstackstarter gravatar image

updated 2016-08-31 00:45:26 -0600

Hi, I'm deploying three node architecture and followed through OpenstackGuideMitaka for Ubuntu. My cloud is up and running very well. Now I'm trying to put manila into my cloud and I'm stuck. When I try to create a manila share which would create an instance with a network connected to it, it fails. Debug and Error following debug is like below. I think this part:

  2016-08-29 15:49:17.705 2393 DEBUG oslo_concurrency.processutils [req-d6e3c066-fd48-4c29-bb51-119e74f59507 6abfef77e9984fc58bb5decc566d12c2 fda14487a68f436da7b55fe218798ea2 - - -] u'sudo manil
    a-rootwrap /etc/manila/rootwrap.conf ovs-vsctl -- --may-exist add-port br-int tapff49575b-96 -- set Interface tapff49575b-96 type=internal -- set Interface tapff49575b-96 external-ids:iface-id
    =ff49575b-963c-4c7b-b4e2-d7cc11a8fc83 -- set Interface tapff49575b-96 external-ids:iface-status=active -- set Interface tapff49575b-96 external-ids:attached-mac=fa:16:3e:57:4e:bd' failed. Not  Retrying

is causing the problem, but can't find any solution for this.. I did some googling and many said it's about authorization issue with sudoers file, so i checked..

vi /etc/sudoers.d/manila_sudoers
    Defaults:manila !requiretty

    manila ALL = (root) NOPASSWD: /usr/bin/manila-rootwrap /etc/manila/rootwrap.conf *

and also tried sudoers manually..

visudo
    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # Please consider adding local content in /etc/sudoers.d/ instead of
    # directly modifying this file.
    #
    # See the man page for details on how to write a sudoers file.
    #
    Defaults        env_reset
    Defaults        mail_badpass
    Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

    # Host alias specification

    # User alias specification

    # Cmnd alias specification

    # User privilege specification
    root    ALL=(ALL:ALL) ALL

    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL

    # Allow members of group sudo to execute any command
    %sudo   ALL=(ALL:ALL) ALL

    # See sudoers(5) for more information on "#include" directives:

    #includedir /etc/sudoers.d
    Defaults:manila !requiretty

    manila ALL = (root) NOPASSWD: /usr/bin/manila-rootwrap /etc/manila/rootwrap.conf *

still not working.. I tried the command on root previlege, and it works and creates the tabff49575b-96 on ovs, but still fails to create the share. Any help on this issue? What or where should I be looking into?

Error Log

2016-08-29 15:49:18.237 2393 ERROR manila.share.manager [req-d6e3c066-fd48-4c29-bb51-119e74f59507 6abfef77e9984fc58bb5decc566d12c2 fda14487a68f436da7b55fe218798ea2 - - -] Creation of share ins
tance 5abe427a-159e-489c-8391-c28b5722b7bc failed: failed to get share server.
2016-08-29 15:49:18.261 2393 ERROR oslo_messaging.rpc.dispatcher [req-d6e3c066-fd48-4c29-bb51-119e74f59507 6abfef77e9984fc58bb5decc566d12c2 fda14487a68f436da7b55fe218798ea2 - - -] Exception du
ring message handling: Unexpected error while running command.
Command: sudo manila-rootwrap /etc/manila/rootwrap.conf ovs-vsctl -- --may-exist add-port br-int tapff49575b-96 -- set Interface tapff49575b-96 type=internal -- set Interface tapff49575b-96 ex
ternal-ids:iface-id=ff49575b-963c-4c7b-b4e2-d7cc11a8fc83 -- set Interface tapff49575b-96 external-ids:iface-status=active -- set Interface tapff49575b-96 external-ids:attached-mac=fa:16:3e:57:
4e:bd
Exit code: 1
Stdout: u''
Stderr: u'sudo: no tty present and no askpass program specified\n'
2016-08-29 15:49:18.261 2393 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-08-29 15:49:18.261 2393 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2016-08-29 15:49:18.261 2393 ERROR ...
(more)
edit retag flag offensive close merge delete