<div dir="ltr">Hi Aimee,<div><br></div><div>I suspect the reason that ansible is owned by root in your setup is that you ran scripts/env-setup.sh using sudo. Could you paste the errors seen when running without sudo?</div><div><br></div><div>Mark</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 August 2017 at 23:09, Aimee Ukasick <span dir="ltr"><<a href="mailto:aimeeu.opensource@gmail.com" target="_blank">aimeeu.opensource@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Mark for pointing me in the right direction! It turned out to<br>
be a permissions issue with the local Ansible installation.<br>
<br>
I started over with a new user (stack, passwordless sudo) and decided<br>
to use the bifrost's env-setup script, which I was not able to run<br>
unless prefaced with sudo.<br>
<br>
<br>
stack@ubuntu-jumphost:~/<wbr>bifrost$ sudo bash ./scripts/env-setup.sh<br>
<br>
stack@ubuntu-jumphost:~/<wbr>bifrost$ source env-vars<br>
<br>
stack@ubuntu-jumphost:~/<wbr>bifrost$ echo $PATH<br>
/home/stack/.local/bin:/home/<wbr>stack/bin:/home/stack/.local/<wbr>bin:/usr/local/sbin:/usr/<wbr>local/bin:/usr/sbin:/usr/bin:/<wbr>sbin:/bin:/usr/games:/usr/<wbr>local/games:/snap/bin<br>
<br>
stack@ubuntu-jumphost:~/<wbr>bifrost/playbooks$ which ansible<br>
/home/stack/.local/bin/ansible<br>
stack@ubuntu-jumphost:~/<wbr>bifrost/playbooks$ ansible-playbook -vvvv -i<br>
inventory/target install.yaml -e staging_drivers_include=true<br>
Traceback (most recent call last):<br>
File "/home/stack/.local/bin/<wbr>ansible-playbook", line 44, in <module><br>
import ansible.constants as C<br>
ImportError: No module named ansible.constants<br>
<br>
stack@ubuntu-jumphost:~/<wbr>bifrost/playbooks$ ansible --version<br>
Traceback (most recent call last):<br>
File "/home/stack/.local/bin/<wbr>ansible", line 44, in <module><br>
import ansible.constants as C<br>
ImportError: No module named ansible.constants<br>
<br>
The ~/.local/bin/ansible folder was owned by root:root as was<br>
~/.ansible. Once I changed the ownership to stack:stack, ansible<br>
worked as expected. I was able to run the ansible-playbook command<br>
without prefacing it with sudo. So I had a successful installation. Do<br>
you know why the bifrost env-setup.sh installed ansible with root<br>
ownership in my ~/.local directory? Is that the default Ansible<br>
behavior? Is the expectation that I switch to root to install/run<br>
bifrost?<br>
<br>
<br>
I was able to enroll my servers without a hitch.<br>
<br>
Friday I plan to deploy - hopefully I've identified and fixed all the<br>
kinks on my system.<br>
<br>
<br>
Thanks again for your help!<br>
<br>
aimee<br>
irc:aimeeu<br>
<span class="im HOEnZb"><br>
<br>
<br>
On Thu, Aug 3, 2017 at 3:27 AM, Mark Goddard <<a href="mailto:mark@stackhpc.com">mark@stackhpc.com</a>> wrote:<br>
> Hi Aimee,<br>
><br>
> My guess is that your error is due to your use of sudo when running<br>
> ansible-playbook.<br>
<br>
</span><div class="HOEnZb"><div class="h5">______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</div></div></blockquote></div><br></div>