Commit Graph

182 Commits

Author SHA1 Message Date
Mike Danese
8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
Alex Mohr
5068c9ff32 Merge pull request #8905 from justinsb/e2e_log_events_on_service_mutation
Auto commit by PR queue bot
2015-08-04 10:58:25 -07:00
Chao Xu
18d32751fd improve the error message of update pod 2015-08-02 13:41:53 -07:00
derekwaynecarr
01ec50deb4 Vagrant passes conformance tests at HEAD 2015-07-29 10:16:39 -04:00
Justin Santa Barbara
584a6f27ad Introduce framework in e2e services; should log events on failure
Once #8887 merges this should show errors in load balancer creation.

Even before then, it may show another error.

Bug #8892
2015-07-26 18:55:34 -04:00
Wojciech Tyczynski
fdd7f1e4b2 Rewrite services shell test in Go. 2015-07-23 16:16:45 +02:00
Vish Kannan
b27f99bd43 Merge pull request #11030 from justinsb/e2e_aws_lb_changes_on_service_change
e2e: For AWS, tolerate an LB change when the service changes
2015-07-22 16:32:10 -07:00
Eric Tune
914b6fe25b Merge pull request #10185 from mesosphere/exclusive-port-range
Fix default service node port range in e2e test
2015-07-14 12:00:39 -07:00
Tim Hockin
3452748de9 Merge pull request #11077 from krousey/service_flake
Adding retry logic around service updates
2015-07-13 13:06:02 -07:00
Brendan Burns
a8f02e5472 Automatically open a firewall when creating a GCE load balancer. 2015-07-10 14:35:29 -07:00
Kris Rousey
aca4559bbd Adding retry logic around service updates 2015-07-10 13:38:37 -07:00
Justin Santa Barbara
627261082c e2e: For AWS, tolerate an LB change when the service changes
We have an issue to track the problem: #11002

The test was serving as a reminder that this needed fixing, but
for v1 we should just test what we expect to happen.
2015-07-09 19:57:21 -04:00
derekwaynecarr
8da819f39f Skip test on vagrant provider 2015-07-09 12:47:12 -04:00
Karl Isenberg
f1d6439c2e Add timeout to service endpoint resolution e2e test 2015-07-01 14:58:37 -07:00
Marek Biskup
01e1d3710a add description to timeout messages 2015-06-29 10:25:39 +02:00
Karl Isenberg
32a09cfcee Use Ginkgo Skip() to avoid failing when tests are skipped
- Added util methods: Skipf, SkipUnlessNodeCountIsAtLeast, SkipIfProviderIs,
  and SkipUnlessProviderIs
2015-06-25 09:50:25 -07:00
Dr. Stefan Schimanski
795e5b4d86 Fix default service node port range in e2e test
While the command line parameter --service-node-port-range is inclusive, the
actual data structure is exclusive.
2015-06-23 12:32:14 +02:00
Max Forbes
2803fbe343 Node upgrade tests. 2015-06-18 15:59:51 -07:00
Saad Ali
47a802d315 Merge pull request #9648 from mikedanese/cleanup-service-e2e
cleanup some of the e2e service reachability code
2015-06-16 18:39:25 -07:00
Mike Danese
145f59f12f cleanup some of the e2e service reachability code. 2015-06-15 23:54:03 -07:00
Daniel Smith
1fb90686df remove broken ginkgo Done concept from tests 2015-06-15 18:40:11 -07:00
Abhi Shah
117f550334 Merge pull request #9724 from brendandburns/e2e-fix
Increase timeouts for service tests.
2015-06-12 15:25:17 -07:00
Brendan Burns
bf9fec5bc2 Increase timeouts for service tests. 2015-06-12 11:53:46 -07:00
Mike Danese
de55e17f75 e2e test cluster stability during upgrade 2015-06-11 15:10:52 -07:00
Daniel Smith
abb00f1cfc fix e2e service test to not reference ro service 2015-06-02 18:45:26 -07:00
Justin Santa Barbara
6564fedbdb Set (short) timeout for http request polling 2015-05-23 22:13:49 -04:00
Justin Santa Barbara
c68e4163fe e2e fix: set NodePort back to 0, when changing from NodePort -> ClusterIP 2015-05-22 22:20:29 -04:00
Justin Santa Barbara
270701b88a e2e testing for NodePort services 2015-05-22 19:14:28 -04:00
Justin Santa Barbara
7346cc8042 Add ServiceType = NodePort; wire everything up 2015-05-22 19:14:28 -04:00
Justin Santa Barbara
973c2e4819 Add Type to ServiceSpec: ClusterIP or LoadBalancer 2015-05-22 19:14:21 -04:00
Justin Santa Barbara
3884d5fc59 Add LoadBalancer status to ServiceStatus
This will replace publicIPs
2015-05-22 18:27:05 -04:00
Quinton Hoole
14665119b4 Revert "improve e2e retry logic with standard wait.Poll()" 2015-05-19 11:17:32 -07:00
He Simei
09fc2a5013 improve retry logic with standard wait.Poll()
Signed-off-by: He Simei <hesimei@zju.edu.cn>
2015-05-19 21:31:27 +08:00
Vishnu Kannan
439e2f5fde Moving dns e2e tests in existing services test into a separate DNS e2e test. 2015-05-14 09:59:16 -07:00
marekbiskup
672819be16 multiport endpoint e2e test 2015-05-14 13:42:46 +02:00
Tim Hockin
e83e49b076 rename default DNS domain to cluster.local 2015-05-11 23:00:43 -07:00
Tim Hockin
34743a665a Add e2e coverage for DNS on TCP 2015-05-07 00:40:48 -07:00
Quinton Hoole
f51f6317d2 Improve retry logic in services e2e test. 2015-05-06 14:16:59 -07:00
Eric Paris
6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Piotr Szczesniak
11a2dc496f Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
Those are changes which touch users required by Termination Notice

