SO containers only support sh since they are alpine based.

The mariadb tables for cloud_identity services is where the openstack url , 
hostname, domain etc are set.

./demo-k8s.sh onap init will set them based on your helm charts and override 
files.

You do not need to update /etc/hosts

https://jira.onap.org/browse/OOM-1982  has some examples of what a properly 
configured SO should look like.

KEYSTONE_V3 is the row you should be comparing your environment to.

If you look in the /app/logs directory there should be an indicator of the url 
SO is trying to use that should be an IP address not a hostname.

Brian


From: onap-discuss@lists.onap.org <onap-discuss@lists.onap.org> On Behalf Of 
Velugubantla Praveen
Sent: Wednesday, July 8, 2020 1:07 PM
To: onap-discuss@lists.onap.org; seshu kumar m via Lists.Onap.Org 
<seshu.kumar.m=huawei....@lists.onap.org>
Cc: JOMY JOSE <jomy.j...@ltts.com>
Subject: [ONAP-DISCUSS] #so [Frankfurt] Issue while deploying a service from 
SO-OPENSTACK Adapter

Hi SO Team,

As a part of Service Instantiation, While deploying a network we are getting an 
error in openstack adapter like "STATUS: Received error from Network Adapter: 
org.onap.so.openstack.exceptions.MsoIOException: Unknown Host: controller". PFA 
of error_trace.txt, it's just an minor issue with hostname mapping 
configuration.

Note:- I am attaching my setup integration-override.yaml file for reference.

We tried adding the hostname entry in /etc/hosts but as we don't have root 
permission inside the pod, so unable to do that.

# Having an issue to enter into the pod via bash, so tried with sh but blocked 
due to permission issue.
root@rndfrankfurt-nfs:/home/ubuntu#
root@rndfrankfurt-nfs:/home/ubuntu# kubectl exec -it 
frankfurt-so-openstack-adapter-c99c6fb8f-zpv78 apk add bash
Defaulting container name to so-openstack-adapter.
Use 'kubectl describe pod/frankfurt-so-openstack-adapter-c99c6fb8f-zpv78 -n 
onap' to see all of the containers in this pod.
ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied
command terminated with exit code 99

root@rndfrankfurt-nfs:/home/ubuntu# kubectl exec -it 
frankfurt-so-openstack-adapter-c99c6fb8f-zpv78 sh
Defaulting container name to so-openstack-adapter.
Use 'kubectl describe pod/frankfurt-so-openstack-adapter-c99c6fb8f-zpv78 -n 
onap' to see all of the containers in this pod.
/app $
/etc $ ls -lrt | grep hosts
-rw-r--r--    1 root     root           241 Jul  6 08:07 hosts
/etc $

To resolve it, we want to know either of the below questions

  *   How we can edit that hosts file to add our controller host mapping 
details ?
  *   From where actually this openstack-adapter pod will read that Keystone 
data ??

Regards,
Praveen V

L&T Technology Services Ltd

www.LTTS.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.LTTS.com&d=DwQFAw&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=LEYw9tAjjfiFQ9mHXHquvdYXooaYXIHsx4IZhMIty18&s=pkJWWhwxca0Hc-M4dH7ZYh8jTbk0hMo6es0ld6XdjAI&e=>

L&T Technology Services Limited (LTTS) is committed to safeguard your data 
privacy. For more information to view our commitment towards data privacy under 
GDPR, please visit the privacy policy on our website 
www.Ltts.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.Ltts.com&d=DwQFAw&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=LEYw9tAjjfiFQ9mHXHquvdYXooaYXIHsx4IZhMIty18&s=FKLApwahvl0kU6uQ-WerFz8TJx055vbkB0RW2_XTi6A&e=>.
 This Email may contain confidential or privileged information for the intended 
recipient (s). If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#21634): https://lists.onap.org/g/onap-discuss/message/21634
Mute This Topic: https://lists.onap.org/mt/75381131/21656
Mute #so: https://lists.onap.org/g/onap+onap-discuss/mutehashtag/so
Group Owner: onap-discuss+ow...@lists.onap.org
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to