Non-hiera users can not override guestagent params when not using template config in taskmanager

Bug #1485397 reported by Xingchao Yu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-trove
Fix Released
Medium
Xingchao Yu

Bug Description

In trove::taskmanager, we use guestagent_config_file option and template to control whether to manage injected guest agent configuration or not.

1. trove-guestagent.conf.erb has option typo problem, which will lead guestagent fails to run.
2. template is out of date to master upstream.
3. trove::guestagent could do this thing better.

Xingchao Yu (yuxcer)
summary: - using itemplate to manage njected guest agent configuration file is not
+ using itemplate to manage injected guest agent configuration file is not
suitable
Xingchao Yu (yuxcer)
summary: - using itemplate to manage injected guest agent configuration file is not
+ using template to manage injected guest agent configuration file is not
suitable
Xingchao Yu (yuxcer)
Changed in puppet-trove:
assignee: nobody → Xingchao Yu (yuxcer)
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/215476

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

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

commit cdf452769e0da7944c51ca422898911de753a3cc
Author: Xingchao Yu <email address hidden>
Date: Fri Aug 21 14:08:04 2015 +0800

    Introduce use_guestagent_template option

    Current, trove::taskmanager use template to generate guestagent
    configuration file.

    This patch is aim to do following efforts:
      1. Fix template file option typo error
      2. Update template to keep up with master branch of
         guestagent.conf.sample
      3. Add use_guestagent_template option to give more choice for
         people who want use trove::guestagent to manage guestagent.conf.
         To keep compatibility, default value is set to true

    Close-Bug: #1485397
    Change-Id: I74cba2ad10a811f91ab65f004de78c93309fc95a

Revision history for this message
Emilien Macchi (emilienm) wrote : Re: using template to manage injected guest agent configuration file is not suitable

Your (merged) patch is actually not correct.
The else disallow to run Trove guest agent on the same node as taskmanager.

Matt Fischer (mfisch)
Changed in puppet-trove:
status: New → Fix Committed
status: Fix Committed → New
Revision history for this message
Emilien Macchi (emilienm) wrote :

So the patch merged [1] injected a new bug:
if you don't use the template, the manifest will import trove::guestagent. So people who don't use Hiera won't be able to override parameters in the guestagent.pp.

[1] https://github.com/openstack/puppet-trove/commit/cdf452769e0da7944c51ca422898911de753a3cc

summary: - using template to manage injected guest agent configuration file is not
- suitable
+ disable non-hiera users to override guestagent params when not using
+ template config in taskmanager
Changed in puppet-trove:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Xingchao Yu (yuxcer) wrote : Re: disable non-hiera users to override guestagent params when not using template config in taskmanager

As we have discussed on IRC, we will abandon template with a deprecation warning and make guestagent parameters configurable.

summary: - disable non-hiera users to override guestagent params when not using
+ Non-hiera users can not override guestagent params when not using
template config in taskmanager
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-trove (master)
Changed in puppet-trove:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-trove (master)

Reviewed: https://review.opendev.org/c/openstack/puppet-trove/+/834096
Committed: https://opendev.org/openstack/puppet-trove/commit/4c6e5c9d76e142b3544a3eed07dcea5a2b75537a
Submitter: "Zuul (22348)"
Branch: master

commit 4c6e5c9d76e142b3544a3eed07dcea5a2b75537a
Author: Takashi Kajinami <email address hidden>
Date: Thu Mar 17 13:27:53 2022 +0900

    Disable trove-guestagent service by default

    The trove-guestagent service should be run in instances instead of
    OpenStack hosts. This change disables the service by default because
    we expect these modules are used to deploy hosts, and we don't expect
    any use case where this puppet module is used to build the trove guest
    image.

    Closes-Bug: #1965228
    Closes-Bug: #1485397
    Change-Id: I57aa6ecd008f1a7a271e7baafc95cd75bf700f54

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

This issue was fixed in the openstack/puppet-trove 20.3.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.