Bug 1496672

Summary: [RFE]SNMP proc and ro_community addition in heat templates
Product: Red Hat OpenStack Reporter: Ganesh Kadam <gkadam>
Component: puppet-tripleoAssignee: Emilien Macchi <emacchi>
Status: CLOSED CURRENTRELEASE QA Contact: Gurenko Alex <agurenko>
Severity: medium Docs Contact:
Priority: medium    
Version: 10.0 (Newton)CC: aschultz, dmacpher, emacchi, jcoufal, jjoyce, jschluet, jwaterwo, mburns, rhel-osp-director-maint, sbaker, shardy, slinaber, srevivo, therve, tvignaud
Target Milestone: z8Keywords: FutureFeature, TestOnly, Triaged, ZStream
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-tripleo-5.6.4-3.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1505723 1554601 (view as bug list) Environment:
Last Closed: 2018-05-11 10:37:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1505723, 1554601, 1556958    

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