ImportError: No module named pexpect setting up maas-dns

Bug #1322151 reported by Diogo Matsubara on 2014-05-22
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
Critical
Raphaël Badin
Trusty
Undecided
Unassigned

Bug Description

As per http://d-jenkins.ubuntu-ci:8080/view/MAAS/job/utopic-adt-maas/5/ maas-dns failed to install due to a missing dependency on python-pexpect

Setting up maas-dns (1.5+bzr2252+2353+274-0ubuntu2) ...
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 284, in execute
    self.validate()
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 310, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/lib/python2.7/dist-packages/django/core/management/validation.py", line 34, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/lib/python2.7/dist-packages/django/db/models/loading.py", line 196, in get_app_errors
    self._populate()
  File "/usr/lib/python2.7/dist-packages/django/db/models/loading.py", line 78, in _populate
    self.load_app(app_name)
  File "/usr/lib/python2.7/dist-packages/django/db/models/loading.py", line 99, in load_app
    models = import_module('%s.models' % app_name)
  File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/usr/lib/python2.7/dist-packages/maasserver/models/__init__.py", line 46, in <module>
    from maasserver.models.bootimage import BootImage
  File "/usr/lib/python2.7/dist-packages/maasserver/models/bootimage.py", line 26, in <module>
    from maasserver.models.nodegroup import NodeGroup
  File "/usr/lib/python2.7/dist-packages/maasserver/models/nodegroup.py", line 37, in <module>
    from maasserver.refresh_worker import refresh_worker
  File "/usr/lib/python2.7/dist-packages/maasserver/refresh_worker.py", line 21, in <module>
    from provisioningserver.tasks import refresh_secrets
  File "/usr/lib/python2.7/dist-packages/provisioningserver/tasks.py", line 49, in <module>
    from provisioningserver.custom_hardware.virsh import probe_virsh_and_enlist
  File "/usr/lib/python2.7/dist-packages/provisioningserver/custom_hardware/virsh.py", line 18, in <module>
    import pexpect
ImportError: No module named pexpect

[Impact]
 * Missing dep for package maas-cluster-controller added for package so it runs with virsh

[Testcase]
 * sudo apt-get install maas-cluster-controller; python -c 'import pexpect'

[Regression Potential]
 * non-existent, add package dependency

Related branches

Raphaël Badin (rvb) wrote :

A new dependency on python-pexpect was introduced in revision 2353. python-pexpect is in main so fixing this is as simple as adding a dependency in the packaging.

Raphaël Badin (rvb) on 2014-05-22
Changed in maas (Ubuntu):
assignee: nobody → Raphaël Badin (rvb)
status: Triaged → In Progress
Raphaël Badin (rvb) on 2014-05-23
Changed in maas (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package maas - 1.5.2+bzr2282-0ubuntu1

---------------
maas (1.5.2+bzr2282-0ubuntu1) utopic; urgency=medium

  * New upstream bugfix release:
   - Remove workaround for fixed Django bug 1311433 (LP: #1311433)
   - Ensure that validation errors are returned when adding a node over
     the API and its cluster controller is not contactable. (LP: #1305061)
   - Hardware enablement support for PowerKVM (LP: #1325038)
   - Shorten the time taken for a cluster to initially connect to the region
     via RPC to around 2 seconds (LP: #1317682)
   - Faster DHCP leases parser (LP: #1305102)
   - Documentation fixed explaining how to enable an ephemeral backdoor
     (LP: #1321696)
   - Use probe-and-enlist-hardware to enlist all virtual machine inside
     a libvirt machine, allow password qemu+ssh connections.
     (LP: #1315155, LP: #1315157)
   - Rename ppc64el boot loader to PowerKVM (LP: #1315154)
   - Fix NodeForm's is_valid() method so that it uses Django's way of setting
     errors on forms instead of putting text in self.errors['architecture']
     (LP: #1301465)
   - Change BootMethods to return their own IReader per-request, update method
     names to reflect new usage. (LP: #1315154)
   - Return early and stop the DHCP server when the list of managed interfaces
     of the nodegroup is empty. (LP: #1324944)
   - Fix invalid attribute references in the VirshSSH class. Added more test
     for the VirshSSH class. (LP: #1324966)
  * debian/control:
   - Add missing dependency in maas-cluster-controller for python-pexpect
     (LP: #1322151)
 -- Greg Lutostanski <email address hidden> Mon, 02 Jun 2014 11:57:58 -0500

Changed in maas (Ubuntu):
status: Fix Committed → Fix Released
Greg Lutostanski (lutostag) wrote :

branch which fixes this and other 1.5.2 release bugs for SRU is linked to bug #1325038

description: updated

Hello Diogo, or anyone else affected,

Accepted maas into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/maas/1.5.2+bzr2282-0ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in maas (Ubuntu Trusty):
status: New → Fix Committed
tags: added: verification-needed
Diogo Matsubara (matsubara) wrote :
tags: added: verification-done
removed: verification-needed
Stéphane Graber (stgraber) wrote :

Hello Diogo, or anyone else affected,

Accepted maas into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/maas/1.5.2+bzr2282-0ubuntu0.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: removed: verification-done
tags: added: verification-needed
Greg Lutostanski (lutostag) wrote :

Verified fix with given testcase, install completes successfully with no errors.

tags: added: verification-done
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package maas - 1.5.2+bzr2282-0ubuntu0.2

---------------
maas (1.5.2+bzr2282-0ubuntu0.2) trusty-proposed; urgency=medium

  * debian/control:
   - Add missing dependency in maas-cluster-controller for grub-common
     (LP: #1328231)
   - Move dependency from maas-cluster-controller to maas-provisioningserver
     for python-seamicroclient (LP: #1332532)

maas (1.5.2+bzr2282-0ubuntu0.1) trusty-proposed; urgency=medium

  * New upstream release:
    - Remove workaround for fixed Django bug 1311433 (LP: #1311433)
    - Ensure that validation errors are returned when adding a node over
      the API and its cluster controller is not contactable. (LP: #1305061)
    - Hardware enablement support for PowerKVM (LP: #1325038)
    - Shorten the time taken for a cluster to initially connect to the region
      via RPC to around 2 seconds (LP: #1317682)
    - Faster DHCP leases parser (LP: #1305102)
    - Documentation fixed explaining how to enable an ephemeral backdoor
      (LP: #1321696)
    - Use probe-and-enlist-hardware to enlist all virtual machine inside
      a libvirt machine, allow password qemu+ssh connections.
      (LP: #1315155, LP: #1315157)
    - Rename ppc64el boot loader to PowerKVM (LP: #1315154)
    - Fix NodeForm's is_valid() method so that it uses Django's way of setting
      errors on forms instead of putting text in self.errors['architecture']
      (LP: #1301465)
    - Change BootMethods to return their own IReader per-request, update method
      names to reflect new usage. (LP: #1315154)
    - Return early and stop the DHCP server when the list of managed interfaces
      of the nodegroup is empty. (LP: #1324944)
    - Fix invalid attribute references in the VirshSSH class. Added more test
      for the VirshSSH class. (LP: #1324966)
  * debian/control:
    - Add missing dependency in maas-cluster-controller for python-pexpect
      (LP: #1322151)
 -- Greg Lutostanski <email address hidden> Fri, 20 Jun 2014 10:10:47 -0500

Changed in maas (Ubuntu Trusty):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for maas has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers