summaryrefslogtreecommitdiffstats
path: root/ansible/ubuntu_server_cloudimg_modify.yml
blob: 90235cc814b8af10b5317b4d4dfe9089389341c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright (c) 2017 Intel Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
- hosts: chroot_image
  connection: chroot
  vars:
    # used to install the tools
    clone_dir: /tmp/yardstick-clone

  pre_tasks:
    - debug: msg="chrooted in {{ inventory_hostname }}"

  roles:
    - reset_resolv_conf
    - add_custom_repos
    - modify_cloud_config
    - role: set_package_installer_proxy
      when: proxy_env is defined and proxy_env
    - download_l2fwd
    - install_image_dependencies
    - download_unixbench
    - install_unixbench
    - download_ramspeed
    - install_ramspeed
    - download_cachestat
    # there is no install for cachestat
#    - install_cachestat
#n414'>414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490
 <html>
  <head>
    <meta charset="utf-8">
    <!-- Bootstrap core CSS -->
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
    <link href="../../js/default.css" rel="stylesheet">
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
    <script type="text/javascript" src="../../js/gauge.js"></script>
    <script type="text/javascript" src="../../js/trend.js"></script>
    <script>
    function onDocumentReady() {
    	// Gauge management
        var gaugeScenario1 = gauge('#gaugeScenario1');var gaugeScenario2 = gauge('#gaugeScenario2');var gaugeScenario3 = gauge('#gaugeScenario3');var gaugeScenario4 = gauge('#gaugeScenario4');var gaugeScenario5 = gauge('#gaugeScenario5');var gaugeScenario6 = gauge('#gaugeScenario6');

    	// assign success rate to the gauge
    	function updateReadings() {
    	    gaugeScenario1.update(76.6666666667);gaugeScenario2.update(10.0);gaugeScenario3.update(84.8484848485);gaugeScenario4.update(84.8484848485);gaugeScenario5.update(93.3333333333);gaugeScenario6.update(96.6666666667);
    	}
    	updateReadings();
        }

        // trend line management
        d3.csv("./scenario_history.txt", function(data) {
       // ***************************************
       // Create the trend line
      // for scenario os-odl_l3-nofeature-ha
       // Filter results
        var trend1 = data.filter(function(row) {
    	     return row["scenario"]=="os-odl_l3-nofeature-ha" && row["installer"]=="compass";
    	})
       // Parse the date
        trend1.forEach(function(d) {
    	    d.date = parseDate(d.date);
    	    d.score = +d.score
        });
        // Draw the trend line
        var mytrend = trend("#trend_svg1",trend1)
        // ****************************************// for scenario os-ocl-nofeature-ha
       // Filter results
        var trend2 = data.filter(function(row) {
    	     return row["scenario"]=="os-ocl-nofeature-ha" && row["installer"]=="compass";
    	})
       // Parse the date
        trend2.forEach(function(d) {
    	    d.date = parseDate(d.date);
    	    d.score = +d.score
        });
        // Draw the trend line
        var mytrend = trend("#trend_svg2",trend2)
        // ****************************************// for scenario os-onos-nofeature-ha
       // Filter results
        var trend3 = data.filter(function(row) {
    	     return row["scenario"]=="os-onos-nofeature-ha" && row["installer"]=="compass";
    	})
       // Parse the date
        trend3.forEach(function(d) {
    	    d.date = parseDate(d.date);
    	    d.score = +d.score
        });
        // Draw the trend line
        var mytrend = trend("#trend_svg3",trend3)
        // ****************************************// for scenario os-odl_l2-nofeature-ha
       // Filter results
        var trend4 = data.filter(function(row) {
    	     return row["scenario"]=="os-odl_l2-nofeature-ha" && row["installer"]=="compass";
    	})
       // Parse the date
        trend4.forEach(function(d) {
    	    d.date = parseDate(d.date);
    	    d.score = +d.score
        });
        // Draw the trend line
        var mytrend = trend("#trend_svg4",trend4)
        // ****************************************// for scenario os-nosdn-openo-ha
       // Filter results
        var trend5 = data.filter(function(row) {
    	     return row["scenario"]=="os-nosdn-openo-ha" && row["installer"]=="compass";
    	})
       // Parse the date
        trend5.forEach(function(d) {
    	    d.date = parseDate(d.date);
    	    d.score = +d.score
        });
        // Draw the trend line
        var mytrend = trend("#trend_svg5",trend5)
        // ****************************************// for scenario os-nosdn-nofeature-ha
       // Filter results
        var trend6 = data.filter(function(row) {
    	     return row["scenario"]=="os-nosdn-nofeature-ha" && row["installer"]=="compass";
    	})
       // Parse the date
        trend6.forEach(function(d) {
    	    d.date = parseDate(d.date);
    	    d.score = +d.score
        });
        // Draw the trend line
        var mytrend = trend("#trend_svg6",trend6)
        // ****************************************
    });
    if ( !window.isLoaded ) {
        window.addEventListener("load", function() {
    			onDocumentReady();
        }, false);
    } else {
    	onDocumentReady();
    }
