rsyslog step in juju-restore is outdated and breaks the restore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Horacio Durán |
Bug Description
Andrew Wilkins said:
We no longer write rsyslog configuration at bootstrap time, but instead it's managed by a worker in jujud.
The upshot is we should be able to just remove anything to do with rsyslog from the restore plugin. It should fix itself up when the agent starts up. Note this is only true for >=1.18, so we may want a version check in there.
In current trunk version we get upon attempting a restore:
+ cd /var/lib/
+ for agent in '*'
+ initctl stop jujud-machine-1
jujud-machine-1 stop/waiting
+ sed -i.old -r '/^(stateaddres
n
s/- .*(:[0-9]+)/- ec2-54-
}' machine-
+ [[ machine-1 = unit-* ]]
+ initctl start jujud-machine-1
jujud-machine-1 start/running, process 5101
jujud-unit-ubuntu-0 stop/waiting
jujud-unit-ubuntu-0 start/running, process 5106
+ for agent in '*'
+ initctl stop jujud-unit-ubuntu-0
+ sed -i.old -r '/^(stateaddres
n
s/- .*(:[0-9]+)/- ec2-54-
}' unit-ubuntu-
+ [[ unit-ubuntu-0 = unit-* ]]
+ sed -i -r 's/change-version: [0-9]+$
sed: can't read unit-ubuntu-
+ true
+ initctl start jujud-unit-ubuntu-0
+ sed -i -r 's/^(:syslogtag, startswith, "juju-" @)(.*)(
sed: can't read /etc/rsyslog.
This bug is being fixed on under the context of #1291022
Related branches
- Juju Engineering: Pending requested
-
Diff: 24 lines (+7/-2)1 file modifiedcmd/plugins/juju-restore/restore.go (+7/-2)
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: backup-restore |
Changed in juju-core: | |
milestone: | 1.18.0 → changelog.txt |
status: | Triaged → In Progress |
Changed in juju-core: | |
milestone: | changelog.txt → 1.17.7 |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |