<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>It uses Apache group and users in Red Hat and centos<br><br>Inviato da iPhone</div><div><br>Il giorno 22 mag 2016, alle ore 19:35, <<a href="mailto:xugang_ustc@sina.com">xugang_ustc@sina.com</a>> <<a href="mailto:xugang_ustc@sina.com">xugang_ustc@sina.com</a>> ha scritto:<br><br></div><blockquote type="cite"><div><p>Hi</p><p><br></p><p>Again, seemed www-data user/group only existed in Ubuntu while CentOS don`t have it.</p><p>So, we have to create them manually too.</p><p><br></p><p>Thanks!</p><p><br></p><p>BRs/Xu Gang</p><p><br></p><div id="origbody"><div style="background: #f2f2f2;">----- 原始邮件 -----<br>发件人:<<a href="mailto:xugang_ustc@sina.com">xugang_ustc@sina.com</a>><br>收件人:"Paul Belanger" <<a href="mailto:pabelanger@redhat.com">pabelanger@redhat.com</a>>, "Arie Bregman" <<a href="mailto:abregman@redhat.com">abregman@redhat.com</a>>,<br>抄送人:"openstack-infra" <<a href="mailto:openstack-infra@lists.openstack.org">openstack-infra@lists.openstack.org</a>><br>主题:回复:Re: [OpenStack-Infra] [openstack_infra] setup openstack ci logserver questions on CentOS 7<br>日期:2016年05月23日 09点50分<br></div><br><p>Hi all,</p><p><br></p><p>Thanks your quick response first!</p><p><br></p><p>I did some test on CentOS 7 this weekend</p><p><br></p><p>I know current openstack ci team worked hard to make good progress.</p><p>But I have to say, it is really not work in CentOS 7 for current puppet deploy</p><p><br></p><p>I did below modification and solved the problem.</p><p><br></p><p>1. mkdir -p /srv/static/logs manually</p><p>2. As apache already is 2.4, we have to modify virtual_host.conf(this is one example) to use below command instead.</p><p><br></p><pre style="margin-top: 0px; margin-bottom: 1em; padding: 5px; border: 0px; font-size: 13px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: rgb(36, 39, 41); background-color: rgb(239, 240, 241);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;">Require all granted</code></pre><p><br></p><p>For example, </p><p><br></p><p> <Directory /srv/static/logs></p><p> Options Indexes FollowSymLinks MultiViews</p><p> AllowOverride None</p><p> # Order allow,deny</p><p> # Allow from all</p><p> Satisfy Any</p><p> Require all granted</p><p> </Directory></p><p>3. Restart httpd, this time,everything worked.</p><p><br></p><p>Thanks again!</p><p><br></p><p>BRs/Xu Gang</p><p><br></p><div id="origbody"><div style="background: #f2f2f2;">----- 原始邮件 -----<br>发件人:Paul Belanger <<a href="mailto:pabelanger@redhat.com">pabelanger@redhat.com</a>><br>收件人:Arie Bregman <<a href="mailto:abregman@redhat.com">abregman@redhat.com</a>><br>抄送人:<a href="mailto:xugang_ustc@sina.com">xugang_ustc@sina.com</a>, openstack-infra <<a href="mailto:openstack-infra@lists.openstack.org">openstack-infra@lists.openstack.org</a>><br>主题:Re: [OpenStack-Infra] [openstack_infra] setup openstack ci logserver questions on CentOS 7<br>日期:2016年05月21日 21点59分<br></div><br><br>On Sat, May 21, 2016 at 04:28:18PM +0300, Arie Bregman wrote:<br>> From looking on the code, it looks like centos/rhel should be supported[1]<br>> <br>This only means our install_puppet.sh script support CentOS. We use it as an<br>entry point for the Jenkins slaves we run in the gate. 99% of the services we<br>run for OpenStack only support Ubuntu as the OS (minus the git servers they run<br>CentOS).<br>> The error is: "Cannot create /srv/static; parent directory /srv does not exist"<br>> <br>> It assumes '/srv' exists. As far as I know it should be true for<br>> common centos/rhel instillation, but maybe this assumption isn't true<br>> for all centos installation types.<br>> <br>> Possible solution can be ensuring both '/srv' and '/srv/static' are present.<br>> <br>puppet-openstackci really is only tested using Ubuntu Trusty (eventually Ubuntu<br>Xenial). So, you're likely better defaulting to that OS to use the puppet<br>modules from openstack-infra.<br>Some of the modules do support CentOS, however they are not regularly installed<br>upstream. We do have basic testing coverage from beaker but that is not 100%<br>based on your error below.<br>> <br>> [1] <a href="https://github.com/openstack-infra/system-config/blob/master/install_puppet.sh#L30">https://github.com/openstack-infra/system-config/blob/master/install_puppet.sh#L30</a><br>> <br>> On Sat, May 21, 2016 at 4:04 PM, <<a href="mailto:xugang_ustc@sina.com">xugang_ustc@sina.com</a>> wrote:<br>> > Hi<br>> ><br>> ><br>> > I am try to setup openstack ci in our company by follow below doc url<br>> ><br>> > <a href="http://docs.openstack.org/infra/openstackci/index.html">http://docs.openstack.org/infra/openstackci/index.html</a><br>> ><br>> ><br>> > Seemed this doc was only tested on Ubuntu 14.04<br>> ><br>> ><br>> > Questions<br>> ><br>> > 1. Is that mean CentOS not supported as I always hit error during run puppet<br>> > installation on Centos?<br>> ><br>> ><br>> > 2. If we want to enable CentOS, how to do? Or any guidance?<br>> ><br>> ><br>> > Thanks in advance!<br>> ><br>> ><br>> > BRs/Xu Gang<br>> ><br>> ><br>> > ===================================================================================<br>> ><br>> > Below is running log on CentOS<br>> ><br>> ><br>> > [root@pmo03 puppet]# puppet apply --verbose ./manifests/site.pp<br>> ><br>> > Info: Loading external facts from /etc/puppet/modules/openstacklib/facts.d<br>> ><br>> > Info: Loading facts in /etc/puppet/modules/mysql/lib/facter/mysql_version.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/mysql/lib/facter/mysql_server_id.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/gnupg/lib/facter/gnupg_installed.rb<br>> ><br>> > Info: Loading facts in /etc/puppet/modules/gnupg/lib/facter/gnupg_command.rb<br>> ><br>> > Info: Loading facts in /etc/puppet/modules/apt/lib/facter/apt_updates.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/apt/lib/facter/apt_update_last_succes<br>> > s.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/apt/lib/facter/apt_reboot_required.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/firewall/lib/facter/iptables_version.<br>> > rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/firewall/lib/facter/iptables_persiste<br>> > nt_version.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/firewall/lib/facter/ip6tables_version<br>> > .rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/stdlib/lib/facter/package_provider.rb<br>> ><br>> > Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb<br>> ><br>> > Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb<br>> ><br>> > Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/pe_version.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/stdlib/lib/facter/service_provider.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/concat/lib/facter/concat_basedir.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/archive/lib/facter/archive_windir.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/selinux/lib/facter/selinux_custom_pol<br>> > icy.rb<br>> ><br>> > Info: Loading facts in /etc/puppet/modules/jenkins/lib/facter/dpkg.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/jenkins/lib/facter/memorytotalbytes.r<br>> > b<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/haproxy/lib/facter/haproxy_version.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/python/lib/facter/python_version.rb<br>> ><br>> > Info: Loading facts in /etc/puppet/modules/python/lib/facter/pip_version.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/python/lib/facter/virtualenv_version.<br>> > rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/openstacklib/lib/facter/os_service_de<br>> > fault.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/openstacklib/lib/facter/os_package_ty<br>> > pe.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/staging/lib/facter/staging_windir.rb<br>> ><br>> > Info: Loading facts in<br>> > /etc/puppet/modules/staging/lib/facter/staging_http_get.r<br>> > b<br>> ><br>> > Error: NetworkManager is not running.<br>> ><br>> > Notice: Compiled catalog for <a href="http://pmo03.chinac.com">pmo03.chinac.com</a> in environment production in<br>> > 1.17 seconds<br>> ><br>> > Warning: The package type's allow_virtual parameter will be changing its<br>> > default value from false to true in a future release. If you do not want to<br>> > allow virtual packages, please explicitly set allow_virtual to false.<br>> ><br>> > (at /usr/share/ruby/vendor_ruby/puppet/type.rb:816:in `set_default')<br>> ><br>> > Warning: Found multiple default providers for vcsrepo: bzr, cvs, svn, git,<br>> > hg; using bzr<br>> ><br>> > Info: Applying configuration version '1463834944'<br>> ><br>> > Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list build-essential'<br>> > returned 1: Error: No matching Packages to list<br>> ><br>> > Error: /Stage[main]/Openstackci::Logserver/Package[build-essential]/ensure:<br>> > change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0<br>> > -y list build-essential' returned 1: Error: No matching Packages to list<br>> ><br>> > Error: Cannot create /srv/static; parent directory /srv does not exist<br>> ><br>> > Error: /Stage[main]/Openstackci::Logserver/File[/srv/static]/ensure: change<br>> > from absent to directory failed: Cannot create /srv/static; parent directory<br>> > /srv does not exist<br>> ><br>> > Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list python-dev' returned 1:<br>> > Error: No matching Packages to list<br>> ><br>> > Error: /Stage[main]/Openstackci::Logserver/Package[python-dev]/ensure:<br>> > change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0<br>> > -y list python-dev' returned 1: Error: No matching Packages to list<br>> ><br>What you are seeing here is puppet-openstackci Logserver only supporting Ubuntu.<br>Since python-dev doesn't exist on CentOS. Same with build-essential a few lines<br>above.<br><br>> ><br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > OpenStack-Infra mailing list<br>> > <a href="mailto:OpenStack-Infra@lists.openstack.org">OpenStack-Infra@lists.openstack.org</a><br>> > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra</a><br>> ><br>> <br>> _______________________________________________<br>> OpenStack-Infra mailing list<br>> <a href="mailto:OpenStack-Infra@lists.openstack.org">OpenStack-Infra@lists.openstack.org</a><br>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra</a><br></div></div>
!DSPAM:1,57426d7c101641554511684!
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>OpenStack-Infra mailing list</span><br><span><a href="mailto:OpenStack-Infra@lists.openstack.org">OpenStack-Infra@lists.openstack.org</a></span><br><span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra</a></span><br><span></span><br><span></span><br><span>!DSPAM:1,57426d7c101641554511684!</span><br></div></blockquote></body></html>