Project

General

Profile

Actions

Task #13087

closed

Please upgrade grsf-publisher-ws to latest version

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

Status:
Closed
Priority:
Normal
Category:
Application
Target version:
Start date:
Dec 27, 2018
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Production

Description

Using the following command:

./run.sh smartgears-node.yml -i inventory/hosts.production -l smart_grsf_prod

I obtain the following error:

TASK [Gathering Facts] *********************************************************
fatal: [smart-grsf-d4s.d4science.org]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to remote host \"smart-grsf-d4s.d4science.org\". 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

Please note that I'm able to login to the target machine


Related issues

Related to StocksAndFisheriesKB - Task #12861: Purge old records of the public GRSF CatalogueClosedAureliano GentileNov 12, 2018

Actions
Actions #1

Updated by Luca Frosini over 6 years ago

  • Related to Task #12861: Purge old records of the public GRSF Catalogue added
Actions #2

Updated by Luca Frosini over 6 years ago

The installed war must be:

grsf-publisher-ws-1.8.0-4.13.1-176225.war
Actions #3

Updated by Andrea Dell'Amico over 6 years ago

  • Assignee changed from Roberto Cirillo to Luca Frosini

You must limit the scope of the playbook, as usual: if you run it without specifying any tags it will try to execute most of the jobs as root even if you don't have root access, and that's why it's failing. The correct command is:

./run.sh smartgears-node.yml -i inventory/hosts.production -l smart_grsf_prod -t smartgears

Or, if you don't want to update the smartgears distribution but your service only:

./run.sh smartgears-node.yml -i inventory/hosts.production -l smart_grsf_prod -t grsf_publisher_ws
Actions #4

Updated by Luca Frosini over 6 years ago

@andrea.dellamico@isti.cnr.it I'm getting the same error:

$ ./run.sh smartgears-node.yml -i inventory/hosts.production -t grsf_publisher_ws -l smart_grsf_prod
There are password protected encrypted files, we will ask for password before proceeding
Vault password: 
 [WARNING]: Could not match supplied host pattern, ignoring: smartgears_dev_nodes

 [WARNING]: Could not match supplied host pattern, ignoring: smartgears_preprod_nodes

 [WARNING]: Could not match supplied host pattern, ignoring: egi_dataminer

 [WARNING]: Could not match supplied host pattern, ignoring: egi_smartexecutor


PLAY [smartgears_nodes:smartgears_dev_nodes:smartgears_preprod_nodes:egi_dataminer:egi_smartexecutor] ********************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************************************************************************************
fatal: [smart-grsf-d4s.d4science.org]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to remote host \"smart-grsf-d4s.d4science.org\". 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 ***************************************************************************************************************************************************************************************************
smart-grsf-d4s.d4science.org : ok=0    changed=0    unreachable=1    failed=0   

Actions #5

Updated by Luca Frosini over 6 years ago

  • Assignee changed from Luca Frosini to Andrea Dell'Amico
Actions #6

Updated by Andrea Dell'Amico over 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

I run the playbook successfully.
About your authentication problems: limiting the run to a selected role it's not enough, I'll have to come up with a solution that permits the users that can access as gcube to run the service provisioning tasks.

Actions #7

Updated by Luca Frosini over 6 years ago

Thanks a lot.

Let me know when you find a solution and what I have to do in the future.

Actions #8

Updated by Andrea Dell'Amico over 6 years ago

Luca Frosini wrote:

Thanks a lot.

Let me know when you find a solution and what I have to do in the future.

Can you test (even on that VM, where we are sure that you don't have root access) to run the same playbook with an addition: -e 'remote_user=gcube'? So the complete command would be:

 ./run.sh smartgears-node.yml -i inventory/hosts.production -t grsf_publisher_ws -l smart_grsf_prod -e 'remote_user=gcube'
Actions #9

Updated by Luca Frosini over 6 years ago

I'm still getting the same error:

$ ./run.sh smartgears-node.yml -i inventory/hosts.production -t grsf_publisher_ws -l smart_grsf_prod -e 'remote_user=gcube'
There are password protected encrypted files, we will ask for password before proceeding
Vault password: 
 [WARNING]: Could not match supplied host pattern, ignoring: smartgears_dev_nodes

 [WARNING]: Could not match supplied host pattern, ignoring: smartgears_preprod_nodes

 [WARNING]: Could not match supplied host pattern, ignoring: egi_dataminer

 [WARNING]: Could not match supplied host pattern, ignoring: egi_smartexecutor

 [WARNING]: Found variable using reserved name: remote_user


PLAY [smartgears_nodes:smartgears_dev_nodes:smartgears_preprod_nodes:egi_dataminer:egi_smartexecutor] ********************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************************************************************************************
fatal: [smart-grsf-d4s.d4science.org]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to remote host \"smart-grsf-d4s.d4science.org\". 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 ***************************************************************************************************************************************************************************************************
smart-grsf-d4s.d4science.org : ok=0    changed=0    unreachable=1    failed=0 
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)