Menu

#2758 dtm: Derive Node ID from IPv4 address

5.18.02
fixed
None
enhancement
dtm
-
minor
False
2018-02-02
2018-01-11
No

Continuation of ticket [#2653]. If OpenSAF is using TCP transport with IPv4 addresses, we don't need to require the presence of /etc/opensaf/slot_id or /var/lib/opensaf/node_id. Instead, we can create the file /var/lib/opensaf/node_id ourselves based on the IPv4 address of the node we are running on.

As a consequence, OpenSAF will now support any unsigned 32-bit integer except zero as Node ID.

Related

Tickets: #2653
Tickets: #2789
Wiki: ChangeLog-5.18.02
Wiki: NEWS-5.18.02

Discussion

  • Anders Widell

    Anders Widell - 2018-01-12
    • status: accepted --> review
     
  • Anders Widell

    Anders Widell - 2018-01-12
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,3 @@
     Continuation of ticket [#2653]. If OpenSAF is using TCP transport with IPv4 addresses, we don't need to require the presence of /etc/opensaf/slot_id or /var/lib/opensaf/node_id. Instead, we can create the file /var/lib/opensaf/node_id ourselves based on the IPv4 address of the node we are running on.
    +
    +As a consequence, OpenSAF will now support any unsigned 32-bit integer except zero as Node ID.
    
     

    Related

    Tickets: #2653

  • Anders Widell

    Anders Widell - 2018-01-19
    • status: review --> fixed
     
  • Anders Widell

    Anders Widell - 2018-01-19

    commit ee105cb3bf44eee4e8785e3de7d24f907641e2ab (HEAD -> develop, origin/develop)
    Author: Anders Widell an..@..com
    Date: Fri Jan 19 12:21:07 2018 +0100

    nid: Make chassis_id, slot_id and subslot_id in /etc/opensaf optional [#2758]
    
    The files chassis_id, slot_id and subslot_id in /etc/opensaf no longer have to
    be present. When they are missing, OpenSAF will derive the Node ID from the TIPC
    address or the IPv4 address of the node.
    

    commit 954a9fc4e1333e44a31c1ff34a70e0aaef4c6f15
    Author: Anders Widell an..@..com
    Date: Fri Jan 19 12:21:07 2018 +0100

    msg: Allow any unsigned 32-bit value to be used as Node ID [#2758]
    

    commit f348ae35e7b8652878b546c402abbb7790d536b9
    Author: Anders Widell an..@..com
    Date: Fri Jan 19 12:21:07 2018 +0100

    lck: Allow any unsigned 32-bit value to be used as Node ID [#2758]
    

    commit 28bef9cbb2eedc652a5edb5ce1a40bf7791edf09
    Author: Anders Widell an..@..com
    Date: Fri Jan 19 12:21:07 2018 +0100

    clm: Allow any unsigned 32-bit value to be used as Node ID [#2758]
    
    Also fix the CLM API tests so that they longer assume that there is a node with
    node ID 0x2010f in the cluster.
    

    commit 0734456f81aef340c7f14d1046938b529621f7ab
    Author: Anders Widell an..@..com
    Date: Fri Jan 19 12:21:07 2018 +0100

    ckpt: Allow any unsigned 32-bit value to be used as Node ID [#2758]
    

    commit ee7542986ea990f4fdc6447e2c033e5eb27f04ca
    Author: Anders Widell an..@..com
    Date: Fri Jan 19 12:21:07 2018 +0100

    dtm: Derive Node ID from IPv4 address [#2758]
    
    If the /var/lib/opensaf/node_id file doesn't exist when DTM starts, DTM will
    create the file and use the IPv4 address as node ID. When using IPv6, the file
    must still be configured manually. IPv6 support may be added in a future ticket.
    
    As a consequence of this change, OpenSAF must now support any unsigned 32-bit
    integer except zero as Node ID.
    
     

Log in to post a comment.