Drop build of libxml2 (picked from distro).
Use NGINX 1.12.x series (as this is the stable version).
Use constraints file from OpenStack Pike due to transient
dependency bumps on PyPI causing build failures.
* Upgrade to 4.0.x series
This currently requires that we override the LD_LIBRARY_PATH
in the environment so that the ceph-common library is correctly
loaded by librados2.
* Add shim wrapper to pickup ceph package library path
* Disable global environment hack
Revert to using an older gnocchi version for compatibility with
python-rados as provided in the Ubuntu archive for Xenial.
Support for gnocchi >= 4.0.0 needs revisting, but this at least
works for the time being.
* Drop gnocchi.conf from snap source in favor of installing it (as well as
api-paste.ini and policy.json) from upstream source.
* Drop gnocchi-api entry point in favor of using gnocchi-uwsgi and
gnocchi-nginx to serve API requests.
* Move to gnocchi 4.0.2 source.
* Update gnocchi-snap.conf.j2 template with $SNAP_COMMON paths.
* Add statsd and change-sack-size entry points and modify existing entry
points to use snap-openstack.
* Add test configs that enable a working gnocchi.
* Enhance test scripts and split into separate scripts.
* Bring back oslo-config-dirs.patch and upper constraints as they're
needed for ocata.
This commit takes the cookie cutter output and fixes it up into a snap
that builds and installs.
- Added required names and such in openstack-snap.yaml and nginx and
wsgi config templates.
- Python packages that are declared in setup.cfg and not in
requirements.txt are now called out explicitly in the
snapcraft.yaml. (Note: a better fix might be to update snapcraft to
be able to parse dependencies from setup.cfg.)
- Removed upper constraints files on Python packages (and removed oslo
patch). Gnocchi does not appear to respect the upper constraints.
- Added gnocchi-config-generator command to apps.
- Used the above to generate a default config.
- Added snapstack tests (though they don't work yet).
There's still plenty to do: snapstack tests need to be fixed up (see
the TODO in tests/gnocchi.sh), and the snap as a whole needs to be
thoroughly tested.