[OpenStack-Infra] 回复:回复:Re: [openstack_infra] setup openstack ci logserver questions on CentOS 7

xugang_ustc at sina.com xugang_ustc at sina.com
Mon May 23 02:35:21 UTC 2016


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_ustc at sina.com>
收件人:"Paul Belanger" <pabelanger at redhat.com>, "Arie Bregman" <abregman at redhat.com>,
抄送人:"openstack-infra" <openstack-infra at 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, 
  <Directory /srv/static/logs>    Options Indexes FollowSymLinks MultiViews    AllowOverride None    # Order allow,deny    # Allow from all    Satisfy Any    Require all granted  </Directory>3. Restart httpd, this time,everything worked.
Thanks again!
BRs/Xu Gang
----- 原始邮件 -----
发件人:Paul Belanger <pabelanger at redhat.com>
收件人:Arie Bregman <abregman at redhat.com>
抄送人:xugang_ustc at sina.com, openstack-infra <openstack-infra at 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_ustc at 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 at 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
> > /etc/puppet/modules/stdlib/lib/facter/package_provider.rb
> >
> > Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
> >
> > Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb
> >
> > Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/pe_version.rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/stdlib/lib/facter/service_provider.rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/concat/lib/facter/concat_basedir.rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/archive/lib/facter/archive_windir.rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/selinux/lib/facter/selinux_custom_pol
> > icy.rb
> >
> > Info: Loading facts in /etc/puppet/modules/jenkins/lib/facter/dpkg.rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/jenkins/lib/facter/memorytotalbytes.r
> > b
> >
> > Info: Loading facts in
> > /etc/puppet/modules/haproxy/lib/facter/haproxy_version.rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/python/lib/facter/python_version.rb
> >
> > Info: Loading facts in /etc/puppet/modules/python/lib/facter/pip_version.rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/python/lib/facter/virtualenv_version.
> > rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/openstacklib/lib/facter/os_service_de
> > fault.rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/openstacklib/lib/facter/os_package_ty
> > pe.rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/staging/lib/facter/staging_windir.rb
> >
> > Info: Loading facts in
> > /etc/puppet/modules/staging/lib/facter/staging_http_get.r
> > b
> >
> > Error: NetworkManager is not running.
> >
> > Notice: Compiled catalog for pmo03.chinac.com in environment production in
> > 1.17 seconds
> >
> > Warning: The package type's allow_virtual parameter will be changing its
> > default value from false to true in a future release. If you do not want to
> > allow virtual packages, please explicitly set allow_virtual to false.
> >
> >    (at /usr/share/ruby/vendor_ruby/puppet/type.rb:816:in `set_default')
> >
> > Warning: Found multiple default providers for vcsrepo: bzr, cvs, svn, git,
> > hg; using bzr
> >
> > Info: Applying configuration version '1463834944'
> >
> > Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list build-essential'
> > returned 1: Error: No matching Packages to list
> >
> > Error: /Stage[main]/Openstackci::Logserver/Package[build-essential]/ensure:
> > change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0
> > -y list build-essential' returned 1: Error: No matching Packages to list
> >
> > Error: Cannot create /srv/static; parent directory /srv does not exist
> >
> > Error: /Stage[main]/Openstackci::Logserver/File[/srv/static]/ensure: change
> > from absent to directory failed: Cannot create /srv/static; parent directory
> > /srv does not exist
> >
> > Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list python-dev' returned 1:
> > Error: No matching Packages to list
> >
> > Error: /Stage[main]/Openstackci::Logserver/Package[python-dev]/ensure:
> > change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0
> > -y list python-dev' returned 1: Error: No matching Packages to list
> >
What you are seeing here is puppet-openstackci Logserver only supporting Ubuntu.
Since python-dev doesn't exist on CentOS. Same with build-essential a few lines
above.

> >
> >
> >
> >
> > _______________________________________________
> > OpenStack-Infra mailing list
> > OpenStack-Infra at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra
> >
> 
> _______________________________________________
> OpenStack-Infra mailing list
> OpenStack-Infra at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-infra/attachments/20160523/b3d0df48/attachment.html>


More information about the OpenStack-Infra mailing list