8000 Invalid host data in /etc/hosts · Issue #38 · Xceptance/XLT-Packer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Invalid host data in /etc/hosts #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jowerner opened this issue Mar 11, 2025 · 0 comments
Open

Invalid host data in /etc/hosts #38

jowerner opened this issue Mar 11, 2025 · 0 comments
Labels

Comments

@jowerner
Copy link
Contributor

Typically, "user data" containing start-up parameters can be passed to an image. For XLT images, the user data format is JSON. See below for a user data example:

{"acPassword":"abc","hostData":"1.1.1.1 foo\n2.2.2.2 bar"}

The password is then set in the XLT configuration and the host data is appended to /etc/hosts. However, if hostData is empty, the hosts file gets corrupted and looks like this:

# User data entries START
{"acPassword":"abc","hostData":""}
# User data entries END

Note that this happened with an AWS image, but it is likely that all other images are affected similarly.

@jowerner jowerner added the bug label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant
0