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

WIP: add select_nic method to gridscale fog-extension concern. #2

Merged
merged 2 commits into from
Aug 27, 2019

Conversation

rbns
Copy link
Contributor

@rbns rbns commented Aug 23, 2019

this currently creates another error

NoMethodError: undefined method `[]' for nil:NilClass

with my test setup, as fog-gridscale doesn't set the "interfaces" attribute, which is used by foreman here:
https://github.com/theforeman/foreman/blob/c23a83afe9fcd6d2f25d261eb0c303a7cf337ffa/app/models/concerns/orchestration/compute.rb#L339

just returning nil in select_nic also doesn't work, as foreman aborts the machine creation with

Could not find virtual machine network interface matching $hostname

this could be related to my test-setup, though.

Ruben Schuller added 2 commits August 23, 2019 16:28
NB: this currently creates an other error with my test setup,
as fog-gridscale doesn't set the "interfaces" attribute,
which is used by foreman here:
https://github.com/theforeman/foreman/blob/c23a83afe9fcd6d2f25d261eb0c303a7cf337ffa/app/models/concerns/orchestration/compute.rb#L339
see according commit for fog-gridscale
rbns pushed a commit to bytemine/fog-gridscale that referenced this pull request Aug 26, 2019
foreman uses this during creation of servers
as described here:

gridscale/foreman-gridscale#2
@fkr fkr merged commit 564d7a1 into gridscale:develop Aug 27, 2019
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.

None yet

2 participants