CentOS 8 has been vaulted. We need to fix the yum urls
to continue to use it.
A longer term fix is to migrate to a new/different base image,
but is outside the scope of this fix which only addresses
broken builds.
Partial-Bug: 1995630
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: Id8b32ee27a65f74c616b07e37f8f5f2914176264
(cherry picked from commit 9ac9f7878b5d9a9ddf88e5c1fb824bc5e57911c0)
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
When system application-apply, the script will download
containers and upload them to the local registry.
(This process includes repository re-written with
system parameter configuration)
Current in values.yaml of snmp armada app, only
stx-snmp container configuration matched to the
expected pattern. So that the script downloaded
only stx-snmp container but no other two containers.
This fix modifies the format in values.xml to
match the expected pattern (No value changes for
repositories nor tags)
Test Plan:
PASS: Apply snmp-armada-app and confirm the followings:
- Status becomes "applied"
- All 3 containers download from configured repository
- All 3 containers are in the local repository
Closes-bug: 1952654
Signed-off-by: Takamasa Takenaka <takamasa.takenaka@windriver.com>
Change-Id: I8b742a2e211717b343f459443b15e947e5c6bd92
Update yaml file with a new tag for stx-snmp, due to
a new fix to remove Titianium cloud text from mibs.
Test Plan:
PASS:Apply snmp-armada-app and confirm stx-snmp
tag is stx.6.0-v1.0.1 by "kubectl describe"
Closes-bug: 1947611
Signed-off-by: Takamasa Takenaka <takamasa.takenaka@windriver.com>
Change-Id: Ifb22164acdc16bb66b56bf02e42eb1b0214e758d
Update list file with a new tag for stx-fm-trap-subagent, due to
a new fix
Test Plan:
PASS:Apply snmp-armada-app and confirm stx-fm-trap-subagent
tag is stx.6.0-v1.0.2 by "kubectl describe"
Closes-Bug: 1943612
Signed-off-by: Takamasa Takenaka <takamasa.takenaka@windriver.com>
Change-Id: If8db42e2b43307bac2963f1e30cdc57f5184f1d0
Update values.yaml with a new tag for stx-fm-subagent, due to
a new fix to retry to connect alarm/event database if it fails.
Closes-bug: 1949083
Signed-off-by: Takamasa Takenaka <takamasa.takenaka@windriver.com>
Change-Id: I649d6a8e62acf98cf8bca694c41eab0d89170930
Root cause:
SNMP sub-agent uses fm-common library to connect database
to obtain alarm/event list. But after swact, it does not
detect disconnection and as the result, the functions to
obtain alarm/event returns false and does not return proper
list.
Analysis:
fm-common library to connect to the database. It checks
connection by PQstatus() and it will reconnect if it find
connection error. But PQstatus responses CONNECTION_OK
even after swact. The other option to check connection is
using PQPing(). But this method also responses PQPING_OK
even after awact, too.
Other option is sending real SQL and it is same as to
retry. So this solution is to retry to obtain alarm/
event list if it fails.
Solution:
When SNMP sub-agent calls to obtain alarm/event list
and it returns false, retry it. Internally, it reconnects
automatically and it returns the proper list.
Test Plan:
Test the following steps for snmpget, snmpgetnext, snmpbulkget
and snmpwalk in IPv4 and IPv6:
1. Execute "system host-swact controller-n"
2. Send snmp command and record response
3. Send snmp command and record response
4. Compare 2. and 3. response and confirm they are matched
=> all cases PASS
Closes-bug: 1949083
Signed-off-by: Takamasa Takenaka <takamasa.takenaka@windriver.com>
Change-Id: Ib58f9f657bb5ac8c3b505eee5443a24bedb2463e
Test Plan:
- No test plan was necessary as mainly documentation changes were made, changing the old references to Titanium and removing OIDs from obsolete products.
Closes-Bug: 1947611
Signed-off-by: Jorge Saffe <jsaffe@yow-cgts1-lx.wrs.com>
Change-Id: Ibae61af66f3d0166e10862f4e2cb616bdf216981
This reverts commit 7b7254241f2de548a4577a6d074a10fe89f231fc.
Reason for revert: It was not followed the bug submission template including the test plan and the launchpad id.
Change-Id: I5e1ec5c525e487d1deb410ea6349ee6d887dda8b
Due to a recent change in fm-api's directory structure, unit tests would
fail since the virtualenv would not be able to find fm-api/setup.py.
Adjust the tox.ini to point to the correct directory. Tested locally
by running tox.ini.
Depends-On: https://review.opendev.org/c/starlingx/fault/+/806046
Story: 2009101
Task: 43091
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Iec8f443d7a3021ec86bb8319597d3ab2d2933d7c
Modifications done to retrieve new sub agent images that
support IPv6.
Closes-Bug: 1943612
Signed-off-by: Jose Infanzon <jose.infanzon@windriver.com>
Change-Id: Ia0b4ffb20c11a28821d099a70413691f2a1c9ad2
A toleration needs to be added to all pods since the
node-role.kubernetes.io/master taint will be restored to all master
nodes. This will ensure that the pod will run on the master node.
Story: 2009232
Task: 43339
Signed-off-by: Enzo Candotti <enzo.candotti@windriver.com>
Change-Id: I986b16217f8f5fbb0b902d29b30d0a2c9a718273
Modifications have been made in the containers of the snmp-armada-app, and deployment and values files of helm chart package.
The following changes are made:
1. Bootstrap.sh scripts of snmp trap-subagent and sub-agent were modified to waits until the master agent container is up, to intialize them.
2. Add an environment variable to set the maxium numer or tries until raise a communication error and restart the pod.
3. Add other environment variables for testing purpose that can be modified with a helm override, like the master agent address and port.
4. Add an init_container in the snmp pod thats applies a delay when de pod starts, to solve ColdStart traps missing.
Closes-Bug: 1943612
Signed-off-by: Jorge Saffe <jorge.saffe@windriver.com>
Change-Id: I2cd4a6309e99ba73257253077dc13b3b725043dd
A lot of work has gone into making sure that StarlingX is python3
compatible. To ensure future compatibility, enable the python3
portability checks. Disable the checks that are raising errors.
Another set of commits will address the offending code.
Story: 2006796
Task: 43208
Signed-off-by: Bernardo Decco <bernardo.deccodesiqueira@windriver.com>
Change-Id: I6505bb489049f8666bfb97788353ecc77e74ddf5
Add support for tox testing under Debian Bullseye by enabling a
python 3.9 gate and tox target for exercising plugin unit tests.
Story: 2009101
Task: 43188
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Ie7f0f4efd809fafb95a14274c400e7cb2f8458b9
Obtain db url for fm without through puppet.
So that we could remove dependency with puppet.
Story: 2008132
Task: 42101
Signed-off-by: Takamasa Takenaka <takamasa.takenaka@windriver.com>
Change-Id: I51028de89a39b7e8baa3b5f5c71ff0bb7b5874b5
Update yaml file with a new tag for stx-fm-trap-subagent,
due to a new commit delivered to support IPv6
Story: 2008132
Task: 42064
Signed-off-by: Jose Infanzon <jose.infanzon@windriver.com>
Change-Id: I55bdf71d4ea662beda26f5e221e1dcb67f11d803
Depends-On: Id8a12b4c68b887ff153490af5e8084d7ee5224fe
This patch adds the default settings for IPv6 in the net-snmp
configuration file "snmpd.conf".
Story: 2008132
Task: 42029
Signed-off-by: Gonzalo Gallardo <gonzalo.gallardo@windriver.com>
Change-Id: I2fe68ed5108c552c27d166eb313544c823fba3ab
Now the server that runs in the fm-trap-subagent
is able to recieve messages when it runs
in a StarlingX with IPv6 environment.
This server is responsible to receive
the alarm metada and generate the traps
accordingly to the configuration in the
master agent.
Story: 2008132
Task: 41774
Signed-off-by: Pablo Bovina <pablo.bovina@windriver.com>
Change-Id: I89b1d8e7c97d315637b12bcfea0269f2fcf8d452
Add SNMP system information including name, location and contact details
in the fields sysContact, sysLocation and sysName of the snmpd.conf file.
Also can be setted the field sysDesc with system description.
Story: 2008132
Task: 41716
Signed-off-by: Gonzalo Gallardo <gonzalo.gallardo@windriver.com>
Change-Id: I0ed5a347f8be7e11e4acb37392520e4702183ddf
Packages defined in a spec with no files do not result in an RPM
produced by the build. On a rebuild, the build tools scan the spec and
sees the package defined but does not find a corresponding RPM, and so
flags the package for a rebuild as a result.
This commit removes the empty package definition from the spec.
Partial-Bug: 1910439
Signed-off-by: Don Penney <don.penney@windriver.com>
Change-Id: Ia12515d4faae679a30c34fa2d47d5fa2738900b3
Configure a new repo/registry "docker.io/starlingx" for the images used by the SNMP app.
Story: 2008132
Task: 41526
Signed-off-by: Gonzalo Gallardo <gonzalo.gallardo@windriver.com>
Depends-On: https://review.opendev.org/769386
Change-Id: I6d99ba3f1dd3badb55871825153930e19ad790b8
Enable/Disable the verbose logging to debug the application SNMP including master-agent,subagent and trap-subagent running on containers. Add parameter "-DALL" to turn on debugging output.
Story: 2008132
Task: 41410
Signed-off-by: Gonzalo Gallardo <gonzalo.gallardo@windriver.com>
Change-Id: Id0f68ae1bcfba7086ad20a27748cd272c3477d81
PowerTools is not the correct repo name. It should be
'powertools'. This appears to be a change in the newly
released centos8.3.2011. PowerTools os trademarked by
RedHat.
Closes-Bug: 1907277
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: I55756a8005c1821c98194b372573757e0fb733bb
The Audit plugin is resposible to
log the incoming SNMP operations
to the master agent.
Signed-off-by: Jose Infanzon <jose.infanzon@windriver.com>
Story: 2008132
Task: 41312
Depends-On: https://review.opendev.org/761792
Change-Id: Iffa22c5ce67859168ab45eec4576a58a87aeba98
Upload fm-subagent and fm-trap-subagent to our snmp armada
application integrated with armada plugin.
Change-Id: I2c7b3a65f2e97c147068d0c3c41c52e814bb0e2e
Story: 2008132
Task: 41227
Signed-off-by: Gonzalo Gallardo <gonzalo.gallardo@windriver.com>
This is the initial commit for the app skeleton.
- centos files: files related with the infra and docker images
- rst files: files with doc about snmp-armada-app
- stx-snmp-helm folder: files related with helm charts and
the app creation
Story: 2008132
Task: 41122
Change-Id: I0c4b9843544228bb04cb26504674134dd0e3ceb8
Signed-off-by: Nicolas Alvarez <nicolas.alvarez@windriver.com>
- .zuul.yaml: add config about mirroring and secret github key
- requirements.txt: empty file for futures requirements
- test-requirements.txt: file with requirements for testing
- tox.ini: file to setup the test environment
Story: 2008132
Task: 41107
Change-Id: I7e5ce441e783963017f578ee0647f224ea3773ee
Signed-off-by: Nicolas Alvarez <nicolas.alvarez@windriver.com>