267 Commits

Author SHA1 Message Date
caoyuan
82b5dc643d Add the missing prechecks for placement_api
Change-Id: Ic3cbf89b135a1902fa57a8d1df8c858cd6398097
2017-02-24 22:17:31 +08:00
Jenkins
d9740e9c40 Merge "Remove unnecessary until in register.yml file" 2017-02-22 12:28:06 +00:00
Jenkins
0e5c6b277a Merge "Start nova-conductor earlier" 2017-02-22 12:27:02 +00:00
Jenkins
3d356b426b Merge "Run nova-compute and nova-compute-ironic at the same time on kolla-k8s" 2017-02-22 12:14:33 +00:00
Jenkins
d79c97eb26 Merge "Do not failed when there is no nova-compute is running" 2017-02-22 02:50:06 +00:00
Jeffrey Zhang
7e9e5fd75a Start nova-conductor earlier
nova-compute will try to connect nova-conductor when upgrade.level is
auto. So nova-conductor need run more earlier. Otherwise, nova-compute
will failed to connect nova-conductor through message queue.

Closes-Bug: #1665836
Change-Id: If6296a84305bc283fb071b9650e629c6b1b71e61
2017-02-22 10:45:09 +08:00
Jeffrey Zhang
bc9130d822 Run nova-compute and nova-compute-ironic at the same time on kolla-k8s
In kolla-kubernetes, nova-compute-ironic is ran with a separate virtual
interface with a different hostname. So it is OK to run nova-compute and
nova-compute-ironic on the same node.

Change-Id: I3b0f12f128af8210bc97502dbc01469f619dd1ac
2017-02-22 09:59:04 +08:00
Jenkins
cb5a2878ee Merge "Option "use_neutron" from group "DEFAULT" is deprecated for removal" 2017-02-21 16:04:05 +00:00
Jenkins
df29551f8d Merge "Disable nova-compute when enable_ironic is yes" 2017-02-21 06:24:03 +00:00
Jeffrey Zhang
374774c254 Fix typo in nova-serialproxy handler
Change-Id: Ied1af4c8ab3012fc5893905795590b53227fb26e
Closes-Bug: #1666123
2017-02-20 07:26:43 +00:00
Jeffrey Zhang
af2acb25e5 Do not failed when there is no nova-compute is running
In ironic environment deployment, the compute nodes info will be empty
until ironic node is created. There are also some case that user just
want deploy without any nova-compute.

Also enable auto discover hosts feature. This is useful for small
environment.

Closes-Bug: #1666031
Change-Id: I6f3d1c3668452a404875aa5621ee99b2b41e28f0
2017-02-20 01:11:03 +08:00
Jeffrey Zhang
f0c61d4b6d Disable nova-compute when enable_ironic is yes
Change-Id: Icb77da008247609e9e1ce45770c9925d9b416739
Closes-Bug: #1665905
2017-02-19 00:47:16 +08:00
Jeffrey Zhang
5adb72baa7 Option "use_neutron" from group "DEFAULT" is deprecated for removal
Its value may be silently ignored in the future.

Change-Id: I594f36d56d13b417d1ef315266177b1dcbdead78
2017-02-18 10:42:42 +08:00
Jenkins
c41bd291cc Merge "Fixing ironic configs for kolla-kubernetes" 2017-02-14 01:32:39 +00:00
Jenkins
fc6bde965e Merge "Recover nova reload task to upgrade" 2017-02-13 17:54:59 +00:00
Serguei Bezverkhi
d4af2e27d2 Fixing ironic configs for kolla-kubernetes
Fixing ironic configs for kolla-kubernetes

Change-Id: Id1b1cc3bb3c1790a77f9449ec5b0b5d1c67f91e4
Closes-Bug: #1664269
2017-02-13 10:11:53 -05:00
Steven Dake
6cb4507267 Fixes problem with kolla-kubernetes 3.0.2 images
The kolla-kubernetes deliverable uses Newton images, however,
the kolla-ansible 4.0.0 deliverable is targeted at Ocata.  In
Ocata, nova requires the placement API implementation.  This
change is transitory until genconfig is no longer required
for kolla-kubernetes to operate.

Change-Id: I1c192a01d91b4f507bafadb53b6abb1efdcdb46c
Closes-Bug: #1663961
2017-02-12 07:44:20 -07:00
Jenkins
ac8a614488 Merge "use_forwarded_for is moved to api group" 2017-02-09 23:06:48 +00:00
Jeffrey Zhang
7d66beec92 use_forwarded_for is moved to api group
See the nova code in[0].

[0] https://github.com/openstack/nova/blob/master/nova/conf/api.py#L35

Change-Id: I87861ac44d99699f7a11b5cc383a2f43c47c2b04
2017-02-09 14:30:10 +08:00
Serguei Bezverkhi
40ce12bd04 Fixing authentication url for kubernetes
Fixing authentication url for kubernetes

