ecbcc09ce5c337a84d8adf19f957529c4f76a075

Fixes lp:772397 FileHandler opens the logfile at startup, keeps the stream open and continues to log to it forever. If logrotate decides to rotate the file, it will rename the original file and a new file is created with the same attributes as the original file. The problem is that the process is still writing to the original file, not the newly created file. Traditionally, system daemons respond to a SIGHUP by re-opening log files and logrotate can be configured to deliver this signal on rotation. However, python has an elegant solution. WatchedFileHandler monitors the inode for the specified log file name and, if that ever changes, it re-opens the stream. Nova already uses WatchedFileHandler to good effect. See: https://code.launchpad.net/~soren/nova/logrotate/+merge/50292 Change-Id: I7f693f133d230d65d7c94ebf3a2ec0c8b362f993
====== Glance ====== Glance is a project that defines services for discovering, registering, retrieving and storing virtual machine images. The discovery and registration responsibilities are handled by the `glance-registry` component while the retrieval and storage responsiblities are handled by the `glance-api` component. Quick Start ----------- If you'd like to run trunk, you can clone the git repo: git clone git@github.com:openstack/glance.git Install Glance by running:: python setup.py build sudo python setup.py install By default, `glance-registry` will use a SQLite database. If you'd like to use MySQL, or make other adjustments, you can modify the glance.cnf file (see documentation for more details). Now that Glance is installed, you can start the service. The easiest way to do that is by using the `glance-control` utility which runs both the `glance-api` and `glance-registry` services:: glance-control all start Once both services are running, you can now use the `glance-upload` tool to register new images in Glance. glance-upload --type=machine --kernel=1 --ramdisk=2 myimage.img "MyImage" With an image registered, you can now configure your IAAS provider to use Glance as its image service and begin spinning up instances from your newly registered images.
Description
Languages
Python
99.9%