Can't change node name due to unrelated error

Bug #1506909 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Gavin Panella

Bug Description

cko) Chrome/46.0.2490.71 Safari/537.36"
2015-10-16 23:21:31 [HTTPChannel,14,192.168.10.1] Opening connection with IPv4Address(TCP, '192.168.10.1', 35037)
2015-10-16 23:21:46 [-] Error on request (20) node.update: invalid literal for int() with base 10: '1.20'
        Traceback (most recent call last):
          File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
            self.__bootstrap_inner()
          File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
            self.run()
          File "/usr/lib/python2.7/threading.py", line 763, in run
            self.__target(*self.__args, **self.__kwargs)
          File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/twisted.py", line 791, in _worker
            return super(ThreadPool, self)._worker()
        --- <exception caught here> ---
          File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 191, in _worker
            result = context.call(ctx, function, *args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
            return func(*args,**kw)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/orm.py", line 480, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/orm.py", line 307, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/db/transaction.py", line 339, in inner
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/websockets/handlers/node.py", line 617, in update
            data = super(NodeHandler, self).update(params)
          File "/usr/lib/python2.7/dist-packages/maasserver/websockets/base.py", line 386, in update
            obj = form.save()
          File "/usr/lib/python2.7/dist-packages/maasserver/forms.py", line 1108, in save
            node.add_physical_interface(mac)
          File "/usr/lib/python2.7/dist-packages/maasserver/models/node.py", line 908, in add_physical_interface
            name = self.get_next_ifname()
          File "/usr/lib/python2.7/dist-packages/maasserver/models/node.py", line 772, in get_next_ifname
            used_ethX.append(int(ifname[3:]))
        exceptions.ValueError: invalid literal for int() with base 10: '1.20'

Related branches

Changed in maas:
milestone: none → 1.9.0
importance: Undecided → Critical
Gavin Panella (allenap)
Changed in maas:
assignee: nobody → Gavin Panella (allenap)
status: New → In Progress
Gavin Panella (allenap)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.