Multiple value attribute is out of order after cluster reboot.
expected value: hosts=192.168.0.1|192.168.0.2|192.168.0.3|192.168.0.4
but received: hosts=192.168.0.1|192.168.0.4|192.168.0.3|192.168.0.2
step reproduce:
1. Create class and a object has multiple value attribute same as schema.
immcfg -f <path schema>
immcfg -c TestMultipleValue -a hosts="192.168.0.1" -a hosts="192.168.0.2" -a hosts="192.168.0.3" -a hosts="192.168.0.4" testMultipleValue=1
2. Check value before cluster restart
immlist testMultipleValue=1 -a host -d "|"
3. Cluster reboot
immadm -o 4 safCluster=myClmCluster
hosts=192.168.0.1|192.168.0.2|192.168.0.3|192.168.0.4
4. Check value after cluster restart
immlist testMultipleValue=1 -a host -d "|"
hosts=192.168.0.1|192.168.0.4|192.168.0.3|192.168.0.2
<?xml version="1.0" encoding="utf-8"?>
<imm:IMM-contents>
<class name="TestMultipleValue">
<category>SA_CONFIG</category>
<rdn>
<name>testMultipleValue</name>
<type>SA_STRING_T</type>
<category>SA_CONFIG</category>
<flag>SA_INITIALIZED</flag>
</rdn>
<attr>
<name>hosts</name>
<type>SA_STRING_T</type>
<category>SA_CONFIG</category>
<flag>SA_WRITABLE</flag>
<flag>SA_MULTI_VALUE</flag>
</attr>
</class>
</imm:IMM-contents>
commit 3beb5ab488600d4e4978084b8ea801a6de60ab15 (HEAD -> develop, origin/develop, ticket-3321)
Author: thien.m.huynh thien.m.huynh@dektech.com.au
Date: Tue Sep 20 17:13:00 2022 +0700