2543 Commits

Author SHA1 Message Date
Dai Dang Van
74a26a91e5 Use utf8_general_ci collation as a default collation
Now, I see mariadb are using utf8_general_ci as a default collation.
- https://mariadb.com/kb/en/mariadb/supported-character-sets-and-collations/

This mean all of Devstack database will be created with utf8_general_ci collation,
so may be, one service/project can be deployed successfully via Devstack
but will be fail with Kolla deployment.

Therefore, we should use above default collation for Kolla-ansible.

Change-Id: Icbb6c15f536fc6986816c58f4fd68bfb95813e46
Closes-Bug: 1680783
2017-04-10 15:38:16 +07:00
Jenkins
8759e3b99b Merge "Configure coordination_url for cloudkitty processor" 2017-04-10 07:58:13 +00:00
Jeffrey Zhang
0e38fc2852 Configure coordination_url for cloudkitty processor
Cloudkitty processor use tooz to handle multi processor processes.
Otherwise, duplicated billing will be inserted into mysql.

Change-Id: Ifdc1be78afa89499ee4c3bbec5b9db8ddb2929cf
Closes-Bug: #1681160
2017-04-09 09:34:23 +08:00
Bertrand Lallau
73cb6dc454 Remove neutron_metadata_socket volume from agents
Metadata Proxy UNIX domain socket is only used by neutron-l3-agent,
neutron-dhcp-agent and neutron-metadata-agent. Hence it must be removed
from neutron-bgp-agent, neutron-vpn-agent and neutron-lbaas-agent.

See comment here:
https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/neutron/templates/neutron.conf.j2#L22

Change-Id: Ie493194a5dcd5979eb29382ecbd0c8db1b9e286d
2017-04-07 20:19:21 +00:00
Jenkins
5869030d7f Merge "Karbor services restarting issue on conf update" 2017-04-07 08:44:19 +00:00
Jenkins
8959e15a9e Merge "Trove services restarting issue on conf update" 2017-04-07 08:41:17 +00:00
shaofeng_cheng
64999de5b9 Add jinja2-py version check in pre_checks
Jinja2-py version is missing in pre_checks.

Change-Id: I047722be3d7b4819eade6c675d79a898a2f0024b
2017-04-07 16:04:33 +08:00
Paul Bourke
8006ecdacf Update keystone sanity check to use built in shade
The current module 'kolla_sanity' was written as a shim before full
shade support was added to Ansible. This should now no longer be needed,
we can implement the checks using Ansible provided modules.

Begin by updating the Keystone check to use 'os_auth' to fetch a token,
I think this is a good basic smoke test to verify Keystone is working.

Change-Id: I16049d9201fd8138c781ef2e1e0c1827ea817259
Partially-implements: blueprint sanity-check-container
2017-04-06 11:50:38 +00:00
wangwei
6f825382ca Add sudo command for non-root account to mount osd
Generally we specify the user is root when deploying ceph, it is no
problem. But if we have the need to use a non-root account, the deployment
will fail because the non-root account can't use the mount command.
I think it is necessary to add sudo for non-root account, when we can't use
the root account to deploy ceph because of security needs, we can use
non-root account to deploy ceph.

Change-Id: Iea1f30bcf8edbe15dc65909bbae780b55a669067
Closes-Bug: #1668823
2017-04-05 22:12:20 -04:00
Bertrand Lallau
3ec2a23428 Revert "Fix Fluentd warn on dnsmasq.log file parsing"
Issue seems not fixed, it requires more work

This reverts commit 4f6470bb56e70cb65da7b9b9c044029eefb2533c.

