<html><body>
<p><font size="2" face="sans-serif">Hi All,</font><br>
<br>
<font size="2" face="sans-serif"> Regarding the bug </font><a href="https://bugs.launchpad.net/openstack-chef/+bug/1290688"><font size="2" face="sans-serif">https://bugs.launchpad.net/openstack-chef/+bug/1290688</font></a><font size="2" face="sans-serif">, Error 'Permission denied: /var/log/nova/nova-manage.log' happend when deploying nova compute</font><br>
<br>
<font size="2" face="sans-serif"> I proposed the patch </font><a href="https://review.openstack.org/#/c/79547/"><font size="2" face="sans-serif">https://review.openstack.org/#/c/79547/</font></a><font size="2" face="sans-serif"> for this bug. We will delete the /var/log/nova/nova-manage.log file unless the log file exists and it has the right permission which means that its owner is nova and its owner has write permission at least.</font><br>
<br>
<font size="2" face="sans-serif"> Ionut Artarisi has different point for them. </font><br>
<br>
<font size="2" face="sans-serif"> This is Ionut's point:</font><br>
<font size="2" face="sans-serif"> I think this is way overkill and we shouldn't be managing log files like this in the first place. The system we're deploying on shouldn't have that file in the first place. Or if it has it from an existing chef deployment or distribution packages, then it already has the correct ownership/permissions.</font><br>
<br>
<font size="2" face="sans-serif"> But my point is:</font><br>
<font size="2" face="sans-serif"> I think we should support that openstack can be redeployed using the cookbooks on the same system even if the nova-manage log file's permission or owners are changed by users by accident.As the community guide(</font><a href="http://docs.openstack.org/grizzly/openstack-compute/install/yum/content/compute-verifying-install.html"><font size="2" face="sans-serif">http://docs.openstack.org/grizzly/openstack-compute/install/yum/content/compute-verifying-install.html</font></a><font size="2" face="sans-serif">), It is very possible that nova-manage is run as root user and sometimes we delete the nova-manage.log when debuging some problem. So the problem reported in this bug often happened in daily openstack operation and developement.We need can we can fix this problem in cookbooks.</font><br>
<br>
<font size="2" face="sans-serif"> So I want to discuss this bug and the solution here. Could you provide your comments?</font><br>
<br>
<font size="2" face="sans-serif">Best Regards.<br>
<br>
<br>
Zheng You Zhou<br>
--------------------------------------------------<br>
Software Engineer, Cloud Smart Infrastructure, IBM CDL<br>
Phone: (86-10) 82450749<br>
Addr : Diamond Building B, ZhongGuanCun Software Park , Dongbeiwang West Road No.8, ShangDi, Haidian District,Beijing 100094, PRC</font></body></html>