def update_metadata_image(sdc_url, token, vdc, product, metadata_image):
    """It updates the product metadada for image filtered
    :param glance_url: the sdc url
    :param token: the valid token
    :param metadata_image: image name
    :param product: image name

    """
    print 'update metadata' 
    print product
    url = sdc_url+ "/catalog/product/"+product
    print url
    headers = {'X-Auth-Token': token, 'Tenant-Id': vdc,
               'Accept': "application/json",
               'Content-Type': 'application/json'}
    print headers
    response = http.get(url, headers)
    print url
    if response.status != 200:
        print 'error to get the product ' + str(response.status)
        return
    else:
       
        payload = '{"key":"image","value":"' + metadata_image + '"}'
        print payload
        response = http.put(url + "/metadatas/image", headers, payload)
        print response
        if response.status != 200:
            print 'error to update the product ' + product \
                  + ' ' + str(response.status)
It updates the product metadada for image filtered
    :param glance_url: the sdc url
    :param token: the valid token
    :param metadata_image: image name
    :param product: image name