[ https://issues.apache.org/jira/browse/AMBARI-23893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16480800#comment-16480800 ] Hudson commented on AMBARI-23893: --------------------------------- SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #9290 (See [https://builds.apache.org/job/Ambari-trunk-Commit/9290/]) AMBARI-23893. Using Configs.py throws <urlopen error [SSL: (dlysnichenko: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=75e0c4a6e5f2c30483bf2f783c1af0c38f3b2623]) * (edit) ambari-server/src/main/resources/scripts/configs.py > Using Configs.py throws <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579) error > -------------------------------------------------------------------------------------------------------------------- > > Key: AMBARI-23893 > URL: https://issues.apache.org/jira/browse/AMBARI-23893 > Project: Ambari > Issue Type: Improvement > Components: ambari-server > Affects Versions: 2.7.0 > Reporter: Dmitry Lysnichenko > Assignee: Dmitry Lysnichenko > Priority: Blocker > Labels: pull-request-available > Fix For: 2.7.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > {code} > [root@test ~]# /var/lib/ambari-server/resources/scripts/configs.py --port 8443 --protocol https --action get --host localhost --cluster cl1 --config-type hive-site --key hive.exec.post.hooks > 2018-05-16 13:23:06,375 INFO ### Performing "get" content: > Traceback (most recent call last): > File "/var/lib/ambari-server/resources/scripts/configs.py", line 368, in <module> > sys.exit(main()) > File "/var/lib/ambari-server/resources/scripts/configs.py", line 354, in main > return get_properties(cluster, config_type, action_args, accessor) > File "/var/lib/ambari-server/resources/scripts/configs.py", line 262, in get_properties > get_config(cluster, config_type, accessor, output) > File "/var/lib/ambari-server/resources/scripts/configs.py", line 214, in get_config > properties, attributes = get_current_config(cluster, config_type, accessor) > File "/var/lib/ambari-server/resources/scripts/configs.py", line 125, in get_current_config > config_tag = get_config_tag(cluster, config_type, accessor) > File "/var/lib/ambari-server/resources/scripts/configs.py", line 95, in get_config_tag > response = accessor(DESIRED_CONFIGS_URL.format(cluster)) > File "/var/lib/ambari-server/resources/scripts/configs.py", line 90, in do_request > raise Exception('Problem with accessing api. Reason: {0}'.format(exc)) > Exception: Problem with accessing api. Reason: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)> > {code} > configs.py script has no any option to disable SSL validation. Up from of Python 2.7.9, ssl validation is enabled by default at urllib2 library https://stackoverflow.com/a/19269164 > So I'm adding a command line option to configs.py script that would allow to skip certificate validation -- This message was sent by Atlassian JIRA (v7.6.3#76005)