New curtin regresses older centos images due to AttributeError: module 'curtin.commands.curthooks' has no attribute 'write_files'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned | ||
curtin |
Fix Released
|
High
|
Unassigned |
Bug Description
MAAS 2.2.2 no longer boots custom centos image
I upgraded my my server from 2.2.0.
apt-get update
apt-get upgrade
I created a new custom image as I did previously with 2.2.0
maas admin boot-resources create name=custom/
I tried to deploy it: failed with no such file or directory
See attached image screen shot of console window
The maas snapshot directory looks like this
root@MAAS:
root-tgz
root@MAAS:
Related branches
- Scott Moser (community): Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 125 lines (+75/-1)4 files modifiedcurtin/commands/curthooks.py (+2/-0)
curtin/futil.py (+13/-0)
tests/unittests/helpers.py (+13/-0)
tests/unittests/test_curthooks.py (+47/-1)
- curtin developers: Pending requested
-
Diff: 2108 lines (+1141/-114)57 files modifiedcurtin/__init__.py (+1/-1)
curtin/block/mkfs.py (+35/-23)
curtin/commands/block_meta.py (+62/-27)
curtin/commands/curthooks.py (+5/-6)
curtin/commands/install.py (+8/-1)
curtin/commands/main.py (+5/-5)
curtin/commands/unmount.py (+60/-0)
curtin/futil.py (+13/-0)
curtin/util.py (+26/-8)
debian/changelog (+17/-0)
debian/changelog.trunk (+5/-0)
doc/topics/config.rst (+20/-0)
doc/topics/storage.rst (+18/-0)
examples/tests/basic.yaml (+1/-0)
examples/tests/basic_scsi.yaml (+1/-0)
examples/tests/install_disable_unmount.yaml (+18/-0)
examples/tests/lvmroot.yaml (+42/-0)
examples/tests/uefi_lvmroot.yaml (+82/-0)
tests/unittests/helpers.py (+13/-0)
tests/unittests/test_block_mkfs.py (+7/-0)
tests/unittests/test_commands_block_meta.py (+118/-2)
tests/unittests/test_commands_unmount.py (+47/-0)
tests/unittests/test_curthooks.py (+47/-1)
tests/vmtests/__init__.py (+50/-24)
tests/vmtests/releases.py (+5/-0)
tests/vmtests/test_apt_config_cmd.py (+4/-0)
tests/vmtests/test_basic.py (+11/-1)
tests/vmtests/test_bcache_basic.py (+4/-0)
tests/vmtests/test_bcache_bug1718699.py (+4/-0)
tests/vmtests/test_install_umount.py (+56/-0)
tests/vmtests/test_iscsi.py (+4/-0)
tests/vmtests/test_journald_reporter.py (+4/-0)
tests/vmtests/test_lvm.py (+4/-0)
tests/vmtests/test_lvm_iscsi.py (+4/-0)
tests/vmtests/test_lvm_root.py (+155/-0)
tests/vmtests/test_mdadm_bcache.py (+34/-0)
tests/vmtests/test_mdadm_iscsi.py (+4/-0)
tests/vmtests/test_multipath.py (+4/-0)
tests/vmtests/test_network.py (+4/-0)
tests/vmtests/test_network_alias.py (+4/-0)
tests/vmtests/test_network_bonding.py (+14/-0)
tests/vmtests/test_network_bridging.py (+13/-6)
tests/vmtests/test_network_enisource.py (+5/-1)
tests/vmtests/test_network_ipv6.py (+4/-0)
tests/vmtests/test_network_ipv6_enisource.py (+1/-3)
tests/vmtests/test_network_ipv6_static.py (+4/-0)
tests/vmtests/test_network_ipv6_vlan.py (+4/-0)
tests/vmtests/test_network_mtu.py (+10/-0)
tests/vmtests/test_network_static.py (+4/-0)
tests/vmtests/test_network_static_routes.py (+5/-0)
tests/vmtests/test_network_vlan.py (+4/-0)
tests/vmtests/test_nvme.py (+8/-0)
tests/vmtests/test_raid5_bcache.py (+4/-0)
tests/vmtests/test_simple.py (+4/-0)
tests/vmtests/test_uefi_basic.py (+8/-0)
tools/build-deb (+41/-3)
tox.ini (+2/-2)
Changed in maas: | |
status: | New → Incomplete |
summary: |
- centos custom images won't boot MAAS 2.2.2 + New curtin regresses older centos images due to AttributeError: module + 'curtin.commands.curthooks' has no attribute 'write_files' |
Changed in maas: | |
status: | New → Invalid |
Changed in curtin: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in curtin: | |
status: | Confirmed → Invalid |
status: | Invalid → Confirmed |
Changed in curtin: | |
status: | Confirmed → Fix Committed |
John,
Could you please provide the curtin version you are using? "dpkg -l | grep curtin"
Could you please attach logs:
/var/log/maas/*.log
Also attach the output of the machine that's failing to deploy:
maas admin boot-resources read
maas admin machine read id=<system-id of the machine>
maas admin rack-controller read id=<system-id of rack controller>
And lastly, please also provide the installation log. I think this is the correct result_type otherwise you can do it via the UI.
maas admin node-results read system_id=sa4whm result_type=1 | grep data | cut -d'"' -f4 | base64 --decode