Commit Graph

23 Commits

Author SHA1 Message Date
Tim Hockin
eeff1b74fb Fixes from feedback and testing 2015-03-30 23:52:37 -07:00
Tim Hockin
186818d787 WIP: Implement multi-port Services 2015-03-30 19:28:11 -07:00
Angus Lees
1437e6b7ca OpenStack: Return multiple private+public NodeAddresses
Add better support for the new NodeAddresses call.  Note the returned
list may include IPv6 addresses (as strings) on many OpenStack clouds.
2015-03-16 17:11:36 +11:00
Angus Lees
437853b8cd Keep resources as numeric values
Previously, this code converted to a string and reparsed back to a
numeric Quantity.  Keeping it numeric avoids the overhead, but also
removes a (theoretical) run-time panic if the re-parse failed.

In addition, since Quantity can now store quantities <1, convert
openstack.org/rxTxFactor back to its original ratio, rather than
arbitrarily scaling it up by 1000.
2015-03-16 15:35:45 +11:00
Angus Lees
e14b73bd30 Reauthenticate to OpenStack periodically
It appears that gophercloud's "AllowReauth" AuthOption doesn't actually
do anything, and the keystone/auth token is never refreshed.  Eventually
it expires and all OpenStack calls receive HTTP 401 responses.

This change reauthenticates every time the Instances() or
TCPLoadBalancer() API object is requested.  This is more frequently than
required, but exposing token expiry information will require gophercloud
surgery.
2015-03-16 15:35:45 +11:00
Angus Lees
762225ed47 OpenStack: Align logging levels with devel/logging.md 2015-03-16 15:35:43 +11:00
Angus Lees
4ff292a65e OpenStack: Support loadbalancer client IP affinity 2015-03-16 15:33:54 +11:00
Alex Robinson
579edee4c2 Merge pull request #5346 from justinsb/cloudprovider_multiple_addresses
Let CloudProvider return list of NodeAddress, not just one net.IP
2015-03-13 15:45:11 -07:00
Justin Santa Barbara
bc16d83a51 Let CloudProvider return list of NodeAddress, not just one net.IP
This lets cloud providers populate the NodeAddress array
2015-03-11 16:50:26 -07:00
Justin Santa Barbara
5d36d3cdbe Change cloud provider CreateTCPLoadBalancer to return endpoint as string
Some load balancers (particularly AWS ELB) define the public endpoint
as a hostname (instead of using IP addresses).

This is a partial fix for #5224; there will also be some proxy work.
2015-03-09 20:35:13 -07:00
Federico Simoncelli
bfb93a1928 openstack: report the nodes external id
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-02-26 20:52:13 +00:00
Federico Simoncelli
a450da4fd0 cloudprovider: add instance id to NodeSpec
Sometimes for external applications it is important to identify the
cloud instance of the nodes. Until this patch there was no contract
that the node name returned by List was also the unique identifier of
the cloud instance. This new API ensures that an external application
can reliably retrieve the relevant instance id of the nodes.

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-02-26 20:52:12 +00:00
Daniel Smith
2050131b9a ParseOrDie -> MustParse; stop returning pointer 2015-01-07 15:21:35 -08:00
Daniel Smith
35f54addca Update more packages, tests, binaries for quantity
make etcd registry pass test
fix kubelet config for quantity
fix openstack for quantity
fix controller for quantity
fix last tests for quantity
wire into binaries
fix controller manager
fix build for 32 bit systems
2015-01-07 15:21:35 -08:00
Brendan Burns
1d58958db8 Fix the build. 2014-12-23 10:28:26 -08:00
Angus Lees
a00f73c360 Add additional logging to openstack cloud provider
Turned out to be invaluable while debugging issues - I expect it will be
for others too.

Conflicts:
	pkg/cloudprovider/openstack/openstack.go
2014-11-26 16:41:11 +11:00
Angus Lees
5499981ad3 Implement TCPLoadBalancer OpenStack cloud provider
Also add a trivial implementation of Zones() too.

This only supports a single region/zone currently (the region where
kubernetes is running).
2014-11-26 16:40:35 +11:00
Angus Lees
f184eebc9b Update openstack provider to gophercloud v1.0 API 2014-11-26 16:08:43 +11:00
Tim Hockin
ea960711ff Clean up error logs.
Use %v for errors, tidy some messages, make error messages start lowe-case
(as per go guidelines).  Just accumulated nits.
2014-11-21 09:45:26 +08:00
Brendan Burns
aabf1c3573 Add a clusters interface and GCE implementation. 2014-11-14 10:38:03 -08:00
Angus Lees
fffa0527d4 Implement Instances interface for OpenStack cloud provider 2014-10-15 14:09:27 +11:00
Angus Lees
a90d503fce Read user/pass from config and authenticate to OpenStack 2014-10-15 14:09:27 +11:00
Angus Lees
a8ab55b413 Add skeleton for new OpenStack cloud provider 2014-10-15 13:52:12 +11:00