[
https://issues.apache.org/jira/browse/AMBARI-14394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siddharth Wagle updated AMBARI-14394:
-------------------------------------
Description:
Provide ability to filter host components using a predicate that allows bulk
ops like RESTART of stale configs with a simple API call.
Example:
{code}
{
"RequestInfo": {
"context": "Restart stale",
"operational_level": "host_component",
"command": "RESTART"
},
"Requests/resource_filters": [
{
"hosts_predicate": "HostRoles/stale_configs=true"
}
]
}
{code}
This API call should allow user to perform custom command restart on all host
components with stale configurations.
was:
Provide ability to filter host components using a predicate that allows bulk
ops like RESTART of stale configs with a simple API call.
Example:
{code}
{
"RequestInfo": {
"context": "Restart stale",
"operational_level": "host_component",
"command": "RESTART"
},
"Requests/resource_filters": [
{
"hosts_predicate": "HostRoles/stale_config=true"
}
]
}
{code}
This API call should allow user to perform custom command restart on all host
components with stale configurations.
> Add ability to restart all host components with stale_configs=true with one
> API request
> ---------------------------------------------------------------------------------------
>
> Key: AMBARI-14394
> URL: https://issues.apache.org/jira/browse/AMBARI-14394
> Project: Ambari
> Issue Type: Improvement
> Components: ambari-server
> Affects Versions: 2.0.0
> Reporter: Siddharth Wagle
> Assignee: Siddharth Wagle
> Priority: Critical
> Fix For: 2.4.0
>
>
> Provide ability to filter host components using a predicate that allows bulk
> ops like RESTART of stale configs with a simple API call.
> Example:
> {code}
> {
> "RequestInfo": {
> "context": "Restart stale",
> "operational_level": "host_component",
> "command": "RESTART"
> },
> "Requests/resource_filters": [
> {
> "hosts_predicate": "HostRoles/stale_configs=true"
> }
> ]
> }
> {code}
> This API call should allow user to perform custom command restart on all host
> components with stale configurations.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)