[jira] [Updated] (AMBARI-23021) ServiceInfo: credential_store_supported attempts to overwrite maintenance_state

2018-03-14 Thread Doroszlai, Attila (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-23021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doroszlai, Attila updated AMBARI-23021:
---
Resolution: Fixed
Status: Resolved  (was: Patch Available)

> ServiceInfo: credential_store_supported attempts to overwrite 
> maintenance_state
> ---
>
> Key: AMBARI-23021
> URL: https://issues.apache.org/jira/browse/AMBARI-23021
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.5.0
>Reporter: Doroszlai, Attila
>Assignee: Doroszlai, Attila
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 2.7.0
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Try to update {{credential_store_supported}} property of a service:
> {noformat}
> $ curl -X PUT -d @- 
> "http://$AMBARI_SERVER:8080/api/v1/clusters/TEST/services/HDFS; < { "ServiceInfo": { "credential_store_supported": "true" } }
> EOF
> HTTP/1.1 400 Bad Request
> ...
>   "message" : "java.lang.IllegalArgumentException: No enum constant 
> org.apache.ambari.server.state.MaintenanceState.true"
> {noformat}
> Expected response:
> {{IllegalArgumentException: Invalid arguments, cannot update 
> credential_store_supported as it is set only via service definition.}}
> The response code is the same as expected due to a coincidence.
> The problem is setting the wrong property:
> {noformat}
>  414 o = properties.get(SERVICE_CREDENTIAL_STORE_SUPPORTED_PROPERTY_ID);
>  415 if (null != o) {
>  416   svcRequest.setMaintenanceState(o.toString());
>  417 }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AMBARI-23021) ServiceInfo: credential_store_supported attempts to overwrite maintenance_state

2018-03-08 Thread Doroszlai, Attila (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-23021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doroszlai, Attila updated AMBARI-23021:
---
Fix Version/s: 2.7.0
   Status: Patch Available  (was: In Progress)

> ServiceInfo: credential_store_supported attempts to overwrite 
> maintenance_state
> ---
>
> Key: AMBARI-23021
> URL: https://issues.apache.org/jira/browse/AMBARI-23021
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.5.0
>Reporter: Doroszlai, Attila
>Assignee: Doroszlai, Attila
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 2.7.0
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Try to update {{credential_store_supported}} property of a service:
> {noformat}
> $ curl -X PUT -d @- 
> "http://$AMBARI_SERVER:8080/api/v1/clusters/TEST/services/HDFS; < { "ServiceInfo": { "credential_store_supported": "true" } }
> EOF
> HTTP/1.1 400 Bad Request
> ...
>   "message" : "java.lang.IllegalArgumentException: No enum constant 
> org.apache.ambari.server.state.MaintenanceState.true"
> {noformat}
> Expected response:
> {{IllegalArgumentException: Invalid arguments, cannot update 
> credential_store_supported as it is set only via service definition.}}
> The response code is the same as expected due to a coincidence.
> The problem is setting the wrong property:
> {noformat}
>  414 o = properties.get(SERVICE_CREDENTIAL_STORE_SUPPORTED_PROPERTY_ID);
>  415 if (null != o) {
>  416   svcRequest.setMaintenanceState(o.toString());
>  417 }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AMBARI-23021) ServiceInfo: credential_store_supported attempts to overwrite maintenance_state

2018-03-08 Thread ASF GitHub Bot (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-23021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated AMBARI-23021:

Labels: pull-request-available  (was: )

> ServiceInfo: credential_store_supported attempts to overwrite 
> maintenance_state
> ---
>
> Key: AMBARI-23021
> URL: https://issues.apache.org/jira/browse/AMBARI-23021
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.5.0
>Reporter: Doroszlai, Attila
>Assignee: Doroszlai, Attila
>Priority: Minor
>  Labels: pull-request-available
>
> Try to update {{credential_store_supported}} property of a service:
> {noformat}
> $ curl -X PUT -d @- 
> "http://$AMBARI_SERVER:8080/api/v1/clusters/TEST/services/HDFS; < { "ServiceInfo": { "credential_store_supported": "true" } }
> EOF
> HTTP/1.1 400 Bad Request
> ...
>   "message" : "java.lang.IllegalArgumentException: No enum constant 
> org.apache.ambari.server.state.MaintenanceState.true"
> {noformat}
> Expected response:
> {{IllegalArgumentException: Invalid arguments, cannot update 
> credential_store_supported as it is set only via service definition.}}
> The response code is the same as expected due to a coincidence.
> The problem is setting the wrong property:
> {noformat}
>  414 o = properties.get(SERVICE_CREDENTIAL_STORE_SUPPORTED_PROPERTY_ID);
>  415 if (null != o) {
>  416   svcRequest.setMaintenanceState(o.toString());
>  417 }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AMBARI-23021) ServiceInfo: credential_store_supported attempts to overwrite maintenance_state

2018-02-20 Thread Doroszlai, Attila (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-23021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doroszlai, Attila updated AMBARI-23021:
---
Summary: ServiceInfo: credential_store_supported attempts to overwrite 
maintenance_state  (was: ServiceInfo/credential_store_supported applied to 
maintenance_state)

> ServiceInfo: credential_store_supported attempts to overwrite 
> maintenance_state
> ---
>
> Key: AMBARI-23021
> URL: https://issues.apache.org/jira/browse/AMBARI-23021
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-server
>Affects Versions: 2.5.0
>Reporter: Doroszlai, Attila
>Priority: Minor
>
> Try to update {{credential_store_supported}} property of a service:
> {noformat}
> $ curl -X PUT -d @- 
> "http://$AMBARI_SERVER:8080/api/v1/clusters/TEST/services/HDFS; < { "ServiceInfo": { "credential_store_supported": "true" } }
> EOF
> HTTP/1.1 400 Bad Request
> ...
>   "message" : "java.lang.IllegalArgumentException: No enum constant 
> org.apache.ambari.server.state.MaintenanceState.true"
> {noformat}
> Expected response:
> {{IllegalArgumentException: Invalid arguments, cannot update 
> credential_store_supported as it is set only via service definition.}}
> The response code is the same as expected due to a coincidence.
> The problem is setting the wrong property:
> {noformat}
>  414 o = properties.get(SERVICE_CREDENTIAL_STORE_SUPPORTED_PROPERTY_ID);
>  415 if (null != o) {
>  416   svcRequest.setMaintenanceState(o.toString());
>  417 }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)