When NetworkMap's ID changes
Stefano Franz
You need to make sure that the parameters that are included in the net params are stable, especially the notary identities. A quick way to do this would be to serve a static file instead of dynamically building it.
Check: https://github.com/roastario/spring-boot-network-map/blob/master/src/main/kotlin/net/corda/network/map/NetworkMapApi.kt
From: corda-dev@groups.io <corda-dev@groups.io> on behalf of Avery Starr via Groups.Io <avery.starr@...>
Sent: 19 February 2020 04:26 To: corda-dev@groups.io <corda-dev@groups.io>; Daniel Eidan <Daniel.Eidan@...> Subject: Re: [corda-dev] When NetworkMap's ID changes We are not using CENM. We implemented our own NetworkMap services based on the instructions from here:https://docs.corda.net/setting-up-a-dynamic-compatibility-zone.html
Our nodes are running on open source Corda version 3.3.
From: corda-dev@groups.io <corda-dev@groups.io>
On Behalf Of Benjamin Kimsiah Tan via Groups.Io
This is very odd as I have not seen it on CENM 1.x. I think Stefano is asking if you are using the R3 CENM product and if so which version and if a ticket has been raised?
From: corda-dev@groups.io <corda-dev@groups.io>
On Behalf Of Avery Starr via Groups.Io
We have our own doorman.
Can you send the content of network-parameters file so we can see what parameters are in there to figure out which one may have changed in that action? The file that was automatically generated is encrypted so I can’t open.
This happened to us when we re-started the server where NetworkMap was hosted. Then there was error message saying that a new file is broadcasted and the node is using the old file.
From: corda-dev@groups.io <corda-dev@groups.io>
On Behalf Of Stefano Franz via Groups.Io
So this is odd, the network parameters should be stable, as it's just the hash of the serialised bytes of your network config. It should only change when one of the params changes.
What network map / doorman implementation are you using?
From:
corda-dev@groups.io <corda-dev@groups.io> on behalf of Avery Starr via Groups.Io <avery.starr@...>
It is the network-parameters file.
All nodes are already running, and then when NetworkMap is restarted, there will be a new network-parameter file. We will have to stop the nodes, and delete the old network-parameter file and then restart the nodes again to receive the new one.
In our system, we implemented ways to automatically install nodes by the owner of the nodes. Therefore, it is impossible or very messy for us to ask all nodes owners to manually delete that old file and start the nodes again.
Is there any automated way for the nodes to update network-parameter file automatically in this situation?
Thanks a lot! Avery
From: corda-dev@groups.io <corda-dev@groups.io>
On Behalf Of Wawrzyniec Niewodniczanski via Groups.Io
Hi Avery, What do you mean Network Map ID? Wawrzek On 18/02/2020 03:25, Avery Starr via Groups.Io wrote:
-- Dr Wawrzyniec (Wawrzek) Niewodniczański | R3. | DevOps Lead |
|
Avery Starr
We are not using CENM. We implemented our own NetworkMap services based on the instructions from here:https://docs.corda.net/setting-up-a-dynamic-compatibility-zone.html
Our nodes are running on open source Corda version 3.3.
From: corda-dev@groups.io <corda-dev@groups.io> On Behalf Of Benjamin Kimsiah Tan via Groups.Io
Sent: Tuesday, February 18, 2020 9:11 PM To: corda-dev@groups.io; Daniel Eidan <Daniel.Eidan@...> Subject: Re: [corda-dev] When NetworkMap's ID changes
This is very odd as I have not seen it on CENM 1.x. I think Stefano is asking if you are using the R3 CENM product and if so which version and if a ticket has been raised?
From: corda-dev@groups.io <corda-dev@groups.io> On Behalf Of Avery Starr via Groups.Io
We have our own doorman.
Can you send the content of network-parameters file so we can see what parameters are in there to figure out which one may have changed in that action? The file that was automatically generated is encrypted so I can’t open.
This happened to us when we re-started the server where NetworkMap was hosted. Then there was error message saying that a new file is broadcasted and the node is using the old file.
From: corda-dev@groups.io <corda-dev@groups.io> On Behalf Of Stefano Franz via Groups.Io
So this is odd, the network parameters should be stable, as it's just the hash of the serialised bytes of your network config. It should only change when one of the params changes.
What network map / doorman implementation are you using?
From: corda-dev@groups.io <corda-dev@groups.io> on behalf of Avery Starr via Groups.Io <avery.starr@...>
It is the network-parameters file.
All nodes are already running, and then when NetworkMap is restarted, there will be a new network-parameter file. We will have to stop the nodes, and delete the old network-parameter file and then restart the nodes again to receive the new one.
In our system, we implemented ways to automatically install nodes by the owner of the nodes. Therefore, it is impossible or very messy for us to ask all nodes owners to manually delete that old file and start the nodes again.
Is there any automated way for the nodes to update network-parameter file automatically in this situation?
Thanks a lot! Avery
From: corda-dev@groups.io <corda-dev@groups.io> On Behalf Of Wawrzyniec Niewodniczanski via Groups.Io
Hi Avery, What do you mean Network Map ID? Wawrzek On 18/02/2020 03:25, Avery Starr via Groups.Io wrote:
-- Dr Wawrzyniec (Wawrzek) Niewodniczański | R3. | DevOps Lead |
|
Benjamin Kimsiah Tan
This is very odd as I have not seen it on CENM 1.x. I think Stefano is asking if you are using the R3 CENM product and if so which version and if a ticket has been raised?
From: corda-dev@groups.io <corda-dev@groups.io>
On Behalf Of Avery Starr via Groups.Io
Sent: 19 February 2020 00:22 To: corda-dev@groups.io; 'Avery Starr via Groups.Io' <avery.starr@...>; Daniel Eidan <Daniel.Eidan@...> Subject: Re: [corda-dev] When NetworkMap's ID changes
We have our own doorman.
Can you send the content of network-parameters file so we can see what parameters are in there to figure out which one may have changed in that action? The file that was automatically generated is encrypted so I can’t open.
This happened to us when we re-started the server where NetworkMap was hosted. Then there was error message saying that a new file is broadcasted and the node is using the old file.
From:
corda-dev@groups.io <corda-dev@groups.io>
On Behalf Of Stefano Franz via Groups.Io
So this is odd, the network parameters should be stable, as it's just the hash of the serialised bytes of your network config. It should only change when one of the params changes.
What network map / doorman implementation are you using?
From:
corda-dev@groups.io <corda-dev@groups.io> on behalf of Avery Starr via Groups.Io <avery.starr@...>
It is the network-parameters file.
All nodes are already running, and then when NetworkMap is restarted, there will be a new network-parameter file. We will have to stop the nodes, and delete the old network-parameter file and then restart the nodes again to receive the new one.
In our system, we implemented ways to automatically install nodes by the owner of the nodes. Therefore, it is impossible or very messy for us to ask all nodes owners to manually delete that old file and start the nodes again.
Is there any automated way for the nodes to update network-parameter file automatically in this situation?
Thanks a lot! Avery
From:
corda-dev@groups.io <corda-dev@groups.io>
On Behalf Of Wawrzyniec Niewodniczanski via Groups.Io
Hi Avery, What do you mean Network Map ID? Wawrzek On 18/02/2020 03:25, Avery Starr via Groups.Io wrote:
-- Dr Wawrzyniec (Wawrzek) Niewodniczański | R3. | DevOps Lead |
|
Avery Starr
We have our own doorman.
Can you send the content of network-parameters file so we can see what parameters are in there to figure out which one may have changed in that action? The file that was automatically generated is encrypted so I can’t open.
This happened to us when we re-started the server where NetworkMap was hosted. Then there was error message saying that a new file is broadcasted and the node is using the old file.
From: corda-dev@groups.io <corda-dev@groups.io> On Behalf Of Stefano Franz via Groups.Io
Sent: Tuesday, February 18, 2020 11:05 AM To: Avery Starr via Groups.Io <avery.starr@...>; corda-dev@groups.io; Daniel Eidan <Daniel.Eidan@...> Subject: Re: [corda-dev] When NetworkMap's ID changes
So this is odd, the network parameters should be stable, as it's just the hash of the serialised bytes of your network config. It should only change when one of the params changes.
What network map / doorman implementation are you using?
From: corda-dev@groups.io <corda-dev@groups.io> on behalf of Avery Starr via Groups.Io <avery.starr@...>
It is the network-parameters file.
All nodes are already running, and then when NetworkMap is restarted, there will be a new network-parameter file. We will have to stop the nodes, and delete the old network-parameter file and then restart the nodes again to receive the new one.
In our system, we implemented ways to automatically install nodes by the owner of the nodes. Therefore, it is impossible or very messy for us to ask all nodes owners to manually delete that old file and start the nodes again.
Is there any automated way for the nodes to update network-parameter file automatically in this situation?
Thanks a lot! Avery
From: corda-dev@groups.io <corda-dev@groups.io> On Behalf Of Wawrzyniec Niewodniczanski via Groups.Io
Hi Avery, What do you mean Network Map ID? Wawrzek On 18/02/2020 03:25, Avery Starr via Groups.Io wrote:
-- Dr Wawrzyniec (Wawrzek) Niewodniczański | R3. | DevOps Lead |
|
Stefano Franz
So this is odd, the network parameters should be stable, as it's just the hash of the serialised bytes of your network config. It should only change when one of the params changes.
What network map / doorman implementation are you using?
From: corda-dev@groups.io <corda-dev@groups.io> on behalf of Avery Starr via Groups.Io <avery.starr@...>
Sent: 18 February 2020 15:21 To: corda-dev@groups.io <corda-dev@groups.io>; Daniel Eidan <Daniel.Eidan@...> Subject: Re: [corda-dev] When NetworkMap's ID changes It is the network-parameters file.
All nodes are already running, and then when NetworkMap is restarted, there will be a new network-parameter file. We will have to stop the nodes, and delete the old network-parameter file and then restart the nodes again to receive the new one.
In our system, we implemented ways to automatically install nodes by the owner of the nodes. Therefore, it is impossible or very messy for us to ask all nodes owners to manually delete that old file and start the nodes again.
Is there any automated way for the nodes to update network-parameter file automatically in this situation?
Thanks a lot! Avery
From: corda-dev@groups.io <corda-dev@groups.io>
On Behalf Of Wawrzyniec Niewodniczanski via Groups.Io
Hi Avery, What do you mean Network Map ID? Wawrzek On 18/02/2020 03:25, Avery Starr via Groups.Io wrote:
-- Dr Wawrzyniec (Wawrzek) Niewodniczański | R3. | DevOps Lead |
|
Avery Starr
It is the network-parameters file.
All nodes are already running, and then when NetworkMap is restarted, there will be a new network-parameter file. We will have to stop the nodes, and delete the old network-parameter file and then restart the nodes again to receive the new one.
In our system, we implemented ways to automatically install nodes by the owner of the nodes. Therefore, it is impossible or very messy for us to ask all nodes owners to manually delete that old file and start the nodes again.
Is there any automated way for the nodes to update network-parameter file automatically in this situation?
Thanks a lot! Avery
From: corda-dev@groups.io <corda-dev@groups.io> On Behalf Of Wawrzyniec Niewodniczanski via Groups.Io
Sent: Tuesday, February 18, 2020 3:33 AM To: corda-dev@groups.io; 'Daniel Eidan' <Daniel.Eidan@...> Subject: Re: [corda-dev] When NetworkMap's ID changes
Hi Avery, What do you mean Network Map ID? Wawrzek On 18/02/2020 03:25, Avery Starr via Groups.Io wrote:
-- Dr Wawrzyniec (Wawrzek) Niewodniczański | R3. | DevOps Lead |
|
adamdryit@...
Hi Avery
I think the nodes know how to connect to the Network Map Service/Doorman based on urls in the node.conf: networkServices { Not sure what you mean by NetworkWork map id? Adam |
|
Wawrzyniec Niewodniczanski
Hi Avery, What do you mean Network Map ID? Wawrzek On 18/02/2020 03:25, Avery Starr via
Groups.Io wrote:
--
Dr Wawrzyniec (Wawrzek) Niewodniczański | R3. | DevOps Lead |
|
Avery Starr
Hi
When we restart the server where the NetworkMap is hosted, the NetworkMap will get a new ID. This will cause problems because all other nodes will not be able contact the NetworkMap anymore as they had its old ID.
Right now, it looks like all nodes have to manually change that ID. We have implemented automated node installation process so manual change of NetworkMap ID in the node is problematic for us. What is the best way to propagate the new ID to all nodes?
Thanks,
Avery Starr | Managing Director 32 Broadway, Suite 1701, New York, NY 10004 Toll-Free: 1888-665-3066 Work: (914) 979-1888 | Cell: (914) 584-0979 | Fax: (914) 941-1315 avery.starr@... | www.seatig.com Important Notice to Recipients: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient(s) of this communication please contact the sender and delete all copies immediately. You are not authorized to copy, distribute, or otherwise use this message or its attachments. Seatig Inc. is a global IT services company. We help our clients to develop and maintain software applications. Seatig Inc. makes no warranty that this e-mail is error or virus free.
|
|