4197 Commits

Author SHA1 Message Date
Mark Goddard
ea2cda217e Fix ironic inspector dnsmasq listening interface
The variable 'ironic_dnsmasq_interface' is used to configure the interface
used by the ironic inspector dnsmasq service for DHCP on the inspection
network. It is being used correctly in inspector.conf, but not in the
dnsmasq configuration file, which uses api_interface. This change modifies
the dnsmasq configuration file to also use ironic_dnsmasq_interface.

Change-Id: I7670544f4bc41c93ac1d081486502f9ffb8f2286
Closes-Bug: #1785574
2018-08-06 09:26:14 +01:00
Zuul
dda0e3d960 Merge "fix aodh warning" 2018-08-06 01:45:28 +00:00
Zuul
b8d7750cd6 Merge "Add Cinder credentials to ironic.conf" 2018-08-04 13:15:55 +00:00
Zuul
3c08f229a1 Merge "Added kolla_inspector_extra_kernel_options" 2018-08-04 10:40:29 +00:00
Mark Goddard
76c83a4096 Allow 400 response when creating kibana ES index
If the index already exists, kibana will respond with a 400 error. This
is required to support reconfigure and upgrade of kibana.

Change-Id: Ieee6d636fe81692dffb886f917b8398df10a525f
2018-08-03 12:50:21 +01:00
Kevin Tibi
c408afbae7 Update elasticsearch and kibana version to 5.x
Change the path for kibana binary and add upgrade tasks for
elasticsearch [1].

[1] https://www.elastic.co/guide/en/elasticsearch/reference/5.0/restart-upgrade.html

Depends-On: I8ed60eab2c15ae966960bcbeadb7aa25fece83a5
Change-Id: I9f566c0cb808c905736cc4090539672863260ad5
Implements: bp-elasticsearch-upgrade
2018-08-03 12:50:16 +01:00
Will Miller
9500783551 Add Cinder credentials to ironic.conf
Ironic requires the Keystone credentials to communicate with Cinder if
booting from volume.

Change-Id: Id9a90d986e391e84c8ad918af371a5aef33a3524
Closes-Bug: #1785201
2018-08-03 09:50:34 +00:00
Will Szumski
4297cc34e2 Added kolla_inspector_extra_kernel_options
This allows you to append additional kernel parameters
to the kernel used for inspection.

Change-Id: Ibc851145a3ffdaaad526ef999c8f024bd222dd5b
2018-08-03 10:14:09 +01:00
caoyuan
747e8f2057 Disable the ntp service when bootstrap-servers
since we use chrony container to adjust time by default, we no need
to enable ntp service, this ps to disable it.

Change-Id: I2f1fd9269c9f8cfd0c98e0e903ba69de692473a0
2018-08-03 08:48:05 +00:00
caoyuan
adc55af3cb Add elasticsearch port
and ps to make the port configurable

Change-Id: I919767469087b9579e3d2f0965df835e7b71c327
2018-08-03 08:38:49 +00:00
Zuul
e7de34125c Merge "Extract cinder_iscsi_helper default from role" 2018-08-02 16:57:45 +00:00
Zuul
e42221193a Merge "Stop reporting changed in prechecks" 2018-08-02 15:32:55 +00:00
Will Miller
33598f5821 Extract cinder_iscsi_helper default from role
The variable `cinder_iscsi_helper` is used not only in the `cinder` role,
but also in the `iscsi` role. It needs to have a default accessible for
both roles.

Change-Id: I33d7f2c7b5597a541a0d104c76520ac4a1cd5026
Closes-Bug: #1785066
2018-08-02 14:32:17 +00:00
Mark Goddard
e13815c7b0 Stabilise Bifrost CI job
The Bifrost CI job seems quite unstable, often failing while attempting
to reach the public epel package repositories. We shouldn't need to
install any packages when deploying the container - they should all have
been installed in the image already.

This change avoids running the scripts/env-setup.sh script, which is run
when the container image is built.

It also removes sourcing of /opt/stack/ansible/hacking/env-setup, which
is now just a stub.

Change-Id: I1786e5337a397cb7b427d6b87c21eaee600af170
2018-08-02 14:56:55 +01:00
Zuul
e71df7dbae Merge "Enable rgw_swift_enforce_content_length" 2018-08-02 11:44:03 +00:00
Zuul
4d8178f676 Merge "Allow object versioning for ceph-rgw" 2018-08-02 11:22:22 +00:00
Michal Nasiadka
6fad16ebb0 Stop reporting changed in prechecks
Change-Id: I12f7244aa91ccd7e287320e7edb09e0d04c01017
2018-08-02 12:34:50 +02:00
Xinliang Liu
815c6b7589 Enable rgw_swift_enforce_content_length
Currently test_list_containers tempest tests[1] would be failed.
It is becuase accept-ranges header does not exist. See ceph bug[2].

Rgw_swift_enforce_content_length assures Content-Length and
Accept-Ranges in dynamically generated account & container listings.

