Fixes after live cloud run
- ping, proper handling of multiple IPs on one interface
- node skips accounted on gathering linux versions
- '--force-tag' option for package report
- '--exclude-keywords' option for package report
- 'versions' foldereincluded on 'setup.py install'
Change-Id: I5e1b84f187270789223d50887d9d5d5cb78ee5ba
Related-PROD: PROD-28199
diff --git a/cfg_checker/modules/packages/__init__.py b/cfg_checker/modules/packages/__init__.py
index 45b1f77..9d55c05 100644
--- a/cfg_checker/modules/packages/__init__.py
+++ b/cfg_checker/modules/packages/__init__.py
@@ -29,7 +29,18 @@
metavar='packages_csv_filename',
help="CSV filename to save report"
)
-
+ pkg_report_parser.add_argument(
+ '--force-tag',
+ metavar='force_tag', default=None,
+ help="Tag to do a forced search of release versions in. "
+ "If nothing is found, 'mcp_version' tag will be used"
+ )
+ pkg_report_parser.add_argument(
+ '--exclude-keywords',
+ metavar='exclude_repos_keywords', default="nightly extra",
+ help="Keywords to exclude repos from searching "
+ "release versions. Space delimited: 'nightly extra'"
+ )
pkg_repos = pkg_subparsers.add_parser(
'versions',
help="Parse versions at given URL and create local map"
@@ -95,8 +106,16 @@
"""
_type, _filename = args_utils.get_package_report_type_and_filename(args)
+ if ' ' in args.exclude_keywords:
+ _kw = args.exclude_keywords.split(' ')
+ else:
+ _kw = [args.exclude_keywords]
+
# init connection to salt and collect minion data
- pChecker = checker.CloudPackageChecker()
+ pChecker = checker.CloudPackageChecker(
+ force_tag=args.force_tag,
+ exclude_keywords=_kw
+ )
# collect data on installed packages
pChecker.collect_installed_packages()
# diff installed and candidates