what's are the security-groups of two envs, are they the same?Both Openstack and CF
On Fri, Sep 18, 2015 at 11:20 PM, Jayarajan Ramapurath Kozhummal (jayark) < jayark(a)cisco.com> wrote:
Hi,
I have deployed Cloud Foundry using Bosh on two different Openstack environments. In one environment, micro service installed inside the warden container is unable to connect to Cassandra node deployed through bosh. In fact, we are unable to ping any outside VM from inside the warden container. Whereas all VMs are pingable from the runner VM outside the warden container. Everything is working fine in the other environment.
Following is the exception stack trace while trying to connect tot eh Cassandra node:-
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at java.lang.reflect.Method.invoke(Method.java:497)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at java.lang.Thread.run(Thread.java:745)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /10.20.0.199:9042 (com.datastax.driver.core.TransportException: [/10.20.0.199:9042] Cannot connect))
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:223)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:78)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1272)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at com.datastax.driver.core.Cluster.init(Cluster.java:158)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at com.datastax.driver.core.Cluster.connect(Cluster.java:248)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at com.datastax.driver.core.Cluster.connect(Cluster.java:281)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at com.cisco.skyfall.platform.cassandra.CassandraConnector.connect(CassandraConnector.java:52)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at com.cisco.skyfall.platform.cassandra.CassandraConnector.getSession(CassandraConnector.java:60)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at com.cisco.skyfall.platform.resourcestring.ResourceString.<init>(ResourceString.java:49)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR at com.cisco.skyfall.IdmMicroService.main(IdmMicroService.java:37)
*2015-09-17T21:23:58.32+0000 [App/0]* ERR ... 6 more
Non-working environment is Canonical openstack(Icehouse) installed on a POD, which is a private network. All Vms including Cassandra is in the same network. Working environment is in Cisco Cloud Services,with the same openstack version. Here also all VM are inside the private network with external connectivity. Could you please shed some light on what could be blocking external connectivity inside the warden container in the first env. Please let me know if you want to know more specific details.
Your help is really appreciated as we are blocked on this for a while.