cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hogni Ingimarsson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-9330) Cloudstack creates a malformed meta-data file for baremetal instances
Date Wed, 30 Mar 2016 14:09:25 GMT
Hogni Ingimarsson created CLOUDSTACK-9330:
---------------------------------------------

             Summary: Cloudstack creates a malformed meta-data file for baremetal instances
                 Key: CLOUDSTACK-9330
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9330
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Baremetal
    Affects Versions: 4.2.0, 4.7.0
            Reporter: Hogni Ingimarsson


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message