juju-core 1.20.11 crashes (SIGSEGV) if apiaddresses key is missing from agent.conf

Bug #1392814 reported by JuanJo Ciarlante
16
This bug affects 5 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Ian Booth
1.24
Fix Released
High
Ian Booth
1.25
Fix Released
High
Ian Booth

Bug Description

While dealing with lp#1392810 (1.18.4 -> 1.19.4), some of the units
got its machine agent.conf missing 'apiaddresses' key, making them
to SIGSEGV.

This is easy to reproduce: on a fresh 1.20.11 deployment, comment out
apiaddresses stanza at /var/lib/juju/agents/machine-X/agent.conf
and restart jujud-machine-X => crash, logtail FTR:
http://paste.ubuntu.com/9009937/

Curtis Hovey (sinzui)
affects: juju-deployer → juju-core
tags: added: upgrade-charm
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.20.12
milestone: 1.20.12 → 1.22
JuanJo Ciarlante (jjo)
tags: added: canonical-bootstack canonical-is
Changed in juju-core:
milestone: 1.22-alpha1 → 1.23
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.23 → none
importance: High → Medium
Revision history for this message
Tim Penhey (thumper) wrote :

Still happens with 1.22.8

Changed in juju-core:
assignee: nobody → Menno Smits (menno.smits)
Changed in juju-core:
milestone: none → 1.26-alpha1
Curtis Hovey (sinzui)
Changed in juju-core:
importance: Medium → High
Revision history for this message
Menno Finlay-Smits (menno.smits) wrote :

This is reproducible with current versions of Juju too. Fixing the panic should be easy enough. I'm not sure how the addresses went missing in the first place though.

Changed in juju-core:
assignee: Menno Smits (menno.smits) → Ian Booth (wallyworld)
Ian Booth (wallyworld)
Changed in juju-core:
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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