Hi Keong, Actually, I found out that it seems the config file is not created when the pod starts, so I deleted the pod, and it picked the right Cassandra hostname 'aaf-cass.onap' instead of 'localhost', as you can see in the logs below.
I am now checking how the config file is generated, to see why the pods came up before the config was generated. 2019-07-07 14:54:37,664 WARN [init] 2019-07-07T14:54:37.664+0000 INIT [init] AAF Root NS is org.osaaf.aaf, and AAF Company Root is org.osaaf 2019-07-07 14:54:37,691 WARN [init] 2019-07-07T14:54:37.691+0000 INIT [init] Cass Port = 9042 2019-07-07 14:54:37,691 WARN [init] 2019-07-07T14:54:37.691+0000 INIT [init] Cass User = cassandra 2019-07-07 14:54:37,691 WARN [init] 2019-07-07T14:54:37.691+0000 INIT [init] cadi_keyfile points to /opt/app/osaaf/local/org.osaaf.aaf.keyfile 2019-07-07 14:54:37,749 WARN [init] 2019-07-07T14:54:37.749+0000 INIT [init] Cass ResetExceptions = com.datastax.driver.core.exceptions.NoHostAvailableException:"no host was tried":"Connection has been closed" 2019-07-07 14:54:37,751 WARN [init] 2019-07-07T14:54:37.751+0000 INIT [init] Service Latitude,Longitude = 38.000000,-72.000000 2019-07-07 14:54:37,752 WARN [init] 2019-07-07T14:54:37.752+0000 INIT [init] Cass Clusters = 'aaf-cass.onap' <<<<<<<<<<<<<<<<<<<<<<<<<< 2019-07-07 14:54:37,757 WARN [init] 2019-07-07T14:54:37.757+0000 INIT [init] Cassandra is using Default Policy, which is not DC aware Thanks. Abdelmuhaimen Seaudi Orange Labs Egypt Email: [email protected] Mobile: +2012 84644 733 -----Original Message----- From: Keong Lim [mailto:[email protected]] Sent: Monday, July 08, 2019 3:52 AM To: SEAUDI Abdelmuhaimen O-EG/HRCS; [email protected] Subject: Re: [onap-discuss] Error AAF CASSANDRA Dublin Hi A. Seaudi, The error message says that AAF cannot connect to Cassandra using the hostname/port combination of "localhost/127.0.0.1:9042". AAI will not be able to authenticate if AAF cannot connect. If your Cassandra cluster is actually working, then perhaps the AAF configuration needs to know the right hostname to use, i.e. aaf-cass.onap:9042. Do you need to update your hosts file with all the relevant names, e.g. aaf-cass.onap ? Keong _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17895): https://lists.onap.org/g/onap-discuss/message/17895 Mute This Topic: https://lists.onap.org/mt/32334286/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
