Actions
User story #6994
closedTechnique aptPackageInstallation doesn't update packages if no version is defined
Pull Request:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:
Description
I tried to upgrade Rudder-agent with Rudder
Using update/use package manager default version didn't update package
Adding latest as version didn't update the package
Only using version > 3.0.5 did it update from 3.0.4 to 3.0.7
Updated by Alexis Mousset over 9 years ago
- Status changed from New to In progress
Updated by Alexis Mousset over 9 years ago
looking for [installed] (rudder-agent,*,*) [name,version,arch] in package manager /usr/bin/dpkg -l [...] Comparing [installed] package (rudder-agent,3.0.6-jessie0,default) to [==] with given (rudder-agent,*,*) [name,version,arch] [...] looking for [available] (rudder-agent,*,*) [name,version,arch] in package manager /usr/bin/dpkg -l [...] Comparing [available] package (rudder-agent,3.0.6-jessie0,default) to [==] with given (rudder-agent,*,*) [name,version,arch] [...] Package 'rudder-agent' already installed and matches criteria
It seems it tries to find updates in dpkg -l
Updated by Alexis Mousset over 9 years ago
When specifying the version:
2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Package version 3.0.7 specified explicitly in promise body 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Comparing [installed] package (rudder-agent,3.0.6-jessie0,default) to [==] with given (rudder-agent,*,*) [name,version,arch] 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Matched [installed] name 'rudder-agent' 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Matched [installed] wildcard arch '*' 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Matched [installed] wildcard version '*' 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: PackageMatch: package comparison for [installed] rudder-agent was decisive: MATCH 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: CheckPackageState: Installed package match for (rudder-agent,*,*) [name,version,arch] was decisive: MATCH 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Comparing [available] package (rudder-agent,3.0.6-jessie0,default) to [==] with given (rudder-agent,3.0.7,*) [name,version,arch] 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Matched [available] name 'rudder-agent' 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Matched [available] wildcard arch '*' 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Executing '/usr/bin/dpkg --compare-versions '3.0.6-jessie0' eq '3.0.7'' 2015-07-16T14:08:39+0000 debug: /default/check_apt_package_installation/packages/'rudder-agent'[0]: cf_pwait - Waiting for process 5444 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: CompareVersions: Checked whether package version 3.0.6-jessie0 == 3.0.7: no 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Version comparison returned NO_MATCH for [available] package (rudder-agent,3.0.6-jessie0,default) to [==] with given (rudder-agent,3.0.7,*) [name,version,arch] 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: PackageMatch did not find [available] packages to match the constraints of promise (rudder-agent,3.0.7,*) [name,version,arch] 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: CheckPackageState: Available package match for (rudder-agent,3.0.7,*) [name,version,arch] was decisive: ERROR-OR-NOMATCH 2015-07-16T14:08:39+0000 debug: /default/check_apt_package_installation/packages/'rudder-agent'[0]: WillSchedulePackageOperation: on entry, action updating: package rudder-agent matches = no, installed = yes. 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: CheckPackageState: matched package (rudder-agent,3.0.7,*) [name,version,arch]; scheduling operation 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Checking if package (rudder-agent,3.0.7,*) [name,version,arch] is at the desired state (installed=1,matched=0) 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Package promises to refer to itself as 'rudder-agent' to the manager 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Package version seems to match criteria 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Package method does NOT specify a file repository 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Checking if latest available version is newer than installed... 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Looking for an installed package older than (rudder-agent,3.0.7,*) [name,version,arch] 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Found installed package (rudder-agent,3.0.6-jessie0,default) [name,version,arch] 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Executing '/usr/bin/dpkg --compare-versions '3.0.6-jessie0' lt '3.0.7'' 2015-07-16T14:08:39+0000 debug: /default/check_apt_package_installation/packages/'rudder-agent'[0]: cf_pwait - Waiting for process 5446 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: CompareVersions: Checked whether package version 3.0.6-jessie0 < 3.0.7: yes 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Installed package (rudder-agent,3.0.6-jessie0,default) [name,version,arch] is older than latest available (rudder-agent,3.0.7,*) [name,version,arch] - updating 2015-07-16T14:08:39+0000 verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Schedule package for update
Updated by Alexis Mousset over 9 years ago
It seems that:
- when the are no version specified, cf-agent only tries to install an updates if it finds it in the available package list
- when there is a specified version, even if there are no available update found, cf-agent assumes the specified version exists and calls the update command for this package anyway
And we do not currently fetch available updates.
Updated by Nicolas CHARLES over 9 years ago
ok, so should we do as we do for rpmPackageInstallation?
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.11.13 to 2.11.14
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.11.14 to 2.11.15
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.11.15 to 2.11.16
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.11.16 to 2.11.17
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 2.11.17 to 2.11.18
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 2.11.18 to 2.11.19
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.19 to 2.11.20
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.20 to 2.11.21
Updated by Alexis Mousset over 8 years ago
- Related to Bug #8167: package_install_version_cmp_update should handle all needed package operations added
Updated by Alexis Mousset over 8 years ago
- Status changed from In progress to New
Updated by Alexis Mousset over 8 years ago
- Related to User story #8230: Package management issues in Rudder/ncf added
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 Alexis Mousset over 7 years ago
- Tracker changed from Bug to User story
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 Benoît PECCATTE about 7 years ago
- Target version changed from 3.1.25 to 4.1.9
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 4.1.9 to 4.1.10
Updated by Benoît PECCATTE almost 7 years ago
- Target version changed from 4.1.10 to Ideas (not version specific)
Updated by Alexis Mousset over 6 years ago
- Status changed from New to Rejected
"latest" version specification works well with the new package technique, closing.
Actions