~rvb/maas/qa-add-nucs

« back to all changes in this revision

Viewing changes to maas-integration.py

  • Committer: MaaS Lander
  • Author(s): diogo.matsubara at canonical
  • Date: 2014-05-29 19:20:24 UTC
  • mfrom: (244.1.5 collect-configs)
  • Revision ID: maas_lander-20140529192024-gzh3mgn2i32v9ob4
[r=allenap][bug=][author=matsubara] Collect the configs for MAAS from the testbed after the run and log the contents of the given upstart log file for each time we retry the check for its status

Show diffs side-by-side

added added

removed removed

Lines of Context:
811
811
 
812
812
    @classmethod
813
813
    def _collect_logs(cls, log_dirs, log_dest):
814
 
        """Collect logs from the test run.
 
814
        """Collect logs and configs from the test run.
815
815
 
816
 
        This method copies logs from the test run to a known location so
817
 
        adt/auto-package-testing can copy them out of the testbed.
 
816
        This method copies logs and configs from the test run to a known
 
817
        location so adt/auto-package-testing can copy them out of the testbed.
818
818
        """
819
819
        for log_dir in log_dirs:
820
820
            ignored, tail = os.path.split(log_dir)
836
836
            '/var/log/maas',
837
837
            '/var/log/upstart',
838
838
            '/var/log/apache2',
839
 
            '/var/lib/maas/dhcp']
 
839
            '/var/lib/maas/dhcp',
 
840
            '/etc/maas']
840
841
        cls._collect_logs(log_dirs, log_dest)
841
842
        change_logs_permissions(log_dest)
842
843