Merge lp:~harlowja/cloud-init/cloud-init-really-skip-baddies into lp:~cloud-init-dev/cloud-init/trunk

Proposed by Joshua Harlow
Status: Rejected
Rejected by: Scott Moser
Proposed branch: lp:~harlowja/cloud-init/cloud-init-really-skip-baddies
Merge into: lp:~cloud-init-dev/cloud-init/trunk
Diff against target: 45 lines (+11/-5)
1 file modified
cloudinit/stages.py (+11/-5)
To merge this branch: bzr merge lp:~harlowja/cloud-init/cloud-init-really-skip-baddies
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Needs Fixing
cloud-init Commiters Pending
Review via email: mp+300802@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

FAILED: Continuous integration, rev:1259
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~harlowja/cloud-init/cloud-init-really-skip-baddies/+merge/300802/+edit-commit-message

https://server-team-jenkins.canonical.com/job/cloud-init-ci/37/
Executed test runs:
    None: https://server-team-jenkins.canonical.com/job/lp-vote-on-merge/11/console

Click here to trigger a rebuild:
https://server-team-jenkins.canonical.com/job/cloud-init-ci/37/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Scott Moser (smoser) wrote :

Hello,
Thank you for taking the time to contribute to cloud-init. Cloud-init has moved its revision control system to git. As a result, we are marking all bzr merge proposals as 'rejected'. If you would like to re-submit this proposal for review, please do so by following the current HACKING documentation at http://cloudinit.readthedocs.io/en/latest/topics/hacking.html .

Unmerged revisions

1259. By Joshua Harlow

Actually remove skipped modules

Instead of just logging about distro modules not known
to work on the host distro and then going ahead and still
running them this changes it so they are actually fixed.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'cloudinit/stages.py'
--- cloudinit/stages.py 2016-06-10 21:22:17 +0000
+++ cloudinit/stages.py 2016-07-21 18:17:26 +0000
@@ -808,7 +808,7 @@
808 def run_section(self, section_name):808 def run_section(self, section_name):
809 raw_mods = self._read_modules(section_name)809 raw_mods = self._read_modules(section_name)
810 mostly_mods = self._fixup_modules(raw_mods)810 mostly_mods = self._fixup_modules(raw_mods)
811 d_name = self.init.distro.name811 distro_name = self.init.distro.name
812812
813 skipped = []813 skipped = []
814 forced = []814 forced = []
@@ -819,7 +819,7 @@
819 distros.Distro.expand_osfamily(mod.osfamilies))819 distros.Distro.expand_osfamily(mod.osfamilies))
820820
821 # module does not declare 'distros' or lists this distro821 # module does not declare 'distros' or lists this distro
822 if not worked_distros or d_name in worked_distros:822 if not worked_distros or distro_name in worked_distros:
823 continue823 continue
824824
825 if name in overridden:825 if name in overridden:
@@ -827,14 +827,20 @@
827 else:827 else:
828 skipped.append(name)828 skipped.append(name)
829829
830 cleaned_mostly_mods = []
831 for (mod, name, freq, args) in mostly_mods:
832 if name in skipped:
833 continue
834 cleaned_mostly_mods.append((mod, name, freq, args))
835
830 if skipped:836 if skipped:
831 LOG.info("Skipping modules %s because they are not verified "837 LOG.info("Skipping modules %s because they are not verified "
832 "on distro '%s'. To run anyway, add them to "838 "on distro '%s'. To run anyway, add them to "
833 "'unverified_modules' in config.", skipped, d_name)839 "'unverified_modules' in config.", skipped, distro_name)
834 if forced:840 if forced:
835 LOG.info("running unverified_modules: %s", forced)841 LOG.info("Running unverified modules: %s", forced)
836842
837 return self._run_modules(mostly_mods)843 return self._run_modules(cleaned_mostly_mods)
838844
839845
840def fetch_base_config():846def fetch_base_config():