Setting ansible


#1

Hi, i try setting ansible in manageiq. I activate service Embedded Ansible and get endless message “The role Embedded Ansible has started activation on server EVM”.

Also, i add credentials for SCM, but is not save, though i see notification “The operation Ansible Automation Inside Credential creation (name=gitlab / tech) on EMS(manager_id=6) completed successfully.”


#2

Hi,
Having the same issue here, i just try make this thing work. The logs from awx_task container end up with an error:

Using /etc/ansible/ansible.cfg as config file
127.0.0.1 | SUCCESS => {
“changed”: false,
“db”: “awx”
}
Operations to perform:
Apply all migrations: auth, conf, contenttypes, djcelery, main, oauth2_provide r, sessions, sites, social_django, sso, taggit
Running migrations:
No migrations to apply.
Your models have changes that are not yet reflected in a migration, and so won 't be applied.
Run ‘manage.py makemigrations’ to make new migrations, and then re-run ‘manage .py migrate’ to apply them.
Traceback (most recent call last):
File “/usr/bin/awx-manage”, line 9, in
load_entry_point(‘awx==1.0.7.2’, ‘console_scripts’, ‘awx-manage’)()
File “/usr/lib/python2.7/site-packages/awx/init.py”, line 116, in manage
execute_from_command_line(sys.argv)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/management /init.py”, line 364, in execute_from_command_line
utility.execute()
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/management /init.py”, line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/management /base.py”, line 283, in run_from_argv
self.execute(*args, **cmd_options)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/management /base.py”, line 330, in execute
output = self.handle(*args, **options)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/management /commands/shell.py”, line 101, in handle
exec(sys.stdin.read())
File “”, line 1, in
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/contrib/auth/mo dels.py”, line 170, in create_superuser
return self._create_user(username, email, password, **extra_fields)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/contrib/auth/mo dels.py”, line 153, in _create_user
user.save(using=self._db)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/contrib/auth/ba se_user.py”, line 80, in save
super(AbstractBaseUser, self).save(*args, **kwargs)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/models/base. py”, line 808, in save
force_update=force_update, update_fields=update_fields)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/models/base. py”, line 838, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, upda te_fields)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/models/base. py”, line 924, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/models/base. py”, line 963, in _do_insert
using=using, raw=raw)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/models/manag er.py”, line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/models/query .py”, line 1076, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/models/sql/c ompiler.py”, line 1112, in execute_sql
cursor.execute(sql, params)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/backends/uti ls.py”, line 64, in execute
return self.cursor.execute(sql, params)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/utils.py”, l ine 94, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/backends/uti ls.py”, line 64, in execute
return self.cursor.execute(sql, params)
django.db.utils.IntegrityError: duplicate key value violates unique constraint " auth_user_username_key"
DETAIL: Key (username)=(admin) already exists.

Anybody any thoughts on this ?
Thank you very much,

Leo


#3

Embedded Ansible needs quite a lot of memory to run, make sure your appliance has 16GB at the very least.


#4

The vm has 24GB of ram alocated, and still get this error in awx_task container:

django.db.utils.IntegrityError: duplicate key value violates unique constraint “auth_user_username_key”
DETAIL: Key (username)=(admin) already exists.

Any thoughts ?

Thanks,

Leo