Configuration of Glance with NetApp StorageGRID Webscale

StorageGRID Webscale can be used as a backing store for Glance images using the Amazon S3 API.

Configure the following in StorageGRID Webscale:

  1. Port redirect: Glance will only talk to port 443. Redirect port on gateway or storage node (8082 for CLB and 18082 for LDR):

    iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8082

  2. Set domain root

    Grid Management > Grid Configuration > Root Domain Name

Configure Openstack:

  1. Edit /etc/glance/glance-api.conf. Make the following changes. Account information and bucket names are examples and will be different for your installation.

    # Which backend scheme should Glance use by default is not specified
    # in a request to add a new image to Glance? Known schemes are determined
    # by the known_stores option below.
    # Default: 'file'
    # List of which store classes and store class locations are
    # currently known to glance at startup.
    # Existing but disabled stores:
    # ============ S3 Store Options =============================
    # Address where the S3 authentication service lives
    # Valid schemes are 'http://' and 'https://'
    # If no scheme specified,  default to 'http://'
    # User to authenticate against the S3 authentication service
    # Auth key for the user authenticating against the
    # S3 authentication service
    # Container within the account that the account should use
    # for storing images in S3. Note that S3 has a flat namespace,
    # so you need a unique bucket name for your glance images. An
    # easy way to do this is append your AWS access key to "glance".
    # S3 buckets in AWS *must* be lowercased, so remember to lowercase
    # your AWS access key if you use it in your bucket name below!
    # Do we create the bucket if it does not exist?

  2. Restart Glance service: openstack-service restart glance

  3. Edit DNS or Hosts file: Create entry for bucket.hostname example:

  4. Test:

    Grab an image file to test – cirros is a very small image used for testing.
    source /root/keystonerc_admin
    glance image-create --name cirros --disk-format qcow2 --container-format bare --file /root/cirros.img

loading table of contents...