3771 Commits

Author SHA1 Message Date
Vijendar Komalla
34307b8c4f Validate project-id on quota create
Currently on quota create project_id is not
validated. This change is to check if the given
project id is valid or not.

Change-Id: I8f9785aa83257f3abacb5542d3329d4aef7dd849
Closes-Bug: #1665079
2017-02-22 10:54:00 -06:00
Jenkins
0319fb9c89 Merge "Update reno for stable/ocata" 2017-02-22 12:24:28 +00:00
Mathieu Velten
42e36895ef Missing root-ca-file parameter for proper service account support
Change-Id: I8d581b1fbffdb4b8bc64457da6faae6d45dfc594
Closes-Bug: 1666599
2017-02-21 18:09:36 +01:00
Jenkins
ca2982e83b Merge "Add Kubernetes API Service IP to x509 certificates" 2017-02-21 15:54:54 +00:00
Jenkins
b7a8f0b66e Merge "[suse] Add SERVICE_ACCOUNT_KEY to Kuberneres cluster configuration" 2017-02-21 06:40:46 +00:00
Jenkins
ad6dc2b6f0 Merge "Make INSECURE_REGISTRY_URL works for CoreOS" 2017-02-21 05:41:14 +00:00
Michal Jura
43bec106c7 [suse] Add SERVICE_ACCOUNT_KEY to Kuberneres cluster configuration
Change-Id: I18d6598e2f4b68ae7a672b794023e7408b7f8696
Partial-Bug: #1622949
2017-02-21 04:35:59 +00:00
ArchiFleKs
288bb34fe3 Add Kubernetes API Service IP to x509 certificates
By default, API service with service account is accessible from inside
the cluster at the address 10.254.0.1. This IP should be added to SANS
when generating the certs.

Fixes-bug: #1660811
Change-Id: I214b4296bea55bb0c4015165c56fbd8ca3cebd39
2017-02-20 16:36:21 +01:00
Jenkins
88ddece127 Merge "[suse] Fix flanneld overlay network configuration" 2017-02-20 06:59:22 +00:00
72757b8c38 Update reno for stable/ocata
Change-Id: I4dcf2d92781128569cb9cb9a88ebc2d080af8d43
2017-02-17 20:32:53 +00:00
Vijendar Komalla
3a20d30696 Fix quota API get-all parameter type
Currently for admin user, quota get-all method returning
all the quotas if all_tenants parameter is passed
irrespective of whether the flag is set to True or False.
This change fixes the issue by setting the correct
parameter type in quotas get-all method.

Change-Id: I6992c4b648bbbd01ce7d6ef4c53c031fa1f1c9aa
Closes-Bug: #1665109
2017-02-16 14:47:53 -06:00
ArchiFleKs
7117ff28ca Make INSECURE_REGISTRY_URL works for CoreOS
Parent commit allow custom secure HYPERKUBE_IMAGE_REPO (which can also
be a local registry). Here we implement INSECURE_REGISTRY_URL which
allow settings custom insecure registry for Kubernetes infra components.

It also enable the insecure registry for Docker daemon.

Partially-Implements: blueprint coreos-best-pratice
Partially-Implements: blueprint support-insecure-registry
Change-Id: If00afa2e8a9100546301f9a1f161daed6e3ffc4f
2017-02-16 12:17:42 +01:00
yuhui_inspur
5cbb881c50 Fix some typos
Change-Id: Ic68dcbb8c2d850b3b42c73db8774637068c94645
2017-02-16 00:20:01 -08:00
Vijendar Komalla
ee509ae323 Fix for cluster-update rollback issue
Currently cluster-update is rolling back in case of update
failure irrespective of whether the rollback flag set to
True or False. This change fixes the issue by setting the
right parameter type in cluster patch method.

Change-Id: I6c28c583e7e3b98622634ac2381513b442eb57b6
Closes-Bug: #1664781
2017-02-15 13:44:12 -06:00
Jenkins
e71dbd3492 Merge "Add keypair to api-ref cluster create" 2017-02-15 10:28:48 +00:00
Jenkins
085058bfb2 Merge "Support magnum-api multiple process workers" 2017-02-15 08:37:27 +00:00
Jenkins
82b464bcd4 Merge "Remove support for py34" 2017-02-15 05:20:15 +00:00
Jenkins
cc40e47335 Merge "Switch to kubernetes upstream python client" 2017-02-14 22:56:58 +00:00
Stephen Watson
e3c11196b2 Add keypair to api-ref cluster create
Keypair was missing in api-ref for cluster create, so
add it and update example accordingly.

