<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; User Favorites: mze</title>
		<link><a href='http://www.datastax.com/support-forums/profile/mze'>mze</a></link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 06:48:57 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>mbulman on "Opscenter in NAT environment"</title>
			<link>http://www.datastax.com/support-forums/topic/opscenter-in-nat-environment#post-8974</link>
			<pubDate>Thu, 07 Feb 2013 20:03:49 +0000</pubDate>
			<dc:creator>mbulman</dc:creator>
			<guid isPermaLink="false">8974@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Glad you got this figured out.  We'll make sure the documentation is clearer on what to do for that option.  Thanks for the feedback.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mze on "Opscenter in NAT environment"</title>
			<link>http://www.datastax.com/support-forums/topic/opscenter-in-nat-environment#post-8939</link>
			<pubDate>Wed, 06 Feb 2013 09:19:34 +0000</pubDate>
			<dc:creator>mze</dc:creator>
			<guid isPermaLink="false">8939@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Ah figured it out!&#60;/p&#62;
&#60;p&#62;agent_rpc_interface: 10.0.2.111 (local ip address, this is used by jetty as the bind address for the agent rpc webserver)&#60;/p&#62;
&#60;p&#62;local_interface: [public ip] (this is the ip that's used by opscenter to recognize the node, if you set this to the local ip opscenter doesn't recognize the node)&#60;/p&#62;
&#60;p&#62;So beside the stomp_interface setting these where the only 2 options that are in my agent config files. I did not use agent_rpc_broadcast_address.&#60;/p&#62;
&#60;p&#62;So it seems that the documentation on local_interface needs to be extended. The local_interface option is also used by opscenterd to recognize the node. Is this correct? Because when I set it to the local ip (10.0.2.111) I get: &#34;WARN: Unable to find a matching cluster for [u'10.0.2.111']&#34; in opscenterd.log. Despite setting agent_rpc_broadcast_address to the public ip.&#60;/p&#62;
&#60;p&#62;This probably does mean that an agent uses the nodes public ip to connect to it (while it is actually on the same machine). But I guess with the low amount of traffic through the agents this probably doesn't matter.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tupton on "Opscenter in NAT environment"</title>
			<link>http://www.datastax.com/support-forums/topic/opscenter-in-nat-environment#post-8922</link>
			<pubDate>Tue, 05 Feb 2013 17:04:04 +0000</pubDate>
			<dc:creator>tupton</dc:creator>
			<guid isPermaLink="false">8922@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;mze,&#60;/p&#62;
&#60;p&#62;Have you tried keeping &#60;code&#62;local_interface&#60;/code&#62; set to the local ip and setting &#60;code&#62;agent_rpc_broadcast_address&#60;/code&#62; as appropriate? See &#60;a href=&#34;http://www.datastax.com/docs/opscenter/configure/configure_multi_region&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/docs/opscenter/configure/configure_multi_region&#60;/a&#62; .  If you have seen that documentation before and are still having issues, or if I am not fully understanding your issue, please respond back so I can try to help you further.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mze on "Opscenter in NAT environment"</title>
			<link>http://www.datastax.com/support-forums/topic/opscenter-in-nat-environment#post-8920</link>
			<pubDate>Tue, 05 Feb 2013 12:13:08 +0000</pubDate>
			<dc:creator>mze</dc:creator>
			<guid isPermaLink="false">8920@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;I have some problems setting up opscenter in a cassandra cluster where the cassandra cluster is running in a NAT environment. &#60;/p&#62;
&#60;p&#62;The situation:&#60;/p&#62;
&#60;p&#62;The cassandra cluster consists of 3 nodes in a private network (10.0.0.0/16). Opscenter is also running in a private network which cannot be reached internally from the cassandra nodes. The cassandra nodes can communicate correctly to each other:&#60;/p&#62;
&#60;p&#62;nodetool gossipinfo&#60;br /&#62;
/123.123.123.121 (public)&#60;br /&#62;
  INTERNAL_IP:10.0.0.211&#60;br /&#62;
  STATUS:NORMAL,56713727820156407428984779325531226112&#60;br /&#62;
  HOST_ID:d9cede23-5dd6-4d54-a17b-33fdc4d36f1f&#60;br /&#62;
  DC:eu-west&#60;br /&#62;
  SCHEMA:025bdec8-57c1-3268-9ef0-cc84ac90adb8&#60;br /&#62;
  RPC_ADDRESS:10.0.0.211&#60;br /&#62;
  LOAD:98049.0&#60;br /&#62;
  NET_VERSION:6&#60;br /&#62;
  RELEASE_VERSION:1.2.1&#60;br /&#62;
  SEVERITY:0.0&#60;br /&#62;
  RACK:1b&#60;br /&#62;
