Add cluster_id to action filter in API

Registered by Bo Tran

Current, an action was created haven't information of a cluster.
When a specific action is created, we do not know what action this action takes
in a cluster and when we execute the query API:

GET http://senlin_host:8777/actions

so many actions are returned even though we can limit using parameters
such as name, target, action, status combined with limit and marker.
But, we can't just get the actions executed in a particular cluster.
So, I want us to be able to do this by enabling the query with a cluster_id parameter.
To accomplish this, I think we need to modify the schema of
action models and action tables in the database of senlin service.

The plan:
1. Edit action models and action tables in database, add a field named is 'cluster_id'
2. Edit ActionListRequest allow filter by cluster_id

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Bo Tran
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.opendev.org/#/q/topic:add-action-filter

Addressed by: https://review.opendev.org/669026
    Add cluster_id to action filter in API

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.