create instances, based on images from glance
create instances, based on images from glance

Glance will store rpm files of EZ templates. When you try to
create an instance based on a image from glance, pcs driver
will first retrieve info about rpm from glance:

If the image has properties pcs_name, pcs_version and pcs_release -
they will be used, if not - compute driver will download rpm and
get name and version from an rpm file.

If rpm is already installed and has the same or higher version -
nothing will be done. If not - rpm will be ether installed or updated.

Then container, based on that ostemplate, will be created.

Example of a glance command to create an image from rpm:

glance image-create --name debian-6.0-x86_64  --disk-format raw \
    --container-format bare --min-disk 0 --min-ram 128 \
    --file debian-6.0-x86_64-ez-4.0.0-5.noarch.rpm \
    --property pcs_name=debian-6.0-x86_64-ez \
    --property pcs_version=4.0.0 \
    --property pcs_release=5

CloudServer/pcs-nova-driver,CloudServer/pcs-nova-driver