[1] tempest.api.object_storage.test_account_services.AccountTest.test_list_containers
[2] http://tracker.ceph.com/issues/21554
Related-Bug: #1783456

Change-Id: I9b5fcc361f0bc0e521302d2df1974aabf6f4a7e7
2018-08-02 16:56:30 +08:00
wu.chunyang
0011124f66 fix aodh warning
the memcache_servers has Deprecated ,and auth_uri is marked
deprecated . and these will cause aodh containers warning
refer to [0]
[0]https://docs.openstack.org/aodh/latest/configuration/aodh-config-file.html

Change-Id: I0c1eed6707fd85ace6b2bdddec600e5adee3a4de
2018-08-02 06:34:48 +00:00
Eduardo Gonzalez
6e17f942b5 Improve ODL configuration
Configure automatically ODL version based on the package version
rather than maintain a hardcoded version.

This has caused many issue while package version differs with the variable
set.

Closes-Bug: 1784784
Change-Id: I15da5d2583b5727942d598d183cc481f0e33d0e6
2018-08-01 16:07:31 +00:00
Zuul
94d04c6a68 Merge "Allow configuring a gateway for the inspection network" 2018-08-01 13:53:29 +00:00
Zuul
7008eb39ba Merge "Bump ansible_version_min to 2.4" 2018-08-01 09:33:37 +00:00
Hongbin Lu
34b6a9c786 zun: set docker api version to 1.24
Kolla is using Docker API version 1.24 but the default is 1.26
in Zun. We need to configure it to 1.24 so that Zun and Kolla
can work together.

Partial-Bug: #1782055
Change-Id: I072dccc06fe35dccf25068ef0ca8f39cad9fdc60
2018-08-01 02:57:03 +00:00
Eduardo Gonzalez
ffe388ba06 Fix ceilometer bootstrap
Ceilometer image filter was incorrectly used. Thr filter
should be in the volume list instead.

Change-Id: I3ad8a1d85607004b28f9a25b9a4e9f8b914ae9df
Closes-Bug: #1784496
2018-07-31 09:55:28 +02:00
Eduardo Gonzalez
5d25f77fcc Fix magnum api dimensions
Change-Id: Ibb7d6981d9d7fed2293af6533e54fb9c768cace6
Closes-Bug: #1784497
2018-07-31 08:27:40 +02:00
Xinliang Liu
d37d050e60 Allow object versioning for ceph-rgw
Object versioning test[1] is required for RefStack test suite.
Swift has enabled it by default[2].
It is also needed for ceph-rgw.

[1]
tempest.api.object_storage.test_object_version.ContainerTest.test_versioned_container
[2] https://review.openstack.org/#/c/517281/

Related-Bug: #1729583
Change-Id: If89636f77d87bab75e8e7bcf16cc784e83184bc6
2018-07-30 16:45:40 +08:00
Ha Manh Dong
5bc3e19288 Remove when condition in roles/swift/tasks/deploy.yml
Because all task in deploy.yml need run in all swift host,
so we don't need the when condition.

Change-Id: Ibd61ce2615985cbad70c13a37c863fc6e5e858e4
2018-07-30 08:51:18 +07:00
caoyuan
0dd487fdb1 Bump ansible_version_min to 2.4
the include_tasks is the new feature in version 2.4[0], and
kolla use it[1], the ansible_version_min should be updated
to version 2.4

[0]: https://docs.ansible.com/ansible/2.4/include_tasks_module.html
[1]: https://review.openstack.org/#/c/584728/

Change-Id: I273ac9e8295bfe3fb97af620c1e48e9fbbf06c6e
2018-07-30 08:38:39 +08:00
wu.chunyang
da9ff22461 Use include_tasks instead of include
last patch have replaced include by include_tasks, but here have a
 omission

Change-Id: Ibfe2918eb5504bb5355489ab093200feb1d221d7
2018-07-27 22:58:21 +08:00
Mark Goddard
b9208cd178 Fix etcd when Kuryr is disabled
This is because the environment variable ETCD_INITIAL_CLUSTER contains
compute nodes, which are not running etcd.

Compute nodes are in the etcd group to allow for kuryr, which needs etcd
to be running on compute nodes (why???). When kuryr is disabled, etcd is
not deployed on these hosts (using host_in_groups). However, the
ETCD_INITIAL_CLUSTER environment variable always includes all hosts in
the etcd group.

This change sets ETCD_INITIAL_CLUSTER correctly in both cases.

