Merge lp:~raharper/curtin/trunk.remove-force-centos-curthooks-flag into lp:~curtin-dev/curtin/trunk

Proposed by Ryan Harper
Status: Merged
Merged at revision: 518
Proposed branch: lp:~raharper/curtin/trunk.remove-force-centos-curthooks-flag
Merge into: lp:~curtin-dev/curtin/trunk
Diff against target: 30 lines (+4/-5)
2 files modified
curtin/commands/curthooks.py (+2/-2)
examples/tests/centos_defaults.yaml (+2/-3)
To merge this branch: bzr merge lp:~raharper/curtin/trunk.remove-force-centos-curthooks-flag
Reviewer Review Type Date Requested Status
Scott Moser (community) Approve
Server Team CI bot continuous-integration Approve
Review via email: mp+328471@code.launchpad.net

Description of the change

vmtests: Remove force flag for centos curthooks

To post a comment you must log in.
Revision history for this message
Ryan Harper (raharper) wrote :

This can land after we confirm the centos images have updated their image with this change:

https://code.launchpad.net/~smoser/maas-images/trunk.fix-apply-networking/+merge/328467

Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Scott Moser (smoser) wrote :

Might as well remove the other hunk too ?
 curtin/commands/curthooks.py

or leave that as commented out in that file... ie, if you're going to leave old code in one part might as well leave a reference to it where it came from so a grep would find something.

I'm fine with either leaving a comment in centos_defaults.yaml or ripping them both out.

review: Needs Information
Revision history for this message
Ryan Harper (raharper) wrote :

On Thu, Aug 3, 2017 at 7:29 AM, Scott Moser <email address hidden> wrote:

> Review: Needs Information
>
> Might as well remove the other hunk too ?
> curtin/commands/curthooks.py'
>

Hrm, yes, it's possible we'd want to force running them at some point so
worth leaving as comment. I'll update

>
> or leave that as commented out in that file... ie, if you're going to
> leave old code in one part might as well leave a reference to it where it
> came from so a grep would find something.
>
> I'm fine with either leaving a comment in centos_defaults.yaml or ripping
> them both out.
> --
> https://code.launchpad.net/~raharper/curtin/trunk.remove-
> force-centos-curthooks-flag/+merge/328471
> You are the owner of lp:~raharper/curtin/trunk.
> remove-force-centos-curthooks-flag.
>

517. By Ryan Harper

Update comments around use of _ammend_centos_curthooks

Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Scott Moser (smoser) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'curtin/commands/curthooks.py'
2--- curtin/commands/curthooks.py 2017-08-02 17:50:40 +0000
3+++ curtin/commands/curthooks.py 2017-08-03 13:56:09 +0000
4@@ -911,8 +911,8 @@
5
6 # if curtin-hooks hook exists in target we can defer to the in-target hooks
7 if util.run_hook_if_exists(target, 'curtin-hooks'):
8- # FIXME: For testing only until maas images have curthooks
9- # that utilize centos_apply_network_config.
10+ # For vmtests to force execute centos_apply_network_config, uncomment
11+ # the value in examples/tests/centos_defaults.yaml
12 if cfg.get('_ammend_centos_curthooks'):
13 if cfg.get('cloudconfig'):
14 handle_cloudconfig(
15
16=== modified file 'examples/tests/centos_defaults.yaml'
17--- examples/tests/centos_defaults.yaml 2017-08-01 15:47:35 +0000
18+++ examples/tests/centos_defaults.yaml 2017-08-03 13:56:09 +0000
19@@ -1,9 +1,8 @@
20 hook_commands:
21 builtin: null
22
23-# Force curtin to run centos_apply_network_config vmtest
24-# FIXME: Remove this after maas images no longer need it.
25-_ammend_centos_curthooks: True
26+# To force curtin to run centos_apply_network_config vmtest, uncomment
27+# _ammend_centos_curthooks: True
28
29 write_files:
30 grub_serial_console:

Subscribers

People subscribed via source and target branches