Bug 1496672 - [RFE]SNMP proc and ro_community addition in heat templates
Summary: [RFE]SNMP proc and ro_community addition in heat templates
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-tripleo
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z8
: 10.0 (Newton)
Assignee: Emilien Macchi
QA Contact: Gurenko Alex
URL:
Whiteboard:
: 1498979 (view as bug list)
Depends On:
Blocks: 1505723 1554601 1556958
TreeView+ depends on / blocked
 
Reported: 2017-09-28 05:37 UTC by Ganesh Kadam
Modified: 2022-08-16 12:32 UTC (History)
15 users (show)

Fixed In Version: puppet-tripleo-5.6.4-3.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1505723 1554601 (view as bug list)
Environment:
Last Closed: 2018-05-11 10:37:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1720868 0 None None None 2017-10-02 18:56:24 UTC
OpenStack gerrit 510218 0 None MERGED Allow to configure snmpd_config 2020-12-17 03:16:43 UTC
Red Hat Issue Tracker OSP-4706 0 None None None 2022-08-16 12:32:45 UTC

Description Ganesh Kadam 2017-09-28 05:37:17 UTC
Description of problem:

IHAC who want to configure the snmp agent using the existing heat templates instead of configuring it manually for their RHOSP10 environment. They have checked the following Red Hat document for snmp reference:
~~~
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-System_Monitoring_Tools-Net-SNMP.html
~~~

In addition to the default configurations of snmp.yaml in heat templates they also want to add proc and ro_community like the following;
~~~
rocommunity public 127.0.0.1
rocommunity public 192.168.2.107
rocommunity6 public ::1
proc  neutron-server
proc nova-api.
~~~

As per the below reference, the "snmpd_config" is a list variable. We asked them to update as below and check again:
>> https://github.com/razorsedge/puppet-snmp/blob/3.6.0/manifests/init.pp#L106

~~~
parameter_defaults:
  ExtraConfig:
    snmp::ro_community: public
    snmp::ro_community6: public
    snmp::ro_network:
      - 127.0.0.1
      - 192.168.1.1
    snmp::ro_network6:
      - ::1
    snmp::snmpd_config: ['proc neutron-server', 'proc nova-api']
~~~

But above is not working.

We came to the conclusion that as of now there is no way to provision more proc configuration items because the parameters set via snmpd_config is explicitly mentioned in tripleo, Currently there is no way to customize it. Please have a look at below link:

~~~
https://github.com/openstack/puppet-tripleo/blob/master/manifests/profile/base/snmp.pp#L45-L54
~~~


Can we have this RFE in RHOSP10? The customer is looking for this feature to be available. For them, it is blocking their production stack update.  

Any pointers/suggestions?

Comment 2 Emilien Macchi 2017-10-02 18:56:41 UTC
I'm working on it now

Comment 3 Emilien Macchi 2017-10-02 20:51:40 UTC
Patch submitted on master (Queens): https://review.openstack.org/#/c/509000/

It will follow the classic backport process.

Comment 4 Emilien Macchi 2017-10-06 19:12:25 UTC
*** Bug 1498979 has been marked as a duplicate of this bug. ***

Comment 9 Dan Macpherson 2017-10-24 08:09:14 UTC
Hi Emilien,

Have cloned this BZ to a docs bug. We've got ro_community and ro_community6 documented already:

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/10/html/advanced_overcloud_customization/sect-security_enhancements#changing_the_simple_network_management_protocol_snmp_community_string

We just need to document the other snmp params.

Comment 10 Lon Hohberger 2018-03-07 13:52:50 UTC
According to our records, this should be resolved by puppet-tripleo-5.6.4-3.el7ost.  This build is available now.

Comment 11 Gurenko Alex 2018-05-10 11:05:04 UTC
Verified on puddle 2018-05-09.2

[stack@undercloud-0 ~]$ rpm -q puppet-tripleo
puppet-tripleo-5.6.8-3.el7ost.noarch


Note You need to log in before you can comment on or make changes to this bug.