Log file for guestagent is /var/log/trove/trove-taskmanager.log instead of .../trove-guestagent.log

Bug #1506835 reported by Luigi Toscano
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-trove
Fix Released
Undecided
Alex Schultz

Bug Description

As the topic says, the generated configuration file /etc/trove/trove-guestagent.conf contains:

log_file = /var/log/trove/trove-taskmanager.log

instead of
log_file = /var/log/trove/trove-guestagent.log

even if trove-guestagent.log is set into trove::guestagent class.

I suspect this is related to the way trove-guestagent.conf is created (template call inside the trove::taskmanager class, so excluding trove::guestagent), but my Puppet skills are quite low.

Found on version 6.0.0 (testing RDO Liberty, packstack installation)

Changed in puppet-trove:
assignee: nobody → shravya Gaddam (shravya-g90)
Changed in puppet-trove:
status: New → In Progress
Revision history for this message
shravya Gaddam (shravya-g90) wrote :

Hi

In /etc/trove/trove-guestagent.conf
The log file shows
log_file = logfile.txt
but not log_file = /var/log/trove/trove-taskmanager.log.

Can you please suggest me on this

Thanks

Revision history for this message
Luigi Toscano (ltoscano) wrote :

I don't see any reference to logfile.txt into the puppet-trove repository. What are you looking to exactly?

Revision history for this message
shravya Gaddam (shravya-g90) wrote :

The file /etc/trove/trove-guestagent.conf is present in TROVE but not Puppet-Trove.
Please clarify me on this.

Thanks

Revision history for this message
Luigi Toscano (ltoscano) wrote :

Yes, it is the point. puppet-trove contains puppet modules used to generate the configuration files; see the README.md file in the base directory of puppet-trove. So it does not contain that file, it can generate it when used in some puppet script.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-trove (master)

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

Revision history for this message
shravya Gaddam (shravya-g90) wrote :

By changing the values of

 if $guestagent_config_file {
    if $use_guestagent_template {
      file { $guestagent_config_file:
        content => template('trove/trove-guestagent.conf.erb')
      }
    } else {
      class {'::trove::guestagent':
        enabled => false, -----to TRUE
        manage_service => false,------- to TRUE
      }
    }

Can you please suggest me will this impact the change .

Thanks in advance!

Revision history for this message
Shaik Apsar (sa709c) wrote :

The issue is related to the trove-guestagent.conf.erb file.

# Directory and path for log files
log_dir = <%= @log_dir %>
log_file = <%= @log_file %>

By default use_guestagent_template is set to true in taskmanager.pp and it will update the trove-guestagent.conf content with the log_file param of the taskmanager.pp.

Revision history for this message
Shaik Apsar (sa709c) wrote :

I think you can hardcode the log_file value in trove-guestagent.conf.erb since it is used only when use_guestagent_template is enabled in taskmanager.pp.

Shaik Apsar (sa709c)
Changed in puppet-trove:
assignee: shravya Gaddam (shravya-g90) → Shaik Apsar (sa709c)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in puppet-trove:
assignee: Shaik Apsar (sa709c) → Alex Schultz (alex-schultz)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-trove (master)

Reviewed: https://review.openstack.org/321154
Committed: https://git.openstack.org/cgit/openstack/puppet-trove/commit/?id=d24a11c35d3cfa522cea7e7aa441554816ebe205
Submitter: Jenkins
Branch: master

commit d24a11c35d3cfa522cea7e7aa441554816ebe205
Author: Shaik Apsar <email address hidden>
Date: Wed May 25 14:04:16 2016 -0400

    Option to specify the trove guestagent log file.

    Change-Id: Ifaf124933bca6b64d6a2d5225a5f67e58058e26f
    Closes-Bug: #1506835

Changed in puppet-trove:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/puppet-trove 9.1.0

This issue was fixed in the openstack/puppet-trove 9.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-trove (master)

Change abandoned by Alex Schultz (<email address hidden>) on branch: master
Review: https://review.openstack.org/241884
Reason: Abandoning per our policy[0]. If you wish to continue this work, please restore this or let us know in #puppet-openstack and we can restore it.

[0] https://docs.openstack.org/developer/puppet-openstack-guide/reviews.html

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.