← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1617375] Re: AttributeError: module 'curtin.util' has no attribute 'RunInChroot'

 

This bug is believed to be fixed in curtin in 17.1. If this is still a
problem for you, please make a comment and set the state back to New

Thank you.

** Changed in: curtin
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1617375

Title:
  AttributeError: module 'curtin.util' has no attribute 'RunInChroot'

Status in curtin:
  Fix Released
Status in curtin package in Ubuntu:
  Fix Released
Status in curtin source package in Xenial:
  Fix Released

Bug description:
  [Impact]

   * Curtin removed a previously used python module method,
     'RunInChroot' which was used by non-ubuntu curthooks for 
     deploying OSes like CentOS.  Removing the method prevents
     deploying CentOS where it worked prior to updating.

     Curtin has been updated to include an alias to the previous method that
     provides backward compat to callers of 'RunInChroot'
     
  [Test Case]

   * Install proposed curtin package and deploy CentOS to target system

    PASS: CentOS deploys successfully.

    FAIL: CentOS deployment fails with message:

    AttributeError: module 'curtin.util' has no attribute 'RunInChroot'

  [Regression Potential]

   * Other OSes besides CentOS may have used other flags against
     the original 'RunInChroot' method which is not being tested and
     may fail with the backward compat mode supporting 'RunInChroot'.


  [Original Description]
  I tested curtin bzr418 and bzr415, and I get the following error. This is a regression provided that it is not backward compatible and will cause all CentOS deployments via MAAS to fail.

  MAAS injects curtin_hooks code to CentOS images that call such
  function. If users upgrade to the latest curtin, they wont be able to
  deploy CentOS.

  AttributeError: module 'curtin.util' has no attribute 'RunInChroot'

  curtin bzr418:

  In [1]: import curtin.util

  In [2]: curtin.util.RunInChroot
  ---------------------------------------------------------------------------
  AttributeError                            Traceback (most recent call last)
  <ipython-input-2-4e8269de26cc> in <module>()
  ----> 1 curtin.util.RunInChroot

  AttributeError: module 'curtin.util' has no attribute 'RunInChroot'

  curtin bzr399:

  In [1]: import curtin.util

  In [2]: curtin.util.RunInChroot
  Out[2]: curtin.util.RunInChroot

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1617375/+subscriptions