rc.local editing wrong.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Davanum Srinivas (DIMS) | ||
Folsom |
Fix Released
|
Low
|
Vish Ishaya |
Bug Description
We are using Oz to create images for OpenStack.
We add some stuff to the end of rc.local so that it executes on boot.
the last few lines were something like:
if ....
...
fi
when nova boots the instance under folsom, which use to work under essex, rc.local became:
if ...
...
fi#!/bin/sh
# Added by Nova to ensure injected ssh keys have the right context
restorecon -RF /root/.ssh/ 2>/dev/null || :
which bash fails on because fi#!/bin/sh is apparently not valid
As a temporary workaround, I put an echo line right after the fi and things work again.
if ...
...
fi
echo done
Becomes:
if ...
...
fi
echo done#!/bin/sh
# Added by Nova to ensure injected ssh keys have the right context
restorecon -RF /root/.ssh/ 2>/dev/null || :
I think that that nova probably needs to insert a new line first whenever appending to rc.local instead of creating a new file.
Changed in nova: | |
assignee: | nobody → Davanum Srinivas (dims-v) |
status: | New → Confirmed |
Changed in nova: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | grizzly-2 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/17997
Review: https:/