Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue:4273572 Implement NDT plugin upgrade #300

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

alextabachnik
Copy link
Contributor

issue:4274215 support duplicated node description report in case no other errors detected (bug fix)

What

implement upgrade.sh script that could be used for upgrade flow if need
handle option for merger report when node description duplication error is an only error in report (buf fix bug )

Why ?

Fix a bug and add functionality (upgrade)

How ?

Implemented empty upgrade.sh script as this script required by upgrade flow.
Added functionality for duplicated node description report if it is the only error in fabric

Testing ?

Tested manually

Special triggers

Use the following phrases as comments to trigger different runs

  • bot:retest rerun Jenkins CI (to rerun GitHub CI, use "Checks" tab on PR page and rerun all jobs)
  • bot:upgrade run additional update tests



def createCfgLine(key, value):
line = "%s=%s\n" % (key, value)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
line = "%s=%s\n" % (key, value)
line = "%s = %s\n" % (key, value)

return line


help_keys = ('-h', '--h', '-help', '--help')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider using argparse instead.

NEW_CONF_FILE=/opt/ufm/ufm_plugin_ndt/ndt.conf
TMP_CONF_FILE=/tmp/ndt_tmp.conf

python3 /opt/ufm/ufm_plugin_ndt/cfg_files_merge.py "${NEW_CONF_FILE}" "${CURRENT_CONF_FILE}" "${TMP_CONF_FILE}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python3?
not UFM's python?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

@@ -0,0 +1,114 @@
"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already discussed - we said that we want to copy this merger module from external shared location for all the plugins (not a copy for each plugin) - can you please handle that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implementing and testing

issue:4274215 support duplicated node description report in case no
other errors detected (bug fix)

Signed-off-by: Alex Tabachnik <[email protected]>
@alextabachnik alextabachnik force-pushed the issue/4273572_ndt_plugin_upgrade branch from 07831ec to 957c948 Compare February 18, 2025 09:15
@shahar-spormas
Copy link
Collaborator

bot:retest

@kedeme kedeme merged commit 3376776 into main Feb 18, 2025
1 check passed
@kedeme kedeme deleted the issue/4273572_ndt_plugin_upgrade branch February 18, 2025 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants