AWX on RHEL VM

Hi,

I’m new to AWX and need some help.

Anyone tired to install AWX directly in the RHEL VM? Is there any other option available instead of Docker or Openshift?

Any help is appreciated!!

Regards
Sammi

Hi Sammi

I have tried to do something like that on CentOS:

https://github.com/MrMEEE/awx-build/blob/master/installguide

It’s works as far as I have tested, but I haven’t tried it on RHEL yet… (And still needs some cleanup)…

Please report bugs to:

https://github.com/MrMEEE/awx-build/issues

/Martin



Fra: sammi.c30@gmail.com
Sendt: 8. december 2017 9.01 PM
Til: awx-project@googlegroups.com
Svar til: sammi.c30@gmail.com
Emne: [awx-project] AWX on RHEL VM

|

  • |

Hi,

I’m new to AWX and need some help.

Anyone tired to install AWX directly in the RHEL VM? Is there any other option available instead of Docker or Openshift?

Any help is appreciated!!

Regards
Sammi

Hey Sammi,
I think Docker/Openshift is the “supported” and recommended install path–unsure of if anyone in the community is working on getting AWX installed on different platforms (aside from some work being done by a community member to make AWX run on BSD). May also want to ask in #ansible-awx.

Good luck!
John

Ah, I spoke too soon, nice Martin!

:)… I was actually looking for a way to distribute the information???



Fra: jmitchel@redhat.com
Sendt: 8. december 2017 9.14 PM
Til: sammi.c30@gmail.com; awx-project@googlegroups.com
Svar til: jmitchel@redhat.com
Emne: Re: [awx-project] AWX on RHEL VM

|

  • |

Ah, I spoke too soon, nice Martin!

Hey Martin,
Our main sources of communication on the project are this group and the freenode irc channel #ansible-awx. You could also try writing a blog post and posting to Twitter.

Good luck!
John

Hi John

Have posted an entry on my blog and Twitter (does AWX have a #?)…

Was thinking that maybe we could add a link in the install dokumentation? (Should I just do a pull request?)

/Martin



Fra: jmitchel@redhat.com
Sendt: 8. december 2017 9.51 PM
Til: mj@casalogic.dk
Svar til: jmitchel@redhat.com
Cc: sammi.c30@gmail.com; awx-project@googlegroups.com
Emne: Re: Re: [awx-project] AWX on RHEL VM

|

  • |

Hey Martin,
Our main sources of communication on the project are this group and the freenode irc channel #ansible-awx. You could also try writing a blog post and posting to Twitter.

Good luck!
John

Hey Martin,
Looks like awx is a solid tag with a lot of (mostly) relevant stuff. Posting a tweet using that hashtag might help people looking for information on twitter find it.

In terms of linking within the official repo documentation, I’m -1 on that at this point, as there may be an implication of “support”/“help” provided by the core team. Trying to “promote” a single/main-way of install (i.e. docker/open shift) helps us best make sure that the AWX codebase works for users efficiently and keeps us free to focus on working on developing new features for AWX/fixing bugs/working with the community on contributions.

Sorry about that,
John

Thanks Martin and John!!!

I’ll try it on CentOS :slight_smile:

Hi Martin,

All the steps you provided worked but it’s failed to enable the service.

systemctl enable awx-web
Failed to execute operation: No such file or directory

systemctl start awx-web
Failed to start awx-web.service: Unit not found.

I have just updated to newest git build, and fixed the service stuff (i think)…

version 304 should now be live in the repo, so you can basically just do a yum update…

If possible, please verify :)…

Thanks

/Martin

Hi Martin,

Have you seen the error below? I’m getting it while doing different things like selecting SCM source, adding a source or running a ping module when using “run command”…

UI Error:
Failed to launch adhoc command. POST returned status: 500 A server error has occurred.

Error in the web logs:

