Actions
Bug #7119
closedWrong reporting in rpmPackageInstallation when trying to update a non-existent package
Added by Alexis Mousset over 9 years ago. Updated about 6 years ago.
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
R: @@packageInstallation@@result_success@@32377fd7-02fd-43d0-aab7-28460a91347b@@d09e0623-7b6d-4ff4-81be-22eeea82d795@@9@@RHEL/CentOS/SuSE packages@@somepackage@@2015-08-19 13:29:54+00:00##root@#No action required for RPM package somepackage with policy: update
or even sometimes:
R: @@packageInstallation@@result_error@@32377fd7-02fd-43d0-aab7-28460a91347b@@d09e0623-7b6d-4ff4-81be-22eeea82d795@@7@@RHEL/CentOS/SuSE packages@@somepackage@@2015-08-19 13:22:53+00:00##root@#Error taking action for RPM package somepackage with policy: update R: @@packageInstallation@@result_success@@32377fd7-02fd-43d0-aab7-28460a91347b@@d09e0623-7b6d-4ff4-81be-22eeea82d795@@7@@RHEL/CentOS/SuSE packages@@somepackage@@2015-08-19 13:22:53+00:00##root@#No action required for RPM package somepackage with policy: update
Updated by Alexis Mousset over 9 years ago
- Related to Bug #7116: Issue updating RPM using "Package management for RHEL / CentOS / SuSE / RPM systems" added
Updated by Alexis Mousset over 9 years ago
The problem is in the Rudder technique:
grep "/default/check_rpm_package_installation/packages" logfile 2015-08-19T13:28:24+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:24+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:24+0000 verbose: /default/check_rpm_package_installation/packages: Skipping next promise '${rpm_package[${index_rpmpkg}]}', as ifvarclass 'is_update_action_0.0_update_version_valid.!0_package_version_defined.!(rpm_package_installation_0_repaired|rpm_package_installation_0_error|rpm_package_installation_0_kept)' is not relevant 2015-08-19T13:28:24+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:24+0000 verbose: /default/check_rpm_package_installation/packages: Skipping next promise '${rpm_package[${index_rpmpkg}]}', as ifvarclass '0_package_version_defined.!(rpm_package_installation_0_repaired|rpm_package_installation_0_error|rpm_package_installation_0_kept)' is not relevant 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Skipping next promise '${rpm_package[${index_rpmpkg}]}', as ifvarclass '(!is_update_action_0|(SuSE.!zypper_version_ok)).!0_package_version_defined.!(rpm_package_installation_0_repaired|rpm_package_installation_0_error|rpm_package_installation_0_kept)' is not relevant 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Skipping next promise '${rpm_package[${index_rpmpkg}]}', as ifvarclass 'is_update_action_0.0_update_version_valid.!0_package_version_defined.!(rpm_package_installation_0_repaired|rpm_package_installation_0_error|rpm_package_installation_0_kept)' is not relevant 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Skipping next promise '${rpm_package[${index_rpmpkg}]}', as ifvarclass '0_package_version_defined.!(rpm_package_installation_0_repaired|rpm_package_installation_0_error|rpm_package_installation_0_kept)' is not relevant 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Skipping next promise '${rpm_package[${index_rpmpkg}]}', as ifvarclass '(!is_update_action_0|(SuSE.!zypper_version_ok)).!0_package_version_defined.!(rpm_package_installation_0_repaired|rpm_package_installation_0_error|rpm_package_installation_0_kept)' is not relevant 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Skipping next promise '${rpm_package[${index_rpmpkg}]}', as ifvarclass 'is_update_action_0.0_update_version_valid.!0_package_version_defined.!(rpm_package_installation_0_repaired|rpm_package_installation_0_error|rpm_package_installation_0_kept)' is not relevant 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Skipping next promise '${rpm_package[${index_rpmpkg}]}', as ifvarclass '0_package_version_defined.!(rpm_package_installation_0_repaired|rpm_package_installation_0_error|rpm_package_installation_0_kept)' is not relevant 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Skipping next promise '${rpm_package[${index_rpmpkg}]}', as ifvarclass '(!is_update_action_0|(SuSE.!zypper_version_ok)).!0_package_version_defined.!(rpm_package_installation_0_repaired|rpm_package_installation_0_error|rpm_package_installation_0_kept)' is not relevant 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Skipping next promise '${rpm_package[${index_rpmpkg}]}', as ifvarclass 'is_update_action_0.0_update_version_valid.!0_package_version_defined.!(rpm_package_installation_0_repaired|rpm_package_installation_0_error|rpm_package_installation_0_kept)' is not relevant 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Evaluating promise '${rpm_package[${index_rpmpkg}]}' 2015-08-19T13:28:27+0000 verbose: /default/check_rpm_package_installation/packages: Skipping next promise '${rpm_package[${index_rpmpkg}]}', as ifvarclass '0_package_version_defined.!(rpm_package_installation_0_repaired|rpm_package_installation_0_error|rpm_package_installation_0_kept)' is not relevant
The package promise is not evaluated and we still report a success.
"any" usebundle => rudder_common_report("packageInstallation", "result_success", "${rpm_data[${index_rpmpkg}][3]}", "RHEL/CentOS/SuSE packages", "${rpm_package[${index_rpmpkg}]}", "No action required for RPM package ${rpm_package[${index_rpmpkg}]} with policy: ${rpm_data[${index_rpmpkg}][0]}"), ifvarclass => "is_update_action_${index_rpmpkg}.!${index_rpmpkg}_package_version_defined.(rpm_package_installation_updated_available_packages_kept|rpm_package_installation_updated_available_packages_repaired).!${index_rpmpkg}_update_version_valid";
should probably be split and return a result_error
if the package does not exist on the system.
Updated by Alexis Mousset over 9 years ago
- Target version set to 2.11.13
The problem seems to exist since the 6.1 version of the technique.
Updated by Jonathan CLARKE almost 9 years ago
- Related to Bug #3040: Package management for RHEL / CentOS / SuSE / RPM systems : Reporting about installation is wrong when a package is not available or met dependencies problem added
Updated by Alexis Mousset over 8 years ago
- Related to User story #8230: Package management issues in Rudder/ncf added
Updated by Benoît PECCATTE over 8 years ago
- Target version changed from 2.11.13 to 2.11.21
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.21 to 2.11.22
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.22 to 2.11.23
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.23 to 2.11.24
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 2.11.24 to 308
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 308 to 3.1.14
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.14 to 3.1.15
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.15 to 3.1.16
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.16 to 3.1.17
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 3.1.17 to 3.1.18
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 3.1.18 to 3.1.19
Updated by Jonathan CLARKE over 7 years ago
- Severity set to Major - prevents use of part of Rudder | no simple workaround
- User visibility set to Operational - other Techniques | Technique editor | Rudder settings
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.19 to 3.1.20
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.20 to 3.1.21
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.21 to 3.1.22
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.22 to 3.1.23
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.23 to 3.1.24
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.24 to 3.1.25
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 3.1.25 to 387
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 387 to 4.1.10
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 4.1.10 to 4.1.11
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.11 to 4.1.12
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.12 to 4.1.13
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.14
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.14 to 4.1.15
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.15 to 4.1.16
- Priority changed from 43 to 44
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.16 to 4.1.17
Updated by François ARMAND about 6 years ago
- Status changed from New to Rejected
- Priority changed from 44 to 0
The correct correction for that ticket is to use the "package" technique. I'm closing it. If you can't use package technique and are impacted by that ticket, please let us know!
Actions