Comments (9)
@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.
@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.
@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
- All these nodes can communicate each other with their hostnames.
- Verify cluster status via the command
/sbin/rabbitmqctl cluster_status
and make sure it returns value with all the nodes [ web1 & 2 agent nodes ] - Make sure ports are opened and excluded from firewall to verify successful communication between all these hosts
- 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.
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.
@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.
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.
@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,
AWX-HA-InstanceGroup/roles/awx_ha/tasks/setup_env.yml
Lines 40 to 43 in 08ef1ab
from awx-ha-instancegroup.
@Sreenadh8 , Make it much easier for everyone, check these instructions for vagrant here to play with sandbox environment.
from awx-ha-instancegroup.
@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..
Regards,
Sreenadh
from awx-ha-instancegroup.
@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)
- Make firewall rules optional -- or tag them so they can be skipped. HOT 1
- Will this work for isolates noses? HOT 2
- Rabbitmq cluster as a docker container HOT 3
- Error when using SCM type - Manual HOT 1
- Few generic queries... HOT 1
- no projects directory under /var/lib/awx HOT 1
- Issues with pulling projects down SCM after running AWX-HA and putting hosts in instance group HOT 2
- Few enhancement as per request HOT 1
- AWX UI login page loads very slowly (takes 3 minutes to load)- Poor/sluggish performance of UI... HOT 1
- can't abort job HOT 1
- can't delete inventory HOT 2
- using single server for initial installation. and ran the command "ansible-playbook -i inventory/hosts awx_ha.yml" and error occurred near "TASK [awx_ha : Build Docker Images in Primary Node] ". Please help. HOT 2
- Moving to Centos8 as base OS with python3 HOT 1
- Enabling SSL functionality HOT 1
- 10.0 redis clustering HOT 17
- Clean up database
- Trouble When add new instances HOT 1
- Need to update awx ha cluster
- Second node not running jobs HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awx-ha-instancegroup.