Hi,
Thank you very much for your message. I was dragged to another project therefore I could not immediately test your solution.
Finally, I did the following:
- modify the code according to your suggestions.
- build the binaries with all partitions running on a single machine.
The single machine configuration works OK.
Then, I tried to run in on separate machines. I have generated and installed the ssh-key on the all required computers.
The compiler builds the code correctly.
I did tests with:
< pragma Name_Server(Standalone)> and <pragma Name_Server(Embedded)>.
I have started the name server by executing:
po_cos_naming &
this produced a very log sequence staring with POLYORB_CORBA_NAME_SERVICE=IOR: ….LOTS OF DIGITS (and some letters) HERE …POLYORB_CORBA_NAME_SERVICE=corbaloc:iiop:1.2@192.168.100.15:46867/NameService/000000024fF0000000080000000
I did the following (copy only up to POLYORB_CORBA_NAME_SERVICE string):
export POLYORB_DSA_NAME_SERVICE=IOR:……
./run_dsa
At the terminal where po_cos_naming run, I got (please note the node_01 is not mentioned below) :
cosnaming.namingcontext: look for "AAAA polyorb.dsa_p.partitions RCI;"
cosnaming.namingcontext: look for "AAAA polyorb.dsa_p.partitions RCI;"
cosnaming.namingcontext: register "AAAA polyorb.dsa_p.partitions RCI;" in naming context
cosnaming.namingcontext: append "AAAA polyorb.dsa_p.partitions RCI;" to naming context
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
cosnaming.namingcontext: look for "AAAA calc_node_02 RCI;"
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
cosnaming.namingcontext: look for "AAAA calc_node_02 RCI;"
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
cosnaming.namingcontext: look for "AAAA calc_node_02 RCI;"
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
cosnaming.namingcontext: look for "AAAA calc_node_02 RCI;"
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
cosnaming.namingcontext: look for "AAAA calc_node_02 RCI;"
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
cosnaming.namingcontext: look for "AAAA calc_node_02 RCI;"
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
cosnaming.namingcontext: look for "AAAA calc_node_02 RCI;"
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
cosnaming.namingcontext: look for "AAAA calc_node_02 RCI;"
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
cosnaming.namingcontext: look for "AAAA calc_node_02 RCI;"
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
cosnaming.namingcontext: look for "AAAA calc_node_02 RCI;"
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
cosnaming.namingcontext: look for "AAAA calc_node_02 RCI;"
cosnaming.namingcontext: AAAA ... polyorb.dsa_p.partitions RCI NOBJECT
At the execution terminal I got:
./run_dsa
bash: line 1: /dev/shm/node_01: No such file or directory
bash: line 1: /dev/shm/node_02: No such file or directory
raised SYSTEM.RPC.COMMUNICATION_ERROR : lookup of RCI calc_node_02 failed
For the build with pragma Name_Server(Embedded), I got
./run_dsa
bash: line 1: /dev/shm/node_01: No such file or directory
bash: line 1: /dev/shm/node_02: No such file or directory
raised SYSTEM.RPC.COMMUNICATION_ERROR : lookup of RCI calc_node_02 failed
When I activated options:
for node_01’self_location use (“tcp”,“192.168.100.11”);
for node_02’self_location use (“tcp”,“192.168.100.11”);
in the .cfg file, and build application with the embedded name server I got:
./run_dsa
bash: line 1: /dev/shm/node_01: No such file or directory
bash: line 1: /dev/shm/node_02: No such file or directory
raised CONSTRAINT_ERROR : polyorb-references.adb:443 explicit raise
With the pragma standalone name server the error is similar.
I guess, there is something missing from my side.
Regards,
Darek
P.S. The code on the gitlab has been updated.