/123.123.123.122 (public)&#60;br /&#62;
  INTERNAL_IP:10.0.1.250&#60;br /&#62;
  HOST_ID:da5ab1bd-8976-41eb-ab9c-a7b6b6a69a21&#60;br /&#62;
  DC:eu-west&#60;br /&#62;
  SCHEMA:025bdec8-57c1-3268-9ef0-cc84ac90adb8&#60;br /&#62;
  RPC_ADDRESS:10.0.1.250&#60;br /&#62;
  LOAD:98012.0&#60;br /&#62;
  NET_VERSION:6&#60;br /&#62;
  RELEASE_VERSION:1.2.1&#60;br /&#62;
  SEVERITY:0.0&#60;br /&#62;
  RACK:1a&#60;br /&#62;
/123.123.123.123 (public)&#60;br /&#62;
  INTERNAL_IP:10.0.2.111&#60;br /&#62;
  STATUS:NORMAL,113427455640312814857969558651062452224&#60;br /&#62;
  HOST_ID:ef43d159-3220-4903-9eb4-2eacc04923b1&#60;br /&#62;
  DC:eu-west&#60;br /&#62;
  SCHEMA:025bdec8-57c1-3268-9ef0-cc84ac90adb8&#60;br /&#62;
  RPC_ADDRESS:10.0.2.111&#60;br /&#62;
  LOAD:97977.0&#60;br /&#62;
  NET_VERSION:6&#60;br /&#62;
  RELEASE_VERSION:1.2.1&#60;br /&#62;
  SEVERITY:0.0&#60;br /&#62;
  RACK:1&#60;/p&#62;
&#60;p&#62;The relevant settings in cassandra.yaml:&#60;/p&#62;
&#60;p&#62;listen_address: &#38;lt;internal ip&#38;gt; (10.0.2.111 for example)&#60;br /&#62;
broadcast_address: &#38;lt;public ip&#38;gt; (123.123.123.123 for example)&#60;br /&#62;
rpc_address: &#38;lt;internal ip&#38;gt; (10.0.2.111 for example)&#60;br /&#62;
seeds: &#34;10.0.1.250,10.0.0.211,10.0.2.111&#34;&#60;/p&#62;
&#60;p&#62;Now the settings in address.yaml (agent config):&#60;/p&#62;
&#60;p&#62;stomp_interface: 123.123.123.124 (public ip of opscenter)&#60;br /&#62;
rpc_interface: &#34;10.0.2.111&#34; (local ip)&#60;br /&#62;
agent_rpc_interface: &#34;123.123.123.123&#34; (public ip of node)&#60;br /&#62;
local_interface: &#34;10.0.2.111&#34; (local ip)&#60;br /&#62;
use_ssl: 0&#60;/p&#62;
&#60;p&#62;When I run the agents with this config on the opscenterd.log I get the following messages:&#60;/p&#62;
&#60;p&#62;WARN: Unable to find a matching cluster for [u'10.0.2.111']&#60;/p&#62;
&#60;p&#62;When I change local_interface to the public ip so:&#60;br /&#62;
stomp_interface: 123.123.123.124 (public ip of opscenter)&#60;br /&#62;
rpc_interface: &#34;10.0.2.111&#34; (local ip)&#60;br /&#62;
agent_rpc_interface: &#34;123.123.123.123&#34; (public ip of node)&#60;br /&#62;
local_interface: &#34;123.123.123.123&#34; (public ip of node)&#60;br /&#62;
use_ssl: 0&#60;/p&#62;
&#60;p&#62;The opscenterd.log says:&#60;/p&#62;
&#60;p&#62;2013-02-05 11:22:17+0000 [CommonSense_Development_cluster]  INFO: Agent for ip 123.123.123.123 is version u'2.11'&#60;br /&#62;
2013-02-05 11:22:18+0000 [CommonSense_Development_cluster]  INFO: Using 123.123.123.123 as the RPC address for node 123.123.123.123&#60;/p&#62;
&#60;p&#62;So all seems well but if I now look in the opscenter agent log (of node 123.123.123.123) the following problems occurred:&#60;/p&#62;
&#60;p&#62;ERROR [Jetty] 2013-02-05 11:24:28,971 Exception running Jetty, restarting: java.net.BindException: Cannot assign requested address&#60;/p&#62;
&#60;p&#62;So it seems that Jetty uses the local_interface address as its bind ip address.&#60;br /&#62;
Because the node is in a NAT environment it cannot bind to the public ip.&#60;/p&#62;
&#60;p&#62;I think the local_interface option should be separated from the jetty bind address. For the jetty bind address it would probably be better to use the rpc_interface option instead. Or add an override for it so that the jetty bind address can be set separately.&#60;/p&#62;
&#60;p&#62;Or maybe I'm overlooking something. Preferably I would like to keep the communication between the cassandra nodes on local network. Communication is a lot cheaper and faster on the local network.&#60;/p&#62;
&#60;p&#62;When I try autoconfig the only configuration options set in the agent config is the stomp_interface option:&#60;/p&#62;
&#60;p&#62;stomp_interface: 10.226.222.146 (private ip of opscenter)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
