Matt Thompson 9b073b6594 Re-deploy the Nova venv if it mismatches the repo
We currently have two issues with venvs:

- if you update your venv on the repo server, it is not possible for
  that updated venv to land on the service's container as the get_url
  task always skips if the file exists (even if the file is different)
- if you have an updated venv on the repo server and forcefully delete
  the cached venv tarball on the service's container, the new tarball
  will get unarchived over top of the existing venv

This commit does the following:

- gets the checksum of the /var/cache tarball and downloads checksum
  file from repo server
- updates "Attempt venv download" to only download the venv if the
  cache doesn't exist or if the local and remote checksums differ
- adds a "force: true" to "Attempt venv download" task so that the venv
  tarball will get re-downloaded when the when condition is true (this
  is necessary otherwise the download will get skipped since the
  destination already exists)
- adds a new task "Remove existing venv" so we can first remove the
  venv before we unarchive the potentially new venv from the repo
  server
- updates "Create nova venv dir" and "Unarchive pre-built venv"
  tasks to only proceed if "nova_get_venv | changed", which
  prevents these tasks from running when they the venv tarball hasn't
  changed
- adds multiple service restarts to
  os_nova/tasks/nova_install.yml so that nova will restart
  correctly should the venv/packages update without any associated
  config changes

NOTE: The reason why we compare local and remote checksum is to avoid
      unnecessarily downloading the venv when the checksums are in fact
      the same.  On small deploys this is more or less a non-issue but
      if a deploy w/ thousands of compute nodes re-runs playbooks we
      want to limit the venv downloads when it's unnecessary.

Change-Id: Ibe25126ee38f51fb71f877a54d32dd56d2a8a74d
2016-01-28 09:05:10 +00:00
2016-01-18 23:58:48 +00:00
2015-05-08 13:22:42 -05:00

OpenStack nova

tags

openstack, nova, cloud, ansible

category

*nix

Role for deployment, setup and installation of nova.

This role will install the following:
  • nova-consoleauth
  • nova-conductor
  • nova-compute
  • nova-cert
  • nova-api-metadata
  • nova-spicehtml5proxy
  • nova-api-ec2
  • nova-api-os-compute
  • nova-api-ec2
- name: Installation and setup of Nova
  hosts: nova_all
  user: root
  roles:
    - { role: "os_nova", tags: [ "os-nova" ] }
  vars:
    nova_galera_address: "{{ internal_lb_vip_address }}"
Description
Role os_nova for OpenStack-Ansible
Readme 16 MiB
Languages
Jinja 58.9%
Python 27.9%
Shell 13.2%