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

Cloudstack creates a malformed meta-data file for baremetal instances

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.2.0, 4.7.0
    • Fix Version/s: None
    • Component/s: Baremetal
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      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

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

              Dates

              • Created:
                Updated: