[ 
https://issues.apache.org/jira/browse/BROOKLYN-169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14741151#comment-14741151
 ] 

ASF GitHub Bot commented on BROOKLYN-169:
-----------------------------------------

Github user aledsage commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/877#discussion_r39293085
  
    --- Diff: 
locations/jclouds/src/test/java/org/apache/brooklyn/policy/jclouds/os/CreateUserPolicyLiveTest.java
 ---
    @@ -73,6 +73,7 @@ public void 
runTestCreatesUser(MachineProvisioningLocation<SshMachineLocation> l
                 app.createAndManageChild(EntitySpec.create(TestEntity.class)
                         .policy(PolicySpec.create(CreateUserPolicy.class)
                                 .configure(CreateUserPolicy.GRANT_SUDO, true)
    +                            .configure(CreateUserPolicy.RESET_LOGIN_USER, 
true)
    --- End diff --
    
    Why use `RESET_LOGIN_USER=true` here? If anyone were to run 
`testIntegrationCreatesUser()`, it would reset their user password! We should 
either delete `testIntegrationCreatesUser()`, or remove this (to rely on the 
default of false).


> CreateUserPolicy always resets the password
> -------------------------------------------
>
>                 Key: BROOKLYN-169
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-169
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.7.0, 0.8.0-SNAPSHOT
>         Environment: Linux
>            Reporter: Yavor Yanchev
>             Fix For: 0.8.0-SNAPSHOT
>
>
> CreateUserPolicy always resets the password for the "user".
> Even when it is used in conjunction with BYON location.
> Brooklyn fails to finish BYON location deployments when byon user's password 
> is changed.
> Currently, the byon user (used to create the new "user") gets password reset 
> to the newely generated password. In this case all subsequent commands will 
> fail, e.g. grantSudo.
> We need a new parameter (which can be set by the user) to determine when 
> password to be reset, e.g. CreateUserPolicy is used in combination with BYON



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to