Eucalyptus Euca-console leap-year bug and fix
Woke up this morning to an Internal Server Error after logging into the Euca-Console.
Looking at the error logs this came up:
Leap year bug… luckily everyone else’s software caught fire so there was a quick solution here:
https://groups.google.com/a/eucalyptus.com/forum/#!topic/euca-users/mqhYXCzAfaE
Fix is here: by changing the line:
expires = datetime.today().replace(year=2003)
to
expires = datetime.today().replace(year=2016)
in
/usr/lib/python2.6/site-packages/Beaker-1.5.4-py2.6.egg/beaker/session.py
and restarted the console service and it works fine.