[library] Treat puppet warning as error in Fuel CI gerrit tests

Bug #1283836 reported by Mike Scherbakov
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Aleksandr Didenko

Bug Description

Automation is required to check not only for successful deployment, but also that puppet log doesn't contain warnings.
In ISO #180 I see the following warning messages, which must be fixed as part of this bug as well:
2014-02-23 22:12:22 WARNING
 tag is a metaparam; this value will inherit to all contained resources
2014-02-23 22:12:22 NOTICE
 (Scope(Class[L23network::Hosts_file])) Generating host entry node-7 192.168.0.3 node-7.domain.tld
2014-02-23 22:12:22 NOTICE
 (Scope(Class[L23network::Hosts_file])) Generating host entry node-7 192.168.0.3 node-7.domain.tld
2014-02-23 22:12:22 NOTICE
 (Scope(Class[L23network::Hosts_file])) Generating host entry node-5 192.168.0.2 node-5.domain.tld
2014-02-23 22:12:16 WARNING
 You cannot collect exported resources without storeconfigs being set; the collection will be ignored on line 37 in file /etc/puppet/modules/nova/manifests/db/mysql.pp
2014-02-23 22:12:16 WARNING
 You cannot collect exported resources without storeconfigs being set; the collection will be ignored on line 255 in file /etc/puppet/modules/nova/manifests/init.pp
2014-02-23 22:12:16 WARNING
 You cannot collect exported resources without storeconfigs being set; the collection will be ignored on line 234 in file /etc/puppet/modules/nova/manifests/init.pp
2014-02-23 22:12:16 WARNING
 You cannot collect exported resources without storeconfigs being set; the collection will be ignored on line 224 in file /etc/puppet/modules/nova/manifests/init.pp
2014-02-23 22:12:14 WARNING
 You cannot collect without storeconfigs being set on line 131 in file /etc/puppet/modules/openstack/manifests/nova/controller.pp
2014-02-23 22:12:14 WARNING
 You cannot collect without storeconfigs being set on line 128 in file /etc/puppet/modules/openstack/manifests/nova/controller.pp
2014-02-23 22:12:14 WARNING
 You cannot collect without storeconfigs being set on line 125 in file /etc/puppet/modules/openstack/manifests/nova/controller.pp
2014-02-23 22:12:13 WARNING
 (Scope(Class[Osnailyfacter::Apache_api_proxy])) Could not look up qualified variable 'osnailyfacter::params::apache_site_dir'; class osnailyfacter::params could not be found at /etc/puppet/modules/osnailyfacter/manifests/apache_api_proxy.pp:4
2014-02-23 22:12:13 WARNING
 (Scope(Class[Osnailyfacter::Apache_api_proxy])) Could not look up qualified variable 'osnailyfacter::params::apache_site_dir'; class osnailyfacter::params could not be found at /etc/puppet/modules/osnailyfacter/manifests/apache_api_proxy.pp:4

Revision history for this message
Dmitry Ilyin (idv1985) wrote :

Yes, some of these warnings are realy nasty and should be somehow loged and viewed by developers.
We could just grep logs for warning keyword and output it somewhere if test log.

Evgeniy L (rustyrobot)
Changed in fuel:
status: New → Confirmed
Mike Scherbakov (mihgen)
Changed in fuel:
milestone: 5.0 → 5.1
importance: Medium → High
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Dmitry Ilyin (idv1985)
Revision history for this message
Dmitry Ilyin (idv1985) wrote :

I would be better to start fixing warning after the upsteram manifests are merged.

And "You cannot collect exported resources without storeconfigs" will stay with us because it would requirere to clean out every exported resource definition to remove them.

Dmitry Ilyin (idv1985)
Changed in fuel:
status: Confirmed → Triaged
status: Triaged → Confirmed
importance: High → Medium
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :
Dmitry Ilyin (idv1985)
Changed in fuel:
status: Confirmed → Invalid
summary: - Treat puppet warning as error in Fuel CI gerrit tests
+ [puppet] Treat puppet warning as error in Fuel CI gerrit tests
Revision history for this message
Mike Scherbakov (mihgen) wrote : Re: [puppet] Treat puppet warning as error in Fuel CI gerrit tests

Please don't mark it Invalid before you explain why.

Changed in fuel:
status: Invalid → Confirmed
Dmitry Ilyin (idv1985)
summary: - [puppet] Treat puppet warning as error in Fuel CI gerrit tests
+ [library] Treat puppet warning as error in Fuel CI gerrit tests
Dmitry Ilyin (idv1985)
Changed in fuel:
assignee: Dmitry Ilyin (idv1985) → Fuel Library Team (fuel-library)
Changed in fuel:
milestone: 5.1 → 6.0
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Aleksandr Didenko (adidenko)
Changed in fuel:
milestone: 6.0 → 6.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/143466

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/143466
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=4b9bfd0dbdbbaa6d79be82e5509e10670618dd03
Submitter: Jenkins
Branch: master

commit 4b9bfd0dbdbbaa6d79be82e5509e10670618dd03
Author: Aleksandr Didenko <email address hidden>
Date: Mon Dec 22 17:33:17 2014 +0200

    Remove unused exported resources

    Change-Id: I2e758a77bc2c2bd887c4a0c8f594b10bf23a3885
    Closes-bug: #1283836

Changed in fuel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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