You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2017/05/12 16:11:29 UTC

[01/10] incubator-trafficcontrol git commit: adds details regarding writing documentation

Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 13457d3f2 -> ccf2591ab


adds details regarding writing documentation


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/73a8fc82
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/73a8fc82
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/73a8fc82

Branch: refs/heads/master
Commit: 73a8fc82e54fc7977481275dcf24152ffc8c8355
Parents: 97632a4
Author: Jeremy Mitchell <mi...@gmail.com>
Authored: Fri May 12 09:43:07 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Fri May 12 09:54:32 2017 -0600

----------------------------------------------------------------------
 CONTRIBUTING.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/73a8fc82/CONTRIBUTING.md
----------------------------------------------------------------------
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 7e7e387..38e292a 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -23,7 +23,7 @@ If it's a bug fix, make a [JIRA issue](https://issues.apache.org/jira/browse/TC)
 
 #### Documentation
 
-If your pull request changes the user interface or API, make sure the relevant documentation is updated.
+If your pull request changes the user interface or API, make sure the relevant [documentation](http://trafficcontrol.apache.org/docs/latest/index.html) is updated. Documentation [source code](https://github.com/apache/incubator-trafficcontrol/tree/master/docs/source) is written using [reStructuredText](https://en.wikipedia.org/wiki/ReStructuredText). Please verify any document changes by installing [Sphinx](http://www.sphinx-doc.org/en/stable/) and running 'make' from the [root of the docs directory](https://github.com/apache/incubator-trafficcontrol/tree/master/docs).
 
 #### Code formatting
 


[04/10] incubator-trafficcontrol git commit: fixed issue where the wrong conf file was being read

Posted by ne...@apache.org.
fixed issue where the wrong conf file was being read


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/77a99c61
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/77a99c61
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/77a99c61

Branch: refs/heads/master
Commit: 77a99c61de8d4a8f49b180900830df16064d3594
Parents: 67c796d
Author: Dewayne Richardson <de...@apache.org>
Authored: Fri May 12 08:53:30 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Fri May 12 09:54:32 2017 -0600

----------------------------------------------------------------------
 traffic_ops/install/lib/Database.pm | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/77a99c61/traffic_ops/install/lib/Database.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/install/lib/Database.pm b/traffic_ops/install/lib/Database.pm
index 9dbbc31..57f6c90 100644
--- a/traffic_ops/install/lib/Database.pm
+++ b/traffic_ops/install/lib/Database.pm
@@ -28,19 +28,20 @@ sub connect {
     my $databaseConfFile = shift;
     my $todbconf = shift;
 
-    my $dbconf = InstallUtils::readJson($databaseConfFile);
+    my $conf = InstallUtils::readJson($databaseConfFile);
 
     # Check if the Postgres db is used and set the admin database to be "postgres"
-    my $dbName = $dbconf->{type};
-    if ( $dbconf->{type} eq "Pg" ) {
+    my $dbName = $conf->{type};
+    if ( $conf->{type} eq "Pg" ) {
         $dbName = "traffic_ops";
     }
 
-    $ENV{PGUSER}     = $todbconf->{"pgUser"};
-    $ENV{PGPASSWORD} = $todbconf->{"pgPassword"};
+	$ENV{PGUSER}     = $conf->{"user"};
+	$ENV{PGPASSWORD} = $conf->{"password"};
 
-    my $dsn = sprintf( "DBI:%s:db=%s;host=%s;port=%d", $dbconf->{type}, $dbName, $dbconf->{hostname}, $dbconf->{port} );
-    my $dbh = DBI->connect( $dsn, $todbconf->{"pgUser"}, $todbconf->{"pgPassword"} );
+    my $dsn = sprintf( "DBI:%s:db=%s;host=%s;port=%d", $conf->{type}, $dbName, $conf->{hostname}, $conf->{port} );
+    InstallUtils::logger( "dsn: " . $dsn, "info" );
+    my $dbh = DBI->connect( $dsn, $todbconf->{"user"}, $todbconf->{"password"} );
     if ($dbh) {
         InstallUtils::logger( "Database connection succeeded", "info" );
     }


[08/10] incubator-trafficcontrol git commit: Merge branch 'master' of github.com:dneuman64/incubator-trafficcontrol

Posted by ne...@apache.org.
Merge branch 'master' of github.com:dneuman64/incubator-trafficcontrol


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/d60a422c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/d60a422c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/d60a422c

Branch: refs/heads/master
Commit: d60a422ce13574ea2dc073868bc3f66256fef201
Parents: 13457d3 5c43162
Author: David Neuman <da...@gmail.com>
Authored: Fri May 12 10:07:50 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Fri May 12 10:07:50 2017 -0600

----------------------------------------------------------------------

----------------------------------------------------------------------



[07/10] incubator-trafficcontrol git commit: This closes #569

Posted by ne...@apache.org.
This closes #569


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/5c431627
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/5c431627
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/5c431627

Branch: refs/heads/master
Commit: 5c4316273d5645fb512b48e173a388e1b62577f4
Parents: 73a8fc8
Author: David Neuman <da...@gmail.com>
Authored: Fri May 12 09:55:12 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Fri May 12 09:55:12 2017 -0600

----------------------------------------------------------------------

----------------------------------------------------------------------



[06/10] incubator-trafficcontrol git commit: adds api/*/servers/status api endpoint to show a count of servers in each status. also fixed broken asn tests.

Posted by ne...@apache.org.
adds api/*/servers/status api endpoint to show a count of servers in each status. also fixed broken asn tests.


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/67c796d1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/67c796d1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/67c796d1

Branch: refs/heads/master
Commit: 67c796d1f6020c969f18102c073e65d8d9111928
Parents: 4e3567e
Author: Jeremy Mitchell <mi...@gmail.com>
Authored: Thu May 11 14:48:25 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Fri May 12 09:54:32 2017 -0600

----------------------------------------------------------------------
 .../development/traffic_ops_api/v12/server.rst  | 45 +++++++++++++++++++-
 traffic_ops/app/lib/API/Server.pm               | 21 +++++++++
 traffic_ops/app/lib/TrafficOpsRoutes.pm         |  5 ++-
 traffic_ops/app/t/api/1.1/asn.t                 | 12 +++---
 traffic_ops/app/t/api/1.2/server.t              |  5 +++
 5 files changed, 80 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/67c796d1/docs/source/development/traffic_ops_api/v12/server.rst
----------------------------------------------------------------------
diff --git a/docs/source/development/traffic_ops_api/v12/server.rst b/docs/source/development/traffic_ops_api/v12/server.rst
index d49fc75..0296e30 100644
--- a/docs/source/development/traffic_ops_api/v12/server.rst
+++ b/docs/source/development/traffic_ops_api/v12/server.rst
@@ -576,7 +576,7 @@ Server
 |
 
 
-**GET /api/1.2/servers/summary**
+**GET /api/1.2/servers/totals**
 
   Retrieves a count of CDN servers by type.
 
@@ -622,6 +622,49 @@ Server
 
 |
 
+**GET /api/1.2/servers/status**
+
+  Retrieves a count of CDN servers by status.
+
+  Authentication Required: Yes
+
+  Role(s) Required: None
+
+  **Response Properties**
+
+  +-----------------+--------+-----------------------------------------------------------------------------------------------------------------------+
+  | Parameter       |  Type  |                             Description                                                                               |
+  +=================+========+=======================================================================================================================+
+  | ``ONLINE``      | int    | The number of ONLINE servers. Traffic Monitor will not monitor the state of ONLINE servers. True health is unknown.   |
+  +-----------------+--------+-----------------------------------------------------------------------------------------------------------------------+
+  | ``REPORTED``    | int    | The number of REPORTED servers. Traffic Monitor monitors the state of REPORTED servers and removes them if unhealthy. |
+  +-----------------+--------+-----------------------------------------------------------------------------------------------------------------------+
+  | ``OFFLINE``     | int    | The number of OFFLINE servers. Used for longer-term maintenance. These servers are excluded from CRConfig.json.       |
+  +-----------------+--------+-----------------------------------------------------------------------------------------------------------------------+
+  | ``ADMIN_DOWN``  | int    | The number of ADMIN_DOWN servers. Used for short-term maintenance. These servers are included in CRConfig.json.       |
+  +-----------------+--------+-----------------------------------------------------------------------------------------------------------------------+
+  | ``CCR_IGNORE``  | int    | The number of CCR_IGNORE servers. These servers are excluded from CRConfig.json.                                      |
+  +-----------------+--------+-----------------------------------------------------------------------------------------------------------------------+
+  | ``PRE_PROD``    | int    | The number of PRE_PROD servers. Used for servers to be deployed. These servers are excluded from CRConfig.json.       |
+  +-----------------+--------+-----------------------------------------------------------------------------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+      "response":
+        {
+          "ONLINE": 100,
+          "OFFLINE": 23,
+          "REPORTED": 45,
+          "ADMIN_DOWN": 4,
+          "CCR_IGNORE": 1,
+          "PRE_PROD": 0,
+        }
+    }
+
+|
+
+
 **GET /api/1.2/servers/hostname/:name/details**
 
   Retrieves the details of a server.

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/67c796d1/traffic_ops/app/lib/API/Server.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Server.pm b/traffic_ops/app/lib/API/Server.pm
index a623913..a593553 100644
--- a/traffic_ops/app/lib/API/Server.pm
+++ b/traffic_ops/app/lib/API/Server.pm
@@ -621,6 +621,27 @@ sub totals {
 
 }
 
+sub status {
+	my $self = shift;
+
+	my $rs = $self->db->resultset('Server')->search(
+		undef,
+		{
+			join     => [qw/ status /],
+			select   => [ 'status.name', { count => 'me.id' } ],
+			as       => [qw/ status_name server_count /],
+			group_by => [qw/ status.id /]
+		}
+	);
+
+	my $response;
+	while ( my $row = $rs->next ) {
+		$response->{ $row->{'_column_data'}->{'status_name'} } = $row->{'_column_data'}->{'server_count'};
+	}
+
+	return $self->success( $response );
+}
+
 sub get_count_by_type {
 	my $self      = shift;
 	my $type_name = shift;

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/67c796d1/traffic_ops/app/lib/TrafficOpsRoutes.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/TrafficOpsRoutes.pm b/traffic_ops/app/lib/TrafficOpsRoutes.pm
index 72b1f85..e4fa69e 100644
--- a/traffic_ops/app/lib/TrafficOpsRoutes.pm
+++ b/traffic_ops/app/lib/TrafficOpsRoutes.pm
@@ -694,9 +694,12 @@ sub api_routes {
 	$r->get("/api/$version/servers/details")->over( authenticated => 1 )->to( 'Server#details', namespace => $namespace );
 	$r->get("/api/$version/servers/hostname/:name/details")->over( authenticated => 1 )->to( 'Server#details_v11', namespace => $namespace );
 
-	# -- SERVERS: TOTALS
+	# -- SERVERS: COUNT BY TYPE
 	$r->get("/api/$version/servers/totals")->over( authenticated => 1 )->to( 'Server#totals', namespace => $namespace );
 
+	# -- SERVERS: COUNT BY STATUS
+	$r->get("/api/$version/servers/status")->over( authenticated => 1 )->to( 'Server#status', namespace => $namespace );
+
 	# -- SERVERS: QUEUE/DEQUEUE SERVER UPDATES
 	$r->post("/api/$version/servers/:id/queue_update" => [ id => qr/\d+/ ] )->over( authenticated => 1 )->to( 'Server#postupdatequeue', namespace => $namespace );
 

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/67c796d1/traffic_ops/app/t/api/1.1/asn.t
----------------------------------------------------------------------
diff --git a/traffic_ops/app/t/api/1.1/asn.t b/traffic_ops/app/t/api/1.1/asn.t
index 4d5c3c8..72bd698 100644
--- a/traffic_ops/app/t/api/1.1/asn.t
+++ b/traffic_ops/app/t/api/1.1/asn.t
@@ -40,15 +40,15 @@ Test::TestHelper->load_core_data($schema);
 ok $t->post_ok( '/login', => form => { u => Test::TestHelper::ADMIN_USER, p => Test::TestHelper::ADMIN_USER_PASSWORD } )->status_is(302)
 	->or( sub { diag $t->tx->res->content->asset->{content}; } );
 
-$t->get_ok("/api/1.1/asns")->status_is(200)->json_is( "/response/0/id", 100 )->json_is( "/response/0/cachegroup", "mid-northeast-group" )
-	->json_is( "/response/0/asn", 9939 )->or( sub { diag $t->tx->res->content->asset->{content}; } );
+$t->get_ok("/api/1.1/asns")->status_is(200)->json_is( "/response/asns/0/id", 100 )->json_is( "/response/asns/0/cachegroup", "mid-northeast-group" )
+	->json_is( "/response/asns/0/asn", 9939 )->or( sub { diag $t->tx->res->content->asset->{content}; } );
 
-$t->get_ok("/api/1.1/asns?orderby=id")->status_is(200)->json_is( "/response/0/id", 100 )
-	->json_is( "/response/0/cachegroup", "mid-northeast-group" )->json_is( "/response/0/asn", 9939 )
+$t->get_ok("/api/1.1/asns?orderby=id")->status_is(200)->json_is( "/response/asns/0/id", 100 )
+	->json_is( "/response/asns/0/cachegroup", "mid-northeast-group" )->json_is( "/response/asns/0/asn", 9939 )
 	->or( sub { diag $t->tx->res->content->asset->{content}; } );
 
-$t->get_ok("/api/1.1/asns?orderby=cachegroup")->status_is(200)->json_is( "/response/0/id", 100 )
-	->json_is( "/response/0/cachegroup", "mid-northeast-group" )->json_is( "/response/0/asn", 9939 )
+$t->get_ok("/api/1.1/asns?orderby=cachegroup")->status_is(200)->json_is( "/response/asns/0/id", 100 )
+	->json_is( "/response/asns/0/cachegroup", "mid-northeast-group" )->json_is( "/response/asns/0/asn", 9939 )
 	->or( sub { diag $t->tx->res->content->asset->{content}; } );
 
 ok $t->get_ok('/logout')->status_is(302)->or( sub { diag $t->tx->res->content->asset->{content}; } );

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/67c796d1/traffic_ops/app/t/api/1.2/server.t
----------------------------------------------------------------------
diff --git a/traffic_ops/app/t/api/1.2/server.t b/traffic_ops/app/t/api/1.2/server.t
index 2ae3f72..cedbfec 100644
--- a/traffic_ops/app/t/api/1.2/server.t
+++ b/traffic_ops/app/t/api/1.2/server.t
@@ -526,6 +526,11 @@ ok $t->put_ok('/api/1.2/servers/' . $server_id => {Accept => 'application/json'}
 		->status_is(200)->or( sub { diag $t->tx->res->content->asset->{content}; } )
 	, 'Does the server update succeed because ip6Address is already used by the profile but...by this server?';
 
+ok $t->get_ok('/api/1.2/servers/status')->status_is(200)->or( sub { diag $t->tx->res->content->asset->{content}; } )
+		->json_is( "/response/ONLINE", 15 )
+		->json_is( "/response/REPORTED", 5 )
+		->or( sub { diag $t->tx->res->content->asset->{content}; } );
+
 ok $t->get_ok('/logout')->status_is(302)->or( sub { diag $t->tx->res->content->asset->{content}; } );
 $dbh->disconnect();
 done_testing();


[03/10] incubator-trafficcontrol git commit: fixed formatting

Posted by ne...@apache.org.
fixed formatting


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/5afac789
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/5afac789
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/5afac789

Branch: refs/heads/master
Commit: 5afac789b3dfcdb7c17917bceb6a1157322bceaa
Parents: 77a99c6
Author: Dewayne Richardson <de...@apache.org>
Authored: Fri May 12 08:55:17 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Fri May 12 09:54:32 2017 -0600

----------------------------------------------------------------------
 traffic_ops/install/lib/Database.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/5afac789/traffic_ops/install/lib/Database.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/install/lib/Database.pm b/traffic_ops/install/lib/Database.pm
index 57f6c90..a8e98c6 100644
--- a/traffic_ops/install/lib/Database.pm
+++ b/traffic_ops/install/lib/Database.pm
@@ -36,8 +36,8 @@ sub connect {
         $dbName = "traffic_ops";
     }
 
-	$ENV{PGUSER}     = $conf->{"user"};
-	$ENV{PGPASSWORD} = $conf->{"password"};
+    $ENV{PGUSER}     = $conf->{"user"};
+    $ENV{PGPASSWORD} = $conf->{"password"};
 
     my $dsn = sprintf( "DBI:%s:db=%s;host=%s;port=%d", $conf->{type}, $dbName, $conf->{hostname}, $conf->{port} );
     InstallUtils::logger( "dsn: " . $dsn, "info" );


[09/10] incubator-trafficcontrol git commit: Update multi_site_ats5.rst

Posted by ne...@apache.org.
Update multi_site_ats5.rst

Removed reference to 'HTTP_LIVE_NATNL' delivery service requirement

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/fd85eb6a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/fd85eb6a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/fd85eb6a

Branch: refs/heads/master
Commit: fd85eb6a29b3ce76a2ef89ba9cac0c7c0a5ec40f
Parents: d60a422
Author: joepeters27 <jo...@gmail.com>
Authored: Tue Apr 25 16:06:42 2017 -0400
Committer: David Neuman <da...@gmail.com>
Committed: Fri May 12 10:11:01 2017 -0600

----------------------------------------------------------------------
 docs/source/admin/quick_howto/multi_site_ats5.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/fd85eb6a/docs/source/admin/quick_howto/multi_site_ats5.rst
----------------------------------------------------------------------
diff --git a/docs/source/admin/quick_howto/multi_site_ats5.rst b/docs/source/admin/quick_howto/multi_site_ats5.rst
index 9419de0..570e844 100644
--- a/docs/source/admin/quick_howto/multi_site_ats5.rst
+++ b/docs/source/admin/quick_howto/multi_site_ats5.rst
@@ -37,7 +37,7 @@ Configure Multi Site Origin (5.x)
 	:scale: 100%
 	:align: center
 
-4) Check the multi-site check box in the delivery service screen and make sure that Content Routing Type is set to HTTP_LIVE_NATL:
+4) Check the multi-site check box in the delivery service screen:
 
 .. image:: mso-enable.png
 	:scale: 100%


[02/10] incubator-trafficcontrol git commit: removed debug

Posted by ne...@apache.org.
removed debug


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/97632a44
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/97632a44
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/97632a44

Branch: refs/heads/master
Commit: 97632a44565ef4f44cf8f8f3054d08444b88c1d4
Parents: 5afac78
Author: Dewayne Richardson <de...@apache.org>
Authored: Fri May 12 08:55:49 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Fri May 12 09:54:32 2017 -0600

----------------------------------------------------------------------
 traffic_ops/install/lib/Database.pm | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/97632a44/traffic_ops/install/lib/Database.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/install/lib/Database.pm b/traffic_ops/install/lib/Database.pm
index a8e98c6..be6310d 100644
--- a/traffic_ops/install/lib/Database.pm
+++ b/traffic_ops/install/lib/Database.pm
@@ -40,7 +40,6 @@ sub connect {
     $ENV{PGPASSWORD} = $conf->{"password"};
 
     my $dsn = sprintf( "DBI:%s:db=%s;host=%s;port=%d", $conf->{type}, $dbName, $conf->{hostname}, $conf->{port} );
-    InstallUtils::logger( "dsn: " . $dsn, "info" );
     my $dbh = DBI->connect( $dsn, $todbconf->{"user"}, $todbconf->{"password"} );
     if ($dbh) {
         InstallUtils::logger( "Database connection succeeded", "info" );


[05/10] incubator-trafficcontrol git commit: Fix TM2 GUI table header being deleted

Posted by ne...@apache.org.
Fix TM2 GUI table header being deleted


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/4e3567ec
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/4e3567ec
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/4e3567ec

Branch: refs/heads/master
Commit: 4e3567ecdb92e360e5028429dc600b14add009ac
Parents: 4e35ed1
Author: Robert Butts <ro...@gmail.com>
Authored: Thu May 11 14:09:38 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Fri May 12 09:54:32 2017 -0600

----------------------------------------------------------------------
 traffic_monitor_golang/traffic_monitor/static/index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/4e3567ec/traffic_monitor_golang/traffic_monitor/static/index.html
----------------------------------------------------------------------
diff --git a/traffic_monitor_golang/traffic_monitor/static/index.html b/traffic_monitor_golang/traffic_monitor/static/index.html
index 7ca7788..2cf45cd 100644
--- a/traffic_monitor_golang/traffic_monitor/static/index.html
+++ b/traffic_monitor_golang/traffic_monitor/static/index.html
@@ -335,7 +335,7 @@ under the License.
 					 }
 				 }
 
-				 for (var i = 0, row; row = table.rows[i]; i++) {
+				 for (var i = 1, row; row = table.rows[i]; i++) { // start at 1, because row[0] is the header
 					 var server = row.id.replace(/^cache-states-/, '');
 					 if(!(server in jdata)) {
 						 table.deleteRow(i);


[10/10] incubator-trafficcontrol git commit: This closes #515

Posted by ne...@apache.org.
This closes #515


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/ccf2591a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/ccf2591a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/ccf2591a

Branch: refs/heads/master
Commit: ccf2591ab9b550fecba0da49d5b600c15b34a7de
Parents: fd85eb6
Author: David Neuman <da...@gmail.com>
Authored: Fri May 12 10:11:14 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Fri May 12 10:11:14 2017 -0600

----------------------------------------------------------------------

----------------------------------------------------------------------