** Description changed:

- 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.
+ [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

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

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to