<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://osm.etsi.org/wikipub/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Keshav</id>
	<title>OSM Public Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://osm.etsi.org/wikipub/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Keshav"/>
	<link rel="alternate" type="text/html" href="https://osm.etsi.org/wikipub/index.php/Special:Contributions/Keshav"/>
	<updated>2026-05-07T08:51:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://osm.etsi.org/wikipub/index.php?title=Common_issues_and_troubleshooting&amp;diff=4609</id>
		<title>Common issues and troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://osm.etsi.org/wikipub/index.php?title=Common_issues_and_troubleshooting&amp;diff=4609"/>
		<updated>2019-06-27T06:47:48Z</updated>

		<summary type="html">&lt;p&gt;Keshav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
== Installation==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RECOMMENDATION:&#039;&#039;&#039; save a log of your installation:&lt;br /&gt;
 $ ./install_osm.sh 2&amp;gt;&amp;amp;1 | tee osm_install_log.txt&lt;br /&gt;
&lt;br /&gt;
=== Add User in Group ===&lt;br /&gt;
Add the non-root user used for installation in &#039;&#039;sudo , lxd, docker&#039;&#039; groups&lt;br /&gt;
&lt;br /&gt;
This will skip below error :-&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Finished installation of juju&lt;br /&gt;
Password:&lt;br /&gt;
&#039;&#039;&#039;sg: failed to crypt password with previous salt: Invalid argument &lt;br /&gt;
ERROR No controllers registered.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Docker===&lt;br /&gt;
====Were all docker images successfully built?====&lt;br /&gt;
&lt;br /&gt;
Although controlled by the installer, you can check that the following images exist:&lt;br /&gt;
&lt;br /&gt;
 $ docker image ls&lt;br /&gt;
 &lt;br /&gt;
 REPOSITORY               TAG                 IMAGE ID            CREATED             SIZE&lt;br /&gt;
 osm/light-ui             latest              1988aa262a97        18 hours ago        710MB&lt;br /&gt;
 osm/lcm                  latest              c9ad59bf96aa        46 hours ago        667MB&lt;br /&gt;
 osm/ro                   latest              812c987fcb16        46 hours ago        791MB&lt;br /&gt;
 osm/nbi                  latest              584b4e0084a7        46 hours ago        497MB&lt;br /&gt;
 osm/pm                   latest              1ad1e4099f52        46 hours ago        462MB&lt;br /&gt;
 osm/mon                  latest              b17efa3412e3        46 hours ago        725MB&lt;br /&gt;
 wurstmeister/kafka       latest              7cfc4e57966c        10 days ago         293MB&lt;br /&gt;
 mysql                    5                   0d16d0a97dd1        2 weeks ago         372MB&lt;br /&gt;
 mongo                    latest              14c497d5c758        3 weeks ago         366MB&lt;br /&gt;
 wurstmeister/zookeeper   latest              351aa00d2fe9        18 months ago       478MB&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Are all processes/services running?====&lt;br /&gt;
 $ docker stack ps osm |grep -i running&lt;br /&gt;
&lt;br /&gt;
10 docker containers should be running.&lt;br /&gt;
&lt;br /&gt;
All the 10 services should have at least 1 replica: 1/1&lt;br /&gt;
&lt;br /&gt;
 $ docker service ls&lt;br /&gt;
 &lt;br /&gt;
 ID                  NAME                MODE                REPLICAS            IMAGE                           PORTS&lt;br /&gt;
 yuyiqh8ty8pv        osm_kafka           replicated          1/1                 wurstmeister/kafka:latest       *:9092-&amp;gt;9092/tcp&lt;br /&gt;
 y585906h5vy5        osm_lcm             replicated          1/1                 osm/lcm:latest&lt;br /&gt;
 pcdi5vb86nt9        osm_light-ui        replicated          1/1                 osm/light-ui:latest             *:80-&amp;gt;80/tcp&lt;br /&gt;
 i56jhl5k6re4        osm_mon             replicated          1/1                 osm/mon:latest                  *:8662-&amp;gt;8662/tcp&lt;br /&gt;
 p5wyjtne93hp        osm_mongo           replicated          1/1                 mongo:latest&lt;br /&gt;
 iz5uncfdzu23        osm_nbi             replicated          1/1                 osm/nbi:latest                  *:9999-&amp;gt;9999/tcp&lt;br /&gt;
 4ttw2v4z2g57        osm_pm              replicated          1/1                 osm/pm:latest&lt;br /&gt;
 xbg6bclp2anw        osm_ro              replicated          1/1                 osm/ro:latest                   *:9090-&amp;gt;9090/tcp&lt;br /&gt;
 sf7rayfolncu        osm_ro-db           replicated          1/1                 mysql:5&lt;br /&gt;
 5bl73dhj1xl0        osm_zookeeper       replicated          1/1                 wurstmeister/zookeeper:latest&lt;br /&gt;
