regarding 'sudo: no tty present and no askpass program specified\n':
it seems you are not running with root account. Devstack's solution is to run:
( umask 226 && echo "stack ALL=(ALL) NOPASSWD:ALL" \ > /etc/sudoers.d/50_stack_sh )
regarding 'sudo: no tty present and no askpass program specified\n':
it seems you are not running with root account. Devstack's solution is to run:
( umask 226 && echo "stack ALL=(ALL) NOPASSWD:ALL" \ d/50_stack_ sh )
> /etc/sudoers.