Initial OpenStack client plugin for Search

Registered by Travis Tripp

Summary
=======
We need an initial OpenStack client plugin for searchlight.

Motivation
========
OpenStack client is the single CLI go forward for OpenStack. You add to it by making a plugin for the OpenStack Client. Plugins are described below:

http://docs.openstack.org/developer/python-openstackclient/plugins.html

Description
=========
We need an initial OpenStack client plugin for searchlight. It should support basic search commands.

 - Get resource types
 - Open Query Search (just take query input)

Additional, more refined commands with per plugin named queries could come in follow on BP's

Proposed change
===============
There will be two parts of work items:

- searchlight client: Client for the searchlight v1 API
   #. Querying available plugins: list(**kwargs)
   #. Running a search: search(query=None, index=None, type=None, _source=None, offset=None, limit=None, highlight=None, sort_order=None, all_projects=None, **kwargs)
   #. Faceting list: list(all_projects=None, type=None, **kwargs)

- openstack client plugin: will call the searchlight client to implement the following commands:
   #. openstack searchlight plugin list
   #. openstack searchlight search
   #. openstack searchlight facet list

The code base should be like:
├── searchlight
│   ├── client
│   │   ├── common
│   │   └── v1
│   ├── osc
│   │   └── v1

Testing
======
Brief instruction for reviewers to exercise the changes, including expected results where non-obvious.

Outside Dependencies
==================
Is this functionality already supported in other services? List the appropriate API calls and if they are extensions or base API functionality.

This should describe any cross project dependencies. This should include:
  * changes to OpenStack services
  * changes to OpenStack services clients (python-*client)
  * changes in external projects
Links to particular patches should be included in the whiteboard area.

Requirements Update Required
========================

Blueprint information

Status:
Complete
Approver:
Travis Tripp
Priority:
Medium
Drafter:
Travis Tripp
Direction:
Approved
Assignee:
Liyingjun
Definition:
Approved
Series goal:
Accepted for mitaka
Implementation:
Implemented
Milestone target:
milestone icon mitaka-3
Started by
Liyingjun
Completed by
Travis Tripp

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/openstack-client-search-initial-plugin,n,z

Addressed by: https://review.openstack.org/245660
    Init searchlight client base

Addressed by: https://review.openstack.org/247565
    Init searchlightclient base

Addressed by: https://review.openstack.org/249076
    Add plugin list CLI

Addressed by: https://review.openstack.org/255027
    Add facet list support

Addressed by: https://review.openstack.org/260899
    Added search resource client and cli

Addressed by: https://review.openstack.org/268358
    Add LIBS_FROM_GIT support for searchlightclient

Addressed by: https://review.openstack.org/275046
    Support DSL query for the query cli

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.