&lt;br /&gt;
====Docker image failed to build====&lt;br /&gt;
=====Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease=====&lt;br /&gt;
&lt;br /&gt;
In some cases, DNS resolution works on the host but fails when building the Docker container. This is caused when Docker doesn&#039;t automatically determine the DNS server to use.&lt;br /&gt;
&lt;br /&gt;
Check if the following works:&lt;br /&gt;
 docker run busybox nslookup archive.ubuntu.com&lt;br /&gt;
&lt;br /&gt;
If it does not work, you have to configure Docker to use the available DNS.&lt;br /&gt;
 # Get the IP address you’re using for DNS:&lt;br /&gt;
 nmcli dev show | grep &#039;IP4.DNS&#039;&lt;br /&gt;
 # Create a new file, /etc/docker/daemon.json, that contains the following (but replace the DNS IP address with the output from the previous step:&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;dns&amp;quot;: [&amp;quot;192.168.24.10&amp;quot;]&lt;br /&gt;
 }&lt;br /&gt;
 # Restart docker&lt;br /&gt;
 sudo service docker restart&lt;br /&gt;
 # Re-run&lt;br /&gt;
 docker run busybox nslookup archive.ubuntu.com&lt;br /&gt;
 # Now you should be able to re-run the installer and move past the DNS issue.&lt;br /&gt;
