awx-build's People
Forkers
sunilsankar karenj1771 daswars renlor yogitaj508 flynn1973 powertim jpmens greggworldwide psakar njefsky wkleinhenz tblakex01 ntlartey anlag aelshafei angystardust lobout ayaseen cipe-infraestructura afahounko fabiogermann serpap79 ubun1 bjmingyang girakleidis nkadel ainaomotayo yaroslav525 softnetworld zzzcloud 1507thakurabhi93 dayofmythology pankajps ajjaiii danielzengqx nooaah aankit10mu vhp1360awx-build's Issues
Add pip to default installation
I am missing the pip command in the default installation on Centos 7. Would be nice to integrate the command in the RPM package to be able to load additional python modules such as pyvmomi.
Or do you consider other scripts like used in the inventory scripts should make use of another Python virtual environment?
Playbooks not view in Job Template
Hi:
When create any project with git ( download OK ) or manual select folder the playbook OK
both when create job template in combo box playbook ( choose playbook ) it does not let me select anything
Default path project is /var/lib/awx/projects
Im try with Version is: 1.0.6.14 and 1.0.6.15 is same problem
Can you help me please
Any idea
Timeout on https://copr-be.cloud.fedoraproject.org
- Anyone has same issue like following ?
[root@awx yum.repos.d]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.centos.webair.com
* epel: mirror.steadfastnet.com
* extras: mirrors.xmission.com
* updates: reflector.westga.edu
https://copr-be.cloud.fedoraproject.org/results/mrmeee/awx-dev/epel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://copr-be.cloud.fedoraproject.org/results/mrmeee/awx-dev/epel-7-x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
https://copr-be.cloud.fedoraproject.org/results/mrmeee/awx-dev/epel-7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://copr-be.cloud.fedoraproject.org/results/mrmeee/awx-dev/epel-7-x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
)
- References
- 3 hours ago: https://pagure.io/fedora-infrastructure/issue/7189
- 3 years ago: https://pagure.io/fedora-infrastructure/issue/4661
awx-dev repository is down
Unable to start after Upgrading to 2.1
To restart awx after upgrading from 2.0 to 2.1 some some additional manual steps are required
- when running
sudo -u awx /opt/awx/bin/awx-manage makemigrations
you have to merge the migrations - The folder /var/log/tower is missing and must be created manually
- update the version in /var/lib/awx/.tower_version
from2.1.0.58
to2.1.0
mkdir /var/log/tower
chown root:awx /var/log/tower
chmod 770 /var/log/tower
echo "2.1.0" >> /var/lib/awx/.tower_version
Missing rpm dependencies
I'm writing a playbook which use lookup dig and module mssql_db and I discovered that I have missing rpm on my system: python2-pymssql.x86_64 and python-dns.noarch already distribuited in repo's base from Centos/Redhat.
It might be useful add a require in spec's file. Maybe python2-pymssql.x86_64 is not very used, but python-dns.noarch is useful.
awx 1.0.6: "NameError: name 'Queue' is not defined"
Hi @MrMEEE
The dev repo is now hosting 1.0.6.0-1 version of AWX rpm.
Do you know how to resolve issue like "NameError: name 'Queue' is not defined" ?
[root@ansible04 ~]# sudo -u awx /opt/awx/bin/awx-manage makemigrations
Traceback (most recent call last):
File "/opt/awx/bin/awx-manage", line 11, in <module>
sys.exit(manage())
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/__init__.py", line 93, in manage
prepare_env()
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/__init__.py", line 48, in prepare_env
if not settings.DEBUG: # pragma: no cover
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/settings/production.py", line 95, in <module>
include(settings_file, optional(settings_files), scope=locals())
File "/opt/awx/embedded/lib/python2.7/site-packages/split_settings/tools.py", line 102, in include
exec(compile(to_compile.read(), included_file, 'exec'), scope)
File "/etc/awx/settings.py", line 35, in <module>
CELERY_QUEUES += (Queue(CLUSTER_HOST_ID, Exchange(CLUSTER_HOST_ID), routing_key=CLUSTER_HOST_ID),)
NameError: name 'Queue' is not defined
[root@ansible04 ~]#
1.0.7.4: job status urls not working / empty page
job status urls (e.g: http://towerhost.some.domain/#/jobs/playbook/13) just showing blank/white page.
rabbitmq and all other services are running.
Unable to run job template
Hi,
I can run following playbook from command line and it executes fine. However, it fails when running through AWX. Here is my playbook:
-
hosts: all
gather_facts: no
connection: localvars:
ansible_connection: network_cli
ansible_network_os: ios
ansible_user: cisco
ansible_ssh_pass: cisco
ansible_become: yes
ansible_become_method: enable
ansible_become_pass: ciscotasks:
-
name: SYS | Define provider
set_fact:
provider:
host: "{{ inventory_hostname }}"
username: "cisco"
password: "cisco" -
name: Change Hostname
ios_config:
provider: "{{ provider }}"
lines: hostname myios1 -
name: Gather facts
register: facts
ios_facts:
provider: "{{ provider }}"
gather_subset: all -
debug: msg="{{ facts.ansible_facts.ansible_net_hostname }}"
-
=================================================
[root@localhost ios]# cat ansible.cfg
[defaults]
hostfile = ./inventory
deprecation_warnings=False
=============================================
the error that i see in the job_status is:
Using /var/lib/awx/projects/ios/ansible.cfg as config file
SSH password:
Loading callback plugin awx_display of type stdout, v2.0 from /opt/awx/embedded/lib/python2.7/site-packages/ansible/plugins/callback/init.pyc
PLAYBOOK: test.yml *************************************************************
1 plays in test.yml
PLAY [all] *********************************************************************
META: ran handlers
TASK [SYS | Define provider] ***************************************************
task path: /var/lib/awx/projects/ios/test.yml:17
ok: [172.24.25.116] => {
"ansible_facts": {
"provider": {
"host": "172.24.25.116",
"password": "cisco",
"username": "cisco"
}
},
"changed": false
}
TASK [Change Hostname] *********************************************************
task path: /var/lib/awx/projects/ios/test.yml:24
<172.24.25.116> using connection plugin network_cli
<172.24.25.116> socket_path: /var/lib/awx/.ansible/pc/c18dc059cc
open_shell() returned 1 Traceback (most recent call last):
File "/bin/ansible-connection", line 27, in
from ansible.module_utils.connection import Connection, ConnectionError, send_data, recv_data
ImportError: cannot import name Connection
fatal: [172.24.25.116]: FAILED! => {
"changed": false,
"failed": true,
"msg": "unable to open shell. Please see: https://docs.ansible.com/ansible/network_debug_troubleshooting.html#unable-to-open-shell",
"rc": 1
}
PLAY RECAP *********************************************************************
172.24.25.116 : ok=1 changed=0 unreachable=0 failed=1
Build rpm for a specific version of awx
Hi, thank you for your great work, I don't like container so for me RPM is the best alternative.
Have you a script for build source tar.gz?
I see in fedorainfracloud there is a rpms with awx-.tar.gz for build rpm from spec file, there are some differences between git clone of awx and this tar.gz and I would like make alone the tar.gz for test old version of awx.
Thank you
curl: (35) TCP connection reset by peer and 503 errors
I'm trying to use AWX with Openstack and while running bootstrap as a adhoc command I'm getting curl: (35) TCP connection reset by peer and 503 errors but when I execute manually directly on the server everything works fine.
on server if I do export http_proxy=http://xyz.com:8080 and export https_proxy=http://xyz.com:8080 than everything is working but from AWX I'm getting errors.
Can we use something like https://github.com/ansible/awx/blob/devel/installer/inventory? If yes, than where I can put it?
Proxy
#http_proxy=http://proxy:3128
#https_proxy=http://proxy:3128
#no_proxy=mycorp.org
Any suggestion will be appreciated.
1.0.7.4 to 1.0.8.14 upgrade note
Hi
Just an FYI, I was able do the upgrade using following commands.
"--merge" was added for this time per error message suggested.
yum update -y && \
sudo -u awx /opt/awx/bin/awx-manage makemigrations --merge && \
sudo -u awx /opt/awx/bin/awx-manage migrate && reboot
Migration is not always working :(
In the installation guide, I will now be maintaining a positive upgrade path list, until I find a workaround...
Inputs are welcome..
https://github.com/MrMEEE/awx-build/blob/master/installguide
Backup and Restore database of AWX
Hello,
Do you manage to backup and restore awx postgres database?
I want to create a script that backup all the necessary to use on prior installations of awx.
Do you use already anything for this?
Thank-you
Best Regards
R&P
*awx/main/migrations uid:gid should be awx:awx ?
- I try to follow the upgrade procedure encounter following issue
[root@ansible01 ~]# sudo -u awx /opt/awx/bin/awx-manage makemigrations
Migrations for 'main':
/opt/awx/embedded/lib/python2.7/site-packages/awx/main/migrations/0014_auto_20180410_1811.py
- Alter field created_by on credential
- Alter field modified_by on credential
- Alter field created_by on credentialtype
- Alter field modified_by on credentialtype
- Alter field created_by on custominventoryscript
- Alter field modified_by on custominventoryscript
- Alter field created_by on group
- Alter field modified_by on group
- Alter field created_by on host
- Alter field modified_by on host
- Alter field created_by on inventory
- Alter field modified_by on inventory
- Alter field created_by on label
- Alter field modified_by on label
- Alter field created_by on notificationtemplate
- Alter field modified_by on notificationtemplate
- Alter field created_by on organization
- Alter field modified_by on organization
- Alter field created_by on schedule
- Alter field modified_by on schedule
- Alter field created_by on team
- Alter field modified_by on team
- Alter field created_by on unifiedjob
- Alter field modified_by on unifiedjob
- Alter field created_by on unifiedjobtemplate
- Alter field modified_by on unifiedjobtemplate
Traceback (most recent call last):
File "/opt/awx/bin/awx-manage", line 11, in <module>
sys.exit(manage())
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/__init__.py", line 109, in manage
execute_from_command_line(sys.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/commands/makemigrations.py", line 193, in handle
self.write_migration_files(changes)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/commands/makemigrations.py", line 232, in write_migration_files
with io.open(writer.path, "w", encoding='utf-8') as fh:
IOError: [Errno 13] Permission denied: '/opt/awx/embedded/lib/python2.7/site-packages/awx/main/migrations/0014_auto_20180410_1811.py'
[root@ansible01 ~]#
Auto Database upgrade
TODO: Make RPM run makemigrations and migrate + error handling
Configuring AWX
Hi,
I want to configure the AWX to use a remote DB. Can you please help me. I need the name of the config file to change, so I can point the AWX to the remote DB.
yum install -y awx is failing
Hi,
I'm following the (https://github.com/MrMEEE/awx-build/blob/master/installguide) steps and getting below error:
Error: Package: awx-1.0.2.272-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
I'm using "CentOS Linux release 7.3.1611 (Core)" release
Your API key is public...
No virtualenv support
Hi @MrMEEE,
first of all thanks for your effort.
I've noticed that installing your last rpm (2.0.1) it doesn't allow to create custom venv and associate them to an organization. This feature was introduced in tower 3.0 and in 3.3 it was further streamlined:
https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/virtualenv.html
On a setup using your rpm, I cannot see the "Ansible environment" option at all:
Is it possible to enable this feature in your rpm?
Error - awx-manage inventory_import
Hello, Sorry if here is not the right place for this. But i'm having a issue with the build: 1.0.4.98-1.el7.centos
I can't import any inventories into awx instance. Is this already being handle?
Output command line:
[root@towerawx ruipereira]# awx-manage inventory_import --source=/var/lib/awx/projects/ruipereira/inventories/Net_80/hosts --inventory-name="80" --overwrite --overwrite-vars
Traceback (most recent call last):
File "/bin/awx-manage", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3007, in
working_set.require(requires)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
raise DistributionNotFound(req)
**pkg_resources.DistributionNotFound: awx==3.2.1
**
Attached is one picture from web interface trying to import the same inventory.
Thank-you
Best Regards
Rui Pereira
Upgrade ansible version
Hi, I understand we can't use external ansible, but only ansible in rpm file.
Why continue to use old ansible's version? In spec file I see ansible 2.5.0 while now we have 2.6.3.
I tried to build my rpm with ansible 2.6.3 and work without issues.
Is there a possibility to have a rpm with new version of ansible or use an external ansible, maybe as dependency of rpm?
Thank you
Make Ansible installable on an AWX Server
Right now AWX breaks horrible if Ansible is installed on the same server (#15)
upgrade to 1.0.7.3
Hello i try to upgrade to last version but it doesn't work.
yum upgrade
sudo -u awx /opt/awx/bin/awx-manage makemigrations --merge -v3
No conflicts detected to merge.
sudo -u awx /opt/awx/bin/awx-manage migrate -v3
Operations to perform:
Apply all migrations: auth, conf, contenttypes, djcelery, main, oauth2_provider, sessions, sites, social_django, sso, taggit
Running pre-migrate handlers for application auth
Running pre-migrate handlers for application contenttypes
Running pre-migrate handlers for application sessions
Running pre-migrate handlers for application sites
Running pre-migrate handlers for application oauth2_provider
Running pre-migrate handlers for application rest_framework
Running pre-migrate handlers for application django_extensions
Running pre-migrate handlers for application djcelery
Running pre-migrate handlers for application polymorphic
Running pre-migrate handlers for application taggit
Running pre-migrate handlers for application social_django
Running pre-migrate handlers for application conf
Running pre-migrate handlers for application main
Running pre-migrate handlers for application api
Running pre-migrate handlers for application ui
Running pre-migrate handlers for application sso
Running pre-migrate handlers for application solo
Running migrations:
Applying main.0043_v330_oauth2accesstoken_modified...Traceback (most recent call last):
File "/opt/awx/bin/awx-manage", line 11, in
sys.exit(manage())
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/init.py", line 116, in manage
execute_from_command_line(sys.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/init.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/commands/migrate.py", line 204, in handle
fake_initial=fake_initial,
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/operations/fields.py", line 88, in database_forwards
field,
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/base/schema.py", line 429, in add_field
self.execute(sql, params)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/base/schema.py", line 120, in execute
cursor.execute(sql, params)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/utils.py", line 94, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
django.db.utils.IntegrityError: column "modified" contains null values
1.0.7.3 clean install: ImportError: No module named rest_framework_swagger
something seems to be missing in the embedded python stuff.
pip install django-rest-swagger fixed it but i'm not shure if this is the right way to do.
sudo -u awx /opt/awx/bin/awx-manage migrate
Traceback (most recent call last):
File "/opt/awx/bin/awx-manage", line 11, in <module>
sys.exit(manage())
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/__init__.py", line 116, in manage
execute_from_command_line(sys.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute
django.setup()
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/apps/config.py", line 94, in create
module = import_module(entry)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named rest_framework_swagger
inventory import failed
Hello i can't import inventory from UI. But it works when i use the awx-amange command (same parameter as the IU).
I think the issue is comming from the embedded python module
1.0.7.3 clean install: sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.
got this error on a clean (not upgrade) install.
root@lpgaixmgmtlx01:/opt/awx/embedded>sudo -u awx /opt/awx/bin/awx-manage migrate
Operations to perform:
Apply all migrations: auth, conf, contenttypes, djcelery, main, oauth2_provider, sessions, sites, social_django, sso, taggit
Running migrations:
Applying contenttypes.0001_initial... OK
Applying taggit.0001_initial... OK
Applying taggit.0002_auto_20150616_2121... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0001_initial... OK
Applying main.0001_initial... OK
Applying main.0002_squashed_v300_release... OK
Applying main.0003_squashed_v300_v303_updates... OK
Applying main.0004_squashed_v310_release... OK
Applying conf.0001_initial... OK
Applying conf.0002_v310_copy_tower_settings... OK
Applying main.0005_squashed_v310_v313_updates... OK
Applying main.0006_v320_release...Traceback (most recent call last):
File "/opt/awx/bin/awx-manage", line 11, in <module>
sys.exit(manage())
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/__init__.py", line 116, in manage
execute_from_command_line(sys.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/commands/migrate.py", line 204, in handle
fake_initial=fake_initial,
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/operations/special.py", line 108, in database_forwards
self._run_sql(schema_editor, self.sql)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/operations/special.py", line 129, in _run_sql
schema_editor.execute(sql, params=params)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/base/schema.py", line 120, in execute
cursor.execute(sql, params)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/utils.py", line 83, in execute
sql = self.db.ops.last_executed_query(self.cursor, sql, params)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/sqlite3/operations.py", line 135, in last_executed_query
params = self._quote_params_for_last_executed_query(params)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/sqlite3/operations.py", line 124, in _quote_params_for_last_executed_query
return cursor.execute(sql, params).fetchone()
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.
Need doc on post install verificication
@MrMEEE
Thanks for creating the awx repo, I was able to follow the install doc to the end and have a successful web GUI from http://localhost from F.F. in local Gnome or http://my-production-ip as shown in following screenshot.
Question is how can I get the login web page for AWX ?
Latest build of awx
Do you plan on updating this to the latest build of awx (1.0.4) and ansible(2.4.3)?
About space requirements
Hello.
I've a question about the fs and space needed by the installation.
Which are the directories needed by the installation of awx ? (Because we have some predefined partitions on lvm) and what is the size needed for the deployement ?
I haven't seen anything related on your documentation about this.
Florianne
licence file for awx-build
Hi @MrMEEE
AWX project is using apache license.
Is your awx-build project also using apache license ?
If so can you add apache license file ?
AWX rpm roadmap
Hi @MrMEEE
What is the future roadmap for this awx-build project ?
I have a few concerns.
- awx-rpm is not available in EPEL repo.
- There are only two persons working on awx rpm project.
- AWX team is not willing to support rpm install aproach.
What is your thought ?
sqlite3.InterfaceError
Help please, which day I struggle with the problem, I can not install awx by link https://github.com/MrMEEE/awx-build/blob/master/installguide.md
sudo -u awx /opt/awx/bin/awx-manage migrate
Operations to perform:
Apply all migrations: auth, conf, contenttypes, djcelery, main, oauth2_provider, sessions, sites, social_django, sso, taggit
Running migrations:
Applying main.0006_v320_release...Traceback (most recent call last):
File "/opt/awx/bin/awx-manage", line 11, in
sys.exit(manage())
File "/usr/lib/python2.7/site-packages/awx-2.0.1-py2.7.egg/awx/init.py", line 116, in manage
execute_from_command_line(sys.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/init.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/commands/migrate.py", line 204, in handle
fake_initial=fake_initial,
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/operations/special.py", line 108, in database_forwards
self._run_sql(schema_editor, self.sql)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/migrations/operations/special.py", line 129, in _run_sql
schema_editor.execute(sql, params=params)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/base/schema.py", line 120, in execute
cursor.execute(sql, params)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/utils.py", line 83, in execute
sql = self.db.ops.last_executed_query(self.cursor, sql, params)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/sqlite3/operations.py", line 135, in last_executed_query
params = self._quote_params_for_last_executed_query(params)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/backends/sqlite3/operations.py", line 124, in _quote_params_for_last_executed_query
return cursor.execute(sql, params).fetchone()
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.
Unable to install awx
-bash-4.2# ls -lrt /etc/yum.repos.d/
total 44
-rw-r--r--. 1 root root 1012 Sep 20 2016 pgdg-96-centos.repo
-rw-r--r--. 1 root root 3830 Aug 30 2017 CentOS-Vault.repo
-rw-r--r--. 1 root root 1331 Aug 30 2017 CentOS-Sources.repo
-rw-r--r--. 1 root root 630 Aug 30 2017 CentOS-Media.repo
-rw-r--r--. 1 root root 314 Aug 30 2017 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 649 Aug 30 2017 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 1309 Aug 30 2017 CentOS-CR.repo
-rw-r--r--. 1 root root 1664 Aug 30 2017 CentOS-Base.repo
-rw-r--r--. 1 root root 1050 Oct 2 2017 epel-testing.repo
-rw-r--r--. 1 root root 951 Oct 2 2017 epel.repo
-rw-r--r--. 1 root root 212 Jun 2 19:31 rabbitmq-erlang.repo
-bash-4.2# yum install -y awx
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
- base: linux.mirrors.es.net
- epel: linux.mirrors.es.net
- extras: mirror.centos.org
- updates: mirror.centos.org
No package awx available.
Error: Nothing to do
-bash-4.2#
awx-channels-worker dies after AWX 1.0.7.3 upgrade
I upgraded quite a few leaps today, from 1.0.6.1 to 1.0.7.3. Started with a "yum upgrade" and then had to apply a number of fixes from the migrations page, not necessarily in the intended order, but I thought I had got it working... when I realized I can't interact with the Satellite inventory (for example I can't create groups, or pull the latest SCM version; all of which throw errors like:
Error!
Call to /api/v2/groups/. GET returned: 500 A server error has occurred.
It turns out the awx-channels-worker keeps dying and restarting. The journalctl output is below. It's not inconceivable that my upgrade path was somewhat dirty, so if I have to restore a backup and start over more cautiously then fair enough, but if it can be saved more easily then I am all ears!
Aug 21 14:42:44 dc0awx01 systemd[1]: Starting AWX channels worker service...
-- Subject: Unit awx-channels-worker.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit awx-channels-worker.service has begun starting up.
Aug 21 14:42:46 dc0awx01 awx-manage[16625]: 2018-08-21 12:42:46,986 - INFO - runworker - Using single-threaded worker.
Aug 21 14:42:46 dc0awx01 awx-manage[16625]: 2018-08-21 12:42:46,986 - INFO - runworker - Running worker against channel layer default (asgi_amqp.core.AMQPChannelLayer)
Aug 21 14:42:46 dc0awx01 awx-manage[16625]: 2018-08-21 12:42:46,986 - INFO - worker - Listening on channels websocket.connect, websocket.disconnect, websocket.receive
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: Traceback (most recent call last):
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/bin/awx-manage", line 11, in <module>
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: sys.exit(manage())
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/awx/__init__.py", line 116, in manage
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: execute_from_command_line(sys.argv)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: utility.execute()
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: self.fetch_command(subcommand).run_from_argv(self.argv)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: self.execute(*args, **cmd_options)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 330, in execute
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: output = self.handle(*args, **options)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/channels/management/commands/runworker.py", line 83, in handle
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: worker.run()
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/channels/worker.py", line 87, in run
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: channel, content = self.channel_layer.receive_many(channels, block=True)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/asgiref/base_layer.py", line 43, in receive_many
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: return self.receive(channels, block)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/asgi_amqp/core.py", line 102, in receive
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: self._init_thread()
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/asgi_amqp/core.py", line 63, in _init_thread
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: self.tdata.connection.default_channel.basic_qos(0, 1, False)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/kombu/connection.py", line 771, in default_channel
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: self.connection
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/kombu/connection.py", line 756, in connection
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: self._connection = self._establish_connection()
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/kombu/connection.py", line 711, in _establish_connection
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: conn = self.transport.establish_connection()
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: conn = self.Connection(**opts)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/amqp/connection.py", line 165, in __init__
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: self.transport = self.Transport(host, connect_timeout, ssl)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/amqp/connection.py", line 186, in Transport
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: return create_transport(host, connect_timeout, ssl)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/amqp/transport.py", line 299, in create_transport
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: return TCPTransport(host, connect_timeout)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: File "/opt/awx/embedded/lib/python2.7/site-packages/amqp/transport.py", line 95, in __init__
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: raise socket.error(last_err)
Aug 21 14:42:47 dc0awx01 awx-manage[16625]: socket.error: [Errno 111] Connection refused
Aug 21 14:42:47 dc0awx01 daphne[2052]: 2018-08-21 12:42:47,005 ERROR Error trying to receive messages: [Errno 111] Connection refused
Aug 21 14:42:47 dc0awx01 systemd[1]: awx-channels-worker.service: main process exited, code=exited, status=1/FAILURE
Aug 21 14:42:47 dc0awx01 systemd[1]: Unit awx-channels-worker.service entered failed state.
Aug 21 14:42:47 dc0awx01 systemd[1]: awx-channels-worker.service failed.
Aug 21 14:42:49 dc0awx01 systemd[1]: awx-channels-worker.service holdoff time over, scheduling restart.
Aug 21 14:42:49 dc0awx01 systemd[1]: Started AWX channels worker service.
-- Subject: Unit awx-channels-worker.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit awx-channels-worker.service has finished starting up.
--
-- The start-up result is done.
Missing requirements in latest build
looks like the latest build is missing the bcrypt requirements
ERROR! Unexpected Exception, this is probably a bug: The 'bcrypt>=3.1.3' distribution was not found and is required by paramiko
This affect being able to run the inventory script to obtain inventory from Satellite
AWX v1.0.6.8 - Import Database data failed
I have created a new CentOS 7.5 and followed the install guide instruction.
My AWX version is as shown below:
Name : awx
Arch : x86_64
Version : 1.0.6.8
Release : 1.el7
Size : 374 M
Repo : installed
From repo : mrmeee-awx-dev
Summary : Ansible AWX
License : GPLv3
Description : Ansible AWX
When I followed the section import database data
, it failed with following error.
[root@awx01 ~]# sudo -u awx /opt/awx/bin/awx-manage migrate
Traceback (most recent call last):
File "/opt/awx/bin/awx-manage", line 11, in
sys.exit(manage())
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/init.py", line 93, in manage
prepare_env()
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/init.py", line 48, in prepare_env
if not settings.DEBUG: # pragma: no cover
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/conf/init.py", line 56, in getattr
self._setup(name)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/conf/init.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/conf/init.py", line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/settings/production.py", line 93, in
include(settings_file, optional(settings_files), scope=locals())
File "/opt/awx/embedded/lib/python2.7/site-packages/split_settings/tools.py", line 102, in include
exec(compile(to_compile.read(), included_file, 'exec'), scope)
File "/etc/awx/settings.py", line 36, in
CELERY_ROUTES['awx.main.tasks.cluster_node_heartbeat'] = {'queue': CLUSTER_HOST_ID, 'routing_key': CLUSTER_HOST_ID}
TypeError: 'tuple' object does not support item assignment
Since the instruction followed today, not sure what and where it went wrong. A month ago, I followed same instruction on CentOS 7.4, it was perfect.
errors importing inventory: Permission denied
I cannot import any inventories. The job fails with:
2018-03-18 22:51:32,060 INFO awx.main.commands.inventory_import Updating inventory 2: lxd inevntory
2018-03-18 22:51:32,080 INFO awx.main.commands.inventory_import Reading Ansible inventory source: /var/lib/awx/projects/_6__ansible_awx/inventory/hosts
Traceback (most recent call last):
File "/opt/awx/bin/awx-manage", line 11, in <module>
sys.exit(manage())
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/__init__.py", line 109, in manage
execute_from_command_line(sys.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py", line 993, in handle
self.is_custom)
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py", line 242, in load_inventory_source
is_custom=is_custom).load()
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py", line 177, in load
data = self.command_to_json(base_args + ['--list'])
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py", line 153, in command_to_json
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env)
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Any help is much appreciated.
create_preload_data fails with No instance found with the current cluster host id
New install on OEL7.5 (RHEL clone) following the latest install guide doc.
Everything works fine until the 'sudo -u awx /opt/awx/bin/awx-manage create_preload_data' step. I get this:
root@box # sudo -u awx /opt/awx/bin/awx-manage create_preload_data
Traceback (most recent call last):
File "/opt/awx/bin/awx-manage", line 11, in <module>
sys.exit(manage())
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/__init__.py", line 109, in manage
execute_from_command_line(sys.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/create_preload_data.py", line 47, in handle
created_by=superuser)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/models/query.py", line 394, in create
obj.save(force_insert=True, using=self.db)
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/models/inventory.py", line 700, in save
super(Host, self).save(*args, **kwargs)
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/models/base.py", line 275, in save
super(PrimordialModel, self).save(*args, **kwargs)
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/models/base.py", line 164, in save
super(CreatedModifiedModel, self).save(*args, **kwargs)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/models/base.py", line 808, in save
force_update=force_update, update_fields=update_fields)
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/db/models/base.py", line 848, in save_base
update_fields=update_fields, raw=raw, using=using,
File "/opt/awx/embedded/lib64/python2.7/site-packages/django/dispatch/dispatcher.py", line 193, in send
for receiver in self._live_receivers(sender)
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/signals.py", line 146, in emit_update_inventory_on_created_or_deleted
update_inventory_computed_fields.delay(inventory.id, True)
File "/opt/awx/embedded/lib/python2.7/site-packages/celery/app/task.py", line 461, in delay
return self.apply_async(args, kwargs)
File "/opt/awx/embedded/lib/python2.7/site-packages/celery/app/task.py", line 573, in apply_async
**dict(self._get_exec_options(), **options)
File "/opt/awx/embedded/lib/python2.7/site-packages/celery/app/base.py", line 345, in send_task
options = router.route(options, name, args, kwargs)
File "/opt/awx/embedded/lib/python2.7/site-packages/celery/app/routes.py", line 50, in route
route = self.lookup_route(task, args, kwargs)
File "/opt/awx/embedded/lib/python2.7/site-packages/celery/app/routes.py", line 78, in lookup_route
return _first_route(self.routes, task, args, kwargs)
File "/opt/awx/embedded/lib/python2.7/site-packages/celery/utils/functional.py", line 233, in _matcher
answer = getattr(maybe_evaluate(obj), method)(*args, **kwargs)
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/utils/ha.py", line 58, in route_for_task
(changed, instance) = Instance.objects.get_or_register()
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/managers.py", line 106, in get_or_register
return (False, self.me())
File "/opt/awx/embedded/lib/python2.7/site-packages/awx/main/managers.py", line 88, in me
raise RuntimeError("No instance found with the current cluster host id")
RuntimeError: No instance found with the current cluster host id
If I run the same command again it completes fine. Just curious why it fails and then runs okay the second time.
Should I worry about it failing the first time? As long as it completes the second time it's okay?
I saw another closed issue that had the same error and it was mentioned the hostname was the issue.
I have my hostname in /etc/hosts:
root@box # cat /etc/hosts
#THIS FILE IS UNDER PUPPET CONTROL
#MANUAL EDITS TO THIS FILE WILL BE OVERWRITTEN
#DO NOT ALTER THIS FILE ON THE HOST
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
ip.ip.ip.ip box.domain.com box loghost
root@box # cat /etc/hostname
box
root@box # hostname
box
root@box # hostname -f
box.domain.com
root@box # hostnamectl
Static hostname: box
I saw in /etc/awx/settings.py it sets the HOSTNAME and CLUSTER_HOST_ID. If I run that python code in a test script as awx it returns the proper hostname:
awx@box $ cat test.py
# AWX settings file
import os
import platform
HOSTNAME = platform.node()
print(HOSTNAME)
CLUSTER_HOST_ID = HOSTNAME
print(CLUSTER_HOST_ID)
awx@box $ ./python ./test.py
box
box
Any suggestions? Am I worrying over nothing? Thanks!
Cluster/HA Install of AWX
Moved from here:
subuk/awx-rpm#11
ansible-tower-cli: pkg_resources.DistributionNotFound: colorama>=0.3.1
@MrMEEE , Looks like ansible-tower-cli is missing python-colorama pkg dependency.
[root@awx01 awx]# yum install ansible-tower-cli -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.aol.com
* epel: mirror.math.princeton.edu
* extras: mirror.math.princeton.edu
* updates: repos-va.psychz.net
Resolving Dependencies
--> Running transaction check
---> Package ansible-tower-cli.noarch 0:3.3.0-2.el7.centos will be installed
--> Processing Dependency: python-click >= 2.1 for package: ansible-tower-cli-3.3.0-2.el7.centos.noarch
--> Running transaction check
---> Package python2-click.noarch 0:6.7-6.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================================
Installing:
ansible-tower-cli noarch 3.3.0-2.el7.centos mrmeee-awx-dev 197 k
Installing for dependencies:
python2-click noarch 6.7-6.el7 epel 126 k
Transaction Summary
====================================================================================================================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 323 k
Installed size: 1.4 M
Downloading packages:
(1/2): python2-click-6.7-6.el7.noarch.rpm | 126 kB 00:00:00
(2/2): ansible-tower-cli-3.3.0-2.el7.centos.noarch.rpm | 197 kB 00:00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 493 kB/s | 323 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python2-click-6.7-6.el7.noarch 1/2
Installing : ansible-tower-cli-3.3.0-2.el7.centos.noarch 2/2
Verifying : ansible-tower-cli-3.3.0-2.el7.centos.noarch 1/2
Verifying : python2-click-6.7-6.el7.noarch 2/2
Installed:
ansible-tower-cli.noarch 0:3.3.0-2.el7.centos
Dependency Installed:
python2-click.noarch 0:6.7-6.el7
Complete!
[root@awx01 awx]# tower-cli --help
Traceback (most recent call last):
File "/usr/bin/tower-cli", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3007, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: colorama>=0.3.1
[root@awx01 awx]#
- Fix is to install following
yum install -y python-colorama.noarch
Please update AWX icons
From angry potato icons to the ones at https://github.com/ansible/awx-logos/tree/master/awx/ui/client/assets
Thanks
Missing symlink for requirements.yaml
Hi,
I used Ansible Galaxy to create my playbook tree for the role I use requirements.yaml and I found an issue affecting the command.
We need to add the symlink : /opt/awx/bin/ansible-galaxy -> /opt/awx/bin/ansible-galaxy/ansible.
Thanks for updating the package.
Best regards,
Tim.
Popup window from "About" not updated with newer version number
- upgrade to 1.0.6.28 from 1.0.6.26
[root@awx ~]# rpm -qa |grep awx
awx-1.0.6.28-1.el7.x86_64
[root@awx ~]# date
Sat Jul 14 06:11:07 EDT 2018
[root@awx ~]# rpm -qi awx
Name : awx
Version : 1.0.6.28
Release : 1.el7
Architecture: x86_64
Install Date: Sat 14 Jul 2018 05:56:46 AM EDT
Group : AWX
Size : 391721680
License : GPLv3
Signature : RSA/SHA1, Fri 13 Jul 2018 12:56:26 PM EDT, Key ID eb9bbd0a3cdbce5b
Source RPM : awx-1.0.6.28-1.el7.src.rpm
Build Date : Fri 13 Jul 2018 12:55:42 PM EDT
Build Host : 6d2f2b6b272b4c5883b090e9e23962b2
Relocations : /opt/awx
Vendor : AWX
Summary : Ansible AWX
Description :
Ansible AWX
[root@awx ~]#
[root@awx ~]# tower-cli version
Tower CLI 3.3.0
API v2
AWX 1.0.6.26
Ansible 2.5.0
[root@awx ~]#
Need guide to convert awx source code to .rpm
Hi,
Thanks for your repo, I was able to follow the install doc (https://github.com/MrMEEE/awx-build/blob/master/installguide) to the end and it worked perfectly.
I want to build .rpm file for myself. I did not understand your awx-build.spec file.
Can you share a guide or your awx-1.0.x.x.tar.gz file?
Release changelog
Hi,
with each new RPM package the changelog only contains the information New Git version build: 1.0.x.y
. How can I find the real information e.g: current revision from AWX repository when the RPM package is built or link to the original changelog?
Thanks
PPA for debian/ubuntu ?
Hi @MrMEEE , some of us still use ubuntu/debian for server, do we have plan for support these OS ?
rhev python module not found
Hello i still have some issue with the rhev python module.
Last time to make the inventory sync to work i had to create a python venv in /var/lib/awx (like in tower) and for the sync it works.
But now when i try to use the rhev module in playbook it doesn't work.
For what i understand in your rpm package you are copying python module in /opt/awx/embedded right.
But in the bin folder i can't see the activate ... So i can't add module by myself.
Please in next build can you try to finish the venv ?
regards
Job does not start (after migrate from 1.0.6.47 > 1.0.7.3)
Migration was successful, celery-worker fixed.
But now after selecting a template, setting limits, and after pressing the next button nothing happens, the job window does not disappear.
Project and inventory updates, ad-hoc commands are successful.
rpmbuild: ImportError: cannot import name requests
while trying to do a local build with your latest source rpm the follwing comes up. any hint what might
be the problem here?
packagebuilder@lpgaixmgmtlx01:/home/packagebuilder/rpmbuild/SPECS>rpmbuild -ba awx-build.spec
warning: bogus date in %changelog: Thu Nov 21 2017 18:14:55 +0300 Matvey Kruglov <[email protected]> 1.0.1.225-1
warning: bogus date in %changelog: Wed Sep 21 2017 14:44:23 +0300 Matvey Kruglov <[email protected]> 1.0.0.505-1
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GOKk2o
+ umask 022
+ cd /home/packagebuilder/rpmbuild/BUILD
+ cd /home/packagebuilder/rpmbuild/BUILD
+ rm -rf awx-1.0.6.43
+ /usr/bin/tar -xf -
+ /usr/bin/gzip -dc /home/packagebuilder/rpmbuild/SOURCES/awx-1.0.6.43.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd awx-1.0.6.43
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.DB1AqQ
+ umask 022
+ cd /home/packagebuilder/rpmbuild/BUILD
+ cd awx-1.0.6.43
+ virtualenv _buildenv/
New python executable in /home/packagebuilder/rpmbuild/BUILD/awx-1.0.6.43/_buildenv/bin/python
Installing setuptools, pip, wheel...
Complete output from command /home/packagebuilder..._buildenv/bin/python - setuptools pip wheel:
Traceback (most recent call last):
File "<stdin>", line 9, in <module>
File "/usr/lib64/python2.7/pkgutil.py", line 581, in get_data
mod = sys.modules.get(package) or loader.load_module(package)
File "/usr/lib/python2.7/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/__init__.py", line 83, in <module>
File "/usr/lib/python2.7/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/__init__.py", line 42, in <module>
File "/usr/lib/python2.7/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/cmdoptions.py", line 16, in <module>
File "/usr/lib/python2.7/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 15, in <module>
ImportError: cannot import name requests
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "/bin/virtualenv", line 3, in <module>
virtualenv.main()
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 712, in main
symlink=options.symlink)
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 944, in create_environment
download=download,
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 900, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 796, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/packagebuilder..._buildenv/bin/python - setuptools pip wheel failed with error code 1
error: Bad exit status from /var/tmp/rpm-tmp.DB1AqQ (%build)
RPM build errors:
bogus date in %changelog: Thu Nov 21 2017 18:14:55 +0300 Matvey Kruglov <[email protected]> 1.0.1.225-1
bogus date in %changelog: Wed Sep 21 2017 14:44:23 +0300 Matvey Kruglov <[email protected]> 1.0.0.505-1
Bad exit status from /var/tmp/rpm-tmp.DB1AqQ (%build)
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.