[jira] [Commented] (AMBARI-24646) 'ambari-server setup-ldap' fails with AttributeError when master_key is not persisted
[ https://issues.apache.org/jira/browse/AMBARI-24646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16626393#comment-16626393 ] Hudson commented on AMBARI-24646: - SUCCESS: Integrated in Jenkins build Ambari-logsearch-ga-test #2 (See [https://builds.apache.org/job/Ambari-logsearch-ga-test/2/]) AMBARI-24646 'ambari-server setup-ldap' fails with AttributeError when (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=5f6e50203f745891d7685bac027279083b5b640a]) * (edit) ambari-server/src/main/python/ambari_server/serverConfiguration.py > 'ambari-server setup-ldap' fails with AttributeError when master_key is not > persisted > - > > Key: AMBARI-24646 > URL: https://issues.apache.org/jira/browse/AMBARI-24646 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: 2.7.0 >Reporter: Dmitry Lysnichenko >Assignee: Dmitry Lysnichenko >Priority: Blocker > Labels: pull-request-available > Fix For: 2.7.2 > > Time Spent: 1h 40m > Remaining Estimate: 0h > > *STR* > Installed ambari-server and configured password encryption, but chose not to > persist master key > {code} > [root@ctr ~]# ambari-server setup-security > Using python /usr/bin/python > Security setup options... > === > Choose one of the following options: > [1] Enable HTTPS for Ambari server. > [2] Encrypt passwords stored in ambari.properties file. > [3] Setup Ambari kerberos JAAS configuration. > [4] Setup truststore. > [5] Import certificate to truststore. > === > Enter choice, (1-5): 2 > Password encryption is enabled. > Do you want to reset Master Key? [y/n] (n): y > Master Key not persisted. > Enter current Master Key: > Enter new Master Key: > Re-enter master key: > Do you want to persist master key. If you choose not to persist, you need to > provide the Master Key while starting the ambari server as an env variable > named AMBARI_SECURITY_MASTER_KEY or the start will prompt for the master key. > Persist [y/n] (y)? n > Adjusting ambari-server permissions and ownership... > Ambari Server 'setup-security' completed successfully. > {code} > Then export environment variable > export AMBARI_SECURITY_MASTER_KEY=hadoop > Thereafter ran the following: > *Issue #1* - Gave AttributeError after accepting the 'Save settings' prompt, > instead of asking for master key > {code} > [root@ctr ~]# ambari-server setup-ldap -v > Using python /usr/bin/python > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > INFO: about to run command: ps -p 5596 > INFO: > process_pid=12677 > Please select the type of LDAP you want to use (AD, IPA, Generic > LDAP):Generic LDAP > Primary LDAP Host (ldap.ambari.apache.org): ctr > Primary LDAP Port (389): > Secondary LDAP Host : > Secondary LDAP Port : > Use SSL [true/false] (false): > User object class (posixUser): > User ID attribute (uid): > Group object class (posixGroup): > Group name attribute (cn): > Group member attribute (memberUid): > Distinguished name attribute (dn): > Search Base (dc=ambari,dc=apache,dc=org): dc=apache,dc=org > Referral method [follow/ignore] (follow): > Bind anonymously [true/false] (false): > Bind DN (uid=ldapbind,cn=users,dc=ambari,dc=apache,dc=org): > uid=hdfs,ou=people,ou=dev,dc=apache,dc=org > Enter Bind DN Password: > Confirm Bind DN Password: > Handling behavior for username collisions [convert/skip] for LDAP sync (skip): > Force lower-case user names [true/false]: > Results from LDAP are paginated when requested [true/false]: > > Review Settings > > Primary LDAP Host (ldap.ambari.apache.org): ctr > Primary LDAP Port (389): 389 > Use SSL [true/false] (false): false > User object class (posixUser): posixUser > User ID attribute (uid): uid > Group object class (posixGroup): posixGroup > Group name attribute (cn): cn > Group member attribute (memberUid): memberUid > Distinguished name attribute (dn): dn > Search Base (dc=ambari,dc=apache,dc=org): dc=apache,dc=org > Referral method [follow/ignore] (follow): follow > Bind anonymously [true/false] (false): false > Handling behavior for username collisions [convert/skip] for LDAP sync > (skip): skip > ambari.ldap.connectivity.bind_dn: uid=hdfs,ou=people,ou=dev,dc=apache,dc=org > ambari.ldap.connectivity.bind_password: * > Save settings [y/n] (y)? y > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > Traceback (most recent call last): > File "/usr/sbin/ambari-server.py", line 1060, in > m
[jira] [Commented] (AMBARI-24646) 'ambari-server setup-ldap' fails with AttributeError when master_key is not persisted
[ https://issues.apache.org/jira/browse/AMBARI-24646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16622594#comment-16622594 ] Hudson commented on AMBARI-24646: - FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #9997 (See [https://builds.apache.org/job/Ambari-trunk-Commit/9997/]) AMBARI-24646 'ambari-server setup-ldap' fails with AttributeError when (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=5f6e50203f745891d7685bac027279083b5b640a]) * (edit) ambari-server/src/main/python/ambari_server/serverConfiguration.py > 'ambari-server setup-ldap' fails with AttributeError when master_key is not > persisted > - > > Key: AMBARI-24646 > URL: https://issues.apache.org/jira/browse/AMBARI-24646 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: 2.7.0 >Reporter: Dmitry Lysnichenko >Assignee: Dmitry Lysnichenko >Priority: Blocker > Labels: pull-request-available > Fix For: 2.7.2 > > Time Spent: 1h 40m > Remaining Estimate: 0h > > *STR* > Installed ambari-server and configured password encryption, but chose not to > persist master key > {code} > [root@ctr ~]# ambari-server setup-security > Using python /usr/bin/python > Security setup options... > === > Choose one of the following options: > [1] Enable HTTPS for Ambari server. > [2] Encrypt passwords stored in ambari.properties file. > [3] Setup Ambari kerberos JAAS configuration. > [4] Setup truststore. > [5] Import certificate to truststore. > === > Enter choice, (1-5): 2 > Password encryption is enabled. > Do you want to reset Master Key? [y/n] (n): y > Master Key not persisted. > Enter current Master Key: > Enter new Master Key: > Re-enter master key: > Do you want to persist master key. If you choose not to persist, you need to > provide the Master Key while starting the ambari server as an env variable > named AMBARI_SECURITY_MASTER_KEY or the start will prompt for the master key. > Persist [y/n] (y)? n > Adjusting ambari-server permissions and ownership... > Ambari Server 'setup-security' completed successfully. > {code} > Then export environment variable > export AMBARI_SECURITY_MASTER_KEY=hadoop > Thereafter ran the following: > *Issue #1* - Gave AttributeError after accepting the 'Save settings' prompt, > instead of asking for master key > {code} > [root@ctr ~]# ambari-server setup-ldap -v > Using python /usr/bin/python > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > INFO: about to run command: ps -p 5596 > INFO: > process_pid=12677 > Please select the type of LDAP you want to use (AD, IPA, Generic > LDAP):Generic LDAP > Primary LDAP Host (ldap.ambari.apache.org): ctr > Primary LDAP Port (389): > Secondary LDAP Host : > Secondary LDAP Port : > Use SSL [true/false] (false): > User object class (posixUser): > User ID attribute (uid): > Group object class (posixGroup): > Group name attribute (cn): > Group member attribute (memberUid): > Distinguished name attribute (dn): > Search Base (dc=ambari,dc=apache,dc=org): dc=apache,dc=org > Referral method [follow/ignore] (follow): > Bind anonymously [true/false] (false): > Bind DN (uid=ldapbind,cn=users,dc=ambari,dc=apache,dc=org): > uid=hdfs,ou=people,ou=dev,dc=apache,dc=org > Enter Bind DN Password: > Confirm Bind DN Password: > Handling behavior for username collisions [convert/skip] for LDAP sync (skip): > Force lower-case user names [true/false]: > Results from LDAP are paginated when requested [true/false]: > > Review Settings > > Primary LDAP Host (ldap.ambari.apache.org): ctr > Primary LDAP Port (389): 389 > Use SSL [true/false] (false): false > User object class (posixUser): posixUser > User ID attribute (uid): uid > Group object class (posixGroup): posixGroup > Group name attribute (cn): cn > Group member attribute (memberUid): memberUid > Distinguished name attribute (dn): dn > Search Base (dc=ambari,dc=apache,dc=org): dc=apache,dc=org > Referral method [follow/ignore] (follow): follow > Bind anonymously [true/false] (false): false > Handling behavior for username collisions [convert/skip] for LDAP sync > (skip): skip > ambari.ldap.connectivity.bind_dn: uid=hdfs,ou=people,ou=dev,dc=apache,dc=org > ambari.ldap.connectivity.bind_password: * > Save settings [y/n] (y)? y > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > Traceback (most recent call last): > File "/usr/sbin/ambari-server.py", line 1060, in > mainB
[jira] [Commented] (AMBARI-24646) 'ambari-server setup-ldap' fails with AttributeError when master_key is not persisted
[ https://issues.apache.org/jira/browse/AMBARI-24646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16618027#comment-16618027 ] Hudson commented on AMBARI-24646: - SUCCESS: Integrated in Jenkins build Ambari-branch-2.7 #300 (See [https://builds.apache.org/job/Ambari-branch-2.7/300/]) AMBARI-24646 'ambari-server setup-ldap' fails with AttributeError when (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=80ecad698d0bb1c43788bc09b77d539fb937e402]) * (edit) ambari-server/src/main/python/ambari_server/serverConfiguration.py > 'ambari-server setup-ldap' fails with AttributeError when master_key is not > persisted > - > > Key: AMBARI-24646 > URL: https://issues.apache.org/jira/browse/AMBARI-24646 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: 2.7.0 >Reporter: Dmitry Lysnichenko >Assignee: Dmitry Lysnichenko >Priority: Blocker > Labels: pull-request-available > Fix For: 2.7.2 > > Time Spent: 20m > Remaining Estimate: 0h > > *STR* > Installed ambari-server and configured password encryption, but chose not to > persist master key > {code} > [root@ctr ~]# ambari-server setup-security > Using python /usr/bin/python > Security setup options... > === > Choose one of the following options: > [1] Enable HTTPS for Ambari server. > [2] Encrypt passwords stored in ambari.properties file. > [3] Setup Ambari kerberos JAAS configuration. > [4] Setup truststore. > [5] Import certificate to truststore. > === > Enter choice, (1-5): 2 > Password encryption is enabled. > Do you want to reset Master Key? [y/n] (n): y > Master Key not persisted. > Enter current Master Key: > Enter new Master Key: > Re-enter master key: > Do you want to persist master key. If you choose not to persist, you need to > provide the Master Key while starting the ambari server as an env variable > named AMBARI_SECURITY_MASTER_KEY or the start will prompt for the master key. > Persist [y/n] (y)? n > Adjusting ambari-server permissions and ownership... > Ambari Server 'setup-security' completed successfully. > {code} > Then export environment variable > export AMBARI_SECURITY_MASTER_KEY=hadoop > Thereafter ran the following: > *Issue #1* - Gave AttributeError after accepting the 'Save settings' prompt, > instead of asking for master key > {code} > [root@ctr ~]# ambari-server setup-ldap -v > Using python /usr/bin/python > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > INFO: about to run command: ps -p 5596 > INFO: > process_pid=12677 > Please select the type of LDAP you want to use (AD, IPA, Generic > LDAP):Generic LDAP > Primary LDAP Host (ldap.ambari.apache.org): ctr > Primary LDAP Port (389): > Secondary LDAP Host : > Secondary LDAP Port : > Use SSL [true/false] (false): > User object class (posixUser): > User ID attribute (uid): > Group object class (posixGroup): > Group name attribute (cn): > Group member attribute (memberUid): > Distinguished name attribute (dn): > Search Base (dc=ambari,dc=apache,dc=org): dc=apache,dc=org > Referral method [follow/ignore] (follow): > Bind anonymously [true/false] (false): > Bind DN (uid=ldapbind,cn=users,dc=ambari,dc=apache,dc=org): > uid=hdfs,ou=people,ou=dev,dc=apache,dc=org > Enter Bind DN Password: > Confirm Bind DN Password: > Handling behavior for username collisions [convert/skip] for LDAP sync (skip): > Force lower-case user names [true/false]: > Results from LDAP are paginated when requested [true/false]: > > Review Settings > > Primary LDAP Host (ldap.ambari.apache.org): ctr > Primary LDAP Port (389): 389 > Use SSL [true/false] (false): false > User object class (posixUser): posixUser > User ID attribute (uid): uid > Group object class (posixGroup): posixGroup > Group name attribute (cn): cn > Group member attribute (memberUid): memberUid > Distinguished name attribute (dn): dn > Search Base (dc=ambari,dc=apache,dc=org): dc=apache,dc=org > Referral method [follow/ignore] (follow): follow > Bind anonymously [true/false] (false): false > Handling behavior for username collisions [convert/skip] for LDAP sync > (skip): skip > ambari.ldap.connectivity.bind_dn: uid=hdfs,ou=people,ou=dev,dc=apache,dc=org > ambari.ldap.connectivity.bind_password: * > Save settings [y/n] (y)? y > INFO: Loading properties from /etc/ambari-server/conf/ambari.properties > Traceback (most recent call last): > File "/usr/sbin/ambari-server.py", line 1060, in > mainBody() > F