Juju not showing me any output from its commands


#1

Today I’ve had a down of the server where is installed Juju, after its re-start, the status command that I’ve used of juju (ex. juju status) it didn’t give me any feedback

$:juju controllers
Use --refresh option with this command to see the latest information.

Controller             Model         User   Access     Cloud/Region               Models  Nodes    HA  Version
aws-controller        wordpress     admin  superuser  aws/us-east-1                   3      1  none  2.6.2  
maas-controller        openstack     admin  superuser  maas-cloud                      3      1  none  2.5.4  
openstack-controller*  server-cloud  admin  superuser  openstack-cloud/RegionOne       5      1  none  2.5.4  

$:juju status
[]

while its controller works well.

How do I can to resolve that? is there a command to unlock that?

thanks.


#2

First thing you need to do is to see if the controller is running.

If the API server is non-responsive, using ‘juju ssh’ won’t work. You’ll need to plain SSH into the controller to see if the server is running.

ssh ubuntu@<ip address>

Then run something like:

sudo service jujud-machine-0 status

Also worth checking in the logs in /var/log/juju. These are the first steps to working out why it isn’t going.


#3

here is the result of that:

$:ssh ubuntu@10.20.81.2  

then

ubuntu@juju-gui:~$ sudo service jujud-machine-0 status
● jujud-machine-0.service - juju agent for machine-0
   Loaded: loaded (/lib/systemd/system/jujud-machine-0/jujud-machine-0.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-06-04 10:00:22 UTC; 2 days ago
 Main PID: 1361 (bash)
    Tasks: 39 (limit: 4915)
   CGroup: /system.slice/jujud-machine-0.service
           ├─1361 bash /lib/systemd/system/jujud-machine-0/exec-start.sh
           └─1578 /var/lib/juju/tools/machine-0/jujud machine --data-dir /var/lib/juju --machine-id 0 --debug

Jun 04 10:00:22 juju-gui systemd[1]: Started juju agent for machine-0.
ubuntu@juju-gui:~$ sudo service jujud-machine-0 status
● jujud-machine-0.service - juju agent for machine-0
   Loaded: loaded (/lib/systemd/system/jujud-machine-0/jujud-machine-0.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-06-04 10:00:22 UTC; 2 days ago
 Main PID: 1361 (bash)
    Tasks: 39 (limit: 4915)
   CGroup: /system.slice/jujud-machine-0.service
           ├─1361 bash /lib/systemd/system/jujud-machine-0/exec-start.sh
           └─1578 /var/lib/juju/tools/machine-0/jujud machine --data-dir /var/lib/juju --machine-id 0 --debug

Jun 04 10:00:22 juju-gui systemd[1]: Started juju agent for machine-0.

#4

I’ve checked that issue is only for the controller openstack-controller of Juju on Openstack, while for maas-controllers its status works fine.

$: juju status
please enter password for admin on maas-controller: 
Model      Controller       Cloud/Region  Version  SLA          Timestamp
openstack  maas-controller  maas-cloud    2.5.4    unsupported  21:46:55Z

App                    Version       Status  Scale  Charm                  Store       Rev  OS      Notes
ceph-mon               13.2.4+dfsg1  active      3  ceph-mon               jujucharms   31  ubuntu  
ceph-osd               13.2.4+dfsg1  active      3  ceph-osd               jujucharms  273  ubuntu  
ceph-radosgw           13.2.4+dfsg1  active      1  ceph-radosgw           jujucharms  262  ubuntu  
cinder                 13.0.3        active      1  cinder                 jujucharms  276  ubuntu  
cinder-ceph            13.0.3        active      1  cinder-ceph            jujucharms  238  ubuntu  
glance                 17.0.0        active      1  glance                 jujucharms  271  ubuntu  
keystone               14.0.1        active      1  keystone               jujucharms  288  ubuntu  
mysql                  5.7.20-29.24  active      1  percona-cluster        jujucharms  272  ubuntu  
neutron-api            13.0.2        active      1  neutron-api            jujucharms  266  ubuntu  
neutron-gateway        13.0.2        active      1  neutron-gateway        jujucharms  256  ubuntu  
neutron-openvswitch    13.0.2        active      3  neutron-openvswitch    jujucharms  255  ubuntu  
nova-cloud-controller  18.1.0        active      1  nova-cloud-controller  jujucharms  316  ubuntu  
nova-compute           18.1.0        active      3  nova-compute           jujucharms  290  ubuntu  
ntp                    3.2           active      4  ntp                    jujucharms   31  ubuntu  
openstack-dashboard    14.0.2        active      1  openstack-dashboard    jujucharms  271  ubuntu  
rabbitmq-server        3.6.10        active      1  rabbitmq-server        jujucharms   82  ubuntu  

Unit                      Workload  Agent  Machine  Public address  Ports                       Message
ceph-mon/0                active    idle   1/lxd/0  10.20.81.17                                 Unit is ready and clustered
ceph-mon/1                active    idle   0/lxd/2  10.20.81.8                                  Unit is ready and clustered
ceph-mon/2*               active    idle   2/lxd/1  10.20.81.23                                 Unit is ready and clustered
ceph-osd/0                active    idle   2        10.20.81.5                                  Unit is ready (1 OSD)
ceph-osd/1                active    idle   1        10.20.81.3                                  Unit is ready (1 OSD)
ceph-osd/2*               active    idle   0        10.20.81.4                                  Unit is ready (1 OSD)
ceph-radosgw/0*           active    idle   3/lxd/2  10.20.81.18     80/tcp                      Unit is ready
cinder/0*                 active    idle   1/lxd/1  10.20.81.19     8776/tcp                    Unit is ready
  cinder-ceph/0*          active    idle            10.20.81.19                                 Unit is ready
glance/0*                 active    idle   0/lxd/0  10.20.81.20     9292/tcp                    Unit is ready
keystone/0*               active    idle   2/lxd/0  10.20.81.22     5000/tcp                    Unit is ready
mysql/0*                  active    idle   3/lxd/0  10.20.81.16     3306/tcp                    Unit is ready
neutron-api/0*            active    idle   1/lxd/2  10.20.81.15     9696/tcp                    Unit is ready
neutron-gateway/0*        active    idle   3        10.20.81.6                                  Unit is ready
  ntp/2                   active    idle            10.20.81.6      123/udp                     chrony: Ready
nova-cloud-controller/0*  active    idle   0/lxd/1  10.20.81.7      8774/tcp,8775/tcp,8778/tcp  Unit is ready
nova-compute/0*           active    idle   0        10.20.81.4                                  Unit is ready
  neutron-openvswitch/1   active    idle            10.20.81.4                                  Unit is ready
  ntp/1                   active    idle            10.20.81.4      123/udp                     chrony: Ready
nova-compute/1            active    idle   1        10.20.81.3                                  Unit is ready
  neutron-openvswitch/0*  active    idle            10.20.81.3                                  Unit is ready
  ntp/0*                  active    idle            10.20.81.3      123/udp                     chrony: Ready
nova-compute/2            active    idle   2        10.20.81.5                                  Unit is ready
  neutron-openvswitch/2   active    idle            10.20.81.5                                  Unit is ready
  ntp/3                   active    idle            10.20.81.5      123/udp                     chrony: Ready
openstack-dashboard/0*    active    idle   2/lxd/2  10.20.81.21     80/tcp,443/tcp              Unit is ready
rabbitmq-server/0*        active    idle   3/lxd/1  10.20.81.9      5672/tcp                    Unit is ready

Machine  State    DNS          Inst id              Series  AZ         Message
0        started  10.20.81.4   os-compute02         bionic  Openstack  Deployed
0/lxd/0  started  10.20.81.20  juju-dda9d5-0-lxd-0  bionic  Openstack  Container started
0/lxd/1  started  10.20.81.7   juju-dda9d5-0-lxd-1  bionic  Openstack  Container started
0/lxd/2  started  10.20.81.8   juju-dda9d5-0-lxd-2  bionic  Openstack  Container started
1        started  10.20.81.3   os-compute01         bionic  Openstack  Deployed
1/lxd/0  started  10.20.81.17  juju-dda9d5-1-lxd-0  bionic  Openstack  Container started
1/lxd/1  started  10.20.81.19  juju-dda9d5-1-lxd-1  bionic  Openstack  Container started
1/lxd/2  started  10.20.81.15  juju-dda9d5-1-lxd-2  bionic  Openstack  Container started
2        started  10.20.81.5   os-compute03         bionic  Openstack  Deployed
2/lxd/0  started  10.20.81.22  juju-dda9d5-2-lxd-0  bionic  Openstack  Container started
2/lxd/1  started  10.20.81.23  juju-dda9d5-2-lxd-1  bionic  Openstack  Container started
2/lxd/2  started  10.20.81.21  juju-dda9d5-2-lxd-2  bionic  Openstack  Container started
3        started  10.20.81.6   os-compute04         bionic  Openstack  Deployed
3/lxd/0  started  10.20.81.16  juju-dda9d5-3-lxd-0  bionic  Openstack  Container started
3/lxd/1  started  10.20.81.9   juju-dda9d5-3-lxd-1  bionic  Openstack  Container started
3/lxd/2  started  10.20.81.18  juju-dda9d5-3-lxd-2  bionic  Openstack  Container started