CentOS finalize curthook duplicates MAAS credentials
Bug #1791189 reported by
Lee Trager
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-images |
Fix Released
|
Undecided
|
Lee Trager |
Bug Description
Both curt-hooks and finalize are creating MAAS credentials in /etc/cloud/
This should be documented in finalize.py and if CENTOS_
Related branches
lp:~ltrager/maas-images/lp1791189
- Scott Moser (community): Approve
-
Diff: 26 lines (+9/-0)1 file modifiedcurtin/centos7/finalize.py (+9/-0)
summary: |
- CentOS duplicates MAAS credentials + CentOS finalize curthook duplicates MAAS credentials |
Changed in maas-images: | |
status: | New → Fix Released |
assignee: | nobody → Lee Trager (ltrager) |
To post a comment you must log in.
FYI, when testing curtin SRU (https:/ /bugs.launchpad .net/ubuntu/ +source/ curtin/ +bug/1795712) on MAAS Bionic/2.4 we found that centos7 images fail to report back to maas and don't have a datasource.
I believe this is due to the change on this branch which detected the curtin CENTOS_ CURTHOOK_ SUPPORT but didn't confirm that MAAS also sent a storage config (aka MAAS 2.5+) and so finalize fails to write out a 90_datasource.cfg file.
This change needs to also check if cfg includes the 'storage' key before skipping generation of 90_datasource.cfg (like how the check is done in contrib/ centos/ centos7/ curtin/ curtin- hooks.py:
# Run builtin hooks if curtin has the feature and maas sent storage cfg
if centos_curthooks and cfg.get('storage'):