Change-Id: Idb0151f8ae8f785a34f3ea1feee2d33a6afa0987
2017-02-08 21:07:07 -05:00
Eduardo Gonzalez
b402dd16ed Recover nova reload task to upgrade
Sighup signal is neccessary to reload upgrade levels
on all services communicating with rpc.
If not rpc version will remain in Newton.

Change-Id: I4b02d933699aa9b013dfbc65d1e57d53db49bcee
2017-02-08 10:45:41 +00:00
Jeffrey Zhang
078dd5566e Mount mnt folder when enabled cinder nfs backend
Change-Id: Ib3d0067ce4bc90245664a2fff337d4e71e4214c1
2017-02-06 10:53:17 +08:00
Jeffrey Zhang
38ad05a872 Remove unnecessary until in register.yml file
Change-Id: I1577cc3afef4dadd3a188c8ba749c9cdfad313ae
2017-02-04 14:38:54 +08:00
Eduardo Gonzalez
4e0fa6a334 Remove hardcoded usernames in register.yml
Usernames can be configured with variables in
configuration files, but user creation is hardcoded.

Change-Id: I057cfb921d776217db66f59226dcfa79f3eb7368
Closes-Bug: #1661587
2017-02-03 12:17:54 +00:00
Jeffrey Zhang
facfabf3bb Implement nova placement service
Closes-Bug: #1660987
Depends-On: I30efc20e6d918e08860584c017455e6d5fa91a35
Change-Id: If0a79b6013f28871dc9f13c510c919078f3304d5
2017-02-02 05:18:13 +00:00
Jeffrey Zhang
68d3d8ba29 Run nova-manage simple_cell_setup during deploying and upgrading
Change-Id: I64dd52d909a884b2b9aea6f016d789d99caa3f17
Closes-Bug: #1652580
2017-02-02 12:21:53 +08:00
Jenkins
8884422f3d Merge "Refactor register.yml files" 2017-01-26 18:48:59 +00:00
Jeffrey Zhang
8155d74d8d Refactor register.yml files
Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com>
Change-Id: I9a4a6b6523dee4b388513386b7d85d421f2b7b89
2017-01-26 17:10:27 +00:00
Jeffrey Zhang
35f9335572 Optimize reconfigure action for nova
Change-Id: Ida7c955d9ddf7b7dc3289001958326c38c62d0c9
Partially-implements: blueprint better-reconfigure
2017-01-25 13:20:06 +08:00
Jenkins
f2f30b4a5e Merge "Ansible config for nova-serialproxy console" 2017-01-24 16:40:40 +00:00
Jenkins
3f8cb8adda Merge "Refactor bootstrap.yml file" 2017-01-18 10:17:50 +00:00
Jenkins
016d79f009 Merge "Render ceph.conf using merge_configs" 2017-01-17 16:40:04 +00:00
jackning
b25c6b15fe Render ceph.conf using merge_configs
At present, cinder/nova/glance/gnocchi relative containers's
ceph.conf aren't be merge from user custom's config.
In some condition, we should add extra parameter to custom's
ceph.conf, for example:rbd_default_features = 1.

So, it is necessary to use merge_configs instead of template.
Closes-Bug: #1656162

Change-Id: I824e0c68af270b85c52382ae35987213266fc6f6
2017-01-17 09:32:44 +08:00
Jeffrey Zhang
7233b45d29 Refactor bootstrap.yml file
Change-Id: I00d2dcb0895548ba169ab85764cf546c2214cbf5
2017-01-12 23:37:50 +08:00
Eduardo Gonzalez
a18174b3b4 Unify jinja syntax
Change-Id: I63197f8c5646e44a9a7287e644c904a1e227af23
2017-01-12 10:52:44 +00:00
Eduardo Gonzalez
3d03a50864 Ansible config for nova-serialproxy console
Change-Id: Ifd40ca95c82fafacaf91291511f7048351d1bf42
Partially-Implements: blueprint nova-proxies
2017-01-12 10:27:47 +00:00
caoyuan
029c5ae4af Move nova precheck into its own role
Change-Id: I1d9a0f0ed3d50acb1828d0894413a9adc7f21b2a
Partially-implements: blueprint condition-pre-check
2017-01-11 16:33:47 +08:00
Jenkins
40e443da57 Merge "Ansible-ize OpenStack Designate" 2017-01-06 13:23:26 +00:00
Ross Krumbeck
a9ade20bee Ansible-ize OpenStack Designate
Implement ansible role to deploy designate
and dependencies. The backend used is bind9.

Co-Authored-By: zhubingbing <zhubingbing10@gmail.com>
Co-Authored-By: Eduardo Gonzalez <dabarren@gmail.com>

Depends-On: 6d0dc3e0f931c7c50b64a4659900cc50b0d860a2
Implements: blueprint ansible-designate
Change-Id: I34d8126e0cd8d71d5ced9b62f3776cc354fbb549
2017-01-05 14:34:15 +00:00
Eduardo Gonzalez
d7a3cbdc67 Fix code style in start_compute.yml
Add space in jinja definition and specify nova-compute
in set volume fact task name.

