-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/openstack Add value_specs for routers #4898
Conversation
c440eb6
to
2474f60
Compare
@jtopjian ping. Added driver_opts also here. |
|
||
func routerDriverOpts(d *schema.ResourceData) map[string]string { | ||
m := make(map[string]string) | ||
for key, val := range d.Get("driver_opts").(map[string]interface{}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this throw an error if driver_opts is empty? I'm just being overly cautious from the bug I caused last week by doing an unsafe type cast.
I wasn't able to trigger the bug until I actually compiled Terraform and ran it with a new configuration. Acceptance tests and existing configurations failed to trigger the bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesnt, verified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for double-checking :)
Does this supersede #4878? |
No. Distributed router is official open stack feature On 9 Feb 2016 04:10 +0100, Joe Topjiannotifications@github.com, wrote:
|
My mistake! Sorry, I got your two features tangled up. |
@phinze Is the WIP label not appropriate here? Is there a better way to label something as "waiting on the underlying library to have support added first"? Edit: Nevermind, I've seen the label has been removed in other PRs, so it looks like you're doing a cleanup 😄 |
@jtopjian yep these changes are to move us towards the new pull request lifecycle guidelines. We're removing the label in favor of a PR title prefix, as that is author-modifiable. Since we're asking authors to use |
I've updated PR quite a bit, after implementing proposals from this PR rackspace/gophercloud#526 |
@Fodoj Nice! A few thoughts:
Also, you'll have to update the vendor deps before we can get this merged in. That should also make Travis happy. |
|
@jtopjian I updated deps and added some fixes. Tests still fail on Travis despite the fact that dependency is there. Locally I can compile and run tests just fine. Any ideas what went wrong here? |
It looks like a lot more dependencies got pulled in than just gophercloud -- or are they all dependent on the changes you made? Can you try reverting all dependencies and just doing:
Then Let's start there and see what happens. If there are still errors triggered, I'll download this PR as-is and see if I can spot the error. 😄 |
BTW: everything else sounds good! Thank you for addressing it all. |
@jtopjian thanks, I updated PR, specs are green now! |
@Fodoj There's still a very high number of vendor files being changed. I would imagine now that the Gophercloud dep have been updated to the latest Gophercloud commit, then only Maybe starting with a clean branch based off of master, applying the changes to Sorry for the troubles with getting a clean commit... let me know if you need a hand. |
@jtopjian ping :) |
Nice! Looks like all acceptance tests are passing, so I'm going to go ahead and merge this. 🎉 |
…er resources. Seems to be a K5 modification, as not native Openstack functionality
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
There is a "hidden" parameter - router type. Either exclusive or shared (so exclusive will get a separate VM for sure, while shared will be shared with other routers on same tenants). The only actual reference (except testing it on live system) I could find is this blog post: https://blogs.vmware.com/openstack/openstack-networking-with-vmware-nsx-part-2/ It could be that this feature is VIO only.
Depends on rackspace/gophercloud#526