Skip to content
Snippets Groups Projects
Commit 34f06005 authored by Iustin Pop's avatar Iustin Pop
Browse files

Disable the RAPI CA checks in watcher


Since the RAPI certificate is not necessarily self-signed, and we
currently don't have any configuration variable for the real CA file, we
disable for now the CA checks. This fixes the 'restart RAPI every 5
minutes' problem with non-self-signed certs.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 298e4dc8
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python #!/usr/bin/python
# #
# Copyright (C) 2006, 2007, 2008 Google Inc. # Copyright (C) 2006, 2007, 2008, 2009, 2010 Google Inc.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -641,7 +641,7 @@ def IsRapiResponding(hostname): ...@@ -641,7 +641,7 @@ def IsRapiResponding(hostname):
@return: Whether RAPI is working properly @return: Whether RAPI is working properly
""" """
curl_config = rapi.client.GenericCurlConfig(cafile=constants.RAPI_CERT_FILE) curl_config = rapi.client.GenericCurlConfig()
rapi_client = rapi.client.GanetiRapiClient(hostname, rapi_client = rapi.client.GanetiRapiClient(hostname,
curl_config_fn=curl_config) curl_config_fn=curl_config)
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment