Unable to get floating ip pools
Closed this issue · 5 comments
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