Change-Id: I11f812d3fdacf0eeb8236f9a39d673aaa480dd26
Closes-Bug: #1783963
2018-07-27 09:28:42 +01:00
Zuul
3e45b2cbec Merge "Use include_tasks instead of include" 2018-07-27 08:16:08 +00:00
Zuul
2744a79844 Merge "Bifrost: set TFTP cache master path properly" 2018-07-27 07:32:57 +00:00
Zuul
ffb8e2835d Merge "Fix monasca auth variable" 2018-07-27 07:03:32 +00:00
Zuul
cd03876e7d Merge "Apply Resource-Constraints to all services." 2018-07-26 14:18:39 +00:00
Zuul
82437285a1 Merge "Apply Resource Constraints to Services." 2018-07-26 14:18:35 +00:00
Zuul
d1e427b7c1 Merge "Apply Resource Constraints to Openstack Services" 2018-07-26 14:18:34 +00:00
Zuul
b398cb2f66 Merge "Fix ceph role with ansible < 2.4" 2018-07-26 14:15:00 +00:00
Lakshmi Prasanna Goutham Pratapa
14bf524756 Apply Resource Constraints to Services.
This commit is to apply resource-constraints to a few more OpenStack services.
Commit to  apply constraints to the last set of services will be made in
the upcoming commit.

Depends-on: Icafa54baca24d2de64238222a5677b9d8b90e2aa
Change-Id: I39004f54281f97d53dfa4b1dbcf248650ad6f186
2018-07-26 11:35:28 +00:00
Doug Szumski
0415943a37 Fix monasca auth variable
Perform the refactoring of the auth field from change #552863

TrivialFix
Partially-Implements: blueprint monasca-roles

Change-Id: I0a87cc3cb40df5e1c927bcd8ff4bd33e44fe4172
2018-07-26 09:20:26 +00:00
Zuul
c724865674 Merge "Fix action -> kolla_action for ironic-neutron-agent" 2018-07-26 09:15:10 +00:00
Mark Goddard
d95c87cf01 Fix action -> kolla_action for ironic-neutron-agent
Ironic Neutron Agent was added by
I92b9505843f12692aef96764a314e5db49001a9b.

Change-Id: Ib178bafc9907537fdd46dd374684b037db7f19df
TrivialFix
2018-07-26 07:44:10 +01:00
Mark Goddard
07b64dedc1 Fix ceph role with ansible < 2.4
The include_tasks action was added in ansible 2.4.

Change-Id: Ieac4a39a95c6aa55754c9dde5e94fb293c103caa
Related-Bug: #1783456
2018-07-25 20:57:23 +01:00
Zuul
6c75aedac3 Merge "Fix sudoers in bootstrap-servers when user != group" 2018-07-25 19:46:56 +00:00
Mark Goddard
69c1bf2d82 Allow configuring a gateway for the inspection network
This is configured via the ironic_dnsmasq_default_gateway variable, and
is not set by default.

Change-Id: I4deea65876d0852ba2b48a8cf9bad94f4df2a18d
2018-07-25 18:15:08 +00:00
Zuul
294237dfae Merge "Make sudoers config optional in bootstrap-servers" 2018-07-25 17:25:25 +00:00
Lakshmi Prasanna Goutham Pratapa
76210a2d85 Apply Resource Constraints to Openstack Services
This commit is to apply resource-constraints only to few OpenStack services.
Commit to apply constraints to other services will be made in coming commits.

Partially-Implements: blueprint resource-constraints

Change-Id: Icafa54baca24d2de64238222a5677b9d8b90e2aa
2018-07-25 17:05:04 +01:00
Jeffrey Zhang
b51eeed89e Use include_tasks instead of include
include is marked as deprecated since ansible 2.4[0]

[0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated

Co-Authored-By: confi-surya <singh.surya64mnnit@gmail.com>
Change-Id: Ic9d71e1865d1c728890625aeddf424a5734c0a8a
2018-07-25 23:57:22 +08:00
Zuul
3e5d3f94e9 Merge "Improve ceph-rgw compatibility with Swift API in Kolla-ansible" 2018-07-25 15:46:02 +00:00
Vladislav Belogrudov
acaebf83ce Save targetcli configuration to a volume for container upgrades
When using lioadm / targetcli to serve LVM volumes to instances
the former saves target configuration under /etc/target.
If cinder_volume container is upgraded / replaced then all targets
are gone and instances cannot connect to their volumes any longer.

This fix introduces target_config volume where corresponding
information is persisted.

Change-Id: I919bbe00853266037dd5c015810cc13c25e2e033
Closes-Bug: #1783569
2018-07-25 17:50:38 +03:00
tone.zhang
2ce46e4767 Improve ceph-rgw compatibility with Swift API in Kolla-ansible
By default ceph-rgw is not completely comaptible with Swift API,
because of the restriction for Swift INFO API.[0]

The patch improve ceph-rgw compatibility with Swift API. It is
controlled by the option "ceph_rgw_compatibility" in
ansible/group_vars/all.yml.

After changing the option, run the "reconfigure" command to enable.

Closes-Bug: #1783456

[0] https://github.com/ceph/ceph/pull/17967

Change-Id: Ibf3eb52280e197965caef08a44ae226c4f884cb5
Signed-off-by: tone.zhang <tone.zhang@arm.com>
2018-07-25 18:09:23 +08:00