&lt;br /&gt;
====Problem deploying stack osm====&lt;br /&gt;
=====network netosm could not be found=====&lt;br /&gt;
&lt;br /&gt;
The error is &#039;&#039;network &amp;quot;netosm&amp;quot; is declared as external, but could not be found. You need to create a swarm-scoped network before the stack is deployed&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It usually happens because a &amp;quot;docker system prune&amp;quot;  is done with the stack stopped. The following script will create it:&lt;br /&gt;
&lt;br /&gt;
  #!/bin/bash&lt;br /&gt;
  # Create OSM Docker Network ...&lt;br /&gt;
  [ -z &amp;quot;$OSM_STACK_NAME&amp;quot; ] &amp;amp;&amp;amp; OSM_STACK_NAME=osm&lt;br /&gt;
  OSM_NETWORK_NAME=net${OSM_STACK_NAME}&lt;br /&gt;
  echo Creating OSM Docker Network&lt;br /&gt;
  DEFAULT_INTERFACE=$(route -n | awk &#039;$1~/^0.0.0.0/ {print $8}&#039;)&lt;br /&gt;
  DEFAULT_MTU=$(ip addr show $DEFAULT_INTERFACE | perl -ne &#039;if (/mtu\s(\d+)/) {print $1;}&#039;)&lt;br /&gt;
  echo \# OSM_STACK_NAME = $OSM_STACK_NAME&lt;br /&gt;
  echo \# OSM_NETWORK_NAME = $OSM_NETWORK_NAME&lt;br /&gt;
  echo \# DEFAULT_INTERFACE = $DEFAULT_INTERFACE&lt;br /&gt;
  echo \# DEFAULT_MTU = $DEFAULT_MTU&lt;br /&gt;
  sg docker -c &amp;quot;docker network create --driver=overlay --attachable \&lt;br /&gt;
                 --opt com.docker.network.driver.mtu=${DEFAULT_MTU} \&lt;br /&gt;
                 ${OSM_NETWORK_NAME}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===Juju===&lt;br /&gt;
====Bootstrap hangs====&lt;br /&gt;
&lt;br /&gt;
If the Juju bootstrap takes a long time, stuck at this status...&lt;br /&gt;
&lt;br /&gt;
 Installing Juju agent on bootstrap instance&lt;br /&gt;
 Fetching Juju GUI 2.14.0&lt;br /&gt;
 Waiting for address&lt;br /&gt;
 Attempting to connect to 10.71.22.78:22&lt;br /&gt;
 Connected to 10.71.22.78&lt;br /&gt;
 Running machine configuration script...&lt;br /&gt;
&lt;br /&gt;
...it usually indicates that the LXD container with the Juju controller is having trouble connecting to the internet.&lt;br /&gt;
&lt;br /&gt;
Get the name of the LXD container. It will begin with &#039;juju-&#039; and end with &#039;-0&#039;.&lt;br /&gt;
&lt;br /&gt;
 lxc list&lt;br /&gt;
 +-----------------+---------+---------------------+------+------------+-----------+&lt;br /&gt;
 |      NAME       |  STATE  |        IPV4         | IPV6 |    TYPE    | SNAPSHOTS |&lt;br /&gt;
 +-----------------+---------+---------------------+------+------------+-----------+&lt;br /&gt;
 | juju-0383f2-0   | RUNNING | 10.195.8.57 (eth0)  |      | PERSISTENT |           |&lt;br /&gt;
 +-----------------+---------+---------------------+------+------------+-----------+&lt;br /&gt;
&lt;br /&gt;
Next, tail the output of cloud-init to see where the bootstrap is stuck.&lt;br /&gt;
&lt;br /&gt;
 lxc exec juju-0383f2-0 -- tail -f /var/log/cloud-init-output.log&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Is Juju running?====&lt;br /&gt;
&lt;br /&gt;
If running, you should see something like this:&lt;br /&gt;
&lt;br /&gt;
 $ juju status&lt;br /&gt;
 &lt;br /&gt;
 Model    Controller  Cloud/Region         Version  SLA&lt;br /&gt;
 default  osm         localhost/localhost  2.3.7    unsupported&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====ERROR controller osm already exists====&lt;br /&gt;
&lt;br /&gt;
Did OSM installation fail during juju installation with an error like &amp;quot;ERROR controller osm already exists&amp;quot; ?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 $ ./install_osm.sh&lt;br /&gt;
 ...&lt;br /&gt;
 ERROR controller &amp;quot;osm&amp;quot; already exists&lt;br /&gt;
 ERROR try was stopped&lt;br /&gt;
 &lt;br /&gt;
 ### Jum Agu 24 15:19:33 WIB 2018 install_juju: FATAL error: Juju installation failed&lt;br /&gt;
 BACKTRACE:&lt;br /&gt;
 ### FATAL /usr/share/osm-devops/jenkins/common/logging 39&lt;br /&gt;
 ### install_juju /usr/share/osm-devops/installers/full_install_osm.sh 564&lt;br /&gt;
 ### install_lightweight /usr/share/osm-devops/installers/full_install_osm.sh 741&lt;br /&gt;
 ### main /usr/share/osm-devops/installers/full_install_osm.sh 1033&lt;br /&gt;
&lt;br /&gt;
Try to destroy the Juju controller and run the installation again:&lt;br /&gt;
 $ juju destroy-controller osm --destroy-all-models -y&lt;br /&gt;
 $ ./install_osm.sh&lt;br /&gt;
&lt;br /&gt;
If it does not work, you can destroy Juju container and run the installation again&lt;br /&gt;
 #Destroy the Juju container&lt;br /&gt;
 lxc stop juju-*&lt;br /&gt;
 lxc delete juju-*&lt;br /&gt;
 #Unregister the controller since we’ve manually freed the resources associated with it&lt;br /&gt;
 juju unregister -y osm&lt;br /&gt;
 #Verify that there are no controllers&lt;br /&gt;
 juju list-controllers&lt;br /&gt;
 #Run the installation again&lt;br /&gt;
 ./install_osm.sh&lt;br /&gt;
&lt;br /&gt;
===LXD===&lt;br /&gt;
====ERROR profile default: /etc/default/lxd-bridge has IPv6 enabled====&lt;br /&gt;
&lt;br /&gt;
Make sure that you follow the instructions in the Quickstart.&lt;br /&gt;
&lt;br /&gt;
When asked if you want to proceed with the installation and configuration of LXD, juju, docker CE and the initialization of a local docker swarm, as pre-requirements, Please answer &amp;quot;y&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When dialog messages related to LXD configuration are shown, please answer in the following way:&lt;br /&gt;
&lt;br /&gt;
* Do you want to configure the LXD bridge? Yes&lt;br /&gt;
* Do you want to setup an IPv4 subnet? Yes&lt;br /&gt;
* &amp;lt;&amp;lt; Default values apply for next questions &amp;gt;&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Do you want to setup an IPv6 subnet? No&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
===VIMs===&lt;br /&gt;
&lt;br /&gt;
====Is the VIM URL reachable and operational?====&lt;br /&gt;
&lt;br /&gt;
When there are problems to access the VIM URL, an error message similar to the following is shown after attempts to instantiate network services:&lt;br /&gt;
&lt;br /&gt;
 Error: &amp;quot;VIM Exception vimmconnConnectionException ConnectFailure: Unable to establish connection to &amp;lt;URL&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* In order to debug potential issues with the connection, in the case of an OpenStack VIM, you can install the OpenStack client in the OSM VM and run some basic tests. I.e.:&lt;br /&gt;
 $ # Install the OpenStack client&lt;br /&gt;
 $ sudo apt-get install python-openstackclient&lt;br /&gt;
 $ # Load your OpenStack credentials. For instance, if your credentials are saved in a file named &#039;myVIM-openrc.sh&#039;, you can load them with:&lt;br /&gt;
 $ source myVIM-openrc.sh&lt;br /&gt;
 $ # Test if the VIM API is operational with a simple command. For instance:&lt;br /&gt;
 $ openstack image list&lt;br /&gt;
&lt;br /&gt;
If the openstack client works, then make sure that you can reach the VIM from the RO docker:&lt;br /&gt;
 $ docker exec -it osm_ro.1.xxxxx bash&lt;br /&gt;
 $ curl &amp;lt;URL_CONTROLLER&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;In some cases, the errors come from the fact that the VIM was added to OSM using names in the URL that are not Fully Qualified Domain Names (FQDN).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When adding a VIM to OSM, you must use always FQDN or the IP addresses. It must be noted that “controller” or similar names are not proper FQDN (the suffix should be added). Non-FQDN names might be understood by docker’s dnsmasq as a docker container name to be resolved, which is not the case. In addition, all the VIM endpoints should also be FQDN or IP addresses, thus guaranteeing that all subsequent API calls can reach the appropriate endpoint.&lt;br /&gt;
&lt;br /&gt;
Think of an NFV infrastructure with tens of VIMs, first you will have to use different names for each controller (controller1, controller2, etc.), then you will have to add to every machine trying to interact with the different VIMs, not only OSM, all those entries in the /etc/hosts file. This is bad practice.&lt;br /&gt;
&lt;br /&gt;
However, it is useful to have a mean to work with lab environments using non-FQDN names. Three options here. Probably you are looking for the third one, but we recommend the first one:&lt;br /&gt;
* Option 1. Change the admin URL and/or public URL of the endpoints to use an IP address or an FQDN. You might find this interesting if you want to bring your Openstack setup to production.&lt;br /&gt;
* Option 2. Modify /etc/hosts in the docker RO container. This is not persistent after reboots or restarts of the osm docker stack.&lt;br /&gt;
* Option 3. Modify /etc/osm/docker/docker-compose.yaml in the host, adding extra_hosts in the ro section with the entries that you want to add to /etc/hosts in the RO docker:&lt;br /&gt;
 ro:&lt;br /&gt;
   extra_hosts:&lt;br /&gt;
     controller: 1.2.3.4&lt;br /&gt;
Then restart the stack:&lt;br /&gt;
 docker stack rm osm&lt;br /&gt;
 docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm&lt;br /&gt;
This is persistent after reboots and restarts of the osm docker stack.&lt;br /&gt;
&lt;br /&gt;
====Authentication====&lt;br /&gt;
&#039;&#039;&#039;What should I check if the VIM authentication is failing?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Typically, you will get the following error messsage:&lt;br /&gt;
&lt;br /&gt;
Error: &amp;quot;VIM Exception vimconnUnexpectedResponse Unauthorized: The request you have made requieres authentication. (HTTP 401)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If your OpenStack URL is based on HTTPS, OSM will check by default the authenticity of your VIM using the appropriate public certificate. The recommended way to solve this is by modifying /etc/osm/docker/docker-compose.yaml in the host, sharing the host file (e.g. /home/ubuntu/cafile.crt) by adding a volume to the ro section as follows:&lt;br /&gt;
  ro:&lt;br /&gt;
    ...&lt;br /&gt;
    volumes:&lt;br /&gt;
      - /home/ubuntu/cafile.crt:/etc/osm/cafile.crt&lt;br /&gt;
Then, when creating the VIM, you should use the config option &amp;quot;ca_cert&amp;quot; as follows:&lt;br /&gt;
 $ # Create the VIM with all the usual options, and add the config option to specify the certificate&lt;br /&gt;
 $ osm vim-create VIM-NAME ... --config &#039;{ca_cert: /etc/osm/cafile.crt}&#039;&lt;br /&gt;
&lt;br /&gt;
For casual testing, when adding the VIM account to OSM, you can use &#039;insecure: True&#039; (without quotes) as part of the VIM config parameters:&lt;br /&gt;
 $ osm vim-create VIM-NAME ... --config &#039;{insecure: True}&#039;   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Is the VIM management network reachable from OSM (e.g. via ssh, port 22)?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The simplest check would consist on deploying a VM attached to the management network and trying to access it via e.g. ssh from the OSM host.&lt;br /&gt;
&lt;br /&gt;
For instance, in the case of an OpenStack VIM you could try something like this:&lt;br /&gt;
 $ openstack server create --image ubuntu --flavor m1.small --nic mgmtnet test&lt;br /&gt;
&lt;br /&gt;
If this does not work, typically it is due to one of these issues:&lt;br /&gt;
* Security group policy in your VIM is blocking your traffic (contact your admin to fix it)&lt;br /&gt;
* IP address space in the management network is not routable from outside (or in the reverse direction, for the ACKs).&lt;br /&gt;
&lt;br /&gt;
==Operational issues==&lt;br /&gt;
&lt;br /&gt;
===Running out of disk space===&lt;br /&gt;
If you are upgrading frequently your OSM installation, you might face that your disk is running out of space. The reason is that the previous dockers and docker images might be consuming some disk space. Running the following two commands should be enough to clear your docker setup:&lt;br /&gt;
 docker system prune&lt;br /&gt;
 docker image prune&lt;br /&gt;
&lt;br /&gt;
If you are still experiencing issues with disk space, logs in one of the dockers could be the cause of your issue. Check the containers that are consuming more space (typically kafka-exporter) &lt;br /&gt;
 du -sk /var/lib/docker/containers/* |sort -n&lt;br /&gt;
 docker ps |grep &amp;lt;CONTAINER_ID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, remove the stack and redeploy it again after doing a prune:&lt;br /&gt;
 docker stack rm osm_metrics&lt;br /&gt;
 docker system prune&lt;br /&gt;
 docker image prune&lt;br /&gt;
 docker stack deploy -c /etc/osm/docker/osm_metrics/docker-compose.yml osm_metrics&lt;br /&gt;
&lt;br /&gt;
===VCA (juju)===&lt;br /&gt;
====Status is not coherent with running NS====&lt;br /&gt;
&lt;br /&gt;
In extraordinary situations, the output of &amp;quot;juju status&amp;quot; could show pending units that should have been removed when deleting a NS. In those situations, you can clean up VCA by following the procedure below:&lt;br /&gt;
 juju status&lt;br /&gt;
 juju remove-application &amp;lt;application&amp;gt;&lt;br /&gt;
 juju resolved &amp;lt;unit&amp;gt; --no-retry        # You&#039;ll likely have to run it several times, as it will probably have an error in the next queued hook.Once the last hook is marked resolved, the charm will continue its removal&lt;br /&gt;
&lt;br /&gt;
The following page also shows [https://docs.jujucharms.com/2.1/en/charms-destroy how to remove different Juju objects]&lt;br /&gt;
&lt;br /&gt;
====Dump Juju Logs ====&lt;br /&gt;
&lt;br /&gt;
To dump the Juju debug-logs, run this command:&lt;br /&gt;
 juju debug-log --replay --no-tail &amp;gt; juju-debug.log&lt;br /&gt;
&lt;br /&gt;
====Manual recovery of Juju====&lt;br /&gt;
&lt;br /&gt;
If juju gets in a corrupt state and you cannot run `juju status` or contact the juju controller, you might need to remove manually the controller and register again, making OSM aware of the new controller.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
# Stop and delete all juju containers, then unregister the controller&lt;br /&gt;
lxc list&lt;br /&gt;
lxc stop juju-*          #replace &amp;quot;*&amp;quot; by the right values&lt;br /&gt;
lxc delete juju-*        #replace &amp;quot;*&amp;quot; by the right values&lt;br /&gt;
juju unregister -y osm&lt;br /&gt;
&lt;br /&gt;
# Create the controller again &lt;br /&gt;
sg lxd -c &amp;quot;juju bootstrap --bootstrap-series=xenial localhost osm&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Get controller IP and update it in relevant OSM env files&lt;br /&gt;
controller_ip=$(juju show-controller osm|grep api-endpoints|awk -F\&#039; &#039;{print $2}&#039;|awk -F\: &#039;{print $1}&#039;)&lt;br /&gt;
sudo sed -i &#039;s/^OSMMON_VCA_HOST.*$/OSMMON_VCA_HOST=&#039;$controller_ip&#039;/&#039; /etc/osm/docker/mon.env&lt;br /&gt;
sudo sed -i &#039;s/^OSMLCM_VCA_HOST.*$/OSMLCM_VCA_HOST=&#039;$controller_ip&#039;/&#039; /etc/osm/docker/lcm.env&lt;br /&gt;
 &lt;br /&gt;
#Get juju password and feed it to OSM env files&lt;br /&gt;
function parse_juju_password {&lt;br /&gt;
   password_file=&amp;quot;${HOME}/.local/share/juju/accounts.yaml&amp;quot;&lt;br /&gt;
   local controller_name=$1&lt;br /&gt;
   local s=&#039;[[:space:]]*&#039; w=&#039;[a-zA-Z0-9_-]*&#039; fs=$(echo @|tr @ &#039;\034&#039;)&lt;br /&gt;
   sed -ne &amp;quot;s|^\($s\):|\1|&amp;quot; \&lt;br /&gt;
        -e &amp;quot;s|^\($s\)\($w\)$s:$s[\&amp;quot;&#039;]\(.*\)[\&amp;quot;&#039;]$s\$|\1$fs\2$fs\3|p&amp;quot; \&lt;br /&gt;
        -e &amp;quot;s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p&amp;quot; $password_file |&lt;br /&gt;
   awk -F$fs -v controller=$controller_name &#039;{&lt;br /&gt;
      indent = length($1)/2;&lt;br /&gt;
      vname[indent] = $2;&lt;br /&gt;
      for (i in vname) {if (i &amp;gt; indent) {delete vname[i]}}&lt;br /&gt;
      if (length($3) &amp;gt; 0) {&lt;br /&gt;
         vn=&amp;quot;&amp;quot;; for (i=0; i&amp;lt;indent; i++) {vn=(vn)(vname[i])(&amp;quot;_&amp;quot;)}&lt;br /&gt;
         if (match(vn,controller) &amp;amp;&amp;amp; match($2,&amp;quot;password&amp;quot;)) {&lt;br /&gt;
             printf(&amp;quot;%s&amp;quot;,$3);&lt;br /&gt;
         }&lt;br /&gt;
      }&lt;br /&gt;
   }&#039;&lt;br /&gt;
}&lt;br /&gt;
juju_password=$(parse_juju_password osm)&lt;br /&gt;
sudo sed -i &#039;s/^OSMMON_VCA_SECRET.*$/OSMMON_VCA_SECRET=&#039;$juju_password&#039;/&#039; /etc/osm/docker/mon.env&lt;br /&gt;
sudo sed -i &#039;s/^OSMLCM_VCA_SECRET.*$/OSMLCM_VCA_SECRET=&#039;$juju_password&#039;/&#039; /etc/osm/docker/lcm.env&lt;br /&gt;
&lt;br /&gt;
#Restart OSM stack&lt;br /&gt;
docker stack rm osm&lt;br /&gt;
docker stack deploy -c /etc/osm/docker/docker-compose.yaml osm&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Slow deployment of charms====&lt;br /&gt;
&lt;br /&gt;
You can make deplyment of charms quicker by:&lt;br /&gt;
* Upgrading your LXD installation to use ZFS: [[LXD configuration for OSM Release FIVE]]&lt;br /&gt;
** After LXD re-installation, you might need to reinstall the juju controller: [[Common_issues_and_troubleshooting#Manual_recovery_of_Juju|Reinstall Juju controller]]&lt;br /&gt;
* Preventing Juju from running apt-get update &amp;amp;&amp;amp; apt-get upgrade when starting a machine: [[Advanced_Charm_Development#Disable_OS_upgrades|Disable OS upgrades in charms]]&lt;br /&gt;
* Building periodically a custom image that will be used as base image for all the charms: [[Advanced_Charm_Development#Build_a_custom_cloud_image|Custom base image for charms]]&lt;br /&gt;
&lt;br /&gt;
==Checking the logs==&lt;br /&gt;
&lt;br /&gt;
You can check the logs of any container with the following commands:&lt;br /&gt;
&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_mon&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_pol&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_lcm&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_nbi&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_light-ui&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_ro.1&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_ro-db&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_mongo&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_kafka&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_zookeeper&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_keystone.1&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_keystone-db&amp;quot; -n 1)&lt;br /&gt;
 docker logs $(docker ps -aqf &amp;quot;name=osm_prometheus&amp;quot; -n 1)&lt;/div&gt;</summary>
		<author><name>Keshav</name></author>
	</entry>
</feed>