Change-Id: I308ea4e0d5ace60cf730944e1883966fc6f8f8ce
2017-04-05 19:08:58 +00:00
Jenkins
6d6d7b37fa Merge "Change heat cfn service description" 2017-04-05 15:46:58 +00:00
Jenkins
afed70a3df Merge "Remove Ubuntu 14.04 related code" 2017-04-05 12:26:29 +00:00
Jenkins
a97503c315 Merge "Remove min_l3_agents_per_router option" 2017-04-05 11:52:08 +00:00
Jenkins
ed0f2fc819 Merge "Fix Telegraf retention policy not found" 2017-04-05 11:32:25 +00:00
Jenkins
fe713dba33 Merge "Telegraf: activate influxdb input plugin" 2017-04-05 11:21:29 +00:00
Jenkins
78bf582329 Merge "Fix qos rules are not applied on ocata with ovs" 2017-04-05 11:20:04 +00:00
Bertrand Lallau
bfecaf3857 Telegraf: activate influxdb input plugin
The InfluxDB plugin will collect metrics on the given InfluxDB servers.

Change-Id: I23f0433f56047369ce19bbf3236f6dd7038eb06e
2017-04-05 08:32:53 +02:00
Jenkins
7c7ead154d Merge "Use versionless keystone endpoints" 2017-04-05 04:51:33 +00:00
Jenkins
dd9e1e5a28 Merge "Fix Fluentd warn on dnsmasq.log file parsing" 2017-04-04 20:40:02 +00:00
Eduardo Gonzalez
1ab0c16ba3 Fix senlin workers and events
Remove deprecation warning about service_token_roles_required
Set number of engine workers to avoid too many resources consuming.
Senlin can poll events from ceilometer when is enabled.

Closes-Bug: #1679697
Change-Id: I8b13d1f492344ca0b65020eb56f0e016c6bb6369
2017-04-04 13:34:21 +00:00
Pavel Glushchak
98f3283dc9 Remove unused driver attr in cinder_backends map
Change-Id: Ib684e3f4bcd26e40c5bfde9bec8a1d83563d5460
Signed-off-by: Pavel Glushchak <pglushchak@virtuozzo.com>
2017-04-04 14:09:24 +03:00
Bertrand Lallau
a914fb6671 Fix Telegraf retention policy not found
New version of influxdb use "autogen" as default retention policy name.
Please see https://github.com/influxdata/influxdb/issues/3733 for more
info.

Change-Id: I8aeb47f60b3aeb022e0cd7aaac630d7cad5b0099
Closes-Bug: #1673914
2017-04-04 10:22:05 +02:00
Jenkins
57fb2e735c Merge "Fix ceph log location" 2017-04-04 06:05:58 +00:00
Jenkins
f2db4c0f17 Merge "Fix the check.yml of Zun does not exist" 2017-04-04 01:18:42 +00:00
Bertrand Lallau
d9ce5cf6c0 Fix outdated InfluxDB configuration
Actual InfluxDB config is deprecated, it must be updated based on the
following documentation:
https://docs.influxdata.com/influxdb/v1.2/administration/config

* remove following options:
  lease-duration = "1m0s"
  pprof-enabled = false
22173acb70

* rename "cluster" section to "coordination":
75e89e35d8

* remove shard-writer-timeout option:
  shard-writer-timeout = "5s"
db7d58c867

Closes-Bug: #1678982
Change-Id: Id905336123bc5aa76d6e6903a82f915c3702669f
2017-04-03 17:13:11 +02:00
Bertrand Lallau
5782a214e9 Karbor services restarting issue on conf update
In case of karbor-protection providers.d/openstack-infra.conf config file modification,
karbor-operationengine and karbor-api are restarted too, but they should
not.

karbor-operationengine startup command:
https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/karbor/templates/karbor-operationengine.json.j2#L2

karbor-api startup command:
https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/karbor/templates/karbor-api.json.j2#L2

Change-Id: I91a0273ccf46e340315cf885ea01db6e14653182
Closes-Bug: #1677542
2017-04-03 12:45:28 +02:00
caoyuan
ff46e0908f Update the cirros version to "0.3.5"
Refer to
https://docs.openstack.org/ocata/install-guide-rdo/glance-verify.html

