-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Malformed debian interfaces file - duplicated iface lines? #44
Comments
@nzhook sorry for the delay in responding to this, I've been busy and got bad about responding to issues in a timely manner. With respect to this issue, could you clarify what's happening with eth0? I don't quite understand what you mean by "error is related to the eth0 line which is configured on the server rather than puppet". (I think my parser is faulty) |
After commenting out the 'check raise_malformed if Instance[name] and Instance[name].family' and running for a while, puppet will continue as normal. However after a while it starts duplicating lines and or stanzas, eg. it will end up doing this to the file:
So while I initially thought it maybe related to the stanza which was configured manually and not by puppet (which is the answer you were looking for), it looks like the parser is seing the line twice and then duplicates it somehow. NOTE: The file above does not happen if the line is still enabled, it will just error as described. |
I'm running into this too. Here is my interfaces file:
Here is the output of puppet:
The interfaces file seems valid to me, and the system boots properly with networking. |
I think the problem is with the parser not recognizing the |
not sure if @jcharaoui's case is the same the bug reporter is having, but it is definitely an issue we always run into. |
We have an issue where the network_config is giving a malformed debian interfaces file when reading the interfaces file.
Ive added some additional debugging into the code and narrowed it down to the code thinking it has seen an interface line twice
However, the line only occurs once in the file but seems to be seen twice.
It also does not happen on a regular basis, running it manually using puppet agent --test seems to work every time, but automated runs will fail.
puppet config:
Note, however that these add fine, and the error is related to the eth0 line which is configured on the server rather than puppet:
As I mentioned this does work some of the time, so the file has been modified to look like this:
My extra debugging determined that the line which originally set Instance[name] and Instance[name].family was:
iface eth0 inet static
and the line being processed when the if statement is tripped is:
iface eth0 inet static
The text was updated successfully, but these errors were encountered: