Project

General

Profile

Bug #17875

After migration to 6.1, apt_get fails because of missing `rudder` global parameters

Added by Tristan Le Chanony about 2 months ago. Updated 21 days ago.

Status:
Resolved
Priority:
N/A
Assignee:
-
Category:
Web - Config management
Target version:
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
32

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

clipboard-202006301141-imeep.png (38.9 KB) clipboard-202006301141-imeep.png François ARMAND, 2020-06-30 11:41
clipboard-202006301144-fh91m.png (68.2 KB) clipboard-202006301144-fh91m.png François ARMAND, 2020-06-30 11:44

Related issues

Related to Rudder - Bug #17893: After migration standard technique packageManagement doesn't work anymoreRejectedActions
Related to Rudder - Bug #17873: SLES12 upgrade error 6.0 to 6.1ReleasedAlexis MOUSSETActions
#1

Updated by François ARMAND about 2 months ago

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
  }
}
#2

Updated by François ARMAND about 2 months 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
#3

Updated by Tristan Le Chanony about 2 months ago

Workaround work for me, thank :)

#4

Updated by François ARMAND about 2 months 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.

#5

Updated by François ARMAND about 1 month 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.

#6

Updated by François ARMAND about 1 month ago

  • Related to Bug #17893: After migration standard technique packageManagement doesn't work anymore added
#7

Updated by François ARMAND about 1 month ago

  • Related to Bug #17873: SLES12 upgrade error 6.0 to 6.1 added
#8

Updated by Vincent MEMBRÉ 21 days ago

  • Target version changed from 6.1.2 to 6.1.3
#9

Updated by François ARMAND 21 days 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.

Also available in: Atom PDF