Skip to content
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

Partial VLAN support refactor #98

Closed
wants to merge 7 commits into from

Conversation

vide
Copy link
Contributor

@vide vide commented Mar 27, 2015

With this refactor I implement the idea that the provider should just check for the right syntax (i.e. all the needed options are passed to it) instead of trying to reimplemen what Debian vlan-interfaces already does.
I've already talked a little about this with @adrienthebo on IRC and he seemed to agree with me, but he told me too that the real active mantainer at the moment is @jhoblitt . So, @jhoblitt , are you OK with this change?
Thanks!

Davide Ferrari added 6 commits March 27, 2015 18:46
With this refactor I implement the idea that the provider
should just check for the right syntax (i.e. all the needed
options are passed to it) instead of trying to reimplement
what Debian *vlan-interfaces* already does.
I removed the old eth0.1 test because it does not really test anything new, because the vlan-raw-device option should be present only if specified and not always. Maybe I should add another eth0.1 test to see if the vlan regexp raise an error when a mispelled vlan is found
@vide
Copy link
Contributor Author

vide commented Mar 27, 2015

Sorry, I'm trying to fix the Travis build, don't know what's happening there :(

@vide
Copy link
Contributor Author

vide commented Mar 27, 2015

I have no idea about why Travis is complaining about augeas in network::bond, I didn't touch anything of it. Any idea?

@nibalizer
Copy link
Member

I retried the tests and they still fail

@nibalizer
Copy link
Member

Running the tests manually, its failing on master right now

@jhoblitt
Copy link
Member

@adrienthebo thanks for throwing me under the bus. :)

I need to think about this some more (read, I need to sit down and play with it) but I think it would be a real shame if vlan interface setup required different syntax between EL and Debian.

@vide
Copy link
Contributor Author

vide commented Apr 1, 2015

@jhoblitt actually there are still no differences between a vlan interfaces under Debian and RHEL. The only thing I changed is the interfaces names accepted as being VLANs (vlanNN + ethX.NN) and that we don't try to reimplement (poorly) what vlan-interfaces already does, like for example trying to figure out what the raw device is, because it's Debian job to do it and we must support that a user could specify a different raw device from the one guessed from the name (which is something Debian's vlan-interfaces supports, just take a look at man 5 vlan-interfaces). To resume, my approach is: don't reimplement, just check syntax and throw errors if something is wrong in the parameters we received.

Still no clue why tests are failing, though. :(

@jyaworski
Copy link
Member

Hello:

What's the status of this PR?

@vide
Copy link
Contributor Author

vide commented Jan 27, 2016

@jyaworski I don't know and, to be honest, I don't care. We are still using our fork that meets our needs, feel free to use it as well, if I have more spare time I'll try to resync with the current state of puppet-network module and see if it still fits. I had no response to my lengthy post in almost a year now, so I guess the maintainer is not interested in this PR anyway (sorry for being this passive-aggressive but I can't help)

@jyaworski
Copy link
Member

@vide no problem. I became a collaborator recently and I'm checking old PRs. Feel free to update; you'll get a response this time.

@igalic
Copy link
Contributor

igalic commented Mar 9, 2016

💜 @jyaworski

if provider.options["vlan-raw-device"]
stanza << "vlan-raw-device #{provider.options["vlan-raw-device"]}"
else
vlan_range_regex = %r[\d{1,3}|40[0-9][0-5]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vide can you explain this regex? If I'm reading it right it looks for three consecutive digits or four in a weird range between 4000-4095, excepting when the last digit is 6-9. Vlan 4006 should be valid, for instance. Then in your test you use vlan 4500 as an ID. What am I missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was the regexp used before #116 was fixed, I didn't write it :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume your fork has that updated regex then, but the rest remains the same? If we take it in now, it would be nice to know it matches your fork, since you've given that a field test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rnelson0 well my fork is quite old and it needs a rebase against current master to be useful at all. If thwere's real interesting in accepting this feature and merging it, I could work on it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vide Yes, we are definitely interested in moving this module forward and would appreciate any and all help!

@jyaworski
Copy link
Member

Ping @vide.

@bastelfreak
Copy link
Member

Hi @vide, could you please have a look and rebase?

@vide
Copy link
Contributor Author

vide commented Jun 6, 2016

@bastelfreak @jyaworski sorry for the delay, I was very busy :( I'll do my best to have the PR rebased this week!

@rski
Copy link
Member

rski commented Jun 7, 2016

Closing since the other pr was merged

@rski rski closed this Jun 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants