Revision 2afd10bf ci/utils.py

b/ci/utils.py
731 731
    def build_packages(self):
732 732
        """Build packages needed by Synnefo software"""
733 733
        self.logger.info("Install development packages")
734
        kamaki_version = self.config.get('Burnin', 'kamaki_version')
734 735
        cmd = """
735 736
        apt-get update
736 737
        apt-get install zlib1g-dev dpkg-dev debhelper git-buildpackage \
737 738
                python-dev python-all python-pip ant --yes --force-yes
738
        pip install -U devflow
739
        """
739
        pip install -U devflow kamaki{0}
740
        """.format(("==" + kamaki_version) if kamaki_version else "")
740 741
        _run(cmd, False)
741 742

  
742 743
        # Patch pydist bug
......
881 882
        token=$(grep -e '^token =' .kamakirc | cut -d' ' -f3)
882 883
        images_user=$(kamaki image list -l | grep owner | \
883 884
                      cut -d':' -f2 | tr -d ' ')
884
        snf-burnin --auth-url=$auth_url --token=$token \
885
            --force-flavor=2 --image-id=all \
886
            --system-images-user=$images_user \
887
            {0}
885
        snf-burnin --auth-url=$auth_url --token=$token {0}
888 886
        BurninExitStatus=$?
889
        log_folder=$(ls -1d /var/log/burnin/* | tail -n1)
890
        for i in $(ls $log_folder/*/details*); do
891
            echo -e "\\n\\n"
892
            echo -e "***** $i\\n"
893
            cat $i
894
        done
895 887
        exit $BurninExitStatus
896 888
        """.format(self.config.get('Burnin', 'cmd_options'))
897 889
        _run(cmd, True)

Also available in: Unified diff