yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #02132
[Bug 1089668] Re: rc.local editing wrong.
** Changed in: nova/folsom
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1089668
Title:
rc.local editing wrong.
Status in OpenStack Compute (Nova):
Fix Released
Status in OpenStack Compute (nova) folsom series:
Fix Released
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1089668/+subscriptions