Change-Id: Ibf9280cec7000c1303b7898494fec9f3a2020068
Closes-Bug: 1660296
2017-02-14 15:37:44 -07:00
Jenkins
08c4b3ed72 Merge "Fix quotas API pagination" 2017-02-14 21:30:33 +00:00
Vijendar Komalla
528dff14f0 Fix quotas API pagination
Currently quotas-list operation with limit is failing
since there is no uuid attribute defined in Quota object.
(Please refer to bug#1662935 report for more details)

Change-Id: I7ec53f990b1223fe3c72fc7a20fb8261c12e8398
Closes-Bug: #1662935
2017-02-14 12:33:27 -06:00
Jenkins
fc49fea35c Merge "[doc] install 'curl' as a prerequisite" 2017-02-14 18:31:44 +00:00
Jenkins
2351d78be2 Merge "Use variables for hyperkube and kube version" 2017-02-14 11:09:26 +00:00
yatin
754eb88737 [doc] install 'curl' as a prerequisite
'curl' is required for installing pip in "Install pip"
section.

Change-Id: I7ca3263aa2dffd751e4668697c2bb2e9a16c88a8
2017-02-14 11:24:32 +05:30
Kevin Lefevre
8b3ebbe8bf Use variables for hyperkube and kube version
Introduce HYPERKUBE_IMAGE_REPO variable which is set to CoreOS
hyperkube by default. Also remove "_coreos.0" from script as it can be a
different build number. This number should be included in the kubernetes
version parameters and not in scripts.

With this, it is possible to use any combination of hyperkube image with
any tags. by default we use the CoreOS one.

Partially-Implements: blueprint support-insecure-registry
Partially-Implements: blueprint coreos-best-pratice
Change-Id: Ie0fbed4b160fa972cfe130c252e87765690e2f5f
2017-02-14 01:48:46 +01:00
Davanum Srinivas
e634b55637 Switch to kubernetes upstream python client
For a really long time, we generated and maintained our very own python
client generated from kubernetes swagger json files. Now in Kubernetes
Community there is a concerted effort to organize an official python
client (also generated from swagger) for everyone to use. So let us
please switch over from our python-k8sclient and use the community
driven python client. I have ported all of our end-to-end tests and got
them working in kubernetes client-python project upstream so we should
be protected from regressions.

Implements: blueprint replace-k8sclient-with-upstream-kubernetes-client

Depends-On: I72359f2b811392008eb5267812bf343797b1553a
Change-Id: Ib81a69cfdc25198e259e3b3d4081c92c01fd1bc5
2017-02-13 14:48:08 -05:00
OpenStack Proposal Bot
26fb77bc0b Updated from global requirements
Change-Id: I73d45d37f256ac1b9c8ac0438d4fa20026fef5c3
2017-02-13 15:13:24 +00:00
yatin
25b2863e2b Add reno: bp secure-etcd-cluster-coe
Change-Id: I84877c258014c57fbcf013a784ab1a35ec6e04f8
Implements: blueprint secure-etcd-cluster-coe
2017-02-13 11:08:43 +05:30
Jenkins
faed9a18ed Merge "Remove $myip when unnecessary and use KUBE_NODE_IP" 2017-02-11 19:11:33 +00:00
OpenStack Proposal Bot
c0fac8e8f1 Updated from global requirements
Change-Id: Ia8979759fabda6e8b9500e84fe4000c53dd7d934
2017-02-11 00:16:34 +00:00
Jenkins
41e15562f7 Merge "Don't enforce microversion for rotate CA cert API" 2017-02-10 18:54:11 +00:00
Kevin Lefevre
44f364b2ef Remove $myip when unnecessary and use KUBE_NODE_IP
myip is defined almost in every fragment. It is unnecessary. We can use
KUBE_NODE_IP that is defined in HEAT. Also, if for some reason
KUBE_NODE_IP is empty, we use the failsafe like in make-cert fragment
where we curl metadata to make sure KUBE_NODE_IP is not empty.

Implements: blueprint coreos-best-pratice
Change-Id: I8597a5afa9b4bc7a5c740738303102e7b60ec63e
2017-02-10 14:35:27 +01:00
ArchiFleKs
6aae3235de Make KUBE_ALLOW_PRIV used for api server
Change-Id: I7513a992cebce46d46308b8263d61efc56d17096
Implements: blueprint coreos-best-pratice
2017-02-10 11:59:00 +01:00
Jenkins
23f13584af Merge "Use https instead of http for git.openstack.org" 2017-02-10 09:35:56 +00:00
Jenkins
f7386549dc Merge "[k8s] Get logs of controller-manager and scheduler" 2017-02-10 09:35:49 +00:00
Jenkins
40df2f1886 Merge "Remove heat-params sourcing" 2017-02-10 09:29:57 +00:00
Jenkins
a58186c045 Merge "Add microversion and release notes for quotas API" 2017-02-10 01:42:20 +00:00
Jenkins
1c5569f735 Merge "Improve consistency for SSL PATH accross template" 2017-02-10 00:20:33 +00:00
Jenkins
94a8c87cc9 Merge "Don't enforce microversion for stats API" 2017-02-10 00:20:16 +00:00
Vijendar Komalla
cd46b4089b Add microversion and release notes for quotas API
This is follow-up for https://review.openstack.org/419704
Change-Id: Ib586adb81e4bcb7e87f9b8ccd13bbbcb7cf5501f
Closes-Bug: #1661325
2017-02-09 10:47:07 -06:00
Vijendar Komalla
221846c437 Don't enforce microversion for stats API
Due to bug in microversion logic, adding any new microversioned
API would mandate OpenStack-API-Version header in the request.
This change is to avoid microversion enforcement until the
bug in microversioning is fixed.
Please note that, this issue is only seen when no version
header is sent to the controller the first time and also
this bug can not be reproduced by magnum CLI since it sends
the latest version header by default.

Change-Id: I9a576e048846e930c62fb55584b125585137fcfd
Partial-Bug: #1659431
2017-02-09 10:38:41 -06:00
ArchiFleKs
bd2f578a69 Remove heat-params sourcing
Since commit 220675d42a578e51b401c72c7940b5664a289406 heat-params are
used by systemd and are unnecessary.

Implements: blueprint coreos-best-pratice
Change-Id: Iaf88219db2d3aaa452ff07a146acb3fbef323eb1
2017-02-09 13:48:21 +01:00
Kevin Lefevre
fb0aa7d3e1 Improve consistency for SSL PATH accross template
Multiple variables names where used in different fragments. This commit
makes KUBE_CERTS_PATH and HOST_CERTS_PATH hardcoded values in heat-params
fragment and use them inside fragments instead of hardcoded value and
different variables names

Implements: blueprint coreos-best-pratice
Change-Id: I8c7856601096672890ab5a1318db0177d582e53d
2017-02-09 13:33:28 +01:00
Jenkins
270faf8050 Merge "Remove carriage return when getting user token" 2017-02-09 00:28:14 +00:00
Jenkins
3d43c27b2b Merge "Trivial: Fix typo in exception message" 2017-02-08 04:40:18 +00:00
Cao Xuan Hoang
a26b2adc55 Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: Id6d387d7e2cf6395a7ccff6291c9c73787984d51
2017-02-08 10:03:14 +07:00
Jenkins
f4a66b9485 Merge "[suse] Update security group for kube_masters" 2017-02-07 23:49:52 +00:00
Jenkins
94c952fe3a Merge "Don't create clusters of an unsupported type" 2017-02-07 22:45:12 +00:00
Jenkins
ae6da6b62c Merge "Remove unused enforce_cluster_types decorator" 2017-02-07 22:44:56 +00:00
Jason Dunsmore
c6ad21ea0a Don't enforce microversion for rotate CA cert API
Enforcing microversion 1.5 for the certificates PATCH endpoint
(rotating a CA cert) was not necessary because it is a new endpoint
and not a change to an existing endpoint.  The absence of an
implementation for prior microversions of this endpoint was causing
unexpected behavior.

Change-Id: I33240d6b325843972a6f05d1c93c94b82752d32f
Partial-Bug: #1659431
2017-02-07 15:28:09 -06:00