https://issues.rudder.io/https://issues.rudder.io/themes/rudder7/favicon/favicon.ico?17096450182013-06-03T15:54:22ZIssue TrackerRudder - Bug #3625: It is not possible to add several nodes sharing the same IP from their private network interfacehttps://issues.rudder.io/issues/3625?journal_id=178312013-06-03T15:54:22ZDennis Cabooterdcabooter@snow.nl
<ul></ul><p>There is no way to see if an ip-address is local. E.G.</p>
<pre>server1 : 10.0.0.2 and 169.254.254.1
server2 : 10.0.0.3 and 169.254.254.2
server3 : 10.0.0.4 and 169.254.254.1
Server4 : 10.0.0.5 and 169.254.254.2</pre>
<p>Proposal: Use something that is really unique, like a mac address. :)</p> Rudder - Bug #3625: It is not possible to add several nodes sharing the same IP from their private network interfacehttps://issues.rudder.io/issues/3625?journal_id=178332013-06-03T16:11:18ZVincent MEMBRÉvme@rudder.io
<ul></ul><p>This bug happens in 2.4 too.</p>
<p>We forbid all nodes to share any ip addresses.</p>
<p>We should only forbid the ip duplication in the authorized networks.</p> Rudder - Bug #3625: It is not possible to add several nodes sharing the same IP from their private network interfacehttps://issues.rudder.io/issues/3625?journal_id=178342013-06-03T16:11:40ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Priority</strong> changed from <i>N/A</i> to <i>1</i></li><li><strong>Target version</strong> changed from <i>2.6.2</i> to <i>2.4.6</i></li></ul> Rudder - Bug #3625: It is not possible to add several nodes sharing the same IP from their private network interfacehttps://issues.rudder.io/issues/3625?journal_id=178362013-06-03T16:17:03ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Project</strong> changed from <i>24</i> to <i>Rudder</i></li><li><strong>Category</strong> set to <i>Web - Nodes & inventories</i></li><li><strong>Assignee</strong> set to <i>François ARMAND</i></li></ul><p>Vincent proposal seems good: we can't accept two nodes with the same IP used to talk with the CFEngine server, because it needs to resolv the name of the machine to know if it is authorised to connect. Before that check, errors ensued because of CFEngine trying to resolve VM names based on these IP, and that didn't work (for several flavors of work: either we not always get the same authorized machine, or none, or only one).</p>
<p>The main use case was to forbid easy error with clones of VM, where several VM may have the same IP.</p> Rudder - Bug #3625: It is not possible to add several nodes sharing the same IP from their private network interfacehttps://issues.rudder.io/issues/3625?journal_id=178372013-06-03T17:03:55ZDennis Cabooterdcabooter@snow.nl
<ul></ul><p>How can I add these two nodes now? They ip addresses talking to the outside are unique. The peer-to-peer addresses talking internally DRBD aren't. I don't want to change the internal DRBD addresses, because the machines are in production.</p> Rudder - Bug #3625: It is not possible to add several nodes sharing the same IP from their private network interfacehttps://issues.rudder.io/issues/3625?journal_id=178412013-06-03T18:13:53ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Pending technical review</i></li><li><strong>Assignee</strong> changed from <i>François ARMAND</i> to <i>Nicolas CHARLES</i></li></ul><p>Pull request here: <a class="external" href="https://github.com/Normation/rudder/pull/224">https://github.com/Normation/rudder/pull/224</a></p> Rudder - Bug #3625: It is not possible to add several nodes sharing the same IP from their private network interfacehttps://issues.rudder.io/issues/3625?journal_id=178422013-06-03T18:18:32ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Pull Request</strong> set to <i>https://github.com/Normation/rudder/pull/224</i></li></ul><p>Dennis Cabooter wrote:</p>
<blockquote>
<p>How can I add these two nodes now? They ip addresses talking to the outside are unique. The peer-to-peer addresses talking internally DRBD aren't. I don't want to change the internal DRBD addresses, because the machines are in production.</p>
</blockquote>
<p>I have a very hacky solution: with the LDAP browser, go to "Pending Inventories -> Nodes", and for each node, remove the faulty "ipHostNumber" value (the local one). That will allows to accept the nodes. Then, on the next inventories, the IP will be restaured (but as the nodes are already accepted, that won't matter).</p>
<p>And the bug will be in the next 2.6, probably really soon published.</p> Rudder - Bug #3625: It is not possible to add several nodes sharing the same IP from their private network interfacehttps://issues.rudder.io/issues/3625?journal_id=178452013-06-04T07:43:30ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Status</strong> changed from <i>Pending technical review</i> to <i>Pending release</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Fixes #3625: accept node with same IP if not in authorized networks" href="https://issues.rudder.io/projects/rudder/repository/rudder/revisions/cf00eba3d9537e8cb312138af24115be34b6bdf6">cf00eba3d9537e8cb312138af24115be34b6bdf6</a>.</p> Rudder - Bug #3625: It is not possible to add several nodes sharing the same IP from their private network interfacehttps://issues.rudder.io/issues/3625?journal_id=178462013-06-04T07:43:31ZNicolas CHARLESnicolas.charles@rudder.io
<ul></ul><p>Applied in changeset <a class="changeset" title="Merge pull request #224 from fanf/bug_3625/allow_to_accept_with_same_ip_if_not_in_authNetworks F..." href="https://issues.rudder.io/projects/rudder/repository/rudder/revisions/4e9c32152c325f3b40a40de40be4c22406938ab2">4e9c32152c325f3b40a40de40be4c22406938ab2</a>.</p> Rudder - Bug #3625: It is not possible to add several nodes sharing the same IP from their private network interfacehttps://issues.rudder.io/issues/3625?journal_id=180862013-06-06T11:34:35ZNicolas PERRONnicolas.perron@normation.com
<ul><li><strong>Subject</strong> changed from <i>There is already a node with IP '169.254.254.1' or '169.254.254.2' in database. You can not add it again. </i> to <i>It is not possible to add several nodes sharing the same IP from their private network interface</i></li></ul> Rudder - Bug #3625: It is not possible to add several nodes sharing the same IP from their private network interfacehttps://issues.rudder.io/issues/3625?journal_id=181282013-06-07T10:47:42ZNicolas PERRONnicolas.perron@normation.com
<ul><li><strong>Status</strong> changed from <i>Pending release</i> to <i>Released</i></li></ul>