new aodh-api package includes apache configuration leading to beaker failures on the 2nd run

Bug #1657847 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-aodh
Fix Released
Undecided
Alex Schultz

Bug Description

The aodh-api package includes an apache configuration for /etc/apache2/sites-avilable/aodh-api.conf. If we configure apache prior to this package installation, the sites-available file gets removed on the second run. We need to make sure that we install the package prior to the configuration of apache so that we're cleaning up this file on the first run.

2017-01-18 12:43:56.962824 | ubuntu-16.04-amd64 12:43:56$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.PReThq
2017-01-18 12:44:00.286127 | Info: Loading facts
2017-01-18 12:44:00.286276 | Info: Loading facts
2017-01-18 12:44:00.286859 | Info: Loading facts
2017-01-18 12:44:00.286886 | Info: Loading facts
2017-01-18 12:44:00.286907 | Info: Loading facts
2017-01-18 12:44:00.286920 | Info: Loading facts
2017-01-18 12:44:00.286933 | Info: Loading facts
2017-01-18 12:44:00.286946 | Info: Loading facts
2017-01-18 12:44:00.286958 | Info: Loading facts
2017-01-18 12:44:00.287273 | Info: Loading facts
2017-01-18 12:44:00.287293 | Info: Loading facts
2017-01-18 12:44:00.287306 | Info: Loading facts
2017-01-18 12:44:00.287319 | Info: Loading facts
2017-01-18 12:44:00.287331 | Info: Loading facts
2017-01-18 12:44:04.973990 | Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Hash. There is further documentation for validate_legacy function in the README. at ["/etc/puppetlabs/code/modules/apt/manifests/init.pp", 18]:["/etc/puppetlabs/code/modules/openstack_integration/manifests/repos.pp", 5]
2017-01-18 12:44:04.974064 | (at /etc/puppetlabs/code/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
2017-01-18 12:44:05.171590 | Warning: ModuleLoader: module 'openstack_extras' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
2017-01-18 12:44:05.171672 | (file & line not available)
2017-01-18 12:44:05.195755 | Warning: Unknown variable: '::ceph_mirror_host'. at /etc/puppetlabs/code/modules/openstack_integration/manifests/repos.pp:59:20
2017-01-18 12:44:05.394208 | Warning: ModuleLoader: module 'rabbitmq' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
2017-01-18 12:44:05.394260 | (file & line not available)
2017-01-18 12:44:05.397418 | Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Bool. There is further documentation for validate_legacy function in the README. at ["/etc/puppetlabs/code/modules/rabbitmq/manifests/init.pp", 82]:
2017-01-18 12:44:05.397469 | (at /etc/puppetlabs/code/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
2017-01-18 12:44:05.399885 | Warning: This method is deprecated, please use the stdlib validate_legacy function, with Pattern[]. There is further documentation for validate_legacy function in the README. at ["/etc/puppetlabs/code/modules/rabbitmq/manifests/init.pp", 84]:
2017-01-18 12:44:05.399935 | (at /etc/puppetlabs/code/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
2017-01-18 12:44:05.402950 | Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::String. There is further documentation for validate_legacy function in the README. at ["/etc/puppetlabs/code/modules/rabbitmq/manifests/init.pp", 85]:
2017-01-18 12:44:05.402999 | (at /etc/puppetlabs/code/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
2017-01-18 12:44:05.411397 | Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Array. There is further documentation for validate_legacy function in the README. at ["/etc/puppetlabs/code/modules/rabbitmq/manifests/init.pp", 93]:
2017-01-18 12:44:05.411459 | (at /etc/puppetlabs/code/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
2017-01-18 12:44:05.415222 | Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Absolute_Path. There is further documentation for validate_legacy function in the README. at ["/etc/puppetlabs/code/modules/rabbitmq/manifests/init.pp", 95]:
2017-01-18 12:44:05.415271 | (at /etc/puppetlabs/code/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
2017-01-18 12:44:05.482596 | Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Integer. There is further documentation for validate_legacy function in the README. at ["/etc/puppetlabs/code/modules/rabbitmq/manifests/init.pp", 121]:
2017-01-18 12:44:05.482665 | (at /etc/puppetlabs/code/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
2017-01-18 12:44:05.734768 | Warning: ModuleLoader: module 'mysql' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
2017-01-18 12:44:05.734825 | (file & line not available)
2017-01-18 12:44:06.946481 | Warning: This method is deprecated, please use match expressions with Stdlib::Compat::Array instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions. at ["/etc/puppetlabs/code/modules/apache/manifests/init.pp", 335]:["/etc/puppetlabs/code/modules/openstack_integration/manifests/keystone.pp", 71]
2017-01-18 12:44:06.946555 | (at /etc/puppetlabs/code/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
2017-01-18 12:44:07.065011 | Warning: This method is deprecated, please use match expressions with Stdlib::Compat::String instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions. at ["/etc/puppetlabs/code/modules/apache/manifests/mod/negotiation.pp", 9]:["/etc/puppetlabs/code/modules/apache/manifests/default_mods.pp", 133]
2017-01-18 12:44:07.065089 | (at /etc/puppetlabs/code/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
2017-01-18 12:44:07.836444 | Warning: Scope(Apt::Source[rabbitmq]): $include_src is deprecated and will be removed in the next major release, please use $include => { 'src' => false } instead
2017-01-18 12:44:07.836807 | Warning: Scope(Apt::Source[rabbitmq]): $key_source is deprecated and will be removed in the next major release, please use $key => { 'source' => https://www.rabbitmq.com/rabbitmq-release-signing-key.asc } instead.
2017-01-18 12:44:08.025791 | Warning: This method is deprecated, please use match expressions with Stdlib::Compat::Bool instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions. at ["/etc/puppetlabs/code/modules/concat/manifests/init.pp", 82]:
2017-01-18 12:44:08.025875 | (at /etc/puppetlabs/code/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
2017-01-18 12:44:09.075813 | Notice: Compiled catalog for ubuntu-xenial-ovh-bhs1-6740418 in environment production in 4.43 seconds
2017-01-18 12:44:09.701451 | Info: Applying configuration version '1484743444'
2017-01-18 12:44:11.452052 | Info: Computing checksum on file /etc/apache2/sites-available/aodh-api.conf
2017-01-18 12:44:11.475467 | Info: /Stage[main]/Apache/File[/etc/apache2/sites-available/aodh-api.conf]: Filebucketed /etc/apache2/sites-available/aodh-api.conf to puppet with sum b04d006449d2428fb94326d50acac94f
2017-01-18 12:44:11.476031 | Notice: /Stage[main]/Apache/File[/etc/apache2/sites-available/aodh-api.conf]/ensure: removed
2017-01-18 12:44:11.476664 | Info: /etc/apache2/sites-available: Scheduling refresh of Class[Apache::Service]
2017-01-18 12:44:11.484363 | Notice: /Stage[main]/Apache/File[/etc/apache2/sites-enabled/aodh-api.conf]/ensure: removed
2017-01-18 12:44:11.485088 | Info: /etc/apache2/sites-enabled: Scheduling refresh of Class[Apache::Service]
2017-01-18 12:44:15.396828 | Info: Class[Apache::Service]: Scheduling refresh of Service[httpd]
2017-01-18 12:44:18.664521 | Notice: /Stage[main]/Apache::Service/Service[httpd]: Triggered 'refresh' from 1 events
2017-01-18 12:45:03.843138 | Notice: Applied catalog in 54.24 seconds

Changed in puppet-aodh:
assignee: nobody → Alex Schultz (alex-schultz)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-aodh (master)

Reviewed: https://review.openstack.org/421564
Committed: https://git.openstack.org/cgit/openstack/puppet-aodh/commit/?id=093eeb5ecf9fcd44c3f55c5e0ec1195b1f218d0b
Submitter: Jenkins
Branch: master

commit 093eeb5ecf9fcd44c3f55c5e0ec1195b1f218d0b
Author: Alex Schultz <email address hidden>
Date: Tue Jan 17 15:29:29 2017 -0700

    Fix Ubuntu Ocata-m2 issues

    1) Update Ubuntu wsgi location
    The location of the app.wsgi has changed from /usr/share/aodh-common to
    /usr/share/aodh.

    2) Install packages before apache
    The apache module cleans up the vhost configurations and in Ubuntu the
    packaging is include a default configuration. To ensure this file is
    removed at the right time, we should make sure we install our software
    before doing the apache configuration when running under apache.

    Change-Id: I272c03f19d7182c4a731a1ef0fcbc2b9c6ca0b97
    Closes-Bug: #1657293
    Closes-Bug: #1657847

Changed in puppet-aodh:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-aodh 10.2.0

This issue was fixed in the openstack/puppet-aodh 10.2.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.