Comments (6)
I commented out those checks for awx_instance_group_web in https://github.com/sujiar37/AWX-HA-InstanceGroup/blob/b9cf318bafeb5bb40c6c9b2638120620c88961cc/roles/rabbitmq_cluster/tasks/join_rmq_cluster.yml
That seems to have solved it. Shutting off the primary node resulted in jobs flicking the secondary. Awesome! I have bounced to 6.1.0 when building this cluster and evyethign seems to work. Having some issues changing the base URL in the settings, not sure if thats related to 6.1.0.
Thanks again -- will share this around. It;s great!
from awx-ha-instancegroup.
And once the cluster was working correctly the problem I had saving the base URL went away too! Awesome. Thanks!
from awx-ha-instancegroup.
@loceee Thank you for your comments. This is a bug actually and I might come up with a fix soon.
The problem where it is, if you had noticed the play for rabbitmq cluster, it only instruct those tasks to the agent node which would ideally mentioned under the inventory group [awx_instance_group_task]
, however in your case, both nodes were comes under [awx_instance_group_web]
if I guess correct.
So here is the work around till I come up with a fix,
- Put that trouble node under
[awx_instance_group_task]
and working node under[awx_instance_group_web]
- Edit the awx_ha.yml and comment / disable the awx_ha role like below,
#- { role: awx_ha, when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "7" }
- Execute the playbook again and this time it should connect to the cluster
- You could also verify cluster status via the command
/sbin/rabbitmqctl cluster_status
on both nodes and see whether it has been clustered already.
Note: Why I had asked to disable awx_ha role because the web GUI of AWX I intentionally disabled for the inventory group [awx_instance_group_task]
since it is independent with the instance group functionality unless if someone needs a load balancing feature..
from awx-ha-instancegroup.
Hey @sujiar37 thanks for a super fast response. You are correct, my goal state is a simple 2x web/agent nodes --> RDS HA instance that gives me tolerance in case of an AZ failure.
I think I understand here.
Changing the logic on
and
would also quickly fix my issue right? It would join all nodes to the rabbit agent cluster despite their membership awx_instance_group_web
Thanks heaps for your great work on this!
from awx-ha-instancegroup.
@loceee , Yes, that would fix your problems. However, you may have to restart containers on both nodes if the jobs are not still picking up,
# ls
docker-compose.yml Dockerfile Dockerfile.task launch_awx.sh launch_awx_task.sh settings.py system_uuid.txt
# pwd
/var/lib/awx/build_image
# docker-compose restart
Restarting build_image_task_1 ... done
Restarting build_image_memcached_1 ... done
Once again, thanks for reporting this bug, I shall come up with a fix along with the release version of AWX 6.1.0 since that is the latest one at the moment.
from awx-ha-instancegroup.
@loceee The fix has been merged into master and closing this issue as well. Once again, thank you for supporting us and please do circulate this project to the needy peoples who had wish to explore.
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
- Jobs never starts, struck at Pending state for ever HOT 9
- 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
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.