You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mt...@apache.org on 2017/05/08 16:05:03 UTC
[1/5] incubator-trafficcontrol git commit: updates to use only the
beginning of the hostname and adds tr to filter
Repository: incubator-trafficcontrol
Updated Branches:
refs/heads/master 210facc20 -> 26d3ca012
updates to use only the beginning of the hostname and adds tr to filter
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/b2388394
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/b2388394
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/b2388394
Branch: refs/heads/master
Commit: b23883941c7971f2ab79c7bd7b69e6c09b891cc5
Parents: ba4b18c
Author: Derek Gelinas <de...@cable.comcast.com>
Authored: Mon May 8 11:52:57 2017 -0400
Committer: Mark Torluemke <mt...@apache.org>
Committed: Mon May 8 16:03:34 2017 +0000
----------------------------------------------------------------------
traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/b2388394/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
index 02d7422..3eff576 100644
--- a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
+++ b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
@@ -1473,11 +1473,11 @@ sub ssl_multicert_dot_config {
#first one is the one we want
my $hostname = $example_urls[0];
- if ( $hostname =~ /ccr/ ) {
- next; # Steering delivery service SSLs should not be on the edges.
- }
$hostname =~ /(https?:\/\/)(.*)/;
my $new_host = $2;
+ if ( $new_host =~ /^ccr/ || $new_host =~ /^tr/ ) {
+ next; # Steering delivery service SSLs should not be on the edges.
+ }
my $key_name = "$new_host.key";
$new_host =~ tr/./_/;
my $cer_name = $new_host . "_cert.cer";
[2/5] incubator-trafficcontrol git commit: still more dumper stuff
Posted by mt...@apache.org.
still more dumper stuff
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/ba4b18c7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/ba4b18c7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/ba4b18c7
Branch: refs/heads/master
Commit: ba4b18c79d5235a7ef913e48f89e869ed4797ff4
Parents: e7275a5
Author: Derek Gelinas <de...@cable.comcast.com>
Authored: Sun May 7 20:36:30 2017 -0400
Committer: Mark Torluemke <mt...@apache.org>
Committed: Mon May 8 16:03:34 2017 +0000
----------------------------------------------------------------------
traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm | 7 -------
1 file changed, 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/ba4b18c7/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
index b8140fd..02d7422 100644
--- a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
+++ b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
@@ -1922,9 +1922,6 @@ sub format_parent_info {
sub parent_dot_config {
my $self = shift;
my $server_obj = shift;
- print STDERR "Start time:\n";
- my $time = localtime;
- print STDERR Dumper($time);
my $data;
my $server_type = $server_obj->type->name;
@@ -1939,7 +1936,6 @@ sub parent_dot_config {
if ( !defined($data) ) {
$data = $self->ds_data($server_obj);
}
- $time = localtime;
if ( $server_type =~ m/^MID/ ) {
my @unique_origins;
foreach my $ds ( @{ $data->{dslist} } ) {
@@ -2124,9 +2120,6 @@ sub parent_dot_config {
}
$text .= "\n";
- $time = localtime;
- print STDERR "Time after complete:\n";
- print STDERR Dumper($time);
return $text;
}
}
[3/5] incubator-trafficcontrol git commit: remove steering and ccr
ssl from ssl_multicert.config
Posted by mt...@apache.org.
remove steering and ccr ssl from ssl_multicert.config
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/3c04129f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/3c04129f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/3c04129f
Branch: refs/heads/master
Commit: 3c04129f2bf6f69865f57e54fd3dcca7c6939e1d
Parents: 210facc
Author: Derek Gelinas <de...@cable.comcast.com>
Authored: Sun May 7 20:32:01 2017 -0400
Committer: Mark Torluemke <mt...@apache.org>
Committed: Mon May 8 16:03:34 2017 +0000
----------------------------------------------------------------------
.../app/lib/API/Configs/ApacheTrafficServer.pm | 25 ++++++++++++++++----
1 file changed, 20 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3c04129f/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
index 6a699e2..62ea29a 100644
--- a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
+++ b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
@@ -1460,6 +1460,9 @@ sub ssl_multicert_dot_config {
my $protocol_search = '> 0';
my @ds_list = $self->db->resultset('Deliveryservice')->search( { -and => [ cdn_id => $cdn_obj->id, 'me.protocol' => \$protocol_search ] } )->all();
foreach my $ds (@ds_list) {
+ if ( $ds->type->name =~ /STEERING/ ) {
+ next; # Steering delivery service SSLs should not be on the edges.
+ }
my $ds_id = $ds->id;
my $xml_id = $ds->xml_id;
my $rs_ds = $self->db->resultset('Deliveryservice')->search( { 'me.id' => $ds_id }, { prefetch => ['type'] } );
@@ -1470,6 +1473,9 @@ sub ssl_multicert_dot_config {
#first one is the one we want
my $hostname = $example_urls[0];
+ if ( $hostname =~ /ccr/ ) {
+ next; # Steering delivery service SSLs should not be on the edges.
+ }
$hostname =~ /(https?:\/\/)(.*)/;
my $new_host = $2;
my $key_name = "$new_host.key";
@@ -1916,7 +1922,9 @@ sub format_parent_info {
sub parent_dot_config {
my $self = shift;
my $server_obj = shift;
-
+ print STDERR "Start time:\n";
+ my $time = localtime;
+ print STDERR Dumper($time);
my $data;
my $server_type = $server_obj->type->name;
@@ -1926,13 +1934,17 @@ sub parent_dot_config {
->search( { 'parameter.name' => 'trafficserver', 'parameter.config_file' => 'package', 'profile.id' => $server_obj->profile->id },
{ prefetch => [ 'profile', 'parameter' ] } )->get_column('parameter.value')->single();
my $ats_major_version = substr( $ats_ver, 0, 1 );
-
+ $time = localtime;
+ print STDERR "Time after ATS ver:\n";
+ print STDERR Dumper($time);
my $parent_info;
my $text = $self->header_comment( $server_obj->host_name );
if ( !defined($data) ) {
$data = $self->ds_data($server_obj);
}
-
+ $time = localtime;
+ print STDERR "Time after DS Data:\n";
+ print STDERR Dumper($time);
if ( $server_type =~ m/^MID/ ) {
my @unique_origins;
foreach my $ds ( @{ $data->{dslist} } ) {
@@ -2021,7 +2033,8 @@ sub parent_dot_config {
#$text .= "dest_domain=. go_direct=true\n"; # this is implicit.
#$self->app->log->debug( "MID PARENT.CONFIG:\n" . $text . "\n" );
-
+ print STDERR "Time after complete:\n";
+ print STDERR Dumper($time);
return $text;
}
else { #"True" Parent - we are genning a EDGE config that points to a parent proxy.
@@ -2118,7 +2131,9 @@ sub parent_dot_config {
}
$text .= "\n";
-
+ $time = localtime;
+ print STDERR "Time after complete:\n";
+ print STDERR Dumper($time);
return $text;
}
}
[5/5] incubator-trafficcontrol git commit: This closes #552.
Posted by mt...@apache.org.
This closes #552.
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/26d3ca01
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/26d3ca01
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/26d3ca01
Branch: refs/heads/master
Commit: 26d3ca012f02d2f92710d0a1a623d0393be5ed7a
Parents: b238839
Author: Mark Torluemke <mt...@apache.org>
Authored: Mon May 8 16:04:25 2017 +0000
Committer: Mark Torluemke <mt...@apache.org>
Committed: Mon May 8 16:04:25 2017 +0000
----------------------------------------------------------------------
----------------------------------------------------------------------
[4/5] incubator-trafficcontrol git commit: remove stderr
Posted by mt...@apache.org.
remove stderr
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/e7275a57
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/e7275a57
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/e7275a57
Branch: refs/heads/master
Commit: e7275a575848a14a44252a9db7d71369ee0eee2f
Parents: 3c04129
Author: Derek Gelinas <de...@cable.comcast.com>
Authored: Sun May 7 20:34:25 2017 -0400
Committer: Mark Torluemke <mt...@apache.org>
Committed: Mon May 8 16:03:34 2017 +0000
----------------------------------------------------------------------
traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm | 7 -------
1 file changed, 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/e7275a57/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
index 62ea29a..b8140fd 100644
--- a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
+++ b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
@@ -1934,17 +1934,12 @@ sub parent_dot_config {
->search( { 'parameter.name' => 'trafficserver', 'parameter.config_file' => 'package', 'profile.id' => $server_obj->profile->id },
{ prefetch => [ 'profile', 'parameter' ] } )->get_column('parameter.value')->single();
my $ats_major_version = substr( $ats_ver, 0, 1 );
- $time = localtime;
- print STDERR "Time after ATS ver:\n";
- print STDERR Dumper($time);
my $parent_info;
my $text = $self->header_comment( $server_obj->host_name );
if ( !defined($data) ) {
$data = $self->ds_data($server_obj);
}
$time = localtime;
- print STDERR "Time after DS Data:\n";
- print STDERR Dumper($time);
if ( $server_type =~ m/^MID/ ) {
my @unique_origins;
foreach my $ds ( @{ $data->{dslist} } ) {
@@ -2033,8 +2028,6 @@ sub parent_dot_config {
#$text .= "dest_domain=. go_direct=true\n"; # this is implicit.
#$self->app->log->debug( "MID PARENT.CONFIG:\n" . $text . "\n" );
- print STDERR "Time after complete:\n";
- print STDERR Dumper($time);
return $text;
}
else { #"True" Parent - we are genning a EDGE config that points to a parent proxy.