juju status showing charm unit in error state but getting "ERROR unit is not in an error state" message when resolving charm

Bug #1598329 reported by Bilal Baqar
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
High
Unassigned

Bug Description

juju status showing a unit of nova-compute charm in an error state right after the unit was rebooted.

resolving the charm unit using [juju resolved --retry nova-compute/1] gives the error message:
"ERROR unit "nova-compute/1" is not in an error state"

-output of juju status --format=tabular
http://paste.ubuntu.com/18277002/

-output of juju status
http://paste.ubuntu.com/18277015/

-juju logs of the nova-compute/1 unit
http://paste.ubuntu.com/18278303/

-juju machine log
http://paste.ubuntu.com/18278291/

Revision history for this message
Bilal Baqar (bbaqar) wrote :

juju-core version is 1.25.5

Revision history for this message
Cheryl Jennings (cherylj) wrote :

It would be interesting to see what the status is in the DB. Are you able to install the mongo client on the state server? If so, could you run the following and attach the output?

1 - Install the mongodb-clients package on the state server:
    `sudo apt-get install mongodb-clients`

2 - Connect to mongo on the state server:
    `mongo --ssl -u admin -p $(sudo grep oldpassword /var/lib/juju/agents/machine-0/agent.conf | awk -e '{print $2}') localhost:37017/admin`

3 - Query the status collection for status on nova-compute. You'll need to 'use juju', then query the statuses collection:

MongoDB shell version: 2.6.10
connecting to: localhost:37017/admin
juju:PRIMARY> use juju
switched to db juju
juju:PRIMARY> db.statuses.find({_id:{ $regex: '.*nova-compute.*'}}).pretty()

Changed in juju-core:
status: New → Incomplete
Revision history for this message
Bilal Baqar (bbaqar) wrote :

Output of the above command: http://paste.ubuntu.com/18806295/

Junaid Ali (junaidali)
Changed in juju-core:
status: Incomplete → New
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0.0
no longer affects: juju-core
Changed in juju:
assignee: nobody → Alexis Bruemmer (alexis-bruemmer)
Changed in juju:
milestone: 2.0.0 → 2.1.0
Changed in juju:
assignee: Alexis Bruemmer (alexis-bruemmer) → nobody
Revision history for this message
Anastasia (anastasia-macmood) wrote :

This looks like a symptom of Juju overwriting status set explicitly by workload as described in bug # 1597481. I am marking this as a duplicate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.