TrivialFix

Change-Id: I94a3bb2415f1f8d60c646b488be4acc09c489a0a
2017-01-04 15:17:46 +00:00
Jenkins
1c6a696c17 Merge "Do not mount /var/lib/nova/mnt unless nfs cinder backend is enabled" 2016-12-23 05:04:57 +00:00
Ethan Lynn
e237319965 Always check enable_* variables first
Check enable_* variables first, then check inventory_host in
group, will help to avoid configuration errors.

Change-Id: Icdb1f50e5c911203b92ac431723620756b15f3c6
Closes-Bug: #1648376
2016-12-08 17:59:48 +08:00
Jeffrey Zhang
5bd67a706b Do not mount /var/lib/nova/mnt unless nfs cinder backend is enabled
When enable_cinder_backend_nfs is only used, /var/lib/nova/mnt is no
need to mount. Then we do not need care whether this folder is sharable.

Change-Id: I53f4c2c9ec25775cdb02a3256fd3a878723d15f6
Closes-Bug: #1644602
2016-12-03 21:33:21 +08:00
Eduardo Gonzalez
775d8019b6 Add custom policies in service.json
Include custom policy.json files in service-api.json.j2 files

Change-Id: Ic55bfc6f61131aa72c3497ce8b2282056bcc7f92
Partially-Implements: blueprint custom-policies
2016-12-02 16:22:17 +00:00
caoyuan
939f2afdcb Remove the "nova-network" from the ansible
The nova-network was deprecated, this patch to remove it
from the ansible role
TrivialFix

Change-Id: I6ea9b007a55317e36c6f5117781f9c3ed36b0012
2016-12-01 22:08:38 +08:00
Duong Ha-Quang
b5d1e4b457 Fix placement of policy.json
Currently, policy.json is put in
"{{ node_config_directory }}/{{ service_name }}"
in target nodes.

Relocation policy.json to "{{ node_config_directory }}/{{ item }}"
with item is corresponding service compoment config directory.

Currently, the policy.json is copied to all services, but it
should be reviewed and left only in neccesary service
(at many cases, only API service needs that).

Redundant files will be removed in follow up patchset.

Change-Id: I0e997dccf4ec438c9c0436db71ec2fd06650f50d
Closes-Bug: #1639686
2016-11-29 16:00:09 +07:00
Jenkins
869febe43e Merge "Deprecate scheduler_max_attempts option in nova" 2016-11-29 07:59:56 +00:00
liyingjun
0af48d30a1 Notification needed for searchlight
Needs to enable notifications for services when enabling searchlight
[1][2][3][4]

[1]
http://docs.openstack.org/developer/searchlight/plugins/cinder.html#cinder-conf
[2]
http://docs.openstack.org/developer/searchlight/plugins/glance.html#glance-configuration
[3]
http://docs.openstack.org/developer/searchlight/plugins/neutron.html#neutron-configuration
[4]
http://docs.openstack.org/developer/searchlight/plugins/nova.html#nova-configuration

Change-Id: Id2167d901ac3d65599e54feb1b2d1818d2a633c9
Closes-bug: #1643393
2016-11-21 10:12:55 +08:00
ZhongShengping
a249d15d00 Deprecate scheduler_max_attempts option in nova
Option "scheduler_max_attempts" from group "DEFAULT" is deprecated.
Use option "max_attempts" from group "scheduler".

Change-Id: I7b8e803c3579c53629a63912e2f6faa65a31f098
Closes-Bug: #1642590
2016-11-17 21:38:03 +08:00
xionglingfeng
17e6e629f5 Allow cinder-volume to be configured to use NFS
Allow cinder-volume, nova-compute and nova-libvirtd to be configured to
use NFS. In order to mount and work with NFS shares, several containers
needed the NFS packages installed during build time.

One somewhat significant change is the addition of an explicit bind
volume for nova-compute that has shared mounts enabled.

According to docker-run(1), the shared mount propagation flag can only
be specified for bind mounted Docker volumes and not named volumes.

In an NFS setup, cinder-volume mounts the NFS shares so that it can
create and manage the Cinder volumes. When a new instance is created
with a Cinder volume or a Cinder volume is attached to an existing
instance, nova-compute mounts the Cinder volume from the NFS share for
nova-libvirtd. In order for nova-libvirtd to then see those Cinder
volumes the shared mounts flag must be enabled for the Docker volume.

Remove the rpcbind container as it is only necessary for operators who
are using NFSv3 or lower. There is no known need for this currently
however, this container can be added in the future should an operator
require it.

Co-authored-by: Ryan Hallisey <rhallise@redhat.com>
Co-authored-by: Andrew Widdersheim <amwiddersheim@gmail.com>
Change-Id: Iad77c05bce8876bdcc69b7ec22edd50e3bf48b9f
Closes-Bug: #1530515
Partially implements: blueprint  nfs-support-in-cinder
2016-11-07 12:57:54 -05:00