Re: [OpenStack-Infra] 回复:回复:Re: [openstack_infra] setup openstack ci logserver questions on CentOS 7
It uses Apache group and users in Red Hat and centos Inviato da iPhone > Il giorno 22 mag 2016, alle ore 19:35, <xugang_u...@sina.com> > <xugang_u...@sina.com> ha scritto: > > Hi > > > > Again, seemed www-data user/group only existed in Ubuntu while CentOS don`t > have it. > > So, we have to create them manually too. > > > > Thanks! > > > > BRs/Xu Gang > > > > - 原始邮件 - > 发件人:<xugang_u...@sina.com> > 收件人:"Paul Belanger" <pabelan...@redhat.com>, "Arie Bregman" > <abreg...@redhat.com>, > 抄送人:"openstack-infra" <openstack-infra@lists.openstack.org> > 主题:回复:Re: [OpenStack-Infra] [openstack_infra] setup openstack ci logserver > questions on CentOS 7 > 日期:2016年05月23日 09点50分 > > Hi all, > > > > Thanks your quick response first! > > > > I did some test on CentOS 7 this weekend > > > > I know current openstack ci team worked hard to make good progress. > > But I have to say, it is really not work in CentOS 7 for current puppet deploy > > > > I did below modification and solved the problem. > > > > 1. mkdir -p /srv/static/logs manually > > 2. As apache already is 2.4, we have to modify virtual_host.conf(this is one > example) to use below command instead. > > > > Require all granted > > > For example, > > > > > > Options Indexes FollowSymLinks MultiViews > > AllowOverride None > > # Order allow,deny > > # Allow from all > > Satisfy Any > > Require all granted > > > > 3. Restart httpd, this time,everything worked. > > > > Thanks again! > > > > BRs/Xu Gang > > > > - 原始邮件 - > 发件人:Paul Belanger <pabelan...@redhat.com> > 收件人:Arie Bregman <abreg...@redhat.com> > 抄送人:xugang_u...@sina.com, openstack-infra > <openstack-infra@lists.openstack.org> > 主题:Re: [OpenStack-Infra] [openstack_infra] setup openstack ci logserver > questions on CentOS 7 > 日期:2016年05月21日 21点59分 > > > On Sat, May 21, 2016 at 04:28:18PM +0300, Arie Bregman wrote: > > From looking on the code, it looks like centos/rhel should be supported[1] > > > This only means our install_puppet.sh script support CentOS. We use it as an > entry point for the Jenkins slaves we run in the gate. 99% of the services we > run for OpenStack only support Ubuntu as the OS (minus the git servers they > run > CentOS). > > The error is: "Cannot create /srv/static; parent directory /srv does not > > exist" > > > > It assumes '/srv' exists. As far as I know it should be true for > > common centos/rhel instillation, but maybe this assumption isn't true > > for all centos installation types. > > > > Possible solution can be ensuring both '/srv' and '/srv/static' are present. > > > puppet-openstackci really is only tested using Ubuntu Trusty (eventually > Ubuntu > Xenial). So, you're likely better defaulting to that OS to use the puppet > modules from openstack-infra. > Some of the modules do support CentOS, however they are not regularly > installed > upstream. We do have basic testing coverage from beaker but that is not 100% > based on your error below. > > > > [1] > > https://github.com/openstack-infra/system-config/blob/master/install_puppet.sh#L30 > > > > On Sat, May 21, 2016 at 4:04 PM, <xugang_u...@sina.com> wrote: > > > Hi > > > > > > > > > I am try to setup openstack ci in our company by follow below doc url > > > > > > http://docs.openstack.org/infra/openstackci/index.html > > > > > > > > > Seemed this doc was only tested on Ubuntu 14.04 > > > > > > > > > Questions > > > > > > 1. Is that mean CentOS not supported as I always hit error during run > > > puppet > > > installation on Centos? > > > > > > > > > 2. If we want to enable CentOS, how to do? Or any guidance? > > > > > > > > > Thanks in advance! > > > > > > > > > BRs/Xu Gang > > > > > > > > > === > > > > > > Below is running log on CentOS > > > > > > > > > [root@pmo03 puppet]# puppet apply --verbose ./manifests/site.pp > > > > > > Info: Loading external facts from /etc/puppet/modules/openstacklib/facts.d > > > > > > Info: Loading facts in &
[OpenStack-Infra] 回复:回复:Re: [openstack_infra] setup openstack ci logserver questions on CentOS 7
Hi Again, seemed www-data user/group only existed in Ubuntu while CentOS don`t have it.So, we have to create them manually too. Thanks! BRs/Xu Gang - 原始邮件 - 发件人:<xugang_u...@sina.com> 收件人:"Paul Belanger" <pabelan...@redhat.com>, "Arie Bregman" <abreg...@redhat.com>, 抄送人:"openstack-infra" <openstack-infra@lists.openstack.org> 主题:回复:Re: [OpenStack-Infra] [openstack_infra] setup openstack ci logserver questions on CentOS 7 日期:2016年05月23日 09点50分 Hi all, Thanks your quick response first! I did some test on CentOS 7 this weekend I know current openstack ci team worked hard to make good progress.But I have to say, it is really not work in CentOS 7 for current puppet deploy I did below modification and solved the problem. 1. mkdir -p /srv/static/logs manually2. As apache already is 2.4, we have to modify virtual_host.conf(this is one example) to use below command instead. Require all granted For example, Options Indexes FollowSymLinks MultiViews AllowOverride None# Order allow,deny# Allow from allSatisfy Any Require all granted 3. Restart httpd, this time,everything worked. Thanks again! BRs/Xu Gang - 原始邮件 - 发件人:Paul Belanger <pabelan...@redhat.com> 收件人:Arie Bregman <abreg...@redhat.com> 抄送人:xugang_u...@sina.com, openstack-infra <openstack-infra@lists.openstack.org> 主题:Re: [OpenStack-Infra] [openstack_infra] setup openstack ci logserver questions on CentOS 7 日期:2016年05月21日 21点59分 On Sat, May 21, 2016 at 04:28:18PM +0300, Arie Bregman wrote: > From looking on the code, it looks like centos/rhel should be supported[1] > This only means our install_puppet.sh script support CentOS. We use it as an entry point for the Jenkins slaves we run in the gate. 99% of the services we run for OpenStack only support Ubuntu as the OS (minus the git servers they run CentOS). > The error is: "Cannot create /srv/static; parent directory /srv does not > exist" > > It assumes '/srv' exists. As far as I know it should be true for > common centos/rhel instillation, but maybe this assumption isn't true > for all centos installation types. > > Possible solution can be ensuring both '/srv' and '/srv/static' are present. > puppet-openstackci really is only tested using Ubuntu Trusty (eventually Ubuntu Xenial). So, you're likely better defaulting to that OS to use the puppet modules from openstack-infra. Some of the modules do support CentOS, however they are not regularly installed upstream. We do have basic testing coverage from beaker but that is not 100% based on your error below. > > [1] > https://github.com/openstack-infra/system-config/blob/master/install_puppet.sh#L30 > > On Sat, May 21, 2016 at 4:04 PM, <xugang_u...@sina.com> wrote: > > Hi > > > > > > I am try to setup openstack ci in our company by follow below doc url > > > > http://docs.openstack.org/infra/openstackci/index.html > > > > > > Seemed this doc was only tested on Ubuntu 14.04 > > > > > > Questions > > > > 1. Is that mean CentOS not supported as I always hit error during run puppet > > installation on Centos? > > > > > > 2. If we want to enable CentOS, how to do? Or any guidance? > > > > > > Thanks in advance! > > > > > > BRs/Xu Gang > > > > > > === > > > > Below is running log on CentOS > > > > > > [root@pmo03 puppet]# puppet apply --verbose ./manifests/site.pp > > > > Info: Loading external facts from /etc/puppet/modules/openstacklib/facts.d > > > > Info: Loading facts in /etc/puppet/modules/mysql/lib/facter/mysql_version.rb > > > > Info: Loading facts in > > /etc/puppet/modules/mysql/lib/facter/mysql_server_id.rb > > > > Info: Loading facts in > > /etc/puppet/modules/gnupg/lib/facter/gnupg_installed.rb > > > > Info: Loading facts in /etc/puppet/modules/gnupg/lib/facter/gnupg_command.rb > > > > Info: Loading facts in /etc/puppet/modules/apt/lib/facter/apt_updates.rb > > > > Info: Loading facts in > > /etc/puppet/modules/apt/lib/facter/apt_update_last_succes > > s.rb > > > > Info: Loading facts in > > /etc/puppet/modules/apt/lib/facter/apt_reboot_required.rb > > > > Info: Loading facts in > > /etc/puppet/modules/firewall/lib/facter/iptables_version. > > rb > > > > Info: Loading facts in > > /etc/puppet/modules/firewall/lib/facter/iptables_persiste > > nt_version.rb > > > > Info: Loading facts in > > /etc/puppet/modules/firewall/lib/facter/ip6tables_version > > .rb > > > > Info: Loading facts in >