/var/run/eucalyptus is not being set with correct permissions on machine reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eucalyptus (Ubuntu) |
Fix Released
|
High
|
Dustin Kirkland |
Bug Description
the eucalyptus init scripts create the:
/var/run/
directory(ies) on start, but do not correctly change the ownership of the created directory(ies). The init scripts (for example eucalyptus-cc) call /usr/sbin/euca_conf -check cc on startup:
if [ ! -d $EUCALYPTUS/
if ! mkdir -p $EUCALYPTUS/
fi
if ! chown $EUCA_USER:
fi
fi
if [ "$CHECK" = "cc" ]; then
if [ ! -d $EUCALYPTUS/
if ! mkdir -p $EUCALYPTUS/
fi
if ! chown $EUCA_USER:
fi
fi
fi
it looks like, perhaps, the /var/run/eucalyptus directory has already been created (by start-stop-daemon?) before this check is run, so the chown part never gets hit. The fix has been made upstream (>= r772), but the fix is simply to move the 'chown' stuff from above outside the check for whether the directory exists.
tags: | added: eucalyptus |
Changed in eucalyptus (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Dustin Kirkland (kirkland) |
status: | In Progress → Fix Committed |
Do not forget to create /var/run/ eucalyptus/ net/ too (per bug #365349), otherwise only SYSTEM mode will work.