maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #01776
Re: "Static IP Address with this Ip already exists." with 1.6+bzr2496
On Fri, Jul 4, 2014 at 12:14 AM, Julian Edwards <
julian.edwards@xxxxxxxxxxxxx> wrote:
> > I can bootstrap just fine, anytime. But juju deploy <something> always
> > fails with the above provisioning error.
>
> I cannot recreate this, everything seems to work fine when I do a
> bootstrap and then a simple "juju deploy mysql". What, exactly, is a
> "cloud deployment" and what is it doing with maas?
>
>
It doesn't matter anymore, since a simple bootstrap + deploy reproduces it
for me.
> Since we don't overlap much I'll try and suggest a few things:
>
> - what version of juju? I am using the stock one in trusty (1.18.4)
>
Was on 1.19.4, will upgrade to 1.20.0 now
> - Is that error in the maas.log?
>
Yes:
ERROR 2014-07-03 19:19:13,917 maasserver Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py",
line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/decorators/vary.py",
line 19, in inner_func
response = func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/piston/resource.py", line 167, in
__call__
result = self.error_handler(e, request, meth, em_format)
File "/usr/lib/python2.7/dist-packages/piston/resource.py", line 165, in
__call__
result = meth(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/maasserver/api_support.py", line
189, in dispatch
return function(self, request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/maasserver/api.py", line 454, in
start
[system_id], request.user, user_data=user_data)
File "/usr/lib/python2.7/dist-packages/maasserver/models/node.py", line
416, in start_nodes
tasks.extend(node.claim_static_ips())
File "/usr/lib/python2.7/dist-packages/maasserver/models/node.py", line
615, in claim_static_ips
tasks = self._create_tasks_for_static_ips()
File "/usr/lib/python2.7/dist-packages/maasserver/models/node.py", line
648, in _create_tasks_for_static_ips
sip = mac.claim_static_ip()
File "/usr/lib/python2.7/dist-packages/maasserver/models/macaddress.py",
line 142, in claim_static_ip
sip = StaticIPAddress.objects.allocate_new(low, high, alloc_type)
File
"/usr/lib/python2.7/dist-packages/maasserver/models/staticipaddress.py",
line 100, in allocate_new
ipaddress.save()
File "/usr/lib/python2.7/dist-packages/maasserver/models/cleansave.py",
line 37, in save
self.full_clean()
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line
950, in full_clean
raise ValidationError(errors)
ValidationError: {'ip': [u'Static IP Address with this Ip already exists.']}
> - can you see what juju is sending to maas to get that error back?
>
I'll do that.
> - what host maps exist in the leases file for the static range you
> defined?
>
One:
host 10.0.5.100 {
dynamic;
hardware ethernet 52:54:00:fd:2b:88;
fixed-address 10.0.5.100;
}
My static range is 10.0.5.50-100
> Can you destroy the env and try again, too, just to make sure.
>
>
Yep
Follow ups
References