-
Notifications
You must be signed in to change notification settings - Fork 59
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
Bump Ruby, for cleanup_memberships() method to support both String and Symbol keys #238
Comments
Thanks for reporting this. We'll prioritize it appropriately. Unfortunately, we have a ton of work, so it won't be a very high priority... so if you want this resolved rapidly, developing submitting a PR that resolves the issue is probably your best course of action. |
I would love to! But Otherwise, here would be the commands I would run, including the patch to apply:
I hope this can help! |
Thanks @bgandon |
The issue was originally reported and analysed in Slack:
https://cloudfoundry.slack.com/archives/C02HPPYQ2/p1630547568034700
Original stack trace
Bug analysis
This is an issue in the rescue code when VM instance (called “server” in OpenStack parlance) creation fails here:
https://github.com/cloudfoundry/bosh-openstack-cpi-release/blob/master/src/bosh_openstack_cpi/lib/cloud/openstack/server.rb#L29
The bug happens here:
https://github.com/cloudfoundry/bosh-openstack-cpi-release/blob/master/src/bosh_openstack_cpi/lib/cloud/openstack/loadbalancer_configurator.rb#L69
Only Ruby 2.7 has added support for the
.start_with?()
method on the Symbol class. But the OpenStack CPI ships with Ruby an old v2.4.9…The
server_metadata
(also calledserver_tags
inserver.rb
) hash is supposed to contain both strings and symbols as keys. So, thecleanup_memberships()
method inloadbalancer_configurator.rb
should support both.Bumping the Ruby dependency in the BOSH release to a recent Ruby 2.7+ version would probably fix the issue.
The text was updated successfully, but these errors were encountered: