Shubham created AMBARI-25224:
--------------------------------
Summary: Users with Service Administrator roles should be able to
create Alerts in ambari
Key: AMBARI-25224
URL: https://issues.apache.org/jira/browse/AMBARI-25224
Project: Ambari
Issue Type: Bug
Components: ambari-sever
Affects Versions: 2.7.3
Reporter: Shubham
Problems Statement : Currently i am having service administrator privilage in
my cluster. i am trying to create Custom Alert in ambari and its failing with
above exception :
{code:java}
curl -u TestUser:admin -i -H 'X-Requested-By:ambari' -X POST -d @alertsjson.txt
http://test1:8080/api/v1/clusters/test1/alert_definitions
HTTP/1.1 100 Continue
HTTP/1.1 403 Forbidden
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: no-store
Pragma: no-cache
Set-Cookie: AMBARISESSIONID=9g1ieqg3rijo1tuclt3dxkedl;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: TestUser
Content-Type: text/plain
Content-Length: 109
{
"status" : 403,
"message" : "The authenticated user is not authorized to manage cluster-level
alerts"
}
{code}
But i feel as i am service administrator i should be able to create a alert.
Currently only Ambari Administrator is able to create alert in ambaril
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)