Icinga / ansible-playbooks

Ansible Playbook for Icinga 2
GNU General Public License v2.0
225 stars 122 forks source link

Failed to connect to debmon.org at port 443: [Errno 101] Network is unreachable #85

Closed ankit-arora-369 closed 6 years ago

ankit-arora-369 commented 6 years ago

Hi I am new to GitHub.

Iam getting the following error which running the no-ui role:
TASK [icinga2-ansible-no-ui : Get Debmon Apt Key for Debian OS family (Debian)] ****************************************************************************************************************************
The full traceback is:
  File "/tmp/ansible_xR8Vbc/ansible_modlib.zip/ansible/module_utils/urls.py", line 1017, in fetch_url
    client_key=client_key, cookies=cookies)
  File "/tmp/ansible_xR8Vbc/ansible_modlib.zip/ansible/module_utils/urls.py", line 920, in open_url
    r = urllib_request.urlopen(*urlopen_args)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 427, in open
    req = meth(req)
  File "/tmp/ansible_xR8Vbc/ansible_modlib.zip/ansible/module_utils/urls.py", line 738, in http_request
    raise ConnectionError('Failed to connect to %s at port %s: %s' % (self.hostname, self.port, to_native(e)))

fatal: [icinga_one]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "data": null,
            "file": null,
            "id": "DC0EE15A29D662D2",
            "key": null,
            "keyring": null,
            "keyserver": null,
            "state": "present",
            "url": "https://debmon.org/debmon/repo.key",
            "validate_certs": true
        }
    },
    "msg": "Failed to connect to debmon.org at port 443: [Errno 101] Network is unreachable"
}

Issue is with adding key. How can I resolve this?

## Expected Behavior
<!--- If you're describing a bug, tell us what should happen -->
<!--- If you're suggesting a change/improvement, tell us how it should work -->

## Current Behavior
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
<!--- If suggesting a change/improvement, explain the difference from current behavior -->

## Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
<!--- or ideas how to implement:  the addition or change -->

## Steps to Reproduce (for bugs)
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include configuration, logs, etc. to reproduce, if relevant -->
1.
2.
3.
4.

## Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
I am trying to install icinga from scratch using your ansible playbook/roles.
## Your Environment
<!--- Include as many relevant details about the environment you experienced the problem in -->
* Role version:
* Ansible version (`ansible --version`):
* Python version (`python -V`):
* Operating System and version:
Using ansible version 2.5.
aflatto commented 6 years ago

Hello @ankit-arora-369 The debmon site is down, and this is indeed an issue that we have not removed the record from the configuration , this #86 comments out the request to that site.

This might cause some dependencies issues. We are investigating, and would appreciate any input .

Regards