Similarly with the way it was done in the murano-agent, added
the ability to use the oslo-config-generator for creating a sample
configuration file murano.conf.sample.
Now to create the file, you must run:
tox -egenconfig
Change-Id: I8b06336d75eccfd598ce9033333884f75f393a09
pbr pre-versioning causes current sdist to have versions leading up to 0.4.1,
but that is already released - we should be leading up to 2014.2.
Change-Id: Ie3ef33b1c8de8129c303d2271f56f7f80158757f
This commit migrates Murano database migration framework from
sqlalchemy-migrate to Alembic. sqlalchemy-migrate is considered abandoned. All
other OpenStack projects are in process of migration to Alembic or have
already finished migration.
This change doesn't preserve all the migration scripts, it merges them into a
single migration script. That's what we would do even without Alembic. It's a
common practice to squash migration scripts into a single one right after the
release.
NOTICE:
CLI command to run migrations changed. Now it looks like this:
$ murano-db-manage upgrade
Migration path:
1. Simple solution is just to re-create your database from scratch
2. You can stamp your database with revision to make Alembic think that it
already applied the first migration:
$ tox -e venv -- murano-db-manage --config-file etc/murano/murano.conf stamp --revision head
For usage instructions see:
murano/db/migraiton/alembic_migrations/README
This patch also adds opportunistic tests for migrations. These tests will run in
OpenStack Infrastructure jenkins slaves. It'll use real MySQL and Postgres databases.
Tests will run in a "snake walk" manner, which means that upgrade and downgrade path
will be tested.
Base for migration tests is copied from Nova. Please note, that at this moment we
cannot use code from oslo, because it is not documented and is not tested. Once
test_migrations_base appears in project 'oslo.db', we'll be able to remove our own
test_migrations_base and use the one from 'oslo.db'.
implements: blueprint alembic-migrations
Change-Id: I5aa978f7095efc57f2d6fad81b5553e1880ad931
There were two patches which broke our gate:
1. https://review.openstack.org/#/c/80690/
This one forces Devstack installation to fail if a project has dependencies
not listed in the global-requirements file. Fix description:
Devstack has two functions to install a project:
* setup_develop
* setup_package
The first one does the requirements check and fails on Murano installation.
The latter one doesn't perform any checks (it is called internally from the
first function right after the requirements check was performed). We will
use the latter one until all Murano requirements match global-requirements.
2. https://review.openstack.org/#/c/85032/
This one introduced a nosetests plugin for MuranoPL. Somehow (I have no
idea how) it breaks Tempest run in the gate. It causes our functional tests
to behave wierdly, not recognise tempest config file and throw exception:
"DuplicateOptError: duplicate option: use-syslog", see complete log at
http://logs.openstack.org/13/85113/7/check/gate-murano-devstack-dsvm/4939248/console.html
Fix description:
Temporarily disable nosetests plugin until we figure out how to enable
it and avoid Tempest problems in the gate.
Change-Id: I369f91fdabdc887d5ff3fb6e16d85a4d12de9f03
Implements simple plugin for nosetests and gives
ability to write tests for MuranoPL functions
and features on MuranoPL itself.
Change-Id: I899d5d89f391167ff34fa35777e85125bad431bf
This patch changes the way we initialize the DB with tables:
* there is new command - 'murano-manage db_sync'
* DB is no longer automatically populated
Change-Id: I1ae06448ddf4a832740e9a2bfccbfd725cb6c3f7
Added all missing parts to complete MuranoPL implementation:
- system classes
- base classes
- integration with oslo.messaging
- package entry-point & other things to run engine
Integrated engine with API
Note: some tests are marked to be skipped,
will be enabled via separate commit.
Partially-Implements: blueprint new-metadata-dsl
Change-Id: I3c1c2326b48da57647d55ea8edfba56f1657d7d6
* Update requirements to stable/havana.
* made code preparations for build (modified)
* Made changes for nonroot daemons run
* Update requirements.txt for v0.4
Change-Id: I8cc4ee585ae35276b2fe0c81be5e45cb1997b4a2