Bug #17875
closedAfter migration to 6.1, apt_get fails because of missing `rudder` global parameters
Description
Hello
I update Rudder from version 6.0 to 6.1. But now I can't install package. When I run agent (agent install on know server or new agent on new server), it's encounter an error :
error: Invalid or missing arguments in package_module body 'apt_get': query_installed_ifelapsed = -678 query_updates_ifelapsed = -678 error: New package promise failed sanity check. error: Invalid or missing arguments in package_module body 'apt_get': query_installed_ifelapsed = -678 query_updates_ifelapsed = -678 error: New package promise failed sanity check. error: Invalid or missing arguments in package_module body 'apt_get': query_installed_ifelapsed = -678 query_updates_ifelapsed = -678 error: New package promise failed sanity check. error: Method 'ncf_package' failed in some repairs error: Method 'package_state_options' failed in some repairs E| error packageManagement Package sl Presence of package sl in latest available version could not be repaired E| n/a packageManagement Post-modification script sl No post-modification script was defined error: Method 'package_management_1_2_f2e6ec29_a761_4e1c_8939_f53545d0a400' failed in some repairs error: Method 'run_f2e6ec29_a761_4e1c_8939_f53545d0a400' failed in some repairs
So I create a new directive to install a package and rudder encounter the same error.
There the properties.json :
root@Mul ~ # cat /var/rudder/cfengine-community/inputs/properties.d/properties.json { "properties": { "rudder_file_edit_header": "### Managed by Rudder, edit with care ###" } }
Files
Updated by François ARMAND over 4 years ago
- File clipboard-202006301141-imeep.png clipboard-202006301141-imeep.png added
- File clipboard-202006301144-fh91m.png clipboard-202006301144-fh91m.png added
Hello,
It seems that that node is missing a new global property set used to control package manager cache time:
That property should be inherited in nodes:
If the global parameter is missing, this is a bug. It should be created automatically when rudder (re)start.
You can workaround the problem until we look at the bug by creating a group with all nodes and setting a property named rudder
, of type JSON
, with content:
{ "packages": { "installed_cache_expire": 60, "updates_cache_expire": 240 } }
Updated by François ARMAND over 4 years ago
- Subject changed from Can't install package with apt_get to After migration to 6.1, apt_get fails because of missing `rudder` global parameters
- Category set to Web - Config management
Updated by François ARMAND over 4 years ago
- Severity set to Minor - inconvenience | misleading | easy workaround
- User visibility set to Operational - other Techniques | Rudder settings | Plugins
- Priority changed from 0 to 32
So, digging into that issue, it appears that the file `/opt/rudder/etc/openldap/schema/rudder.schema` is still the 6.0 version, and not a 6.1 version. We don't have identified what cause that issue yet.
Updated by François ARMAND over 4 years ago
To know if you are subjected to the problem, you can check that rudder.schema
is 6.1 version with that grep:
$ grep "propertyProvider" /opt/rudder/etc/openldap/schema/rudder.schema NAME 'propertyProvider' MAY ( parameterValue $ description $ propertyProvider $ overridable ) )
In 6.0, propertyProvider
is not defined.
Updated by François ARMAND over 4 years ago
- Related to Bug #17893: After migration standard technique packageManagement doesn't work anymore added
Updated by François ARMAND over 4 years ago
- Related to Bug #17873: SLES12 upgrade error 6.0 to 6.1 added
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 6.1.2 to 6.1.3
Updated by François ARMAND over 4 years ago
- Status changed from New to Resolved
So, it was because of an error in upgrade process that broke the upgrande of some config files/processes.
Error when corrected in related tickets. I'm closing that one, but please feel free to reopen if same behavior happen again.