← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1404311] Re: gce metadata api doesn't properly stream binary data

 

** Also affects: cloud-init (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: cloud-init (Ubuntu)
       Status: New => Confirmed

** Changed in: cloud-init (Ubuntu)
   Importance: Undecided => High

** Also affects: cloud-init (Ubuntu Vivid)
   Importance: High
       Status: Confirmed

** Also affects: cloud-init (Ubuntu Utopic)
   Importance: Undecided
       Status: New

** Also affects: cloud-init (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Changed in: cloud-init (Ubuntu Utopic)
       Status: New => Confirmed

** Changed in: cloud-init (Ubuntu Trusty)
       Status: New => Confirmed

** Changed in: cloud-init (Ubuntu Trusty)
   Importance: Undecided => High

** Changed in: cloud-init (Ubuntu Utopic)
   Importance: Undecided => Medium

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

Title:
  gce metadata api doesn't properly stream binary data

Status in Init scripts for use on cloud images:
  Fix Committed
Status in cloud-init package in Ubuntu:
  Confirmed
Status in cloud-init source package in Trusty:
  Confirmed
Status in cloud-init source package in Utopic:
  Confirmed
Status in cloud-init source package in Vivid:
  Confirmed

Bug description:
  While implementing the GCE provider for Juju we found that the
  metadata API breaks when trying to retrieve certain binary formats. In
  our case the gz of user-data. The API only streams out the first 5
  bytes, encounters what it preceives as a EOF/nil character and
  truncates the rest of the request.

  We've opened an issue with Google directly, but in the meantime a work
  around is to allow an explicit encoding to be set for the user-data
  field of the GCE metadata. This will allow use to base64 encode the
  binary blob, which the API returns the entire contents of without
  issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1404311/+subscriptions


References