</script>
<script type="text/javascript">
$(document).ready(function (){
    $(".btn-more").click(function() {
    	$(this).hide();
    	$(this).parent().find(".panel-default").show();
    });
})
</script>

  </head>
    <body>
    <div class="container">
      <div class="masthead">
        <h3 class="text-muted">Functest Danube 1.0 status page (2017-03-31 01:45)</h3>
        <nav>
          <ul class="nav nav-justified">
            <li class="active"><a href="http://testresults.opnfv.org/reporting/index.html">Home</a></li>
            <li><a href="./apex.html">Apex</a></li>
            <li><a href="./compass.html">Compass</a></li>
            <li><a href="./fuel.html">Fuel</a></li>
            <li><a href="./joid.html">Joid</a></li>
          </ul>
        </nav>
      </div>
<div class="row">
    <div class="col-md-1"></div>
    <div class="col-md-10">
        <div class="page-header">
            <h2>compass</h2>
        </div>

        <div class="scenario-overview">
            <div class="panel-heading"><h4><b>List of last scenarios (danube) run over the last 10 days </b></h4></div>
                <table class="table">
                    <tr>
                        <th width="40%">Scenario</th>
                        <th width="20%">Status</th>
                        <th width="20%">Trend</th>
                        <th width="10%">Score</th>
                        <th width="10%">Iteration</th>
                    </tr>
                        <tr class="tr-ok">
                                <td><a href=https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-danube/79/console>os-odl_l3-nofeature-ha</a></td>
                                <td><div id="gaugeScenario1"></div></td>
                                <td><div id="trend_svg1"></div></td>
                                <td>23/30</td>
                                <td>18</td>
                            </tr><tr class="tr-ok">
                                <td><a href=https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-danube/71/console>os-ocl-nofeature-ha</a></td>
                                <td><div id="gaugeScenario2"></div></td>
                                <td><div id="trend_svg2"></div></td>
                                <td>3/30</td>
                                <td>8</td>
                            </tr><tr class="tr-ok">
                                <td><a href=https://build.opnfv.org/ci/view/functest/job/functest-compass-virtual-daily-danube/67/console>os-onos-nofeature-ha</a></td>
                                <td><div id="gaugeScenario3"></div></td>
                                <td><div id="trend_svg3"></div></td>
                                <td>28/33</td>
                                <td>20</td>
                            </tr><tr class="tr-ok">
                                <td><a href=https://build.opnfv.org/ci/view/functest/job/functest-compass-virtual-daily-danube/69/console>os-odl_l2-nofeature-ha</a></td>
                                <td><div id="gaugeScenario4"></div></td>
                                <td><div id="trend_svg4"></div></td>
                                <td>28/33</td>
                                <td>20</td>
                            </tr><tr class="tr-ok">
                                <td><a href=https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-danube/77/console>os-nosdn-openo-ha</a></td>
                                <td><div id="gaugeScenario5"></div></td>
                                <td><div id="trend_svg5"></div></td>
                                <td>28/30</td>
                                <td>19</td>
                            </tr><tr class="tr-ok">
                                <td><a href=https://build.opnfv.org/ci/view/functest/job/functest-compass-virtual-daily-danube/70/console>os-nosdn-nofeature-ha</a></td>
                                <td><div id="gaugeScenario6"></div></td>
                                <td><div id="trend_svg6"></div></td>
                                <td>29/30</td>
                                <td>19</td>
                            </tr>
                        </table>
        </div>


        <div class="scenario-part">
            <div class="page-header">
                <h3><span class="glyphicon glyphicon-chevron-right"> <b>os-odl_l3-nofeature-ha</b></h3>
            </div>
                    <div class="panel panel-default">
                    <div class="panel-heading">
                        <span class="panel-header-item">
                        </span>
                    </div>
                    <table class="table">
                        <tr>
                            <th>
                            Health (connection)

                             </th><th>
                            Health (api)

                             </th><th>
                            Health (dhcp)

                             </th><th>
                            vPing (userdata)

                             </th><th>
                            Tempest (smoke)

                             </th><th>
                            Rally (smoke)

                             </th><th>
                            Refstack

                             </th><th>
                            ODL

                             </th><th>
                            SNAPS

                             </th><th>
                            Domino

                             </th>
                        </tr>
                        <tr class="tr-weather-weather">
                            <td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-storm.png"></td><td><img src="../../img/weather-few-clouds.png"></td><td><img src="../../img/weather-overcast.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-few-clouds.png"></td><td><img src="../../img/weather-clear.png"></td>
                        </tr>
                    </table>
                </div>
        </div><div class="scenario-part">
            <div class="page-header">
                <h3><span class="glyphicon glyphicon-chevron-right"> <b>os-ocl-nofeature-ha</b></h3>
            </div>
                    <div class="panel panel-default">
                    <div class="panel-heading">
                        <span class="panel-header-item">
                        </span>
                    </div>
                    <table class="table">
                        <tr>
                            <th>
                            Health (connection)

                             </th><th>
                            Health (api)

                             </th><th>
                            Health (dhcp)

                             </th><th>
                            vPing (ssh)

                             </th><th>
                            vPing (userdata)

                             </th><th>
                            Tempest (smoke)

                             </th><th>
                            Rally (smoke)

                             </th><th>
                            Refstack

                             </th><th>
                            SNAPS

                             </th><th>
                            Domino

                             </th>
                        </tr>
                        <tr class="tr-weather-weather">
                            <td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-storm.png"></td><td><img src="../../img/weather-storm.png"></td><td><img src="../../img/weather-storm.png"></td><td><img src="../../img/weather-storm.png"></td><td><img src="../../img/weather-storm.png"></td><td><img src="../../img/weather-storm.png"></td><td><img src="../../img/weather-storm.png"></td><td><img src="../../img/weather-storm.png"></td><td><img src="../../img/weather-storm.png"></td>
                        </tr>
                    </table>
                </div>
        </div><div class="scenario-part">
            <div class="page-header">
                <h3><span class="glyphicon glyphicon-chevron-right"> <b>os-onos-nofeature-ha</b></h3>
            </div>
                    <div class="panel panel-default">
                    <div class="panel-heading">
                        <span class="panel-header-item">
                        </span>
                    </div>
                    <table class="table">
                        <tr>
                            <th>
                            Health (connection)

                             </th><th>
                            Health (api)

                             </th><th>
                            Health (dhcp)

                             </th><th>
                            vPing (ssh)

                             </th><th>
                            vPing (userdata)

                             </th><th>
                            Tempest (smoke)

                             </th><th>
                            Rally (smoke)

                             </th><th>
                            Refstack

                             </th><th>
                            ONOS

                             </th><th>
                            SNAPS

                             </th><th>
                            Domino

                             </th>
                        </tr>
                        <tr class="tr-weather-weather">
                            <td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-few-clouds.png"></td><td><img src="../../img/weather-storm.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-few-clouds.png"></td><td><img src="../../img/weather-clear.png"></td>
                        </tr>
                    </table>
                </div>
        </div><div class="scenario-part">
            <div class="page-header">
                <h3><span class="glyphicon glyphicon-chevron-right"> <b>os-odl_l2-nofeature-ha</b></h3>
            </div>
                    <div class="panel panel-default">
                    <div class="panel-heading">
                        <span class="panel-header-item">
                        </span>
                    </div>
                    <table class="table">
                        <tr>
                            <th>
                            Health (connection)

                             </th><th>
                            Health (api)

                             </th><th>
                            Health (dhcp)

                             </th><th>
                            vPing (ssh)

                             </th><th>
                            vPing (userdata)

                             </th><th>
                            Tempest (smoke)

                             </th><th>
                            Rally (smoke)

                             </th><th>
                            Refstack

                             </th><th>
                            ODL

                             </th><th>
                            SNAPS

                             </th><th>
                            Domino

                             </th>
                        </tr>
                        <tr class="tr-weather-weather">
                            <td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-storm.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-few-clouds.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-few-clouds.png"></td><td><img src="../../img/weather-clear.png"></td>
                        </tr>
                    </table>
                </div>
        </div><div class="scenario-part">
            <div class="page-header">
                <h3><span class="glyphicon glyphicon-chevron-right"> <b>os-nosdn-openo-ha</b></h3>
            </div>
                    <div class="panel panel-default">
                    <div class="panel-heading">
                        <span class="panel-header-item">
                        </span>
                    </div>
                    <table class="table">
                        <tr>
                            <th>
                            Health (connection)

                             </th><th>
                            Health (api)

                             </th><th>
                            Health (dhcp)

                             </th><th>
                            vPing (ssh)

                             </th><th>
                            vPing (userdata)

                             </th><th>
                            Tempest (smoke)

                             </th><th>
                            Rally (smoke)

                             </th><th>
                            Refstack

                             </th><th>
                            SNAPS

                             </th><th>
                            Domino

                             </th>
                        </tr>
                        <tr class="tr-weather-weather">
                            <td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-few-clouds.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-few-clouds.png"></td><td><img src="../../img/weather-clear.png"></td>
                        </tr>
                    </table>
                </div>
        </div><div class="scenario-part">
            <div class="page-header">
                <h3><span class="glyphicon glyphicon-chevron-right"> <b>os-nosdn-nofeature-ha</b></h3>
            </div>
                    <div class="panel panel-default">
                    <div class="panel-heading">
                        <span class="panel-header-item">
                        </span>
                    </div>
                    <table class="table">
                        <tr>
                            <th>
                            Health (connection)

                             </th><th>
                            Health (api)

                             </th><th>
                            Health (dhcp)

                             </th><th>
                            vPing (ssh)

                             </th><th>
                            vPing (userdata)

                             </th><th>
                            Tempest (smoke)

                             </th><th>
                            Rally (smoke)

                             </th><th>
                            Refstack

                             </th><th>
                            SNAPS

                             </th><th>
                            Domino

                             </th>
                        </tr>
                        <tr class="tr-weather-weather">
                            <td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-clear.png"></td><td><img src="../../img/weather-few-clouds.png"></td><td><img src="../../img/weather-clear.png"></td>
                        </tr>
                    </table>
                </div>
        </div>
    see <a href="https://wiki.opnfv.org/pages/viewpage.action?pageId=6828617">Functest scoring wiki page</a> for details on scenario scoring
  </div>
    <div class="col-md-1"></div>
</div>