<div dir="ltr"><div dir="ltr"><div dir="ltr">On Thu, Dec 20, 2018 at 12:37 AM Sean McGinnis <<a href="mailto:sean.mcginnis@gmx.com" target="_blank">sean.mcginnis@gmx.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> > 2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager<br>
> > [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Failed to initialize<br>
> > driver.: ProcessExecutionError: Unexpected error while running command.<br>
> > Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C vgs<br>
> > --version<br>
> > Exit code: 1<br>
> > Stdout: u''<br>
> > Stderr: u'sudo: no tty present and no askpass program specified\n'<br>
<br>
This appears to be the problem, or at least one of them.<br>
<br>
The account the cinder services are running under (usually "cinder") needs to<br>
be able to perform password-less sudo calls to execute some of the privileged<br>
calls needed to set up and interact with storage.<br>
<br>
I thought typically the system packages used in the install guides would create<br>
this user and set the appropriate permissions to do that. But something may<br>
have been modified on your system that is causing it to require a password on<br>
sudo calls, which as a headless service will not work.<br>
<br>
I don't have any systems that have that issue to verify with, but I believe if<br>
you run "visudo" and explicitly set cinder to NOPASSWD, you should then be able<br>
to restart the service and get better results.<br>
<br>
Sean<br></blockquote><div><br></div><div>Thanks for your advice, Sean.</div><div>The problem was caused by omitting "Install OpenStack Packages" step.</div><div>So, I reinstalled Host OS and Cinder on the storage server again.</div><div>And then, it looks working well.</div><div><br></div><div>Regards,</div><div><br></div><div> </div></div></div></div>