BookmarkSubscribeRSS Feed
HaraldSeifert
Obsidian | Level 7

TASK [consul-x64_redhat_linux_6-yum : Execute confirm consul can be accessed] *******************************************************************************************
task path: /opt/sas/deploy_sasvyt/sas_viya_playbook/roles/consul-x64_redhat_linux_6-yum/tasks/start.yml:75

fatal: [deployTarget]: FAILED! => {
    "changed": true,
    "cmd": [
        "bash",
        "-c",
        "source /opt/sas/viya/config/consul.conf && /opt/sas/viya/home/bin/sas-bootstrap-config status leader"
    ],
    "delta": "0:00:00.216537",
    "end": "2019-12-18 13:51:37.255994",
    "invocation": {
        "module_args": {
            "_raw_params": "bash -c 'source /opt/sas/viya/config/consul.conf && /opt/sas/viya/home/bin/sas-bootstrap-config status leader'",
            "_uses_shell": false,
            "argv": null,
            "chdir": null,
            "creates": null,
            "executable": null,
            "removes": null,
            "stdin": null,
            "stdin_add_newline": true,
            "strip_empty_ends": true,
            "warn": true
        }
    },
    "msg": "non-zero return code",
    "rc": 1,
    "start": "2019-12-18 13:51:37.039457",
    "stderr": "level=error command=\"status leader\" successful=false msg=\"Unable to status leader\" err=\"Get https://localhost:8501/v1/status/leader: dial tcp 127.0.0.1:8501: connect: connection refused\"\nERROR: Unable to determine the address of the Raft leader for the data center in which the Consul agent is running.",
    "stderr_lines": [
        "level=error command=\"status leader\" successful=false msg=\"Unable to status leader\" err=\"Get https://localhost:8501/v1/status/leader: dial tcp 127.0.0.1:8501: connect: connection refused\"",
        "ERROR: Unable to determine the address of the Raft leader for the data center in which the Consul agent is running."
    ],
    "stdout": "",
    "stdout_lines": []
}

 

Anything known ?

8 REPLIES 8
alexal
SAS Employee

@HaraldSeifert ,

 

It seems like Consul is down. Please show me the most recent log files from /opt/sas/viya/config/var/log/consul/default directory.

HaraldSeifert
Obsidian | Level 7

This is the log:
$ cat sas-consul_2019-12-18_14-26-34.log
==> Multiple private IPv4 addresses found. Please configure one with 'bind' and/or 'advertise'.

 

I'm using  this statement in the inventory.ini file
deployTarget  ansible_host=sasvytc01 ansible_user=svcsasvy1 ansible_ssh_private_key_file=~/.ssh/id_rsa consul_bind_adapter=bond0

 

but consul_bind_adapter Option is not documented in the deployment guide 3.5

alexal
SAS Employee

@HaraldSeifert ,

 

Thanks for your response. You have to configure your network settings as described in this document.

HaraldSeifert
Obsidian | Level 7

If bond0 for example is defined mutliple , the Installation Fails with this error, regardless what is defined in host_vars directory.  

ojaro
SAS Employee

Hi,

 

I have this same issue. What steps did you take to fix your issue?

 

Best regards,

 

Olli

SimonWilliams
SAS Employee

When deploying Viya 3.5 with multiple network interface cards and/or multiple IP addresses you find this blog post by @RobCollum helpful.

 

https://communities.sas.com/t5/SAS-Communities-Library/Understanding-Network-Binding-Variables-in-SA...

 

And here is a link to the official documentation regarding this topic.

 

--Simon



Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

Gordhan
Fluorite | Level 6
I'm facing also same issue
can you please share resolution
SASKiwi
PROC Star

@Gordhan  - Have you looked at the links provided in this post?

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 8 replies
  • 5526 views
  • 3 likes
  • 6 in conversation