Paste #566401

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
For testing purpose, I tried to deploy our Charm[Kaminario-OpenStack]  in the internal juju environment of “Ubuntu-OpenStack-Autopilot  Setup”. But I have faced an issue.

I did as shown below.

From MAAS node
$export JUJU_HOME=~/.cloud-install/juju

Connecting Landscape server to deploy our charm  and add relation to cinder charm.
$juju ssh landscape-server/0 sudo 'JUJU_HOME=/var/lib/landscape/juju-homes/`sudo ls -rt /var/lib/landscape/juju-homes/ | tail -1` sudo -u landscape -E bash'

From Landscape Server
landscape@juju-machine-0-lxc-1:~$  juju deploy cs:~siva9296/kaminario-openstack-2

ERROR cannot load cookies: file locked for too long; giving up: cannot acquire lock: open /home/ubuntu/.go-cookies.lock: permission denied

landscape@juju-machine-0-lxc-1:~$ sudo su
sudo: unable to resolve host juju-machine-0-lxc-1
[sudo] password for landscape:

Genarally, I gave landscape password as “vedams123”. But it is not working here. And from /etc/hosname also it has juju-machine-0-lxc-1 as hostname.

But why it is not resolving hostname I don’t know.

landscape@juju-machine-0-lxc-1:~$ juju --version
1.25.6-trusty-amd64

By googling,

http://askubuntu.com/questions/743089/error-deploying-juju-gui-in-internal-openstack-environment-error-cannot-load-co
https://bugs.launchpad.net/juju-core/+bug/1534643


So finally,
 For JUJU Version 1.25.6-trusty-amd64  I am getting “ERROR cannot load cookies: file locked for too long; giving up: cannot acquire lock: open /home/ubuntu/.go-cookies.lock: permission denied”  issue while deploying our “Kaminario-openstack” charm on Ubuntu-OpenStack-Autopilot Setup.