Skip to main content

Horizon panels and libraries for Searchlight

Project description

Horizon panels and libraries for searchlight

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:


  • Please see the searchlight-ui repository

Setup Local Dev Environment


  • horizon is installed or cloned into <basedir>/horizon/
  • searchlight-ui is installed or cloned into <basedir>/searchlight-ui/
  • current working directory is <basedir>/horizon/
  1. Install environment.:

    #Locally cloned Horizon environment
    ./tools/ pip install -e ../searchlight-ui
    #Devstack environment
    pip install -e ../searchlight-ui
  2. Copy <searchlight-ui>/searchlight_ui/enabled/ to <horizon_dir>/openstack_dashboard/local/enabled/:

    cp -rv ../searchlight-ui/searchlight_ui/enabled/ openstack_dashboard/local/enabled/
  3. 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 and then add the following config to the POLICY_FILES setting in openstack_dashboard/local/

    cp ../searchlight-ui/searchlight_ui/conf/searchlight_policy.json openstack_dashboard/conf/
    #Add to ``POLICY_FILES`` setting in ``openstack_dashboard/local/``
    'search': 'searchlight_policy.json',
  4. (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.:

    ./ collectstatic
    ./ compress
  5. Restart your horizon services.:

    #Locally cloned Horizon environment (not under apache)
    ./ --runserver (use desired IP and port)
    sudo service apache2 restart

Create and Install Local Package

Change working directory to <basedir>/searchlight-ui/

  1. Package the searchlight_ui by running:

    python sdist
  2. 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/

    pip install dist/searchlight-ui-0.0.0.tar.gz (use appropriate version)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
searchlight_ui-0.1.0-py2-none-any.whl (69.2 kB) Copy SHA256 hash SHA256 Wheel py2
searchlight-ui-0.1.0.tar.gz (45.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page