Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9330

Cloudstack creates a malformed meta-data file for baremetal instances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.2.0, 4.7.0
    • None
    • Baremetal
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      When cloudstack creates the meta-data file for a baremetal instance it parses the filename wrong which results in a file looking like this
      root@baremetal-bootserver:~# cat /var/www/html/metadata/<IP>/meta-data
      s
      e
      r
      v
      i
      c
      -
      o
      f
      n
      g
      a
      l
      b
      t
      y
      z
      p
      4
      h
      m
      u
      d
      k

      This is due to a bug located here:
      https://github.com/apache/cloudstack/blob/4.7/scripts/network/ping/baremetal_user_data.py#L96

      Where the function writeIfNotHere expects an array of strings and not just a single string.

      Github pull request: https://github.com/apache/cloudstack/pull/1456

      Attachments

        Activity

          People

            Unassigned Unassigned
            hognir Hogni Ingimarsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: