Public bug reported:

Running

Description:    Ubuntu 12.04 LTS
Release:        12.04

maas:
  Installed: 0.1+bzr482+dfsg-0ubuntu1
  Candidate: 0.1+bzr482+dfsg-0ubuntu1
  Version table:
 *** 0.1+bzr482+dfsg-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status


When I trying to add a node (the first one) on the maas web interface. The 
error: Unable to create Node: timed out shows up.

But, when I use the command cobbler system list the node was created.

/var/log/cobbler/cobbler.log

Thu Apr 26 21:41:10 2012 - DEBUG | authorize; ['maas', 'xedit_system', 
'SCpkM/PnUKq5QwY3XqXmJX8FuEHKbZhQtQ==', None, True]
Thu Apr 26 21:41:10 2012 - DEBUG | REMOTE maas authorization result: True; 
user(?)
Thu Apr 26 21:41:10 2012 - DEBUG | get_item; ['system', 
'node-10a9da2a-900a-11e1-8ed2-0050568b4c67']
Thu Apr 26 21:41:10 2012 - DEBUG | done with get_item; ['system', 
'node-10a9da2a-900a-11e1-8ed2-0050568b4c67']
Thu Apr 26 21:41:10 2012 - INFO | Exception occured: <class 
'cobbler.cexceptions.CX'>
Thu Apr 26 21:41:10 2012 - INFO | Exception value: 'internal error, unknown 
system name node-10a9da2a-900a-11e1-8ed2-0050568b4c67'
Thu Apr 26 21:41:10 2012 - INFO | Exception Info:
  File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 1944, in 
_dispatch
    return method_handle(*params)
   File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 873, in 
xapi_object_edit
    handle = self.get_item_handle(object_type, object_name)
   File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 655, in 
get_item_handle
    raise CX("internal error, unknown %s name %s" % (what,name))

Thu Apr 26 21:41:10 2012 - DEBUG | authorize; ['maas', 'xedit_system', 
'SCpkM/PnUKq5QwY3XqXmJX8FuEHKbZhQtQ==', None, True]
Thu Apr 26 21:41:10 2012 - DEBUG | REMOTE maas authorization result: True; 
user(?)
Thu Apr 26 21:41:10 2012 - DEBUG | get_item; ['system', 
'node-10a9da2a-900a-11e1-8ed2-0050568b4c67']
Thu Apr 26 21:41:10 2012 - DEBUG | done with get_item; ['system', 
'node-10a9da2a-900a-11e1-8ed2-0050568b4c67']
Thu Apr 26 21:41:10 2012 - INFO | Exception occured: <class 
'cobbler.cexceptions.CX'>
Thu Apr 26 21:41:10 2012 - INFO | Exception value: 'internal error, unknown 
system name node-10a9da2a-900a-11e1-8ed2-0050568b4c67'
Thu Apr 26 21:41:10 2012 - INFO | Exception Info:
  File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 862, in 
xapi_object_edit
    handle = self.get_item_handle(object_type, object_name)
   File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 655, in 
get_item_handle
    raise CX("internal error, unknown %s name %s" % (what,name))

