Project

General

Profile

Actions

Bug #18260

closed

Selecting "latest" version for package installation in techniques Packages only checks for existence

Added by Nicolas CHARLES about 4 years ago. Updated about 4 years ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

It does not effectively check for latest version, at least using zypper

Actions #1

Updated by Nicolas CHARLES about 4 years ago

  • Project changed from 41 to Rudder
  • Category set to System techniques
Actions #2

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 6.1.5 to 6.1.6
Actions #3

Updated by Nicolas CHARLES about 4 years ago

  • Category changed from System techniques to Techniques
Actions #4

Updated by Nicolas CHARLES about 4 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #5

Updated by Nicolas CHARLES about 4 years ago

with centos7 it works as expected

Actions #6

Updated by Nicolas CHARLES about 4 years ago

on sles 15 it does not

Actions #7

Updated by Nicolas CHARLES about 4 years ago

  • Status changed from In progress to Rejected

ok, problem was because a change of vendor for package with different version.
Rejecting this issue

Actions #8

Updated by Nicolas CHARLES about 4 years ago

  • Status changed from Rejected to In progress

ok, it happen only when 2 different versions are given

Actions #9

Updated by Nicolas CHARLES about 4 years ago

there are two issue: on is that a specific version override for all, and if install fails, error does not bubble up correctly

2020-10-21T05:31:17+00:00    error: package module: ErrorMessage=Problem occurred during or after installation or removal of packages: Installation aborted by userErrorMessage=Problem occurred during or after installation or removal of packages: Installation aborted by user
2020-10-21T05:31:19+00:00    error: Error installing package 'python3-curses'
2020-10-21T05:31:19+00:00    error: Method 'ncf_package' failed in some repairs
   info          packageManagement         None                      python3-curses     If you tried to install a virtual package, please use in place the concrete package you want to install.
2020-10-21T05:31:19+00:00 Presence of package python3-curses in latest available version could not be repaired
2020-10-21T05:31:19+00:00    error: Method 'package_state_options' failed in some repairs
   info          packageManagement         None                      tree               Presence of package tree in any version was correct
E| compliant     packageManagement         Package                   python3-curses     Presence of package python3-curses in latest available version was correct

Actions #10

Updated by Nicolas CHARLES about 4 years ago

verbose shows

   error: package module: ErrorMessage=Problem occurred during or after installation or removal of packages: Installation aborted by userErrorMessage=Problem occurred during or after installation or removal of packages: Installation aborted by user
   error: Error installing package 'python3-curses'
rudder  verbose: C:    + promise outcome class 'repair_failed_ncf_package_present_python3_curses'
rudder  verbose: C:    + promise outcome class 'ncf_package_present_python3_curses_failed'
rudder  verbose: C:    + promise outcome class 'ncf_package_present_python3_curses_not_ok'
rudder  verbose: C:    + promise outcome class 'ncf_package_present_python3_curses_error'
rudder  verbose: C:    + promise outcome class 'ncf_package_present_python3_curses_not_kept'
rudder  verbose: C:    + promise outcome class 'ncf_package_present_python3_curses_not_repaired'
rudder  verbose: C:    + promise outcome class 'ncf_package_present_python3_curses_reached'
rudder  verbose: C:    + promise outcome class 'repair_failed_ncf_package_python3_curses_latest_default_default_present_'
rudder  verbose: C:    + promise outcome class 'ncf_package_python3_curses_latest_default_default_present__failed'
rudder  verbose: C:    + promise outcome class 'ncf_package_python3_curses_latest_default_default_present__not_ok'
rudder  verbose: C:    + promise outcome class 'ncf_package_python3_curses_latest_default_default_present__error'
rudder  verbose: C:    + promise outcome class 'ncf_package_python3_curses_latest_default_default_present__not_kept'
rudder  verbose: C:    + promise outcome class 'ncf_package_python3_curses_latest_default_default_present__not_repaired'
rudder  verbose: C:    + promise outcome class 'ncf_package_python3_curses_latest_default_default_present__reached'

then

rudder  verbose: C:    + promise outcome class 'package_state_options_python3_curses_reached'
rudder  verbose: C:    + promise outcome class 'package_state_options_python3_curses_failed'
rudder  verbose: C:    + promise outcome class 'package_state_options_python3_curses_not_ok'
rudder  verbose: C:    + promise outcome class 'package_state_options_python3_curses_not_kept'
rudder  verbose: C:    + promise outcome class 'package_state_options_python3_curses_not_repaired'

rudder  verbose: C:    + promise outcome class 'package_state_options_python3_curses_latest_default_default_present__reached'
rudder  verbose: C:    + promise outcome class 'package_state_options_python3_curses_latest_default_default_present__failed'
rudder  verbose: C:    + promise outcome class 'package_state_options_python3_curses_latest_default_default_present__not_ok'
rudder  verbose: C:    + promise outcome class 'package_state_options_python3_curses_latest_default_default_present__not_kept'
rudder  verbose: C:    + promise outcome class 'package_state_options_python3_curses_latest_default_default_present__not_repaired'

rudder  verbose: C:    + promise outcome class 'package_present_python3_curses_reached'
rudder  verbose: C:    + promise outcome class 'package_present_python3_curses_failed'
rudder  verbose: C:    + promise outcome class 'package_present_python3_curses_not_ok'
rudder  verbose: C:    + promise outcome class 'package_present_python3_curses_not_kept'
rudder  verbose: C:    + promise outcome class 'package_present_python3_curses_not_repaired'

but the inner_class_prefix used in technique is not parametrized

Actions #11

Updated by Nicolas CHARLES about 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1635
Actions #12

Updated by Nicolas CHARLES about 4 years ago

  • Status changed from Pending technical review to Pending release
Actions #13

Updated by Vincent MEMBRÉ about 4 years ago

  • Fix check changed from To do to Checked
Actions #14

Updated by Alexis Mousset about 4 years ago

  • Name check changed from To do to Reviewed
Actions #15

Updated by Vincent MEMBRÉ about 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.6 and 6.2.0~beta1 which were released today.

Actions

Also available in: Atom PDF