This patch adds the cell_v2 nova_cell0 database as part of the
test-install-nova.yml playbook. The var is required in test-vars for
this reason.
Additionally, we need to add permissions for the nova_api database user
to access the nova_cell0 database. This means we need to append
permissions for that user using the create-grant-db play. This defaults
to "omit" so is only used when "db_append_privs" is passed to the
include.
A work around is required for a bug in upstream nova - this should be
removed once https://review.openstack.org/#/c/428120/ merges.
Finally a fix was added to ensure the api_database is setup using the
appropriate address (although in this case it has no impact).
Change-Id: I082f37bb3ce61a900e06a58f21c7882f83671355
For some services, the name of the database user may differ from the
name of the database that user needs access to. Add a 'db_user' variable
for use in this case, defaulting to 'db_name' to maintain current
functionality.
Change-Id: Iff2d736415cfbe3e1ec60aa370cc30bd8610541d
Add interface drop for CentOS (Will need to be extended to allow
multiple interfaces)
Add network config files based on ansible_os_family.
Add nodepool tasks for CentOS
Add a default network file for both CentOS and Ubuntu
Change-Id: Ideb84f153fbd9f8f83ff39042f139b25719b39d8
For test repo we should build out keystone + infra services, as they are
the most commonly used roles/tasks.
We still need to add some funcitonal tests but this should give a good
base. The test repo will consume it's own test plays in the same way as
other repositories would. We use a "git clone ." to avoid a situation
where we clone the old repo containing the errors we are trying to fix.
Additional fix, we don't need a "when" clause on the rabbit/db creation
tasks - since these are already delegated and a "run_once" will suffice.
This fix is required for the tests to pass.
Change-Id: I482500872f9e29a71e1576f67a0ad390be2a3ece
Moved Rabbitmq and DB tasks to generic files.
This patch removes the redundant behaviour of the tasks such
as Ensuring Rabbitmq hosts and user, creating db, granting access
to db in the testing yml files. The patch makes it more generic
and shifted the common tasks to separate files create-grant-db.yml
and ensure-rabbitmq.yml
Change-Id: Ibd94e1ebdce45b782ab447ca3db5068588a1e368