aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nova/tasks
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake18-1074/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-11-14Merge "Fix placement of policy.json"Jenkins1-1/+10
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-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-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-13Merge "Remove do_reconfigure.yml file for all roles"Jenkins2-327/+317
2016-10-03Fix ironic failedJeffrey Zhang1-0/+1
* 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-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-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-01Merge "Create the nova instances directory when need during starting"Jenkins1-33/+0
2016-08-30Merge "Enable the nova microversion api"Jenkins2-6/+11
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-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-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-07Enable the nova microversion apiJeffrey Zhang2-6/+11
* 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-07-27External Ceph - Implementation NovaMathias Ewald2-1/+55
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-06-21Merge "Add named volume for nova-libvirt"Jenkins1-0/+1
2016-06-20Add named volume for nova-libvirtHui Kang1-0/+1
VM instance state (e.g., instance.xml) should be persistent regardless of nova-libvirt container. Change-Id: I4463d0634db2aaefde7dc2c45a144e920d9cb1ac Closes-Bug: #1569828
2016-05-26Merge "add support for non-default database_port in kolla/ansible"Jenkins1-0/+4
2016-05-23Make configurable the location where config files are mergedRyan Hallisey2-12/+12
An operator may want to specify the location of custom config files so that kolla can detect their location and merge them with the default configs generated. Partially implements: blueprint multi-project-config Change-Id: Ibfb38d07a36dfa7fe25381adc34cc1d3cbe7d1e1
2016-05-13add support for non-default database_port in kolla/ansibleWaldemar Znoinski1-0/+4
This change makes each step of the kolla deployment aware of the port database was configured to listen on. It defaults mariadb_port to database_port. Change-Id: I8e85d5732015afc0a5481cb33e0b629fdfa84a1b Closes-Bug: #1576151 DocImpact
2016-05-03Merge "map the host localtime to the container"Jenkins4-0/+13
2016-05-03map the host localtime to the containerJeffrey Zhang4-0/+13
Closes-Bug: #1577148 Change-Id: I636cefc63cf532434a41af3898b63dffa711e280
2016-05-02Remove unecessary blank linesMauricio Lima1-1/+0
TrivialFix Change-Id: I1f03d428c380dfdbde5ef33e7ea43cbf5e9154ce
2016-04-15Merge "Adds ansible code for iscsid and tgtd containers"Jenkins1-7/+14
2016-04-14Use proper CentOS repositories for ceph and qemuSteven Dake1-3/+6
CentOS has a virtualization sig and storage sig which produces udpated ceph and qemu images. These images are then reused within the rest of Red Hat packaging. Install these repositories for CentOS and make use of them. This should work for OracleLinux as well. Still testing centos. Co-Authored-By: Vikram Hosakote <vhosakot@cisco.com> Co-Authored-By: Paul Bourke <paul.bourke@oracle.com> Change-Id: Iea21fc4f33bbfdb973cf354d492c372bd3360acb Closes-Bug: #1566588
2016-04-12Adds ansible code for iscsid and tgtd containersSerguei Bezverkhi1-7/+14
This partially implements iscsi and lvm2 support for cinder in Kolla. Adds ansible code for iscsid and tgtd containers. Change-Id: I2a4cfcf104397396ea61a09637d9ef3fc77b515f Partially-Implements: blueprint iscsi-lvm2-docker
2016-04-04Correct typoSwapnil Kulkarni (coolsvap)1-1/+1
The typo was missed and the code got merged. Added commit to correct it TrivialFix Change-Id: Ice33bcb5fb2f8826054feeae41370038f86bcf6b
2016-04-03Implement nova-ssh containerJeffrey Zhang4-5/+44
Add a nova-ssh container to handle the `nova migrate` and `nova resize` case, in which the nova will use ssh to copy files between machines. Change-Id: Ie6675943f3aeabfbba8589d308d55b9c89d732db Closes-Bug: #1562141
2016-03-30Fix the nova reconfigure in the multinode envJeffrey Zhang1-15/+15
Checking the fix condition first in the when clause rather than the dynamic condition. Otherwise it will raise issue, especially in multinode env. For example use when: - nova_console == 'novnc' - inventory_hostname in groups['nova-novncproxy'] rather than when: - inventory_hostname in groups['nova-novncproxy'] - nova_console == 'novnc' Because the nova-novncproxy groups may do not exist. Change-Id: I1e76ee239908a17a4c2ffd9a18c570fbc485172e Closes-Bug: #1563643
2016-03-22Make heka collect libvirtd.log in nova_libvirt containerVikram Hosakote1-0/+1
Test results of this patch set are at: http://paste.openstack.org/show/491382/ Change-Id: I1bc8bdb3180f30dc69af28a35fa057ac801bde0f Closes-Bug: #1560298
2016-03-21Wrong variable name for spicehtml5proxySamYaple1-1/+1
Reconfigure was hard broken with spiceproxy Change-Id: I80b5fcc16bcc0b090807843f7a59f0ae9ea27aec Closes-Bug: #1560175
2016-03-21Merge "Enabled nova->glance snapshots"Jenkins1-1/+1
2016-03-18Enabled nova->glance snapshotsSamYaple1-1/+1
Thanks to the related-id commit we can do nova->glance snapshots. This updates the keyrings to reflect that change. Change-Id: I02f083aec0255e9d681bd225a11ead6f5a379366 Related-Id: If13d25b6c94e247d2505583b524ae3af9c34b5dc
2016-03-18Merge "Allow per node configuration with augments"Jenkins2-0/+2
2016-03-18Merge "Change libvirt volume name to libvirtd"Jenkins1-2/+2
2016-03-17Allow per node configuration with augmentsSamYaple2-0/+2
This type of per node configuration is required to support things like availability zones for nova. As always, if this file doesnt exist it doesnt get used so this change is safe. TrivialFix Change-Id: Iff8172af522c2c96e5f2c173b24a5dfd4d522ed2
2016-03-15Change libvirt volume name to libvirtdSamYaple1-2/+2
This change is a "futureproofing" thing. It has already been discussed that libvirt should not be a child of nova and should be removed out to the base docker directory (just like openvswitch isn't a child of neutron). That is not going to happen this cycle but when it does we can't change the name of the volume. This updates the volumes to the proper name of libvirtd. This is in contrast with the libvirtlogd volume that will be needed in newton due to libvirt 1.3 Of note, the container can remain named nova_libvirt since we can change that on the fly later without breaking instances. This wont break liberty as named_volumes are not backported yet. TrivialFix Change-Id: I16cf9e1b1dbba9b5a9f5cc883494580e276d4f72
2016-03-15Switch to with items for sysctlSamYaple1-13/+6
This will give more info to the user about the specific values being set and allows us to grow this list easier. TrivialFix Change-Id: Iaf22bf2c9f4ab294bec0cca17699d461852109ac
2016-03-13Fix the nova reconfig not work issueJeffrey Zhang1-28/+125
The nova_compute nova_compute_ironic, nova_novncproxy and nova_spicehtml5proxy do not be reconfigured due to the wrong when condition TrivialFix Change-Id: Id27828b151301244da5d327b2b656780f283c4b4
2016-03-03Reconfigure nova serviceVikram Hosakote2-0/+222
This patch set implements reconfiguring the nova service. Change-Id: If078efd9ca98f815ca7830de912a4bc8916ff403 Partially-implements: bp kolla-reconfig
2016-03-03Fix Keystone v3 and HorizonSamYaple1-4/+6
After our switch to keystone-manage bootstrap Horizon is not happy due to v3 not being setup correctly. This patch fixes that This also includes removal of unused variables (transforms them into endpoint url variables) TrivialFix Change-Id: I1e04db8c24049f80e974c063f03068a2ab32a563