jp-gouin / helm-openldap

Helm chart of Openldap in High availability with multi-master replication and PhpLdapAdmin and Ltb-Passwd
Apache License 2.0
198 stars 118 forks source link

Put replication and Add a new schema create a bug #153

Closed wynax closed 7 months ago

wynax commented 7 months ago

With the last helm chart and with openldap 2.6.6-fix image, we have some problem with the up of openldap-1.

I add a new schema in value.yaml : customSchemaFiles: collective.ldif: |-

collective, schema, config

dn: cn=collective,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: collective
olcAttributeTypes: ( 2.5.4.7.1 NAME 'c-l' SUP l COLLECTIVE )
olcAttributeTypes: ( 2.5.4.8.1 NAME 'c-st' SUP st COLLECTIVE )
olcAttributeTypes: ( 2.5.4.9.1 NAME 'c-street' SUP street COLLECTIVE )
olcAttributeTypes: ( 2.5.4.10.1 NAME 'c-o' SUP o COLLECTIVE )
olcAttributeTypes: ( 2.5.4.11.1 NAME 'c-ou' SUP ou COLLECTIVE )
olcAttributeTypes: ( 2.5.4.16.1 NAME 'c-PostalAddress' SUP postalAddress CO
 LLECTIVE )
olcAttributeTypes: ( 2.5.4.17.1 NAME 'c-PostalCode' SUP postalCode COLLECTI
 VE )
olcAttributeTypes: ( 2.5.4.18.1 NAME 'c-PostOfficeBox' SUP postOfficeBox CO
 LLECTIVE )
olcAttributeTypes: ( 2.5.4.19.1 NAME 'c-PhysicalDeliveryOfficeName' SUP phy
 sicalDeliveryOfficeName COLLECTIVE )
olcAttributeTypes: ( 2.5.4.20.1 NAME 'c-TelephoneNumber' SUP telephoneNumbe
 r COLLECTIVE )
olcAttributeTypes: ( 2.5.4.21.1 NAME 'c-TelexNumber' SUP telexNumber COLLE
 CTIVE )
olcAttributeTypes: ( 2.5.4.23.1 NAME 'c-FacsimileTelephoneNumber' SUP facs
 imileTelephoneNumber COLLECTIVE )
olcAttributeTypes: ( 2.5.4.25.1 NAME 'c-InternationalISDNNumber' SUP inter
 nationalISDNNumber COLLECTIVE )

I install openldap with 2 replications. The Pod openldap-0 up well, but the openldap-1 have a problem with the pod here is the error :

Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/var/lib/kubelet/pods/88d6f611-13cf-4bc2-a669-c858e47a1942/volume-subpaths/custom-schema-files/openldap-stack-ha/9" to rootfs at "/opt/bitnami/openldap/etc/schema/collective.ldif": mount /var/lib/kubelet/pods/88d6f611-13cf-4bc2-a669-c858e47a1942/volume-subpaths/custom-schema-files/openldap-stack-ha/9:/opt/bitnami/openldap/etc/schema/collective.ldif (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown

Do you have the same problem ?

Best regards,

wynax commented 7 months ago

Use chart of 4.1.1 with openldap 2.6.6