[irati] Re: Demonstrator: Enrollment operation failed

  • From: Eduard Grasa Gras <eduard.grasa@xxxxxxxxx>
  • To: irati@xxxxxxxxxxxxx
  • Date: Thu, 7 Jun 2018 08:41:35 +0200

Hi Rodney,

Thanks for your interest!

Maybe the problem is that the images shipped with the demonstrator are a
bit old now - I've just updated them (could you try again?).
The reason for not having updated the images at the demonstrator repo is
that within the ARCFIRE project we've created another tool called "Rumba"
[1] which sort of obsoletes the demonstrator. Rumba automates the execution
of RINA prototypes (right now IRATI, rlite, ouroboros) deployments on a
series of environments, such as: QEMU VMs (as the demonstrator), a number
of testbeds in the EU/US, Docker containers, etc.

In case you still have the same issues with the demonstrator, please send
me the logs of the IPCM and the IPC Process on your tests, with that we'll
be able to see the issue (BTW, the Management Agent is not the IPCM, and in
your configuration is not supposed to be running, so that's ok).

Cheers,

Eduard

[1] https://gitlab.com/arcfire/rumba


2018-06-07 7:56 GMT+02:00 Rodney Lorrimar <dev+rina@xxxxxxxxxxxx>:

Hi All,

I'm interested in RINA and in getting started with IRATI.


I'm trying to run the IRATI demonstrator (latest master branch) like so:

    cd demonstrator
    ./gen.py -c gen.conf
    ./up.sh

Both b and c nodes fail the enroll-to-dif step with an error like:

    + ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o
IdentityFile=buildroot/irati_rsa -p 2224 root@localhost
    Pseudo-terminal will not be allocated because stdin is not a terminal.
    Warning: Permanently added '[localhost]:2224' (ECDSA) to the list of
known hosts.
    + SUDO=
    + enroll.py --lower-dif 300 --dif n1.DIF --ipcm-conf /etc/b.ipcm.conf
--enrollee-name n1.2.IPCP --enroller-name n1.1.IPCP
    Looking up identifier for IPCP n1.2.IPCP
    ["b'Management Agent not started", '', 'Current IPC processes (id |
name | type | state | Registered applications | Port-ids of flows
provided)', '    1 | eth.1.IPCP:1:: | shim-eth-vlan | ASSIGNED TO DIF 300 |
n1.2.IPCP-1-- | -', '    2 | eth.2.IPCP:1:: | shim-eth-vlan | ASSIGNED TO
DIF 400 | n1.2.IPCP-1-- | -', '    3 | n1.2.IPCP:1:: | normal-ipc |
ASSIGNED TO DIF n1.DIF | - | -', '']
    enroll-to-dif 3 n1.DIF 300 n1.1.IPCP 1

    ["b'Enrollment operation failed", '']
    + sleep 1

To confirm that my laptop is able to run QEMU and set up the bridges and
tuntaps, properly I tried the rlite demonstrator. With a similar config,
it can complete the enrollment step.

   cd rlite/demo
   ./demo.py -c demo.conf
   ./up.sh

Back to irati, it says "Management Agent not started" but when I login
to the node I can see ipcm running. The log of ipcm doesn't show
anything interesting

    rodney@aurora:~/src/irati/demonstrator % ./access.sh a
    Accessing buildroot VM a
    Warning: Permanently added '[localhost]:2223' (ECDSA) to the list of
known hosts.
    # socat - UNIX:/var/run/ipcm-console.sock
    IPCM >>> list-ipcps
    Management Agent not started

    Current IPC processes (id | name | type | state | Registered
applications | Port-ids of flows provided)
        1 | eth.1.IPCP:1:: | shim-eth-vlan | ASSIGNED TO DIF 300 |
n1.1.IPCP-1-- | -
        2 | n1.1.IPCP:1:: | normal-ipc | ASSIGNED TO DIF n1.DIF | - | -

    IPCM >>> enroll-to-dif 2 n1.DIF 300
    Enrollment operation failed

    IPCM >>>


I am also seeing the same problem within the test case for the IRATI
NixOS module that I am developing [1].


My two questions are:

1. Does anyone else have the same problem, and know how to get the demo
   running?

2. Is there a way to get more logging of the reason why the enrollment
   operation failed?


Cheers,

Rodney



[1]: https://github.com/NixOS/nixpkgs/pull/39691


Other related posts: