Closed grenzr closed 10 years ago
Ryan, do you have any ideas on how we might make the UX nice? Can bosh-bootstrap detect if a user will want to provide a net_id in advance? Is there something in their OpenStack API that we can poll - a list of net_ids?
Nic
Hey Nic,
I haven't tested this, but thought I'd throw you a bone before I disappear for the evening:
curl -d '{"auth": {"tenantName": "xxx", "passwordCredentials":{"username": "xxx", "password": "xxx"}}}' -H "Content-type: application/json" http://xxx.xxx.xxx.xxx:35357/v2.0/tokens
Use this to get yourself a token from Keystone, and then:
curl http://<API_ip>:9696/v2.0/networks -X GET -H "X-Auth-Token: <big_massive_token>" | python -m json.tool
Will give you a nice list of networks. id property = net_id :)
I like the idea of listing the possible networks and selecting from one (or none to leave it undefined in the manifest)
Ryan
As we're using fog, we can check if net = Fog::Network[:openstack]
doesn't fail, that would mean that OpenStack is using Neutron. Then we can easily retrieve the network list using fog method 'net.networks'.
@frodenas @grenzr do you know how to connection.addresses.create
when the floating IPs are attached to Neutron networks?
@drnic I believe is the same api call (don't have a Neutron env right now). OpenStack will do the work in the backstage whatever networking component you're using.
@drnic I had the same issue with the inception server and could quick-fix it with the following create call:
connection.addresses.create(:pool => 'pool_name')
I will probably soon have to do the same with bosh
Work has started during today. See https://github.com/cloudfoundry-community/cyoi/pull/13
PR for this work is in https://github.com/cloudfoundry-community/bosh-bootstrap/pull/263
v0.14 has support for openstack neutron & aws vpc now
I'm trying to boot a microbosh in Openstack, and it would be nice if it were possible to configure (perhaps as a switch on the bosh-bootstrap command line) net_id in the generated micro_bosh.yml file.
Reason is Openstack is incorrectly assigning an ip from the floating ip range, and then bosh micro deploy fails to assign the floating ip later in the bosh-bootstrap execution.
Fixing a net_id in micro_bosh.yml as follows resolves my problem: