migrate 1.16 agent config to 1.18 properly (DataDir, Jobs, LogDir)

Bug #1291400 reported by Dimiter Naydenov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Critical
Dimiter Naydenov

Bug Description

We need tests that multiple upgrades from 1.16 to 1.18 and above work, as mentioned in bug 1290684.

The reason for the failure is that when reading a 1.16 agent config some values were not set before writing the migrated 1.18 agent config: DataDir (now required; it's either /var/lib/juju or $JUJU_HOME/local for the local provider), LogDir (optional; should default to /var/log/juju, except for the local provider), Jobs (optional, but we need to add them appropriately: JobHostUnits for all machines, except the bootstrap node; and JobManageEnviron+JobHostUnits for the bootstrap nodes, except for the local provider we need to skip JobHostUnits).

Related branches

Changed in juju-core:
assignee: nobody → Dimiter Naydenov (dimitern)
Curtis Hovey (sinzui)
tags: added: upgrade-juju
Curtis Hovey (sinzui)
Changed in juju-core:
importance: High → Critical
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.17.5 → 1.18.0
John A Meinel (jameinel)
Changed in juju-core:
milestone: 1.18.0 → 1.17.6
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.

Other bug subscribers

Remote bug watches

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