-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
|
||
|
||
def createCfgLine(key, value): | ||
line = "%s=%s\n" % (key, value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line = "%s=%s\n" % (key, value) | |
line = "%s = %s\n" % (key, value) |
return line | ||
|
||
|
||
help_keys = ('-h', '--h', '-help', '--help') |
There was a problem hiding this comment.
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}" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 @@ | |||
""" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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]>
Signed-off-by: Alex Tabachnik <[email protected]>
07831ec
to
957c948
Compare
bot:retest |
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