← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1284733] [NEW] metadata injected at nova boot does not arrive in /meta.js

 

Public bug reported:

The command:

   nova boot --flavor $FLAV --key_name $KEY --image $IMG --meta foo=bar
meta1

should inject a file into `/meta.js` with content `{"foo":"bar"}`.
Currently in devstack this doesn't work.

>From nova compute logs:

    2014-02-24 13:09:57 57751 DEBUG nova.virt.disk.api [req-609e1e4a-0773-4fc9-8bf6-f151f4a4e26f 10616464705681 10318294446568] Inject metadata fs=<nova.virt.disk.vfs.localfs.VFSLocalFS object at 0x53e0dd0> metadata={u'foo': u'bar'} _inject_metadata_into_fs /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py:457
    2014-02-24 13:09:57 57751 WARNING nova.virt.disk.api [req-609e1e4a-0773-4fc9-8bf6-f151f4a4e26f 10616464705681 10318294446568] Ignoring error injecting metadata into image (string indices must be integers)

It looks as if the data is arriving to n-cpu as:

    metadata={u'foo': u'bar'}

But n-cpu is expecting:

    metadata = [{"key": "foo", "value": "bar"}]

** Affects: nova
     Importance: Undecided
         Status: New

** Summary changed:

- metadata injection from nova boot does not result in /meta.js
+ metadata injected at nova boot does not arrive in /meta.js

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1284733

Title:
  metadata injected at nova boot does not arrive in /meta.js

Status in OpenStack Compute (Nova):
  New

Bug description:
  The command:

     nova boot --flavor $FLAV --key_name $KEY --image $IMG --meta
  foo=bar meta1

  should inject a file into `/meta.js` with content `{"foo":"bar"}`.
  Currently in devstack this doesn't work.

  From nova compute logs:

      2014-02-24 13:09:57 57751 DEBUG nova.virt.disk.api [req-609e1e4a-0773-4fc9-8bf6-f151f4a4e26f 10616464705681 10318294446568] Inject metadata fs=<nova.virt.disk.vfs.localfs.VFSLocalFS object at 0x53e0dd0> metadata={u'foo': u'bar'} _inject_metadata_into_fs /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py:457
      2014-02-24 13:09:57 57751 WARNING nova.virt.disk.api [req-609e1e4a-0773-4fc9-8bf6-f151f4a4e26f 10616464705681 10318294446568] Ignoring error injecting metadata into image (string indices must be integers)

  It looks as if the data is arriving to n-cpu as:

      metadata={u'foo': u'bar'}

  But n-cpu is expecting:

      metadata = [{"key": "foo", "value": "bar"}]

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


Follow ups

References