2014-12-19 16:34:50 |
Wayne Witzel III |
bug |
|
|
added bug |
2014-12-19 16:35:23 |
Wayne Witzel III |
branch linked |
|
lp:~wwitzel3/cloud-init/gce |
|
2014-12-19 16:44:21 |
Wayne Witzel III |
bug |
|
|
added subscriber Eric Snow |
2015-01-05 15:19:18 |
Wayne Witzel III |
cloud-init: status |
New |
In Progress |
|
2015-01-05 15:19:22 |
Wayne Witzel III |
cloud-init: assignee |
|
Wayne Witzel III (wwitzel3) |
|
2015-01-06 17:13:03 |
Launchpad Janitor |
branch linked |
|
lp:cloud-init |
|
2015-01-06 19:50:51 |
Wayne Witzel III |
cloud-init: status |
In Progress |
Fix Committed |
|
2015-01-07 16:00:37 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu) |
|
2015-01-07 16:00:45 |
Scott Moser |
cloud-init (Ubuntu): status |
New |
Confirmed |
|
2015-01-07 16:00:50 |
Scott Moser |
cloud-init (Ubuntu): importance |
Undecided |
High |
|
2015-01-07 16:00:58 |
Scott Moser |
nominated for series |
|
Ubuntu Vivid |
|
2015-01-07 16:00:58 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu Vivid) |
|
2015-01-07 16:00:58 |
Scott Moser |
nominated for series |
|
Ubuntu Utopic |
|
2015-01-07 16:00:58 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu Utopic) |
|
2015-01-07 16:00:58 |
Scott Moser |
nominated for series |
|
Ubuntu Trusty |
|
2015-01-07 16:00:58 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu Trusty) |
|
2015-01-07 16:01:08 |
Scott Moser |
cloud-init (Ubuntu Utopic): status |
New |
Confirmed |
|
2015-01-07 16:01:10 |
Scott Moser |
cloud-init (Ubuntu Trusty): status |
New |
Confirmed |
|
2015-01-07 16:01:14 |
Scott Moser |
cloud-init (Ubuntu Trusty): importance |
Undecided |
High |
|
2015-01-07 16:01:17 |
Scott Moser |
cloud-init (Ubuntu Utopic): importance |
Undecided |
Medium |
|
2015-02-11 04:12:37 |
Launchpad Janitor |
branch linked |
|
lp:~smoser/ubuntu/vivid/cloud-init/2to3 |
|
2015-02-11 21:49:14 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/cloud-init |
|
2015-02-13 19:08:10 |
Launchpad Janitor |
cloud-init (Ubuntu Vivid): status |
Confirmed |
Fix Released |
|
2015-02-18 20:07:47 |
Ben Howard |
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. |
[IMPACT] Due to limitations in GCE, binary user-data is mangled when sent as user-data.
[FIX] Allow user to declare binary encoding on user-data.
[VERIFICATION]
1. Create pristine image from -proposed
2. For step 6
3. Boot GCE instance w/ normal user-data, i.e.:
$ cat user-data
#cloud-config
ssh_import_id: [utlemming]
$ gcloud compute instances create <image from step 1> \
--metadata-from-file user-data=user-data
4. Confirm that user-data was parsed properly
5. GZIP user-data, and encode using base64:
gzip -c user-data.txt | base64 > user-data.b64
6. Boot GCE instance w/ user-data.b64 and character encoding meta-data
set:
$ gcloud compute instances create <image from step 1> \
--metadata-from-file user-data=user-data.b64 \
--metadata user-data-encoding=base64
7. Confirm that user-data was consumed; attach /var/log/cloud-init.log
to report.
[RISK] If a user sets the user-data-encoding to base64, but does not provide base64 data the instance will fail to provision. However, since the user has to explicitly setup the circumstances, it is low risk.
[ORIGINAL REPORT]
The GCE datasource uses the long hostname. Hostnames longer than 64 characters can break several tools.
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. |
|
2015-02-18 20:07:59 |
Ben Howard |
summary |
gce metadata api doesn't properly stream binary data |
[SRU] gce metadata api doesn't properly stream binary data |
|
2015-02-18 20:08:12 |
Ben Howard |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2015-02-26 17:46:44 |
Brian Murray |
cloud-init (Ubuntu Utopic): status |
Confirmed |
Fix Committed |
|
2015-02-26 17:46:49 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2015-02-26 17:46:54 |
Brian Murray |
tags |
|
verification-needed |
|
2015-02-26 17:57:06 |
Brian Murray |
cloud-init (Ubuntu Trusty): status |
Confirmed |
Fix Committed |
|
2015-02-26 19:08:42 |
Brian Murray |
nominated for series |
|
Ubuntu Precise |
|
2015-02-26 19:08:42 |
Brian Murray |
bug task added |
|
cloud-init (Ubuntu Precise) |
|
2015-02-26 19:09:23 |
Brian Murray |
cloud-init (Ubuntu Precise): status |
New |
Fix Committed |
|
2015-02-26 21:53:16 |
Ben Howard |
cloud-init (Ubuntu Precise): assignee |
|
Ben Howard (utlemming) |
|
2015-02-26 21:53:19 |
Ben Howard |
cloud-init (Ubuntu Utopic): assignee |
|
Ben Howard (utlemming) |
|
2015-02-26 21:53:22 |
Ben Howard |
cloud-init (Ubuntu Trusty): assignee |
|
Ben Howard (utlemming) |
|
2015-02-26 23:47:16 |
Ben Howard |
attachment added |
|
Log of Boot confirming patch. https://bugs.launchpad.net/cloud-init/+bug/1404311/+attachment/4328878/+files/cloud-init.log |
|
2015-02-26 23:49:43 |
Ben Howard |
attachment added |
|
Cloud-init.log for 12.04 https://bugs.launchpad.net/cloud-init/+bug/1404311/+attachment/4328879/+files/cloud-init.log |
|
2015-02-27 00:17:24 |
Ben Howard |
tags |
verification-needed |
verification-done |
|
2015-02-27 21:30:23 |
Launchpad Janitor |
branch linked |
|
lp:~smoser/ubuntu/vivid/cloud-init/snappy |
|
2015-03-09 01:51:52 |
Launchpad Janitor |
cloud-init (Ubuntu Utopic): status |
Fix Committed |
Fix Released |
|
2015-03-09 01:52:04 |
Scott Kitterman |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2015-03-09 01:53:55 |
Launchpad Janitor |
cloud-init (Ubuntu Trusty): status |
Fix Committed |
Fix Released |
|
2015-03-09 01:54:48 |
Launchpad Janitor |
cloud-init (Ubuntu Precise): status |
Fix Committed |
Fix Released |
|
2015-04-01 15:07:33 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/trusty/cloud-init |
|
2015-04-01 15:13:43 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/utopic/cloud-init |
|
2015-04-01 15:16:38 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/precise-proposed/cloud-init |
|
2016-08-10 14:59:32 |
Scott Moser |
cloud-init: status |
Fix Committed |
Fix Released |
|
2023-05-10 05:17:38 |
James Falcon |
bug watch added |
|
https://github.com/canonical/cloud-init/issues/2514 |
|