Bug #3837
closedRudder doesn't support Oracle Linux - Can't merge inventory in LDAP
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
- 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
- cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.0 (Santiago)
- cat /etc/oracle-release
Oracle Linux Server release 6.0
Files
Updated by François ARMAND over 11 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
Updated by François ARMAND over 11 years ago
Actually, <NAME> should be "Oracle", I think
Updated by Olivier Mauras over 11 years ago
Ok so i made a quick patch that gives me this result:
<OPERATINGSYSTEM>
<FULL_NAME>Oracle Linux Server release 5.9</FULL_NAME>
<KERNEL_NAME>linux</KERNEL_NAME>
<KERNEL_VERSION>2.6.32-400.26.2.el5uek</KERNEL_VERSION>
<NAME>Oracle</NAME>
<VERSION>5.9</VERSION>
</OPERATINGSYSTEM>
The patch also includes the line for Scientific linux support.
Updated by François ARMAND over 11 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"
Updated by Vincent MEMBRÉ over 11 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
Updated by Vincent MEMBRÉ over 11 years ago
- 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 over 11 years ago
Applied in changeset packages:commit:3a18efd2173efcd14f61e03ac40da45335084c58.
Updated by Olivier Mauras over 11 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".
Updated by Vincent MEMBRÉ over 11 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?
Updated by Jonathan CLARKE over 11 years ago
Vincent, Nicolas, Olivier: has this patch been proposed upstream to FusionInventory?
Updated by Jonathan CLARKE over 11 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?
Updated by Vincent MEMBRÉ over 11 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.
Updated by Nicolas PERRON over 11 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:
- The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2013-September/000044.html
- The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog24
- Download information: http://www.rudder-project.org/foswiki/Download/
Updated by Benoît PECCATTE almost 10 years ago
- Category changed from 26 to Web - Nodes & inventories