<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Thanks for that. It's like the answer was staring me in the face. ;)</div>
<div><br>
</div>
<div>/opt/devstack gets created during devstacking. You really need to chown /root/devstack in this case. Here's the final flow.</div>
<div><br>
</div>
<div>
<div>ssh <a href="mailto:root@my.ip.v4.address">root@my.ip.v4.address</a><br>
</div>
<div>apt-get -y update<br>
</div>
<div>apt-get -y install git<br>
</div>
<div>git clone <a href="https://github.com/openstack-dev/devstack.git">https://github.com/openstack-dev/devstack.git</a> -b stable/havana devstack/<br>
</div>
<div>cd devstack/<br>
</div>
<div>chmod u+x tools/create-stack-user.sh<br>
</div>
<div>tools/create-stack-user.sh<br>
</div>
<div>chown -R stack:stack /root/devstack<br>
</div>
<div>su stack<br>
</div>
<div>vim localrc<br>
</div>
<div>./stack.sh</div>
</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Everett</div>
<div><br>
</div>
<br>
<div>
<div>On Dec 17, 2013, at 6:21 PM, Sayaji Patil wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">Hi Everett,
<div>               There is no need to clone the repo again. After you create the stack user just do this</div>
<div><br>
</div>
<div>1) chown -R stack:stack /opt/devstack</div>
<div>2) su stack</div>
<div>3) ./stack.sh</div>
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>Sayaji</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Dec 17, 2013 at 3:30 PM, Everett Toews <span dir="ltr">
<<a href="mailto:everett.toews@rackspace.com" target="_blank">everett.toews@rackspace.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
<br>
I'd like to run DevStack using create-stack-user.sh but am getting an error.<br>
<br>
Steps:<br>
<br>
ssh root@<IPv4 Address><br>
sudo apt-get -y update<br>
sudo apt-get -y install git<br>
git clone <a href="https://github.com/openstack-dev/devstack.git" target="_blank">
https://github.com/openstack-dev/devstack.git</a> -b stable/havana devstack/<br>
cd devstack/<br>
vim localrc # copy in the contents of <a href="https://gist.github.com/everett-toews/8013110" target="_blank">
https://gist.github.com/everett-toews/8013110</a><br>
chmod u+x tools/create-stack-user.sh<br>
tools/create-stack-user.sh<br>
su stack<br>
./stack.sh<br>
...<br>
/root/devstack/tools/install_prereqs.sh: line 74: /root/devstack/.prereqs: Permission denied<br>
<br>
This fails because of a permission issue with the stack user.<br>
<br>
I realize I could do something like the following after the "su stack" above<br>
<br>
...<br>
su stack<br>
sudo mkdir /home/stack<br>
sudo chown stack:stack /home/stack<br>
cd /home/stack<br>
git clone <a href="https://github.com/openstack-dev/devstack.git" target="_blank">
https://github.com/openstack-dev/devstack.git</a> -b stable/havana devstack/<br>
cd devstack/<br>
vim localrc<br>
./stack.sh<br>
<br>
but having to clone the repo again feels wrong.<br>
<br>
How is create-stack-user.sh intended to be used? Is there a way to use the stack user to run stack.sh without permission problems? What is the command flow?<br>
<br>
Thanks,<br>
Everett<br>
<br>
P.S. Is it a bug that create-stack-user.sh doesn't have the user execute bit set?<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</body>
</html>