question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cluster configuration ignored

See original GitHub issue

I’m trying to setup a static cluster using Ansible inside a docker container, but the deployment fail at the ambari-agent package installation. It seems that the ambari_version configuration variable is ignored during the process, because I set version to be 2.6 in the playbooks/group_vars/all file and ansible try to fetch the version 2.7 : ambari_version: '2.6.2.2' hdp_version: '2.6.5.0' hdp_build_number: 'auto' hdf_version: '3.1.0.0' hdf_build_number: 'auto'

Hosts in the inventory are running CentOS 6.10. fatal: [hostname-***]: FAILED! => {"changed": false, "msg": "http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.7.3.0/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"\nTrying other mirror.\nTo address this issue please refer to the below wiki article \n\nhttps://wiki.centos.org/yum-errors\n\nIf above article doesn't help to resolve this issue please use https://bugs.centos.org/.\n\nError: Cannot retrieve repository metadata (repomd.xml) for repository: ambari-2.7.3.0. Please verify its path and try again\n", "rc": 1, "results": []}

Is there any other config file to modify to require the right ambari_version ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alexandruanghelcommented, Jan 6, 2019

No, that should be the only place (unless you’re using extra-vars). You can try to add a - debug: var=ambari_version here (to double check the value of that variable): https://github.com/hortonworks/ansible-hortonworks/blob/master/playbooks/roles/ambari-repo/tasks/main.yml#L14

The only other issue that I’m aware of is that if you previously ran the playbook with the default version (which is set to 2.7.3) and then ran it again with 2.6.2, the yum_repository module (https://github.com/hortonworks/ansible-hortonworks/blob/master/playbooks/roles/ambari-repo/tasks/main.yml#L16) will not replace the existing repo, so you’ll have 2 repos in the ambari.repo file (and the 2.7.3 repo will be used because it’s a newer version). So also check /etc/yum.repos.d/ambari.repo in case it contains multiple versions.

0reactions
alexandruanghelcommented, Feb 19, 2019

Ok, I’ve added libselinux-python package as a dependency: https://github.com/hortonworks/ansible-hortonworks/commit/3f1bbd57d4099253795f4a17eb528426507be619

And changed the ambari repo name so it doesn’t add a new repo every time you change the version: https://github.com/hortonworks/ansible-hortonworks/commit/0cef84a420040b9637a04f308effe329c7fbda6b

Should be good now so I’ll close this, but if you still have questions about the inventory, no problem, you can continue asking them here, but please @ me to make sure I don’t miss them 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do not overwrite cluster config or better do not mess ... - GitHub
Configuration should be (mostly) static, defined by the user. Deprecated keys or non-existent objects should be ignored or reported to user ...
Read more >
An error occurred while creating the cluster and the nodes will ...
Hi,. I'm trying to deploy a Cluster with two nodes (WServer 2019 both / Domain Joined / Fresh Install) but it fails.
Read more >
Cluster configuration file - AWS ParallelCluster
If you force the update, the new value will be ignored and the old value will be used. AdditionalResources (Optional, String ). Defines...
Read more >
Cluster configuration (proto) - Envoy Proxy
For cluster types other than STRICT_DNS and LOGICAL_DNS this setting is ignored. dns_failure_refresh_rate. (config.cluster.v3.Cluster.RefreshRate) If the DNS ...
Read more >
ETCD cluster won't start and fails with "request sent was ...
ETCD cluster won't start and fails with "request sent was ignored by remote peer due to cluster ID mismatch". Scenario. Starting your etcd...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found