Change-Id: Ic2a32a3f17a11f1f6e8ecf0f7271d7d1f12ca5bc
2017-04-03 16:04:12 +08:00
Bertrand Lallau
4f6470bb56 Fix Fluentd warn on dnsmasq.log file parsing
Fluentd actually parse all files in /var/log/kolla/*/*.log as Openstack
services files.
Dnsmasq file /var/log/kolla/neutron/dnsmasq.log, must be add to
exclude_path to avoid this warning message:
"/var/log/kolla/neutron/dnsmasq.log unreadable. It is excluded and would
be examined next time."

Change-Id: I8dc5320b9ed299200c4f1e6ee52d34a918e2f110
Closes-Bug: #1678530
2017-04-02 08:59:21 +02:00
shaofeng_cheng
fbb0dedb10 Fix qos rules are not applied on ocata with ovs
If the Open vSwitch agent is being used, set extensions to qos
in the [agent] section of ml2_conf.ini.
see
https://docs.openstack.org/ocata/networking-guide/config-qos.html

Change-Id: I85272b03222775b14a311a110077a8eed736f56c
Closes-Bug: #1676319
2017-04-01 14:33:54 +08:00
Eduardo Gonzalez
4c27bd0d41 Fix Haproxy reconfigure
HAproxy always restart containers when doing reconfigure.
compare_container not evaluate privileged while the containers
are privileged.
compare_container always evaluates true because of this.

Closes-Bug: #1678122
Change-Id: Iaea80c1e09ef16a6d2530a75e6f37e6259bb4ca7
2017-03-31 12:48:28 +00:00
Eduardo Gonzalez
7583c964d1 Fix designate prechecks
Using "{{ item }}" is causing wrong fact assignment
and tries to check port when containers are running.

Closes-Bug: #1678102
Change-Id: I659e1c1828b9d82ef9d5bad81021a655cac21478
2017-03-31 12:26:33 +00:00
Bertrand Lallau
b257b2a676 Trove services restarting issue on conf update
In case of trove-api service config file modification (trove.conf file),
trove-conductor and trove-taskmanager are restarted too, but they should
not.

trove-conductor startup command:
https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/trove/templates/trove-conductor.json.j2#L2
=> trove.conf is not used

trove-taskmanager startup command:
https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/trove/templates/trove-taskmanager.json.j2#L2
=> trove.conf is not used

Change-Id: Ic4703a571cec5bf8b3f91cfcb9da1a23e2bb300b
Closes-Bug: #1677531
2017-03-31 12:56:00 +02:00
Mick Thompson
91321ac8ff Update Keystone haproxy config to balance based on source ip
Source based routing is necessary for some services where we want the
same clients land to the same servers.

For exanmple, Keystone uses one of many memcached servers - if a client
gets a token from one but then lands on another api server on the next
request, that will bind to another cache and we get failed
authentication.

Other examples are horizon/murano where we upload a package in several
steps. If we don't balance client connections to the same host we will
end up with the package downloaded to one host but unsuccessfully
unpacked/imported on another host.

This option is commonly used in the official OpenStack docs [0]

[0] https://docs.openstack.org/ha-guide/controller-ha-haproxy.html

Co-Authored-By: James McCarthy <james.m.mccarthy@oracle.com>

Change-Id: I56f1e48f6dbe457e776a474222073bbefc48c92a
2017-03-31 09:31:10 +00:00
shaofeng_cheng
b67cd3f7a9 Fix secure_proxy_ssl_header option in nova
Option "secure_proxy_ssl_header" from group "DEFAULT"  has been
deprecated in the N release and has been removed in the O release.

Use wsgi.secure_proxy_ssl_header configuration instead.

see
https://docs.openstack.org/ocata/config-reference/compute/config-options.html
https://docs.openstack.org/newton/config-reference/tables/conf-changes/nova.html
https://docs.openstack.org/mitaka/config-reference/compute/config-options.html

Change-Id: Icf3eea66f4ac281641ba22e8194aa113b57f6ce8
2017-03-31 14:41:06 +08:00
caoyuan
61156a9b6e Fix the check.yml of Zun does not exist
Change-Id: I79d99acfb9410d83ab1c84df3553db463f3f948f
Closes-Bug: #1677952
2017-03-31 11:42:28 +08:00
caoyuan
90bf34f0aa Fix the "Creating the Zun service and endpoint" failed
- fix the zun deploy failed
- remove the unnecessary register

Change-Id: I06bbad44de3f391a1c8939e8a587feababebc986
Closes-Bug: #1677665
2017-03-30 23:58:50 +08:00
Jenkins
2b3ec9fa18 Merge "Fix cinder config group in nova.conf" 2017-03-30 15:03:47 +00:00
Jenkins
aa68c84463 Merge "Add zun ansible role" 2017-03-30 13:46:06 +00:00
Mauricio Lima
a836033e14 Optimize reconfiguration for haproxy
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>
Change-Id: Iddde03760ff85af5263868ebc47b8b9438e92e8e
Partially-implements: blueprint better-reconfigure
2017-03-30 18:36:31 +08:00
Jenkins
88eb3a9696 Merge "Trove fix backup restore with Swift" 2017-03-30 09:16:52 +00:00
Jenkins
79eb687ea8 Merge "Set to Unix format trove-conductor.conf file" 2017-03-30 09:16:21 +00:00
zhuzeyu
b73f06684f Modify the permission of directory
Considering the safety, 644 is enough
other user is not necessary to having write permission.
adding 'su' in where needs writing permissions is a good practice
this operation is safer.

Change-Id: I45d0c6e5ef7338f93db21cf4ef58b4a4fd831210
2017-03-30 16:43:42 +08:00
root
2364bee3cc Add zun ansible role
Change-Id: I13cf03d6a97fb94dd7cb309e99a417ad101dc21a
Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com>
Partially-implements: bp add-zun-ansible-role
2017-03-30 04:15:17 -04:00
shaofeng_cheng
83fae8c8f9 Fix secure_proxy_ssl_header option
Option "secure_proxy_ssl_header" from group "DEFAULT" is deprecated
in Keystone.

see
https://docs.openstack.org/ocata/config-reference/identity/samples/keystone.conf.html

Change-Id: I390969fce5b592c0267399969abc54e5caffbfc8
Closes-Bug: #1675982
2017-03-30 15:49:51 +08:00
shaofeng_cheng
9ded0dbacd Fix cinder config group in nova.conf
If disable cinder in openstack environment.
Cinder of configuration items do not need to configure in nova.conf

Change-Id: Ie346dfe45f8c2d3fd383095d0c64f8e9421100ff
2017-03-30 09:24:54 +08:00
ZhongShengping
66ac7aa459 Remove min_l3_agents_per_router option
min_l3_agents_per_router parameter has been removed in neutron[0].
So we can remove it.

[0] https://github.com/openstack/neutron/blob/master/releasenotes/notes/remove-min-l3-agents-per-router-27aef7d91dec0348.yaml

Change-Id: Ia3f3686e2cc27e4bd0707add50ebc552117d6b03
Closes-Bug: #1677101
2017-03-30 08:44:48 +08:00
Bertrand Lallau
8e2b341cfd Set to Unix format trove-conductor.conf file
Replace all DOS carriage returns (^M) with Unix line feeds.

Change-Id: I0cb757e2aa9c08d87d5da64cc416b3d468219df6
2017-03-29 21:38:24 +02:00
Bertrand Lallau
b6ab5bf7e9 Trove fix backup restore with Swift
'v1' is missing in DEFAULT/swift_url property for trove.conf and
trove-taskmanager.conf file.

Closes-Bug: #1677362
Change-Id: I7f625b1ac665a26c4207c3cbb9b0238da82993d8
2017-03-29 21:32:25 +02:00
Jenkins
04ebda9e44 Merge "Revert "Fixes problem with kolla-kubernetes 3.0.2 images"" 2017-03-29 15:06:37 +00:00
Jeffrey Zhang
2947a95c29 Fix ceph log location
There are to parameter for ceph-mon/ceph-osd/radosgw, "-f" and "-d".

    -d run in foreground, log to stderr.
    -f run in foreground, log to usual location.

When log tin stderr, docker engine will collect the logs. It is useless
and we should write the log into file only. Then stop writing log to
stderr.

ceph-mon log location is controlled by "mon cluster log file".

Change-Id: I7883a4316420bc2bf4c772cb7248b663359f54b7
Closes-Bug: #1677237
2017-03-29 21:33:31 +08:00