Thu Apr 26 21:41:10 2012 - INFO | REMOTE new_item(system); user(maas)
Thu Apr 26 21:41:10 2012 - DEBUG | authorize; ['maas', 'new_system', None, 
None, True]
Thu Apr 26 21:41:10 2012 - DEBUG | REMOTE maas authorization result: True; 
user(?)
Thu Apr 26 21:41:10 2012 - INFO | REMOTE modify_item(system); user(maas); 
object_id(___NEW___system::NjdLyADncRBJoEWN9bo9nrUYc6V12zkzyg==); 
attribute(profile)
Thu Apr 26 21:41:10 2012 - DEBUG | authorize; ['maas', 'modify_system', 
<cobbler.item_system.System instance at 0x18b7ea8>, 'profile', True]
Thu Apr 26 21:41:10 2012 - DEBUG | REMOTE maas authorization result: True; 
user(?)
Thu Apr 26 21:41:10 2012 - INFO | REMOTE modify_item(system); user(maas); 
object_id(___NEW___system::NjdLyADncRBJoEWN9bo9nrUYc6V12zkzyg==); 
attribute(hostname)
Thu Apr 26 21:41:10 2012 - DEBUG | authorize; ['maas', 'modify_system', 
<cobbler.item_system.System instance at 0x18b7ea8>, 'hostname', True]
Thu Apr 26 21:41:10 2012 - DEBUG | REMOTE maas authorization result: True; 
user(?)
Thu Apr 26 21:41:10 2012 - INFO | REMOTE modify_item(system); user(maas); 
object_id(___NEW___system::NjdLyADncRBJoEWN9bo9nrUYc6V12zkzyg==); 
attribute(power_type)
Thu Apr 26 21:41:10 2012 - DEBUG | authorize; ['maas', 'modify_system', 
<cobbler.item_system.System instance at 0x18b7ea8>, 'power_type', True]
Thu Apr 26 21:41:10 2012 - DEBUG | REMOTE maas authorization result: True; 
user(?)
Thu Apr 26 21:41:10 2012 - INFO | REMOTE modify_item(system); user(maas); 
object_id(___NEW___system::NjdLyADncRBJoEWN9bo9nrUYc6V12zkzyg==); 
attribute(ks_meta)
Thu Apr 26 21:41:10 2012 - DEBUG | authorize; ['maas', 'modify_system', 
<cobbler.item_system.System instance at 0x18b7ea8>, 'ks_meta', True]
Thu Apr 26 21:41:10 2012 - DEBUG | REMOTE maas authorization result: True; 
user(?)
Thu Apr 26 21:41:10 2012 - INFO | REMOTE modify_item(system); user(maas); 
object_id(___NEW___system::NjdLyADncRBJoEWN9bo9nrUYc6V12zkzyg==); 
attribute(name)
Thu Apr 26 21:41:10 2012 - DEBUG | authorize; ['maas', 'modify_system', 
<cobbler.item_system.System instance at 0x18b7ea8>, 'name', True]
Thu Apr 26 21:41:10 2012 - DEBUG | REMOTE maas authorization result: True; 
user(?)
Thu Apr 26 21:41:10 2012 - INFO | REMOTE modify_item(system); user(maas); 
object_id(___NEW___system::NjdLyADncRBJoEWN9bo9nrUYc6V12zkzyg==); 
attribute(modify_interface)
Thu Apr 26 21:41:10 2012 - DEBUG | authorize; ['maas', 'modify_system', 
<cobbler.item_system.System instance at 0x18b7ea8>, 'modify_interface', True]
Thu Apr 26 21:41:10 2012 - DEBUG | REMOTE maas authorization result: True; 
user(?)
Thu Apr 26 21:41:10 2012 - INFO | REMOTE save_item(system); user(maas); 
object_id(___NEW___system::NjdLyADncRBJoEWN9bo9nrUYc6V12zkzyg==)
Thu Apr 26 21:41:10 2012 - DEBUG | authorize; ['maas', 'save_system', 
<cobbler.item_system.System instance at 0x18b7ea8>, None, True]
Thu Apr 26 21:41:10 2012 - DEBUG | REMOTE maas authorization result: True; 
user(?)
Thu Apr 26 21:41:10 2012 - INFO | add_item(system); 
['node-10a9da2a-900a-11e1-8ed2-0050568b4c67']
Thu Apr 26 21:41:10 2012 - DEBUG | get_items; ['system']
Thu Apr 26 21:41:10 2012 - DEBUG | done with get_items; ['system']
Thu Apr 26 21:41:10 2012 - INFO | REMOTE sync; user(maas)
Thu Apr 26 21:41:10 2012 - DEBUG | authorize; ['maas', 'sync', None, None, True]
Thu Apr 26 21:41:10 2012 - DEBUG | REMOTE maas authorization result: True; 
user(?)
Thu Apr 26 21:41:10 2012 - INFO | sync
Thu Apr 26 21:41:10 2012 - INFO | running pre-sync triggers
Thu Apr 26 21:41:10 2012 - INFO | cleaning trees
Thu Apr 26 21:41:10 2012 - INFO | removing: 
/var/www/cobbler/images/precise-x86_64
Thu Apr 26 21:41:10 2012 - INFO | removing: /var/www/cobbler/images/precise-i386
Thu Apr 26 21:41:10 2012 - INFO | removing: 
/var/www/cobbler/images/precise-i386-maas-ephemeral
Thu Apr 26 21:41:10 2012 - INFO | removing: 
/var/www/cobbler/images/precise-x86_64-maas-ephemeral
Thu Apr 26 21:41:10 2012 - INFO | removing: 
/var/lib/tftpboot/pxelinux.cfg/default
Thu Apr 26 21:41:10 2012 - INFO | removing: /var/lib/tftpboot/grub/images
Thu Apr 26 21:41:10 2012 - INFO | removing: /var/lib/tftpboot/grub/efidefault
Thu Apr 26 21:41:10 2012 - INFO | removing: 
/var/lib/tftpboot/images/precise-x86_64
Thu Apr 26 21:41:10 2012 - INFO | removing: 
/var/lib/tftpboot/images/precise-i386
Thu Apr 26 21:41:10 2012 - INFO | removing: 
/var/lib/tftpboot/images/memtest86+_multiboot.bin
Thu Apr 26 21:41:10 2012 - INFO | removing: 
/var/lib/tftpboot/images/precise-i386-maas-ephemeral
Thu Apr 26 21:41:10 2012 - INFO | removing: 
/var/lib/tftpboot/images/precise-x86_64-maas-ephemeral
Thu Apr 26 21:41:10 2012 - INFO | removing: 
/var/lib/tftpboot/images/memtest86+.bin
Thu Apr 26 21:41:10 2012 - INFO | removing: /var/lib/tftpboot/s390x/profile_list
Thu Apr 26 21:41:10 2012 - INFO | copying bootloaders
Thu Apr 26 21:41:10 2012 - INFO | copying: /boot/memtest86+_multiboot.bin -> 
/var/lib/tftpboot/images/memtest86+_multiboot.bin
Thu Apr 26 21:41:10 2012 - INFO | copying: /boot/memtest86+.bin -> 
/var/lib/tftpboot/images/memtest86+.bin
Thu Apr 26 21:41:10 2012 - INFO | copying distros to tftpboot
Thu Apr 26 21:41:10 2012 - INFO | copying files for distro: precise-x86_64
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/www/cobbler/ks_mirror/precise-x86_64/linux -> 
/var/lib/tftpboot/images/precise-x86_64/linux
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/www/cobbler/ks_mirror/precise-x86_64/initrd.gz -> 
/var/lib/tftpboot/images/precise-x86_64/initrd.gz
Thu Apr 26 21:41:10 2012 - INFO | copying files for distro: precise-i386
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/www/cobbler/ks_mirror/precise-i386/linux -> 
/var/lib/tftpboot/images/precise-i386/linux
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/www/cobbler/ks_mirror/precise-i386/initrd.gz -> 
/var/lib/tftpboot/images/precise-i386/initrd.gz
Thu Apr 26 21:41:10 2012 - INFO | copying files for distro: 
precise-i386-maas-ephemeral
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/lib/maas/ephemeral/precise/ephemeral/i386/20120418/kernel -> 
/var/lib/tftpboot/images/precise-i386-maas-ephemeral/kernel
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/lib/maas/ephemeral/precise/ephemeral/i386/20120418/initrd -> 
/var/lib/tftpboot/images/precise-i386-maas-ephemeral/initrd
Thu Apr 26 21:41:10 2012 - INFO | copying files for distro: 
precise-x86_64-maas-ephemeral
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/lib/maas/ephemeral/precise/ephemeral/amd64/20120418/kernel -> 
/var/lib/tftpboot/images/precise-x86_64-maas-ephemeral/kernel
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/lib/maas/ephemeral/precise/ephemeral/amd64/20120418/initrd -> 
/var/lib/tftpboot/images/precise-x86_64-maas-ephemeral/initrd
Thu Apr 26 21:41:10 2012 - INFO | copying images
Thu Apr 26 21:41:10 2012 - INFO | generating GPXE/PXE configuration files
Thu Apr 26 21:41:10 2012 - INFO | generating PXE menu structure
Thu Apr 26 21:41:10 2012 - WARNING | warning: kernel option length exceeds 255
Thu Apr 26 21:41:10 2012 - WARNING | warning: kernel option length exceeds 255
Thu Apr 26 21:41:10 2012 - WARNING | warning: kernel option length exceeds 255
Thu Apr 26 21:41:10 2012 - WARNING | warning: kernel option length exceeds 255
Thu Apr 26 21:41:10 2012 - INFO | copying files for distro: precise-x86_64
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/www/cobbler/ks_mirror/precise-x86_64/linux -> 
/var/www/cobbler/images/precise-x86_64/linux
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/www/cobbler/ks_mirror/precise-x86_64/initrd.gz -> 
/var/www/cobbler/images/precise-x86_64/initrd.gz
Thu Apr 26 21:41:10 2012 - INFO | copying files for distro: precise-i386
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/www/cobbler/ks_mirror/precise-i386/linux -> 
/var/www/cobbler/images/precise-i386/linux
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/www/cobbler/ks_mirror/precise-i386/initrd.gz -> 
/var/www/cobbler/images/precise-i386/initrd.gz
Thu Apr 26 21:41:10 2012 - INFO | copying files for distro: 
precise-i386-maas-ephemeral
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/lib/maas/ephemeral/precise/ephemeral/i386/20120418/kernel -> 
/var/www/cobbler/images/precise-i386-maas-ephemeral/kernel
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/lib/maas/ephemeral/precise/ephemeral/i386/20120418/initrd -> 
/var/www/cobbler/images/precise-i386-maas-ephemeral/initrd
Thu Apr 26 21:41:10 2012 - INFO | copying files for distro: 
precise-x86_64-maas-ephemeral
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/lib/maas/ephemeral/precise/ephemeral/amd64/20120418/kernel -> 
/var/www/cobbler/images/precise-x86_64-maas-ephemeral/kernel
Thu Apr 26 21:41:10 2012 - INFO | trying hardlink 
/var/lib/maas/ephemeral/precise/ephemeral/amd64/20120418/initrd -> 
/var/www/cobbler/images/precise-x86_64-maas-ephemeral/initrd
Thu Apr 26 21:41:10 2012 - WARNING | warning: kernel option length exceeds 255
Thu Apr 26 21:41:10 2012 - WARNING | warning: kernel option length exceeds 255
Thu Apr 26 21:41:10 2012 - WARNING | warning: kernel option length exceeds 255
Thu Apr 26 21:41:10 2012 - WARNING | warning: kernel option length exceeds 255
Thu Apr 26 21:41:10 2012 - INFO | rendering DHCP files
Thu Apr 26 21:41:10 2012 - INFO | rendering DNS files
Thu Apr 26 21:41:10 2012 - INFO | rendering TFTPD files
Thu Apr 26 21:41:10 2012 - INFO | generating /etc/xinetd.d/tftp
Thu Apr 26 21:41:10 2012 - INFO | cleaning link caches
Thu Apr 26 21:41:10 2012 - INFO | running post-sync triggers
Thu Apr 26 21:41:10 2012 - DEBUG | running python triggers from 
/var/lib/cobbler/triggers/sync/post/*
Thu Apr 26 21:41:10 2012 - DEBUG | running python trigger 
cobbler.modules.sync_post_restart_services
Thu Apr 26 21:41:10 2012 - INFO | running: service dnsmasq restart
Thu Apr 26 21:41:20 2012 - INFO | received on stdout:  * Restarting DNS 
forwarder and DHCP server dnsmasq
   ...done.

Thu Apr 26 21:41:20 2012 - DEBUG | received on stderr: 
Thu Apr 26 21:41:20 2012 - DEBUG | running shell triggers from 
/var/lib/cobbler/triggers/sync/post/*
Thu Apr 26 21:41:20 2012 - DEBUG | running python triggers from 
/var/lib/cobbler/triggers/change/*
Thu Apr 26 21:41:20 2012 - DEBUG | running python trigger 
cobbler.modules.scm_track
Thu Apr 26 21:41:20 2012 - DEBUG | running shell triggers from 
/var/lib/cobbler/triggers/change/*


/var/log/maas/maas.log

ERROR 2012-04-26 21:41:17,663 maas.maasserver Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 
111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/decorators/vary.py", line 
22, in inner_func
    response = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/piston/resource.py", line 166, in 
__call__
    result = self.error_handler(e, request, meth, em_format)
  File "/usr/lib/python2.7/dist-packages/piston/resource.py", line 164, in 
__call__
    result = meth(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/maasserver/api.py", line 251, in 
dispatcher
    self, request, request.method, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/maasserver/api.py", line 193, in 
perform_api_operation
    return method(handler, request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/maasserver/api.py", line 493, in new
    node = create_node(request)
  File "/usr/lib/python2.7/dist-packages/maasserver/api.py", line 418, in 
create_node
    return form.save()
  File "/usr/lib/python2.7/dist-packages/maasserver/forms.py", line 234, in save
    node = super(NodeWithMACAddressesForm, self).save()
  File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 363, in 
save
    fail_message, commit, construct=False)
  File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 85, in 
save_instance
    instance.save()
  File "/usr/lib/python2.7/dist-packages/maasserver/models.py", line 114, in 
save
    return super(CommonInfo, self).save(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 460, 
in save
    self.save_base(using=using, force_insert=force_insert, 
force_update=force_update)
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 570, 
in save_base
    created=(not record_exists), raw=raw, using=using)
  File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 
172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/lib/python2.7/dist-packages/maasserver/provisioning.py", line 485, 
in provision_post_save_Node
    profile, power_type, preseed_data)
  File "/usr/lib/python2.7/dist-packages/maasserver/provisioning.py", line 245, 
in __call__
    result = self.method(*args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1294, in single_request
    response = h.getresponse(buffering=True)
  File "/usr/lib/python2.7/httplib.py", line 1030, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 365, in _read_status
    line = self.fp.readline()
  File "/usr/lib/python2.7/socket.py", line 447, in readline
    data = self._sock.recv(self._rbufsize)
timeout: timed out

** Affects: maas (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/989355

Title:
  Unable to create Node: timed out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/989355/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to