Addresses #6804
2015-04-30 18:00:33 +02:00
Paul Morie
08e3a5a969 Add appropriate skips for E2Es that use createExternalLoadBalancer 2015-04-22 17:02:59 -04:00
Alex Robinson
a9902fe932 Update the external load balancer test to use a different namespace in
each run, making stuck resources less painful.
2015-04-21 22:19:22 +00:00
Robert Bailey
feb7abcada Ensure that e2e tests run on gce|gke and are appropriately
skipped for other cloud providers.
2015-04-20 15:04:31 -07:00
Alex Robinson
6209249976 Use the standard podStartTimeout in services e2e test when waiting for a
pod to be reachable behind an external load balancer.

I observed occasional timeouts when testing locally, and upon investigation
of one particular instance, found that it was just because the pod wasn't up
and running yet. I've changed the test to wait as long as all other tests do.

Also fix an unrelated error message.
2015-04-17 00:45:47 +00:00
Quinton Hoole
57a52d40ec Merge pull request #6920 from a-robinson/e2e
Fix a broken fmt.Errorf in the services e2e test
2015-04-16 10:39:58 -07:00
Alex Robinson
663ca18e8d Fix a broken fmt.Errorf in the services e2e test. 2015-04-16 17:24:59 +00:00
Quinton Hoole
82222e2ab7 Revert "Move remaining tests in e2e/service.go to unique namespaces." 2015-04-16 04:08:50 -07:00
Quinton Hoole
34a2c6542a Move remaining tests in e2e/service.go to unique namespaces.
This prevents multiple runs of the same test from trampling on each other,
both serially and in parallel.
2015-04-15 15:38:55 -07:00
Brian Grant
29e68ad392 Merge pull request #6790 from nikhiljindal/encoder
Removing references to v1beta1 from hack/ and test/
2015-04-15 10:25:33 -07:00
Alex Robinson
7b647c5dbc Fix the services namespace test to wait for the services' load balancers
to be created.
2015-04-14 18:56:43 +00:00
Alex Robinson
ccc300289f Implement a ServiceController that watches services and handles keeping
external load balancers up-to-date based on the service's specs, using
the new DeltaFIFO watch queue class. Remove the old registry REST
handler code for creating/updating/deleting load balancers.

Also clean up a bunch of the GCE cloudprovider code related to load balancers.
2015-04-14 18:56:24 +00:00
nikhiljindal
a2c29d48ec Removing references to v1beta1 from hack/ and test/ 2015-04-14 11:31:37 -07:00
nikhiljindal
f2b72931fc Updating components to use v1beta3 2015-04-03 15:19:14 -07:00
Jeff Lowdermilk
7abcba9017 Use an up-to-date nginx image for e2e tests 2015-04-02 10:15:20 -07:00
Zach Loafman
1ff0a1e2a1 Merge pull request #6270 from jlowdermilk/gcloud-updates
Updates for gcloud 0.9.54
2015-04-01 19:14:57 -07:00
Jeff Lowdermilk
cfc04f41b8 Updates for gcloud changes (alpha, kubeconfig) 2015-04-01 09:27:06 -07:00
Jeff Lowdermilk
2d8e93f8b4 e2e images pulled from gcr.io 2015-04-01 09:18:03 -07:00
Tim Hockin
186818d787 WIP: Implement multi-port Services 2015-03-30 19:28:11 -07:00
Quinton Hoole
a4dde6e2cb Make service e2e tests run in timestamped namespaces.
Make some service e2e tests run in timestamped namespaces to prevent name collisions.
2015-03-30 15:49:06 -07:00
Tim Hockin
8ae203825b Implement multi-port endpoints
Instead of endpoints being a flat list, it is now a list of "subsets"
where each is a struct of {Addresses, Ports}.  To generate the list of
endpoints you need to take union of the Cartesian products of the
subsets.  This is compact in the vast majority of cases, yet still
represents named ports and corner cases (e.g. each pod has a different
port number).

