Project

General

Profile

Actions

Bug #3837

closed

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

Added by Olivier Mauras over 11 years ago. Updated over 9 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

Actions

Also available in: Atom PDF