Deploying CentOS images fails with AttributeError: module 'curtin.util' has no attribute 'RunInChroot'

Bug #1626297 reported by Nathaniel W. Turner
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
New
Undecided
Unassigned

Bug Description

After updating to 2.1.0~alpha3+bzr5368-0ubuntu1~16.04.1, CentOS 6 and CentOS 7 images fail to deploy. From the installation output:

CentOS 6:

Traceback (most recent call last):
  File "/tmp/tmpgke7jc8_/target/curtin/curtin-hooks.py", line 342, in <module> main()
  File "/tmp/tmpgke7jc8_/target/curtin/curtin-hooks.py", line 333, in main
  grub_root = get_grub_root(target)
  File "/tmp/tmpgke7jc8_/target/curtin/curtin-hooks.py", line 181, in get_grub_root
  with util.RunInChroot(target) as in_chroot:
AttributeError: module 'curtin.util' has no attribute 'RunInChroot'

CentOS 7:

Traceback (most recent call last):
  File "/tmp/tmp9mnktq4v/target/curtin/curtin-hooks.py", line 332, in <module> main()
  File "/tmp/tmp9mnktq4v/target/curtin/curtin-hooks.py", line 316, in main
  grub2_mkconfig(target)
  File "/tmp/tmp9mnktq4v/target/curtin/curtin-hooks.py", line 151, in grub2_mkconfig
  with util.RunInChroot(target) as in_chroot:
AttributeError: module 'curtin.util' has no attribute 'RunInChroot'

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.