19 Commits

Author SHA1 Message Date
Jesse Pretorius
1ce6e3d691 Switch from MySQL-python to PyMySQL
As part of the cross-project effort [1] to prepare OpenStack for
Python3 as the primary Python version used, the decision has been
made to switch from using MySQL-python to PyMySQL [2].

This patch switches Ironic to use the PyMySQL library.

[1] https://etherpad.openstack.org/p/liberty-cross-project-python3
[2] https://review.openstack.org/184388

Change-Id: I9c6906c37213a2a48c9aab3988b392fb7397ea90
2016-03-22 14:44:20 +00:00
Jesse Pretorius
394bc02e44 Re-deploy the 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 neutron venv dir" and "Unarchive pre-built venv"
  tasks to only proceed if "neutron_get_venv | changed", which
  prevents these tasks from running when they the venv tarball hasn't
  changed
- adds multiple service restarts to
  os_neutron/tasks/neutron_install.yml so that neutron 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: Ie0ba2956e5bf90cec6615171b50a2397c7624257
2016-03-22 14:44:00 +00:00
Jesse Pretorius
75e85cff4c Consolidate pip install tasks
The pip install tasks were distributed into many files with no clear
benefit from doing so. This patch consolidates the pip install tasks
to ensure that they are all handled together, are all installed into
the appropriate venv, and all use the right constraints.

Change-Id: I8bad68c57c0ffa986817aa80d79e9d2ab4b86a3d
2016-03-22 14:43:39 +00:00
Jesse Pretorius
5e69f88ed9 Enable developer mode with upper-constraints
This commit adds the ability to install Ironic without requiring an
OpenStack-Ansible pip wheel repository.

In 'developer mode' the git source is cloned directly and the services
are installed directly from the git clone with its requirements being
installed from pypi. The OpenStack upper-constraints file is also used
to ensure that the install is executed using the appropriately tested
set of pypi packages.

Change-Id: I38f6b0796fa2bb647e51194907274d9ca6cfb585
2016-03-22 10:37:42 +00:00
Jenkins
ff29558c81 Merge "Change default standalone ironic driver" 2016-03-18 11:23:33 +00:00
Michael Davies
282e6f059e Fix python-ironicclient pip install breakage
The pypi mirror that the openstack gate uses does not normalise -
and _ separators, whereas other pypi mirrors do. This is stopping
other reviews such as https://review.openstack.org/#/c/293779/
from passing tests.

Change-Id: I9b8bb450e199aadf3123b9a74cfe953e05d89952
Signed-off-by: Michael Davies <michael@the-davies.net>
2016-03-18 03:13:18 +00:00
Michael Davies
07bcafa909 Change default standalone ironic driver
This patch changes the default ironic driver for standalone mode
to use the agent_ipmitool driver instead of pxe_amt since it is
easier to build and is more useful for standalone usage.

Change-Id: I54958877d304051f4b82712e9a24e0e9fa9857b3
Signed-off-by: Michael Davies <michael@the-davies.net>
2016-03-16 21:41:03 +00:00
root
aabd2d9809 Isolating standalone Ironic mode 2016-02-15 09:39:27 +00:00
Andy McCrae
44348869cf Add apache to front ironic-api
Additionally fix some tasks that were only running on host [0] but
should be running on all hosts.
2016-01-21 05:41:48 +10:00
Michael Davies
30e34e89a1 Fix keystone and neutron URL 2016-01-19 21:55:45 +00:00
Michael Davies
adf87cec93 Add support for neutron, glance, keystone+cleanup 2016-01-19 10:51:27 +00:00
Michael Davies
70400b4e71 Adding keystone registration and spliting roles 2016-01-19 08:24:25 +00:00
Michael Davies
069116859a Syncing as work on osa integration continues 2016-01-19 06:59:45 +00:00
Michael Davies
7869e67bd8 Refactoring post andymccr review and suggestions 2016-01-18 03:57:40 +00:00
Michael Davies
fffaf0e52d Add update_src var 2015-11-30 20:24:42 +10:30
Michael Davies
8b3e02ec2c Fixing database handling 2015-11-27 15:53:24 +10:30
Michael Davies
86ca876f6c Add ironic.conf, including standalone usage 2015-11-27 14:36:55 +10:30
Michael Davies
b40dd35bdc General cleanup, incl. copyright headers 2015-11-27 12:59:56 +10:30
Michael Davies
c578f230a0 Initial commit 2015-11-26 22:18:44 +10:30