Horizon panels and libraries for Searchlight
Project description
Horizon panels and libraries for searchlight
Free software: Apache license
Documentation: http://docs.openstack.org/developer/searchlight
Source: http://git.openstack.org/cgit/openstack/searchlight-ui
The Searchlight project provides indexing and search capabilities across OpenStack resources. Its goal is to achieve high performance and flexible querying combined with near real-time indexing.
Use the following resources to learn more:
Features
Please see the searchlight-ui repository
Horizon Version Compatibility
This project provides a Horizon plugin. The plugin relies on features developed in the Horizon framework, so the version of the plugin must be deployed with a compatible Horizon verion. The below table provides an overview of the Horizon version compatibility matrix.
Devstack Install
Setup Local Dev Environment
Assumptions:
horizon is installed or cloned into <basedir>/horizon/
searchlight-ui is installed or cloned into <basedir>/searchlight-ui/
current working directory is <basedir>/horizon/
Install environment.:
#Locally cloned Horizon environment ./tools/with_venv.sh pip install -e ../searchlight-ui #Devstack environment pip install -e ../searchlight-ui
Copy <searchlight-ui>/searchlight_ui/enabled/_1001_project_search_panel.py to <horizon_dir>/openstack_dashboard/local/enabled/:
cp -rv ../searchlight-ui/searchlight_ui/enabled/_1001_project_search_panel.py openstack_dashboard/local/enabled/
Set up the policy files. First copy the policy file <searchlight-ui>/searchlight_ui/conf/searchlight_policy.json into horizon’s policy files <horizon_dir>/openstack_dashboard/conf/ folder. Then copy <searchlight-ui>/local_settings.d/_1001_search_settings.py to <horizon_dir>/local/local_settings.d/:
cp ../searchlight-ui/searchlight_ui/conf/searchlight_policy.json openstack_dashboard/conf/ cp ../searchlight-ui/searchlight_ui/local_settings.d/_1001_search_settings.py openstack_dashboard/local/local_settings.d/
(If offline compression is enabled - typical in production and devstack). Django has a compressor feature that performs many enhancements for the delivery of static files. It can be enable or disabled (COMPRESS_ENABLED). In addition, offline compression may be enabled or disabled (COMPRESS_OFFLINE = True). If offline compression is enabled in your environment, you must run the following commands the first time you install searchlight-ui and anytime you make changes to it.:
./manage.py collectstatic ./manage.py compress
Restart your horizon services.:
#Locally cloned Horizon environment (not under apache) ./run_tests.sh --runserver 0.0.0.0:8005 (use desired IP and port) #Devstack sudo service apache2 restart
Create and Install Local Package
Change working directory to <basedir>/searchlight-ui/
Package the searchlight_ui by running:
python setup.py sdist
This will create a python egg in the dist folder, which can be used to install on the horizon machine or within horizon’s python virtual environment (prepend wih ./tools/with_venv.sh):
pip install dist/searchlight-ui-0.0.0.tar.gz (use appropriate version)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for searchlight-ui-1.0.0.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6d1d237fd923b7e075483ffcaa49d91b8ed15615ab68c580316d07c803daadb |
|
MD5 | 78bbd3e8faaa54231c3b5534d42b9e7a |
|
BLAKE2b-256 | a01f1df18555b2b43f7c67830cfbf2b31aa5d8ebd17ebd6cedae55e5a11de930 |
Hashes for searchlight_ui-1.0.0.0rc1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d882bfbdcd3b68367554722029a7714922607fbf3650bc5c3d2a708da958a882 |
|
MD5 | 83546930d54c8062e146fe355a2c263d |
|
BLAKE2b-256 | e43d1a9fabdc19bb2467e29b3ce8249f34388846c8a45157d1d73448dde10bc9 |