This also stores subsets in a deterministic order (sorted by hash) to
avoid spurious updates and comparison problems.

This is a fully compatible change - old objects and clients will
keepworking as long as they don't need the new functionality.

This is the prep for multi-port Services, which will add API to produce
endpoints in this new structure.
2015-03-27 12:36:32 -07:00
Alex Robinson
22825b1045 Add an end-to-end test for external load balancers. 2015-03-23 18:10:13 +00:00
Maxwell Forbes
0250fcfd8f Merge pull request #5732 from zmerlynn/i5722
service.go e2e: Cleanup ELBs from previous runs
2015-03-20 15:34:53 -07:00
Zach Loafman
4ab3852685 service.go e2e: Cleanup ELBs from previous runs
Prior to attempting to create new ones, cleanup from previous runs.
Timeouts, 500s, etc. are possible here, and if they happen, you don't
want to die forever.

Along the way: Remove the timeout, it was clearly copied from the
previous function and is actually an anti-pattern that needs to be
fixed after discovering it doesn't play well with defers.

Fixes #5722
2015-03-20 14:43:38 -07:00
Tim Hockin
4375376e9c Rename Service.ContainerPort to TargetPort in v1b3
Fix all callers and examples.  Part of multi-port service cleanup.
2015-03-20 13:50:06 -07:00
Quinton Hoole
cc72eaec3a Fix services namespace clash.
Serve identically names services in different namespaces on different external IP addresses.
2015-03-16 18:19:19 -07:00
Jeff Lowdermilk
083f29158f Make e2e pod start timeouts uniform 2015-03-05 15:54:45 -08:00
Brendan Burns
fb90b56bf6 Embed VolumeSource in v1beta3 and internal. 2015-03-04 02:25:40 -08:00
Tim Hockin
ea548b8260 Rename type Port to ContainerPort
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-27 21:05:59 -08:00
Fabio Yeon
0b72391aa0 Move 'defer' call before creation on various e2e tests. 2015-02-25 10:04:51 -08:00
Daniel Smith
650f6cb826 Revert "Multi-port Endpoints" 2015-02-23 13:53:21 -08:00
Tim Hockin
eed36455a7 Merge pull request #4653 from thockin/secret_fixups
Secrets fixups
2015-02-23 13:49:19 -08:00
Tim Hockin
607b736a3f Rename volume source types to be consistent. 2015-02-23 12:39:57 -08:00
Tim Hockin
160f288832 Implement multi-port Endpoints
This is a part of multi-port services.
2015-02-22 09:35:12 -08:00
Tim Hockin
e0fd83096c Rename type Port to ContainerPort
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-21 22:26:38 -08:00
Tim Hockin
ae0062d001 Part 2 of plural ports: make endpoints a struct
Includes conversions for v1b[12] and tests and fixups for call sites.
2015-02-18 19:54:15 -08:00
Zach Loafman
a8991edf9e Port endpoints.go test to new-style Gingko test 2015-02-09 12:37:56 -08:00
Zach Loafman
2e4a1e910b Change loadClientOrDie to return an error
Also remove a bunch of dead code. This is a step along the path to
getting rid of all the glog in util.go.
2015-02-09 07:14:52 -08:00
Zach Loafman
2be3139926 Add a timeout to waitForPodRunning
* Add a timeout, convert the function to return an error (which gives
a reasonable status message for callers).
* Start converting glog to By.
2015-02-09 06:36:53 -08:00
Robert Rati
70237e9cc6 Changed to return in the success case testing testContext instead of using
an else statement.  #4162
2015-02-05 13:09:46 -05:00
Robert Rati
d3e04cd246 Moved the ROService test into the services suite #4162 2015-02-05 10:23:48 -05:00
Robert Rati
d44c1d5b84 Converted TestClusterDNS to native ginkgo syntax #4162 2015-02-05 10:23:46 -05:00
Robert Rati
de848cc3f0 Moved cluster_dns to create the new service test suite #4162 2015-02-05 10:07:32 -05:00