Hi Dave chen,

I observed this issue as using openstack_float, and found that CS and ES were 
not able to connect. Although this time all routing is working fine.
                Errors:

1.       stderrout.log
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried 
for query failed (tried: /10.64.105.82:9042 
(com.datastax.driver.core.TransportException: [/10.64.105.82:9042] Cannot 
connect))

2.       /data/logs/BE/ASDC/ASDC-BE/error.log

2017-06-23T06:12:11.828Z|||ES-Health-Check-Thread||ASDC-BE||ERROR|||192.168.3.1||o.o.sdc.be.dao.impl.ESCatalogDAO||ActivityType=<?>,
 Desc=<Error while trying to connect to elasticsearch. host: 
[10.64.105.82:9300] port: 9200>

Resolution:
File /opt/config/public_ip.txt uses sdc_floating_ip (public ip). Even (CS is up 
on -host-ip 0.0.0.0 -host-port 9042, ES is on -host-ip 0.0.0.0 -host-port 
9200). I changed the /opt/config/public_ip.txt value to private_ip .


You also have same error
Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All 
host(s) tried for query failed (tried: /192.168.4.116:9042 
(com.datastax.driver.core.TransportException: [/192.168.4.116:9042] Cannot 
connect))

My cassandra was also showing all required namespaces, but unable to serve. So 
I observed and resolved as above. Hopefully it help you.

Regards,
Ajay Priyadarshi





Date: Sat, 1 Jul 2017 07:59:45 +0000

From: "Chen, Wei D" <[email protected]<mailto:[email protected]>>

To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>

Subject: [onap-discuss]  [SDC] Need your help to deploy SDC

Message-ID:

                
<c5a0092c63e939488005f15f736a81125b2c2...@shsmsx104.ccr.corp.intel.com<mailto:c5a0092c63e939488005f15f736a81125b2c2...@shsmsx104.ccr.corp.intel.com>>



Content-Type: text/plain; charset="us-ascii"



Hi All,



I am trying to enable SDC in the demo project, the ONAP is on top of vanilla 
OpenStack, just want to have a try on how it works from portal, but I got 
bunches of issues and the latest one is from Cassandra, seen from the log it 
seems like 9042 port is not available (log is attached), so I go to the 
container and run /root/startup.sh manually, firstly, I can access the DB, but 
some mins later I cannot access the DB anymore,



This is what I get from the DB couple of mins after run startup.sh.



# cqlsh -u cassandra -p Aa1234%^! 10.0.3.1







Namespaces:



cassandra@cqlsh> DESCRIBE keyspaces;







system_auth   titan   sdcaudit  sdcartifact



sdccomponent  system  dox       system_traces





I check both 9160 and 9042 inside container, seems like they are opened,

root@5aad37f3ec48:/var/log/cassandra# netstat -anp | grep 9042

tcp6       0      0 0.0.0.0:9042            :::*                    LISTEN      
-

root@5aad37f3ec48:/var/log/cassandra# netstat -anp | grep 9160

tcp        0      0 0.0.0.0:9160            0.0.0.0:*               LISTEN      
-





But when I try to connect to the DB again, I see,

root@5aad37f3ec48:/var/log/cassandra# cqlsh -u cassandra -p Aa1234%^! 10.0.3.1

Connection error: ('Unable to connect to any servers', {'10.0.3.1': 
OperationTimedOut('errors=None, last_host=None',)})



Also, I saw those message from console,

Fri Jun 30 01:39:52 UTC 2017 --- cqlsh is NOT enabled to connect yet. sleep 5



Looks like those info comes from /tmp/create_cassandra_user.sh.



Any ideas on how to fix it?



Best Regards,

Dave Chen

"Confidentiality Warning: This message and any attachments are intended only 
for the use of the intended recipient(s). 
are confidential and may be privileged. If you are not the intended recipient. 
you are hereby notified that any 
review. re-transmission. conversion to hard copy. copying. circulation or other 
use of this message and any attachments is 
strictly prohibited. If you are not the intended recipient. please notify the 
sender immediately by return email. 
and delete this message and any attachments from your system.

Virus Warning: Although the company has taken reasonable precautions to ensure 
no viruses are present in this email. 
The company cannot accept responsibility for any loss or damage arising from 
the use of this email or attachment."
_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to