Project

General

Profile

Actions

Task #12396

closed

re-provision dev resource-registry and database

Added by Luca Frosini over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Application
Target version:
Start date:
Sep 06, 2018
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Development
Actions #1

Updated by Luca Frosini over 6 years ago

  • Subject changed from re-provision dev resource-regsitry and database to re-provision dev resource-registry and database
Actions #3

Updated by Luca Frosini over 6 years ago

  • Status changed from New to In Progress
Actions #4

Updated by Luca Frosini over 6 years ago

  • % Done changed from 0 to 50

DB has been recreated

Actions #5

Updated by Luca Frosini over 6 years ago

Trying to reprovision dev resource-registry I obtain the following error:

./run.sh smartgears-node.yml -i inventory/hosts.dev -l resource_registry_dev -e "gcube_admin_token="

.......



TASK [disable nagios alerts for this host services] **************************************************
failed: [resourceregistry1-d-d4s.d4science.org] (item=monitoring.research-infrastructures.eu) => {"item": "monitoring.research-infrastructures.eu", "msg": "SSH Error: data could not be sent to remote host \"monitoring.research-infrastructures.eu\". Make sure this host can be reached over ssh", "unreachable": true}
fatal: [resourceregistry1-d-d4s.d4science.org]: UNREACHABLE! => {"changed": false, "msg": "All items completed", "results": [{"_ansible_ignore_errors": true, "_ansible_item_label": "monitoring.research-infrastructures.eu", "_ansible_item_result": true, "item": "monitoring.research-infrastructures.eu", "msg": "SSH Error: data could not be sent to remote host \"monitoring.research-infrastructures.eu\". Make sure this host can be reached over ssh", "unreachable": true}]}
    to retry, use: --limit @/home/lucafrosini/workspace/ANSIBLE/ansible-playbooks/d4science-ghn-cluster/smartgears-node.retry

PLAY RECAP *******************************************************************************************
resourceregistry1-d-d4s.d4science.org : ok=1    changed=0    unreachable=1    failed=0   

@andrea.dellamico@isti.cnr.it can you me?

Actions #6

Updated by Andrea Dell'Amico over 6 years ago

Add a ignore_errors: True to the nagios related tasks. Take the geoserver-smartgears.yml playbook as an example.

Actions #7

Updated by Luca Frosini over 6 years ago

Sorry, I don't understand how to do it because this playbook seems developed in a different way.

Actions #8

Updated by Luca Frosini over 6 years ago

I mean there is no dedicated .yml file for resource-registry. §Instead the generic smartgears-node.yml

Actions #9

Updated by Luca Frosini over 6 years ago

Moreover, it already has ignore_errors: True

Actions #10

Updated by Luca Frosini over 6 years ago

@andrea.dellamico@isti.cnr.it found that ignore_errors: True does not work if the host is unreachable (see https://github.com/ansible/ansible/issues/18075 )

He made a temporary solution on ansible task that I already pushed on git repository.

Actions #11

Updated by Luca Frosini over 6 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)