<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Platform registering into Zookeeper with wrong IP address in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Platform-registering-into-Zookeeper-with-wrong-IP-address/m-p/718971#M51076</link>
    <description>&lt;P&gt;I have 3Node Zookeeper Ensemble running on 3 VMs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have 2Node Application cluster running TW 9.1 and ConnectionServer on 2VMs each on the same VM (so 2 total).&lt;/P&gt;
&lt;P&gt;Those VMs have 2 network interfaces (1 for administration and for any other traffic)&lt;/P&gt;
&lt;P&gt;After platform has started I can confirm that it registers itself under (vie ZkCli.cmd):&lt;/P&gt;
&lt;P&gt;/services/thingworx-https&lt;/P&gt;
&lt;P&gt;Content of that Znode is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[zk: localhost:2181(CONNECTED) 4] get /services/thingworx-https/68640d69-8959-4656-a5ba-36557f2a05e8&lt;BR /&gt;{"name":"thingworx-https","id":"68640d69-8959-4656-a5ba-36557f2a05e8","address":"172.20.75.223","port":443,"sslPort":null,"payload":{"@class":"com.thingworx.discovery.zk.ServiceInstanceDetails","attributes":{"PLATFORM_ID":"platform2"}},"registrationTimeUTC":1615373781104,"serviceType":"DYNAMIC","uriSpec":{"parts":[{"value":"address","variable":true},{"value":":","variable":false},{"value":"port","variable":true}]}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here lies the problem, it seems that platform registers itself with the first IP that finds on it self (so I assume). In my case it is the Admin network, which cannot be used for normal operation traffic. That network could be un-provisioned at any time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only place that I can think off that would allow me to set it up correctly would be the paltform-settings.json the&amp;nbsp;&lt;SPAN&gt;Clustered Mode Settings section, but there is no parameter that would serve such a purpose.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Registering under wrong IP also leads to CxServer instances not working properly. They try to communicate to IP that is not reachable (since FW rules are applied on Interface basis and on admin network are much more strict), also that network can be un-provisioned at any time as I stated before.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone any idea how to solve this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 12:59:20 GMT</pubDate>
    <dc:creator>tcoufal</dc:creator>
    <dc:date>2021-03-16T12:59:20Z</dc:date>
    <item>
      <title>Platform registering into Zookeeper with wrong IP address</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Platform-registering-into-Zookeeper-with-wrong-IP-address/m-p/718971#M51076</link>
      <description>&lt;P&gt;I have 3Node Zookeeper Ensemble running on 3 VMs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have 2Node Application cluster running TW 9.1 and ConnectionServer on 2VMs each on the same VM (so 2 total).&lt;/P&gt;
&lt;P&gt;Those VMs have 2 network interfaces (1 for administration and for any other traffic)&lt;/P&gt;
&lt;P&gt;After platform has started I can confirm that it registers itself under (vie ZkCli.cmd):&lt;/P&gt;
&lt;P&gt;/services/thingworx-https&lt;/P&gt;
&lt;P&gt;Content of that Znode is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[zk: localhost:2181(CONNECTED) 4] get /services/thingworx-https/68640d69-8959-4656-a5ba-36557f2a05e8&lt;BR /&gt;{"name":"thingworx-https","id":"68640d69-8959-4656-a5ba-36557f2a05e8","address":"172.20.75.223","port":443,"sslPort":null,"payload":{"@class":"com.thingworx.discovery.zk.ServiceInstanceDetails","attributes":{"PLATFORM_ID":"platform2"}},"registrationTimeUTC":1615373781104,"serviceType":"DYNAMIC","uriSpec":{"parts":[{"value":"address","variable":true},{"value":":","variable":false},{"value":"port","variable":true}]}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here lies the problem, it seems that platform registers itself with the first IP that finds on it self (so I assume). In my case it is the Admin network, which cannot be used for normal operation traffic. That network could be un-provisioned at any time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only place that I can think off that would allow me to set it up correctly would be the paltform-settings.json the&amp;nbsp;&lt;SPAN&gt;Clustered Mode Settings section, but there is no parameter that would serve such a purpose.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Registering under wrong IP also leads to CxServer instances not working properly. They try to communicate to IP that is not reachable (since FW rules are applied on Interface basis and on admin network are much more strict), also that network can be un-provisioned at any time as I stated before.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone any idea how to solve this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 12:59:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Platform-registering-into-Zookeeper-with-wrong-IP-address/m-p/718971#M51076</guid>
      <dc:creator>tcoufal</dc:creator>
      <dc:date>2021-03-16T12:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Platform registering into Zookeeper with wrong IP address</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Platform-registering-into-Zookeeper-with-wrong-IP-address/m-p/719052#M51082</link>
      <description>&lt;P&gt;Hi&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/281068"&gt;@tcoufal&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you review the following article :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ptc.com/en/support/article/CS326556" target="_blank"&gt;https://www.ptc.com/en/support/article/CS326556&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New environment variables (HTTP_ADDRESS and HTTPS_ADDRESS) have been introduced in 9.0.1 to avoid this behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 16:38:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Platform-registering-into-Zookeeper-with-wrong-IP-address/m-p/719052#M51082</guid>
      <dc:creator>smainente</dc:creator>
      <dc:date>2021-03-16T16:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Platform registering into Zookeeper with wrong IP address</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Platform-registering-into-Zookeeper-with-wrong-IP-address/m-p/719069#M51084</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks, that is very helpful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be great if this is appended to TW 9 Help Center, not just in release notes. Also, there are some additional parameters that could be useful, but not documented at all.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For ThingWorx High Availability Clustering, optional environment variables&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="codeph"&gt;HTTP_ADDRESS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="codeph"&gt;HTTPS_ADDRESS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;that impact service discovery were added. For more information, see&amp;nbsp;&lt;/SPAN&gt;&lt;A title="Configuring ThingWorx Foundation for Clustering" href="https://support.ptc.com/help/thingworx/platform/r9/en/ThingWorx/Help/ThingWorxHighAvailability/ThingWorxFoundationHighAvailability.html#wwID0EXJY2B" target="_blank"&gt;Configuring ThingWorx Foundation for Clustering&lt;/A&gt;&lt;SPAN&gt;. Optional platform settings&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="codeph"&gt;IgnoreInactiveInterfaces&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="codeph"&gt;IgnoreVirtualInterfaces&lt;/SPAN&gt;, &lt;/STRONG&gt;and&lt;STRONG&gt;&amp;nbsp;&lt;SPAN class="codeph"&gt;HostAddressFilter&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;were also added. For more information, see&amp;nbsp;&lt;/SPAN&gt;&lt;A title="Platform Settings for ThingWorx HA" href="https://support.ptc.com/help/thingworx/platform/r9/en/ThingWorx/Help/ThingWorxHighAvailability/platformsettingsforthingworxha.html#wwID0EINZ2B" target="_blank"&gt;Platform Settings for ThingWorx HA&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again. I will try it.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 18:17:40 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Platform-registering-into-Zookeeper-with-wrong-IP-address/m-p/719069#M51084</guid>
      <dc:creator>tcoufal</dc:creator>
      <dc:date>2021-03-16T18:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Platform registering into Zookeeper with wrong IP address</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Platform-registering-into-Zookeeper-with-wrong-IP-address/m-p/719201#M51095</link>
      <description>&lt;P&gt;Thanks for the feedback. I will report to the documentation Team.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 07:47:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Platform-registering-into-Zookeeper-with-wrong-IP-address/m-p/719201#M51095</guid>
      <dc:creator>smainente</dc:creator>
      <dc:date>2021-03-17T07:47:35Z</dc:date>
    </item>
  </channel>
</rss>

