GithubHelp home page GithubHelp logo

Comments (9)

Sreenadh8 avatar Sreenadh8 commented on July 19, 2024 2

@sujiar37 Thank you for your assistance, Yep, you are right, in fact i figured-out yesterday and forgot to update you on this thread... now, I have deployed awx 7.0.0 and tested HA functionality, it works fine as expected...and will be testing with latest version 9.0.1 tomorrow and will update you the sanity checks status....once again thanks for your response.

Regards,
Sreenadh

from awx-ha-instancegroup.

Sreenadh8 avatar Sreenadh8 commented on July 19, 2024 1

@sujiar37 you are a hero... tested with 9.0.1 and your fix for host entries inside container worked fine, thank you... and 9.0.1 looks good and solid, migrated from 7.0 to 9.0.1 without losing data, jobs and HA functionality working well as expected...nicely done.

Regards,
Sreenadh

from awx-ha-instancegroup.

sujiar37 avatar sujiar37 commented on July 19, 2024

@Sreenadh8 , the issue seems to be those nodes were not registered at initial run / rabbitmq cluster has some connection issues. Couple of things you may have to take a look and confirm

  1. All these nodes can communicate each other with their hostnames.
  2. Verify cluster status via the command /sbin/rabbitmqctl cluster_status and make sure it returns value with all the nodes [ web1 & 2 agent nodes ]
  3. Make sure ports are opened and excluded from firewall to verify successful communication between all these hosts
  4. If the problem is not above, then please go through below the Known issues and analyze it and restart manually if required. You can run these playbook multiple times even after restarting the machine.

from awx-ha-instancegroup.

Sreenadh8 avatar Sreenadh8 commented on July 19, 2024

Hi Sujith,

thanks for your response...all above points seems to be fine, however i do see below errors, could you advise further ?

[2019-11-04 08:20:11,901: ERROR/Process-1] beat: Connection error: failed to resolve broker hostname. Trying again in 2.0 seconds...
[2019-11-04 08:20:13,912: ERROR/Process-1] beat: Connection error: failed to resolve broker hostname. Trying again in 4.0 seconds...
[2019-11-04 08:20:17,926: ERROR/Process-1] beat: Connection error: failed to resolve broker hostname. Trying again in 6.0 seconds...
[2019-11-04 08:20:23,942: ERROR/Process-1] beat: Connection error: failed to resolve broker hostname. Trying again in 8.0 seconds...
[2019-11-04 08:20:31,972: ERROR/Process-1] beat: Connection error: failed to resolve broker hostname. Trying again in 10.0 seconds...
[2019-11-04 08:20:41,997: ERROR/Process-1] beat: Connection error: failed to resolve broker hostname. Trying again in 12.0 seconds...
[2019-11-04 08:20:54,019: ERROR/Process-1] beat: Connection error: failed to resolve broker hostname. Trying again in 14.0 seconds...
RESULT 2
OKREADY
[2019-11-04 08:21:08,116: ERROR/Process-1] beat: Connection error: failed to resolve broker hostname. Trying again in 16.0 seconds...
[2019-11-04 08:21:24,142: ERROR/Process-1] beat: Connection error: failed to resolve broker hostname. Trying again in 18.0 seconds...
[2019-11-04 08:21:42,177: ERROR/Process-1] beat: Connection error: failed to resolve broker hostname. Trying again in 20.0 seconds...

Regards,
Sreenadh

from awx-ha-instancegroup.

sujiar37 avatar sujiar37 commented on July 19, 2024

@Sreenadh8 This could be the reason when containers were unable to resolve the hostname of the host machine. Please review the docker-compose.yml file under /var/lib/awx/build_image directory and see whether you can ping to the host machine inside the container.

CLUSTER_NODE: {{ ansible_hostname }}

The logs more likely look like this if it is not able to communicate rabbitmq cluster, here the host machine is node2, but it is not resolvable inside the container.

127.0.0.1 | FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/libexec/platform-python"
    },
    "changed": false,
    "elapsed": 300,
    "msg": "**Timeout when waiting for node2:5672**"

from awx-ha-instancegroup.

sujiar37 avatar sujiar37 commented on July 19, 2024

@Sreenadh8, thank you for reporting this. The fix has been implemented along with the upgrade of AWX's latest version. You may please test it and let me know if you have any feedback regarding this. Between, here is the fix if containers unable to communicate host machine via DNS,

- name: Fetch the docker0 gateway ip to map with host DNS # noqa 306
shell: ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+'
register: cluster_node_ip
changed_when: "'172.17.0.1' not in cluster_node_ip.stdout"

echo "{{ cluster_node_ip.stdout }} {{ ansible_hostname }}" >> /etc/hosts

echo "{{ cluster_node_ip.stdout }} {{ ansible_hostname }}" >> /etc/hosts

from awx-ha-instancegroup.

sujiar37 avatar sujiar37 commented on July 19, 2024

@Sreenadh8 , Make it much easier for everyone, check these instructions for vagrant here to play with sandbox environment.

from awx-ha-instancegroup.

Sreenadh8 avatar Sreenadh8 commented on July 19, 2024

@sujiar37 just one requirement/feature request from my end before we entered into production HA setup... could you allow us or let us know how to change the default awx logo after logged-in to console...we want to make sure that our own organization custom logo to be presented instead of awx default logo( considering due to management audit organization policies ) - could you help with feature please...
I will open up another feature request if you want a separate thread for this requirement... thank you..

image

Regards,
Sreenadh

from awx-ha-instancegroup.

sujiar37 avatar sujiar37 commented on July 19, 2024

@Sreenadh8 happy that everything works out of the box. You could modify the logo which is available at the settings -> system (if I had remember correctly) from AWX GUI. More related details can found via official Ansible tower documentation

from awx-ha-instancegroup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.