Wind River Support Network

HomeDefectsLIN9-6734
Fixed

LIN9-6734 : Can not start opensafd

Created: Apr 18, 2018    Updated: Dec 3, 2018
Resolved Date: May 8, 2018
Previous ID: LIN8-9055
Found In Version: 9.0.0.15
Fix Version: 9.0.0.16
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: Userspace

Description

Can not start opensafd on WRL8.

I tried the following steps:
# cat /usr/local/share/opensaf/immxml/README 
---
This file documents how to generate the imm.xml file.

After installing opensaf follow this process to generate imm.xml:

$ cd /usr/local/share/opensaf/immxml

# generate a config file (nodes.cfg) for a 8 node cluster
immxml-clustersize -s 2 -p 6

# if needed edit the nodes.cfg (e.g. using non-standard hostnames etc TBD)
# This is not needed for now....
$ vi ./nodes.cfg 

# generate the imm.xml
$ immxml-configure

# copy the generated imm.xml file to the location of imm loader 
cp imm.xml.20100217_2201 /etc/opensaf/imm.xml
---

For more defail, please see the attached opensafd-err.log.

Steps to Reproduce

1. configure with sysvinit(NOTE: not checking with systemd)
/opt/wrs/wrlinux/8.0/WindRiver/wrlinux-8/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc-std --enable-build=production --with-init=sysvinit --with-rcpl-version=0024 

2. apply opensaf-tipc-lsb.patch
$ cd layer/meta-openembedded/meta-networking/recipes-daemons
$ patch -p2 opensaf-tipc-lsb.patch
$ make opensaf.addpkg
$ make

[Boot target]
# cat /proc/cmdline 
BOOT_IMAGE=(hd0,2)/images/intel-x86-64-bzImage-WR8.0.0.23_standard console=ttyS0,115200 printk.time=1 debug rw root=/dev/nfs nfsroot=128.224.233.72:/02/export/intel64.wrl8 ip=128.224.234.130:128.224.233.72:128.224.234.1:255.255.254.0:WRL8:eth0:off

# cd /usr/share/opensaf/immxml/ 
# ./immxml-clustersize -s 1
# cat nodes.cfg
SC SC-1 SC-1  

# cat /etc/opensaf/node_name
WRL8 pek-lpggp5

# vi /usr/share/opensaf/immxml/nodes.cfg
-SC SC-1 SC-1  
+SC SC-1 pek-lpggp5 

# ./immxml-configure
Successfully generated the imm file: ./imm.xml.20180327_0629

# cp ./imm.xml.20180110_2152 /etc/opensaf/imm.xml

# vi /etc/opensaf/nid.conf:
---
-export MDS_TRANSPORT=TCP
+export MDS_TRANSPORT=TIPC 
...
-export OPENSAF_GROUP=opensaf
+export OPENSAF_GROUP=root
-export OPENSAF_USER=opensaf
+export OPENSAF_USER=root
----

# /etc/init.d/opensafd start
---
tarting OpenSAF Services (Using TIPC):[  306.859077] tipc: Activated (version 2.0.0)
[  306.863785] NET: Registered protocol family 30
[  306.868849] tipc: Started in single node mode
[  306.881252] Started in network mode
[  306.885161] Own node address <1.1.1>, network identity 1234
[  306.900155] Enabled bearer <eth:eth0>, discovery domain <1.1.0>, priority 10
[  360.274379] Resetting bearer <eth:eth0>
[  360.278683] Disabling bearer <eth:eth0>
[  360.288187] Left network mode
[  360.312153] NET: Unregistered protocol family 30
[  360.317332] tipc: Deactivated
---

root@WRL8:~# cat /var/log/opensaf/nid.log 
---
Starting osafntfd: Starting osafclmd: [  OK  ]
Stopping osafclmd: [  OK  ]
[  OK  ]
Starting osafclmd: Stopping osafclmd: [  OK  ]
[  OK  ]
Starting osafclmd: [  OK  ]
---

Other Downloads


Live chat
Online