I'm trying to create a new server on the Rackspace Cloud using Chef and I keep coming across this error in Chef:
RuntimeError: Please save server before accessing metadata
That error message is coming from an update to the fog project. This commit introduces the error message that you're seeing. I'm able to duplicate the error as well with fog 1.9.0 which was released 4 days ago.
Use these commands to roll back to fog v1.8.0:
That fixed the issue for me! The fog developers are working on a pull request and it sounds like they'll have a new release soon (perhaps called v1.9.1).