Project

General

Profile

Actions

Bug #3837

closed

Rudder doesn't support Oracle Linux - Can't merge inventory in LDAP

Bug #3837: Rudder doesn't support Oracle Linux - Can't merge inventory in LDAP

Added by Olivier Mauras almost 13 years ago. Updated over 11 years ago.

Status:
Released
Priority:
1 (highest)
Assignee:
Nicolas PERRON
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Tested only on Oracle Linux 5, also providing details for OL6.

A new Oracle Linux 5 agent cannot be added to inventory in Rudder.

$ lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Server release 5.9 (Carthage)
Release: 5.9
Codename: Carthage

Inventory sent by fusioninventory:
<OPERATINGSYSTEM>
<FULL_NAME>Oracle Linux Server release 5.9 (Carthage)</FULL_NAME>
<KERNEL_NAME>linux</KERNEL_NAME>
<KERNEL_VERSION>2.6.32-400.26.2.el5uek</KERNEL_VERSION>
<NAME>EnterpriseEnterpriseServer</NAME>
<VERSION>5.9</VERSION>
</OPERATINGSYSTEM>

Rudder error:
[2013-08-14 10:38:37] ERROR com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - Error when trying to process report: Can't merge inventory report in LDAP directory, aborting <- Error in preCommit pipeline with processor 'pre_commit_inventory:check_os_type_is_known', abort <- Os Type is not suported (OS Type: linux; OS Name: EnterpriseEnterpriseServer): Can't merge inventory report in LDAP directory, aborting

Fusioninventory should be modified to check if /etc/oracle-release exists EVEN if lsb_release is executable and use details from that file.

Details of /etc/*-release files:
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.9 (Tikanga)

$ cat /etc/oracle-release
Oracle Linux Server release 5.9

On Oracle Linux 6:
  1. lsb_release -a
    LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
    Distributor ID: OracleServer
    Description: Oracle Linux Server release 6.0
    Release: 6.0
    Codename: n/a
  1. cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.0 (Santiago)
  1. cat /etc/oracle-release
    Oracle Linux Server release 6.0

Files

Updated by François ARMAND almost 13 years ago Actions #1

  • Status changed from New to 8
  • Target version changed from 2.7.1 to 2.4.8

We will kept this one only for the "os not supported" part.
I'm going to open related bug for:

- adding a patch to fusion to handle Oracle Linux
- adding support in Rudder for Oracle Linux

Updated by François ARMAND almost 13 years ago Actions #2

Actually, <NAME> should be "Oracle", I think

Updated by Olivier Mauras almost 13 years ago Actions #3

I think so too :)

Updated by Olivier Mauras almost 13 years ago Actions #4

Ok so i made a quick patch that gives me this result:

&lt;OPERATINGSYSTEM&gt;
&lt;FULL_NAME&gt;Oracle Linux Server release 5.9&lt;/FULL_NAME&gt;
&lt;KERNEL_NAME&gt;linux&lt;/KERNEL_NAME&gt;
&lt;KERNEL_VERSION&gt;2.6.32-400.26.2.el5uek&lt;/KERNEL_VERSION&gt;
&lt;NAME&gt;Oracle&lt;/NAME&gt;
&lt;VERSION&gt;5.9&lt;/VERSION&gt;
&lt;/OPERATINGSYSTEM&gt;

The patch also includes the line for Scientific linux support.

Updated by François ARMAND almost 13 years ago Actions #5

  • Status changed from 8 to In progress
  • Assignee set to Vincent MEMBRÉ

Well, change my first message: this one is for fusion, #3836 is for support, and I'm going to open an other bug for "Can't merge inventory in LDAP"

Updated by Vincent MEMBRÉ almost 13 years ago Actions #6

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to Nicolas PERRON
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/98

Updated by Vincent MEMBRÉ almost 13 years ago Actions #7

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset packages:commit:4c999d95f850638485a4519052fa5fbcd153377a.

Updated by Nicolas PERRON almost 13 years ago Actions #8

Applied in changeset packages:commit:3a18efd2173efcd14f61e03ac40da45335084c58.

Updated by Olivier Mauras almost 13 years ago Actions #9

Are you sure it's a good idea having "Oracle Linux Server" instead of just "Oracle" ?
All other distribs have a single word name, and by the LSB it's supposed to be the distribution ID which should be "Oracle".

Updated by Vincent MEMBRÉ almost 13 years ago Actions #10

Fusion inventory fixed this issue in a latest version using 'oracle linux server', So i kept the same name to be consistent with them. In rudder we just look if osname contains oracle, so if the inventory only contains oracle there won't be a problem

Is it OK for you?

Updated by Olivier Mauras almost 13 years ago Actions #11

Yes OK

Updated by Jonathan CLARKE almost 13 years ago Actions #12

Vincent, Nicolas, Olivier: has this patch been proposed upstream to FusionInventory?

Updated by Jonathan CLARKE almost 13 years ago Actions #13

Jonathan CLARKE wrote:

Vincent, Nicolas, Olivier: has this patch been proposed upstream to FusionInventory?

Hello, hello? Does anyone know the answer to this?

Updated by Olivier Mauras almost 13 years ago Actions #14

I haven't

Updated by Vincent MEMBRÉ almost 13 years ago Actions #15

I'll open the issues in the fusion inventory bugtracker.

I need to confirm that they have not been corrected in latest version of fusion.

Updated by Nicolas PERRON almost 13 years ago Actions #16

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.4.8, which was released today.
Check out:

Updated by Benoît PECCATTE over 11 years ago Actions #17

  • Category changed from 26 to Web - Nodes & inventories
Actions

Also available in: PDF Atom