Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
4.2.0, 4.7.0
-
None
-
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