← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1132755] Re: No download notification when using v2 api and image is cached

 

** Changed in: glance
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1132755

Title:
  No download notification when using v2 api and image is cached

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  When an image is downloaded using the v2 api for the first time:

  
  glance  --os-image-api-version 2 --os-username glance --os-password XXX --os-tenant-name service  --os-auth-url http://localhost:5000/v2.0 image-download 7b59ff56-b2b3-40b0-b77f-f036d5b34559

  
  A notification is generated:

  INFO:glance.notifier.notify_log:{'event_type': 'image.send',
  'timestamp': '2013-02-25 11:17:43.404117', 'message_id':
  '281c91ef-2338-4c20-9619-fb7cad041dc9', 'priority': 'INFO',
  'publisher_id': 'server-1361453429-az-2-region-a-geo-1', 'payload':
  {'receiver_tenant_id': u'd206a6894a10485da3d91a77afd78457',
  'destination_ip': '10.6.51.191', 'bytes_sent': 730, 'image_id':
  u'7b59ff56-b2b3-40b0-b77f-f036d5b34559', 'receiver_user_id':
  u'f003c7d2671a45b89709e0d8e68ec79b', 'owner_id':
  u'd206a6894a10485da3d91a77afd78457'}}

  However a subsequent v2 call (now that the image is cached) does not
  generate a notification.

  A subsequent v1 call does successfully generate a notification:

  glance  --os-image-api-version 1 --os-username glance --os-password
  XXX --os-tenant-name service  --os-auth-url http://localhost:5000/v2.0
  image-download 7b59ff56-b2b3-40b0-b77f-f036d5b34559

  INFO:glance.notifier.notify_log:{'event_type': 'image.send',
  'timestamp': '2013-02-25 11:19:39.968931', 'message_id':
  '282e87d2-d001-4f1d-b526-52d5a35417cd', 'priority': 'INFO',
  'publisher_id': 'server-1361453429-az-2-region-a-geo-1', 'payload':
  {'receiver_tenant_id': u'd206a6894a10485da3d91a77afd78457',
  'destination_ip': '10.6.51.191', 'bytes_sent': 730, 'image_id':
  u'7b59ff56-b2b3-40b0-b77f-f036d5b34559', 'receiver_user_id':
  u'f003c7d2671a45b89709e0d8e68ec79b', 'owner_id':
  u'd206a6894a10485da3d91a77afd78457'}}

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1132755/+subscriptions