jenkinsci/openstack-cloud-plugin

Unable to get floating ip pools

Closed this issue · 5 comments

Jenkins 2.308 over docker
Openstack-cloud-plugin version tried 2.51-2.60

please note that over ver 2.51 i have managed to get the pool list but apply/save buttons are broken because of old version of the plugin.

The error causing the provisioned instance to spin up but without floating ip

WhatsApp Image 2021-11-14 at 11 59 21 (1)
111

Thanks for the report!

What exact version of the plugin produced this specific stacktrace? Also, what are your networks and routers details? I speculate you might be running into this as some of your routers are not up, or connected to an external gateway. If confirmed this is the case, this will be reflected in the plugin.

@olivergondza,
It happened at ver 2.60
there is no problem with the network - also, ver 2.51 did managed to view the float ip pools.

@ssibahi, between 2.51 and 2.52 the plugin have switched from deprecated nova networking to neutron networking. For some reason, new code does not identify your pools correctly. However, you will have to provide the details of what your network and router details are to get this fixed.

Please attach result of this diagnosing script:

Jenkins.instance.clouds.each {
  if (it instanceof jenkins.plugins.openstack.compute.JCloudsCloud) {
    client = it.openstack.@clientProvider.get()
    println "Routers: " + client.networking().router().list()
    println "Networks: " + client.networking().network().list()
  }
}

Confirmed by other user, that this happens when there are routers without external_gateway_info. So in https://github.com/jenkinsci/openstack-cloud-plugin/blob/parent-2.60/plugin/src/main/java/jenkins/plugins/openstack/compute/internal/Openstack.java#L332, r.getExternalGatewayInfo() is null.

Released as 2.61