[Openstack] Problem with adding up addresses to ext-net

Kim Hindart kim.hindart at citynetwork.se
Tue Nov 3 02:33:02 UTC 2015


Hello! 

We are experiencing problems when we want to make a subnet with external ip addresses. Just wanted to check if someone has had similar problem? 

[root at cc-control01-sto2 ~(keystone_admin)]# neutron --debug --os-endpoint-type=adminURL subnet-create --name ext-subnet-188-240-222-2-188-240-222-254 --allocation-pool start=188.240.222.2,end=188.240.222.254 --disable-dhcp --gateway 188.240.222.1 --dns-nameserver 185.2.152.101  --dns-nameserver 185.2.152.102  ext-net 188.240.222.0/24
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://10.101.0.101:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] content-length: 351 vary: X-Auth-Token connection: keep-alive date: Mon, 02 Nov 2015 14:50:30 GMT content-type: application/json x-openstack-request-id: req-35c31eaa-f932-46fd-80cd-2b63602b55a1
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "https://identity01.citycloud.com:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('shell = cliff.formatters.shell:ShellFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')
DEBUG: neutronclient.neutron.v2_0.subnet.CreateSubnet get_data(Namespace(allocation_pools=[{u'start': u'188.240.222.2', u'end': u'188.240.222.254'}], cidr=u'188.240.222.0/24', columns=[], disable_dhcp=True, dns_nameservers=[u'185.2.152.101', u'185.2.152.102'], enable_dhcp=False, formatter='table', gateway=u'188.240.222.1', host_routes=None, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, max_width=0, name=u'ext-subnet-188-240-222-2-188-240-222-254', network_id=u'ext-net', no_gateway=False, prefix='', prefixlen=None, request_format='json', subnetpool=None, tenant_id=None, variables=[]))
DEBUG: keystoneclient.auth.identity.v2 Making authentication request to https://identity01.citycloud.com:5000/v2.0/tokens
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://int.sto2.citycloud.com:9696/v2.0/networks.json?fields=id&name=ext-net -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}47c4eed15c6790066c3138cf5f96255b1b9dc179"
DEBUG: keystoneclient.session RESP: [200] date: Mon, 02 Nov 2015 14:50:30 GMT connection: keep-alive content-type: application/json; charset=UTF-8 content-length: 62 x-openstack-request-id: req-08cd3433-7f53-45c2-be3c-187c17b7d84b
RESP BODY: {"networks": [{"id": "3e4a9105-7b10-4186-a053-dc9373bba0f4"}]}

DEBUG: keystoneclient.session REQ: curl -g -i -X POST http://int.sto2.citycloud.com:9696/v2.0/subnets.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}47c4eed15c6790066c3138cf5f96255b1b9dc179" -d '{"subnet": {"ip_version": 4, "allocation_pools": [{"start": "188.240.222.2", "end": "188.240.222.254"}], "gateway_ip": "188.240.222.1", "name": "ext-subnet-188-240-222-2-188-240-222-254", "enable_dhcp": false, "network_id": "3e4a9105-7b10-4186-a053-dc9373bba0f4", "cidr": "188.240.222.0/24", "dns_nameservers": ["185.2.152.101", "185.2.152.102"]}}'
DEBUG: keystoneclient.session RESP:
DEBUG: neutronclient.v2_0.client Error message: {"NeutronError": {"message": "No more IP addresses available on network 3e4a9105-7b10-4186-a053-dc9373bba0f4.", "type": "IpAddressGenerationFailure", "detail": ""}}
ERROR: neutronclient.shell No more IP addresses available on network 3e4a9105-7b10-4186-a053-dc9373bba0f4.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 766, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 101, in run_command
    return cmd.run(known_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/common/command.py", line 29, in run
    return super(OpenStackCommand, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/common/command.py", line 35, in take_action
    return self.get_data(parsed_args)
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 475, in get_data
    data = obj_creator(body)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 597, in create_subnet
    return self.post(self.subnets_path, body=body)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 298, in post
    headers=headers, params=params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 211, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 185, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 70, in exception_handler_v20
    status_code=status_code)
IpAddressGenerationFailureClient: No more IP addresses available on network 3e4a9105-7b10-4186-a053-dc9373bba0f4.


Sent from my iPhone



More information about the Openstack mailing list