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

dvportgroup names should be referenced by key #92

Closed
nward opened this issue Jun 20, 2017 · 4 comments
Closed

dvportgroup names should be referenced by key #92

nward opened this issue Jun 20, 2017 · 4 comments

Comments

@nward
Copy link

nward commented Jun 20, 2017

See http://projects.theforeman.org/issues/19623 for back story and a possible patch.

Happy to submit one myself if you'd like.

(I am not the author of the above link, but, have come across the same problem)

@jrgarcia
Copy link
Contributor

@nward Feel free to submit a PR. I don't mind doing it, but it may be a while before I get a chance to look at that backstory and patch.

@wiad
Copy link
Contributor

wiad commented Jul 5, 2017

I am the OP of the bug report on theforemans bug tracker, submitting a PR of my solution to this 'problem'.

@wiad
Copy link
Contributor

wiad commented Jul 5, 2017

The bug report at theforeman is kind of sprawling, I will try to explain the problem in a more condensed form:
My problem was that I was getting different identifiers for my vmware dv portgroups in Foreman - when I created a machine the network was identified with one value (dvportgroup-XX) but when I tried to edit the machine validation failed since the dvportgroup was then identified with a different value. After a lot of investigating and checking with vmware, it is actually possible to have different identifiers (i.e. different key and ref attribute) for the same dvportgroup under certain circumstances - after a migration of vcenter for example. So the purpose of this patch is to use the same source (i.e. the 'key' attribute) to identify a dvportgroup, as opposed to how it is currently, where the key attribute is used in one place and the ref attribute in another.

@jrgarcia
Copy link
Contributor

jrgarcia commented Jul 5, 2017

Thanks for the "condensed" explanation!

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

No branches or pull requests

3 participants