Project

General

Profile

Actions

Bug #3837

closed

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

Added by Olivier Mauras over 9 years ago. Updated almost 8 years ago.

Status:
Released
Priority:
1
Assignee:
Nicolas PERRON
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
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

Actions #1

Updated by François ARMAND over 9 years ago

  • 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

Actions #2

Updated by François ARMAND over 9 years ago

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

Actions #3

Updated by Olivier Mauras over 9 years ago

I think so too :)

Actions #4

Updated by Olivier Mauras over 9 years ago

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.

Actions #5

Updated by François ARMAND over 9 years ago

  • 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"

Actions #6

Updated by Vincent MEMBRÉ over 9 years ago

  • 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
Actions #7

Updated by Vincent MEMBRÉ over 9 years ago

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

Applied in changeset packages:commit:4c999d95f850638485a4519052fa5fbcd153377a.

Actions #8

Updated by Nicolas PERRON over 9 years ago

Applied in changeset packages:commit:3a18efd2173efcd14f61e03ac40da45335084c58.

Actions #9

Updated by Olivier Mauras over 9 years ago

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".

Actions #10

Updated by Vincent MEMBRÉ over 9 years ago

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?

Actions #11

Updated by Olivier Mauras over 9 years ago

Yes OK

Actions #12

Updated by Jonathan CLARKE over 9 years ago

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

Actions #13

Updated by Jonathan CLARKE over 9 years ago

Jonathan CLARKE wrote:

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

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

Actions #14

Updated by Olivier Mauras over 9 years ago

I haven't

Actions #15

Updated by Vincent MEMBRÉ over 9 years ago

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.

Actions #16

Updated by Nicolas PERRON over 9 years ago

  • Status changed from Pending release to Released

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

Actions #17

Updated by Benoît PECCATTE almost 8 years ago

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

Also available in: Atom PDF