ImportError: /usr/lib64/libcrypto.so.10: version `OPENSSL_1.0.2’ not found (required by /var/lib/awx/venv/awx/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so)

2017-12-11 23:42:49,306 ERROR django.request Internal Server Error: /api/v2/inventories/2/ad_hoc_commands/
Traceback (most recent call last):
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/base.py”, line 249, in _legacy_get_response
response = self._get_response(request)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/base.py”, line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/views/decorators/csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/views/generic/base.py”, line 68, in view
return self.dispatch(request, *args, **kwargs)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/views/decorators/csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/awx/api/views.py”, line 4194, in dispatch
return super(AdHocCommandList, self).dispatch(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/awx/api/generics.py”, line 248, in dispatch
return super(APIView, self).dispatch(request, *args, **kwargs)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/views.py”, line 489, in dispatch
response = self.handle_exception(exc)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/views.py”, line 449, in handle_exception
self.raise_uncaught_exception(exc)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/views.py”, line 486, in dispatch
response = handler(request, *args, **kwargs)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest_framework/generics.py”, line 244, in post
return self.create(request, *args, **kwargs)
File “/usr/lib/python2.7/site-packages/awx/api/views.py”, line 4233, in create
result = ad_hoc_command.signal_start(**request.data)
File “/usr/lib/python2.7/site-packages/awx/main/models/unified_jobs.py”, line 1167, in signal_start
self.update_fields(start_args=json.dumps(kwargs), status=‘pending’)
File “/usr/lib/python2.7/site-packages/awx/main/models/base.py”, line 131, in update_fields
self.save(update_fields=update_fields)
File “/usr/lib/python2.7/site-packages/awx/main/models/ad_hoc_commands.py”, line 202, in save
super(AdHocCommand, self).save(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/awx/main/models/unified_jobs.py”, line 799, in save
result = super(UnifiedJob, self).save(*args, **kwargs)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/polymorphic/models.py”, line 74, in save
return super(PolymorphicModel, self).save(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/awx/main/models/base.py”, line 196, in save
self.encrypt_field(field, ask)
File “/usr/lib/python2.7/site-packages/awx/main/models/base.py”, line 216, in encrypt_field
encrypted = encrypt_field(self, field, ask)
File “/usr/lib/python2.7/site-packages/awx/main/utils/encryption.py”, line 68, in encrypt_field
f = Fernet256(key)
File “/usr/lib/python2.7/site-packages/awx/main/utils/encryption.py”, line 22, in init
backend = default_backend()
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/cryptography/hazmat/backends/init.py”, line 15, in default_backend
from cryptography.hazmat.backends.openssl.backend import backend
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/init.py”, line 7, in
from cryptography.hazmat.backends.openssl.backend import backend
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py”, line 49, in
from cryptography.hazmat.bindings.openssl import binding
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py”, line 13, in
from cryptography.hazmat.bindings._openssl import ffi, lib

Hi Sammi

I can’t replicate that…

Are you running on RHEL or CentOS???

Can you compare this to your system:

[root@awx tower]# rpm -aq |grep -i ssl
erlang-ssl-R16B-03.18.el7.x86_64
openssl-libs-1.0.2k-8.el7.x86_64
xmlsec1-openssl-1.2.20-7.el7_4.x86_64
python-passlib-1.6.5-2.el7.noarch
openssl-1.0.2k-8.el7.x86_64
python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch

/Martin

Hi Martin, I’m running “CentOS Linux release 7.3.1611 (Core)”

Also, Are there any Pre-requisites and Post installation steps which I need to follow?

I’m trying to install V2 (https://github.com/MrMEEE/awx-build/blob/master/installguide-v2) and getting below error. I’ll update the openssl package and try to move forward.

Error: Package: awx-1.0.2.0-1.el7.centos.x86_64 (mrmeee-awx-dev)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

same error facing with https://github.com/MrMEEE/awx-build/blob/master/installguide installation

Error: Package: awx-1.0.2.268-1.el7.centos.x86_64 (mrmeee-awx-dev)
Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest