Initial OpenStack client plugin for Search
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://
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_
- 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:
- mitaka-3
- Started by
- Liyingjun
- Completed by
- Travis Tripp
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Init searchlight client base
Addressed by: https:/
Init searchlightclient base
Addressed by: https:/
Add plugin list CLI
Addressed by: https:/
Add facet list support
Addressed by: https:/
Added search resource client and cli
Addressed by: https:/
Add LIBS_FROM_GIT support for searchlightclient
Addressed by: https:/
Support DSL query for the query cli