aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nova
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake39-1624/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-11-15Merge "Deprecate scheduler_max_attempts option in nova"Jenkins1-2/+3
2016-11-15Merge "Ansible-ize OpenStack Designate"Jenkins1-2/+3
2016-11-15Deprecate scheduler_max_attempts option in novaZhongShengping1-2/+3
Option "scheduler_max_attempts" from group "DEFAULT" is deprecated. Use option "max_attempts" from group "scheduler". Change-Id: I7b25291b61200cf2402f19a187cc4fe2fe6b0e11 Closes-Bug: #1641840
2016-11-14Merge "Fix placement of policy.json"Jenkins1-1/+10
2016-11-14Ansible-ize OpenStack DesignateRoss Krumbeck1-2/+3
Implement containers for main designate components. Add designate enable options and port configuration. Add designate groups to ansible inventory. Add designate configuration to haproxy. Add designate port checks. Add designate passwords to passwords.yml. Enable Designate and Neutron integration. Enable Designate and Nova integration. Fix designate-pool-manager container name for consistency. Co-Authored-By: zhubingbing <zhubingbing10@gmail.com> Change-Id: I34d8126e0cd8d71d5ced9b62f3776cc354fbb549 Implements: blueprint ansible-designate
2016-11-12Fix placement of policy.jsonDuong Ha-Quang1-1/+10
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-07Allow cinder-volume to be configured to use NFSxionglingfeng1-0/+3
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-04Merge "Custom policy files"Jenkins1-0/+11
2016-11-03Move precheck into its own roleJeffrey Zhang1-0/+1
* Merge prechecks.yml and site.yml playbook * Create empty precheck.yml into all roles. Change-Id: I8a138558a26c0a2a66c5fd48ed37be657c99c1dd Implements: blueprint condition-pre-check
2016-10-28Custom policy filesEduardo Gonzalez1-0/+11
Allow operators to use their custom policy files. Avoid maintain policy files in kolla repos, only copying the files when an operator add their custom config. Implements: blueprint custom-policies Change-Id: Icf3c961b87cbc7a1f1dd2ffbfffcf271d151d862
2016-10-19Merge "Allow operators to change hw_disk_discard in Nova"Jenkins2-1/+7
2016-10-19Fix api_paste_config optionZhongShengping1-1/+3
Option "api_paste_config" from group "DEFAULT" is deprecated in Nova. Use option "api_paste_config" from group "wsgi". Change-Id: I7727aa67da71fefe20b2aaefb1337dba4f9008b1 Closes-Bug: #1632066
2016-10-19Merge "Add missing debugging paramters to nova config"Jenkins1-0/+6
2016-10-18Bump retries in starting nova-libvirt to 5Jeffrey Zhang1-2/+2
retries: 1 won't really retry in part of ansible release. Bumping the number to 5 ensure it works as expected Change-Id: I9f131001bd96ed33832b42cc8143327f249e916a Closes-Bug: #1634401
2016-10-17Fix nova upgrade permission issueMichal (inc0) Jastrzebski8-0/+61
Change-Id: I61738f2d8ef89d6a8c5fb1187f18c5bb154bbe04 Partial-Bug: #1631503
2016-10-17Merge "Fix stale namespace removal issue"Jenkins1-3/+3
2016-10-15Cinder endpoint wrong fixKevin Fox1-1/+1
kolla genconfig is pointing at cinder v1, not v2. nova pointing at v1 is now broken. At least when cinder is backed by ceph and the release is >= mitaka. Closes-Bug: #1633758 Change-Id: Idf4a26b37587f1dabe2de0c1ffbddb8c08ee3bdb
2016-10-15Fix stale namespace removal issueJeffrey Zhang1-3/+3
When using both /run and /run/netns in docker container, mount propagation won't work when delete namespace after the containers are restarted. This PS makes /run mount as shared. Closes-Bug: #1616268 Change-Id: Ie16699e1b193b2bf1263d89ea634e89ea69add9e
2016-10-14Merge "Remove unneeded blank lines"Jenkins1-1/+0
2016-10-13Merge "Remove do_reconfigure.yml file for all roles"Jenkins2-327/+317
2016-10-13Add missing debugging paramters to nova configChristian Berendt1-0/+6
Debugging for glance and guestfs has to be enabled by using separate parameters. TrivialFix Change-Id: I41c62ffed3a64f3a652393acd064e004ebe39c60
2016-10-11Allow operators to change hw_disk_discard in NovaPaul Bourke2-1/+7
Some base image distros don't ship new enough versions of libvirt/qemu to support hw_disk_discard in Nova (libvirt (1, 0, 6) or later and qemu (1, 6, 0) or later). When deploying Nova with Ceph enabled this config item is automatically turned on, we should give operators a chance to disable it. Change-Id: I0b2615c64a9569c09567bf456815f93254d90ade Closes-Bug: #1632348
2016-10-06Remove unneeded blank linesMauricio Lima1-1/+0
TrivialFix Change-Id: I778d0a55adf1302c7a6f0702fec3a381d851f3df
2016-10-03Fix ironic failedJeffrey Zhang2-0/+2
* Mount system folder in ironic-conductor * Add package need in ironic-conductor * Fix the log path issue * Add ironic sudoer in ironic-base * Fix credential issue * Do not start nova-compute when enable ironic Closes-Bug: #1629334 Change-Id: If9d478c6513de37465403d458a88cf0da7ebd8a6
2016-09-27Remove do_reconfigure.yml file for all rolesJeffrey Zhang2-327/+317
do_reconfigure.yml is introduced to use serial directive. But we use it in wrong. Now serial has moved to playbook file. So it is time to remove the do_reconfigure.yml file Closes-Bug: #1628152 Change-Id: I8d42d27e6bc302a0e575b0353956eaef9b2ca9fd
2016-09-21Cinder cannot use external non-LVM iSCSI storageVladislav Belogrudov1-1/+1
Currently Cinder enables iscsid service only when LVM is choosen as backend. This fix will allow to specify external iSCSI storage via configuration add-on and to run iscsid independently of LVM settings. Change-Id: Iaae0f8025534e5ab1c5f9d5e812a7d41129915ef Closes-Bug: 1614125
2016-09-20Deprecate old auth parameters of ironic in nova.confZhongShengping1-4/+6
The auth parameters `admin_username`, `admin_password`, `admin_tenant_name` and `admin_url` of the [ironic] config option group are now deprecated and will be removed in a future release. Using these parameters will log a warning. Please use `username`, `password`, `project_name `and `auth_url` instead. Change-Id: I9e383788e35b83888b3b5cf927f67b0f3b4ef54b Closes-Bug: 1619266
2016-09-13Added serial option to site.yml.Mick Thompson2-4/+0
Useful for upgrade etc., which is preferablly done serially. Example usage: tools/kolla-ansible deploy OR tools/kolla-ansible upgrade Closes-Bug: #1576708 DocImpact Change-Id: I34b2e16f8ce53e472a4682a4738c4ac0f5abf00c
2016-09-12Adding required check for Orchestration KubernetesSerguei Bezverkhi3-19/+28
Thgis PS add missing check for Kubernetes orchestration engine, without these changes, running kolla-ansible genconfig fails for Kubernetes environment. TrivialFix Change-Id: I25eeb7ae3ddba7c924f6d48aa24afdbe74227170
2016-09-10Remove novncproxy and spice from reloadMichal (inc0) Jastrzebski1-12/+0
Since these services don't use RPC, we don't need to reload them. And these caused problems in gates. Change-Id: I6967bdc7da0d0c3c06873e3d554124ca995f4c13 Closes-Bug: #1622117
2016-09-05Merge "Updating ironic configurations in nova.conf"Jenkins1-3/+3
2016-09-02Merge "Move to transport_url for rabbitmq configuration"Jenkins1-6/+2
2016-09-01Merge "Create the nova instances directory when need during starting"Jenkins1-33/+0
2016-09-01Updating ironic configurations in nova.confNarasimha SV1-3/+3
Irnoic configurations in nova compute node have been changed with respect to the master code of ironic and nova. admin_url configuration is with v3 version but other details are with respect to v2.0 version of keystone authentication. Updated scheduler_host_manager, compute_driver and admin_url values in the nova.conf template to support ironic master branch code. Change-Id: I78bee3fdf082bcd526507b479be3afaee80ba899 Closes-Bug: #1619211
2016-08-30Merge "Enable the nova microversion api"Jenkins3-9/+18
2016-08-29Fix removing nova_libvirt container issueJeffrey Zhang2-1/+10
Retry once when removing or upgrading nova_libvirt to ensure it is removed Closes-Bug: #1617741 Change-Id: I8b5046a438c0ef3599a4333bbe77333f0af323ff Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-08-25Move to transport_url for rabbitmq configurationJeffrey Zhang1-6/+2
rabbit_hosts, rabbit_userid and rabbit_password are deprecated for removal.[0] rpc_backend is deprecated for removal.[1] rabbit_ha_queues is deprecated. it is useless when using RabbitMQ >= 3.0 [2] [0] https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/_drivers/impl_rabbit.py#L112,#L134 [1] https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/transport.py#L46 [2] https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/_drivers/impl_rabbit.py#L163,L174 Closes-Bug: #1614082 Change-Id: I05d318ba6c11c5dbfa9fbf67d088a43ab465be30
2016-08-20Create the nova instances directory when need during startingJeffrey Zhang1-33/+0
The /var/lib/nova/instances should be create if it do not exist during starting nova-compute container. Rather than create it at the bootstrap service stage. Change-Id: Ibcc5fb8eec0b38cf2b4313f48d1beb3ba83b1e85 Closes-Bug: #1614970
2016-08-10Merge "Port with_ loop variable syntax to Ansbile 2"Jenkins1-4/+4
2016-08-10Merge "Remove unused project_yaml parameter from role metadata files"Jenkins1-1/+1
2016-08-09Port with_ loop variable syntax to Ansbile 2Duong Ha-Quang1-4/+4
Migrate to full variable syntax in with_ loop instead of bare variables for: - ceph - ceilometer - glance - heat - horizon - keystone - mariadb - memcached - neutron - nova - rabbitmq Change-Id: Ib925b4ecea47ac758a77739c9c7e140f06933b08 Partial-Implements: blueprint ansible2
2016-08-07Remove unused project_yaml parameter from role metadata filesChristian Berendt1-1/+1
TrivialFix Change-Id: I7ff752fffe47e9571ea15acdad3edd4835f9e612
2016-08-07Enable the nova microversion apiJeffrey Zhang3-9/+18
* Use the nova microversion api for compute service * Use the legacy nova api for compute_legacy service * Update the nova service and endpoint during the upgrade stage This is what the devstack used now[0] [0] https://github.com/openstack-dev/devstack/blob/e777bbce3b18ce50abe683a2d96394e96a3b70bc/lib/nova#L408,L422 TrivialFix Change-Id: I0574a3116b1dd1702b4eccb2394538866675c4c1
2016-08-06Merge "Simplify the Cinder LVM backend"Jenkins1-1/+1
2016-08-03Merge "External Ceph - Implementation Nova"Jenkins5-14/+66
2016-07-27External Ceph - Implementation NovaMathias Ewald5-14/+66
Introduced nova backend selection flag for Ceph and priority if multiple backends are configured Add mechanism to deploy arbitrary ceph.conf and keyring files into nova-compute and nova-libvirt containers Added documentation Change-Id: Id010ca9cc2d914e5358ef79edeb600a28220dd4b Implements: blueprint external-ceph
2016-07-25Simplify the Cinder LVM backendJeffrey Zhang1-1/+1
Remove the unnecessary option in the group_vars/all.yml file. * removed some cinder.conf options like volume_backend_name, iscsi_helper, iscsi_protocol etc. these value can be configured by custom cinder.conf file, no need export as global variables. * remove meaningless iscsi_ip_addess, which is not used in LVM driver * force start iscsi relate when enable_cinder_backend_lvm is yes TrivialFix Change-Id: Ifcbfdad15e4d68bc5f20fc77e0315a09983ef022
2016-07-18Remove notification_driver optionZhongShengping1-1/+0
The Ceilometer integration for Nova uses notification_driver parameter at the moment. According to the logs this is deprecated: Option "notification_driver" from group "DEFAULT" is deprecated. Use option "driver" from group "oslo_messaging_notifications". Change-Id: Ifb60a7a5945838bb8d12092d811956f84775df27 Closes-Bug: 1602667
2016-07-18Merge "Set the privsep_osbrick.helper_command in nova and cinder"Jenkins1-0/+3