Commit Graph
100 Commits
Author SHA1 Message Date
Shane McDonald e63383bde6 Add PATH to blocked inventory source vars
This used to be skiped because PATH was already present in the env we
constructed for runner.
2021-03-03 18:52:55 -05:00
Shane McDonald c6be92cdf6 Create awx group in container 2021-03-03 18:52:55 -05:00
Shane McDonald 341e1e34e3 Dont zip/unzip private data dir for local jobs 2021-03-03 18:52:55 -05:00
Shane McDonald 70755a395b Make receptorctl easier to use in dev env 2021-03-03 18:52:55 -05:00
Shane McDonald fe9b24cde2 flake8 2021-03-03 18:52:55 -05:00
Shane McDonald 70f7a082bb Minimally functional container group v2 w/ receptor 2021-03-03 18:52:55 -05:00
Shane McDonald 9df29e8fc4 Use official awx-ee by default 2021-03-03 18:52:55 -05:00
Shane McDonald d37cb64aaf Delete some old container group v1 code 2021-03-03 18:52:55 -05:00
Shane McDonald 1d9f01a201 Deleted unused build_params_process_isolation method 2021-03-03 18:52:55 -05:00
Shane McDonald 373bb443aa UnifiedJob#is_containerized -> UnifiedJob#is_container_group_task 2021-03-03 18:52:55 -05:00
Shane McDonald 286b1d4e25 InstanceGroup#is_containerized -> InstanceGroup#is_container_group 2021-03-03 18:52:55 -05:00
Shane McDonald 7b7465f168 Update receptor config to allow for runtime options 2021-03-03 18:52:55 -05:00
Shane McDonald 521d3d5edb Initial EE integration 2021-03-03 18:52:54 -05:00
Shane McDonald acee22435b Update ExecutionEnvironments.jsx with breadcrumb replacement 2021-03-03 18:52:54 -05:00
Shane McDonald 0c497fa682 Get podman-in-docker working under cgroups v2 2021-03-03 18:52:54 -05:00
Shane McDonald ecaa66c13b Fix linter 2021-03-03 18:52:54 -05:00
Shane McDonald ee1d322336 WIP: Module for EEs 2021-03-03 18:52:54 -05:00
Shane McDonald 1f4a45a698 Remove "pull" field from EE mixin
I think this should go on the EE definition itself
2021-03-03 18:52:54 -05:00
Shane McDonald 966bb6fc74 Back to green 2021-03-03 18:52:54 -05:00
Shane McDonald f554f45288 Add license for receptor 2021-03-03 18:52:54 -05:00
Shane McDonald 5c2b2dea0c REVERT ME: Install community.general in image
This is needed for the wait_fors in the launch scripts to work
2021-03-03 18:52:54 -05:00
Shane McDonald fd9373a9ec Use official receptor image 2021-03-03 18:52:54 -05:00
Shane McDonald 82a641e173 Add AWX EE definition 2021-03-03 18:52:54 -05:00
Shane McDonald 490f719fd9 Add new ee container 2021-03-03 18:52:54 -05:00
Shane McDonald 46f5cb6b7a Install receptorctl in awx venv 2021-03-03 18:52:54 -05:00
Shane McDonald efb25b7b9e Use WIP version of collections_requirements.yml
Pulled from ansible-builder/test/data/awx
2021-03-03 18:52:54 -05:00
Shane McDonald 87b13ead12 REVERT ME: Install ansible/devel for now 2021-03-03 18:52:54 -05:00
Shane McDonald 06d7a61ca1 Initial EE integration 2021-03-03 18:52:54 -05:00
Shane McDonald 7ae19a8ba3 Fix tests 2021-02-23 14:50:27 -05:00
Shane McDonald 7394535022 Remove default SECRET_KEY
We should never be using default values for sensitive information
2021-02-23 08:46:42 -05:00
Shane McDonald 70325fd249 Remove nodejs from list of required dependencies to install 2021-02-22 13:44:22 -05:00
Shane McDonald e935b06c39 Fix docker-compose-clean 2021-02-22 13:44:22 -05:00
Shane McDonald 8f9758803e Set compose project dir for backwards compatibility 2021-02-22 13:44:22 -05:00
Shane McDonald 0e2fb02185 Fix test notifications 2021-02-08 17:49:20 -05:00
Shane McDonald 47740f62f4 Add ingress variable to minikube doc 2021-01-26 15:18:37 -05:00
Shane McDonald fb7b36cfbd Add note about needing openshift python lib 2021-01-26 15:14:06 -05:00
Shane McDonald ba8c44f8a6 Add note on how to access AWX in minikube 2021-01-26 15:07:04 -05:00
Shane McDonald bda4db462f Enable inline caching for image builds 2021-01-26 10:24:35 -05:00
Shane McDonald 7c8bd47198 Minikube-based development environment
Works in conjunction with https://github.com/ansible/awx-operator/pull/71

See docs/development/minikube.md
2021-01-25 18:03:17 -05:00
Shane McDonald 54e1a802c5 Dont fail imagee builds because of debuginfo repo problems 2021-01-20 15:34:38 -05:00
Shane McDonald aabb55810b Do not set default admin_password 2021-01-19 11:32:06 -05:00
Shane McDonald 66bdcee854 Address rebase fallout 2020-11-30 11:35:31 -05:00
Shane McDonald e61f79c8c3 Fix tests 2020-11-30 11:35:30 -05:00
Shane McDonald df43221c24 Makefile logic to retry failed galaxy installs 2020-10-15 10:43:48 -04:00
Shane McDonald 8ae328e427 Switch back to built-in kubectl connection plugin
There's a bug in the upstream community.kubernetes plugin. We can open up a
follow-up PR once that has been patched.
2020-08-20 21:42:07 -04:00
Shane McDonald 54e87378d5 Pin pytest-xdist 2020-08-17 20:43:02 -04:00
Shane McDonald 00ea453ccd Fix isolated dev env 2020-08-04 17:25:57 -04:00
Shane McDonald 606296f68b Fix broken offline builds 2020-07-21 18:19:51 -04:00
Shane McDonald e26387cdf3 Remove references to old images 2020-07-01 14:57:48 -04:00
Shane McDonald 7f81f530fa Copy over downstream change
Allows users to specify pg_username that has uppercase letters to restore succesfully
2020-07-01 14:40:38 -04:00
Shane McDonald 43bf2989af Support PVCs that were created w/ WaitForFirstConsumer 2020-06-17 16:40:33 -04:00
Shane McDonald 51b0c51605 Remove local port binding for postgres in dev env
I dont think we need to bind this port at the host level. This will allow us to
run the galaxy_ng dev tooling side-by-side with AWX.
2020-06-17 13:34:55 -04:00
Shane McDonald de82c613fc Make tests pass with current versions of things 2020-06-15 23:13:44 -04:00
Shane McDonald e035eea95a Merge pull request #7188 from mo-saeed/devel
Reshape security context for AWX containers
2020-06-11 15:26:58 -04:00
Shane McDonald 85deb8711c Add queue / instance group registration to heartbeat for k8s installs
There is some history here.

https://github.com/ansible/awx/pull/7190 <- This PR was an attempt at fixing a
bug notting ran into where some jobs on k8s installs would get stuck in Waiting
forever.

The PR mentioned above introduced a bug where there are no instance groups on a
fresh k8s-based install. This is because this process currently happens in the
launch scripts, before the database is up.

With this patch, queue / instance group registration happens in the heartbeat,
right after auto-registering the instance.
2020-06-10 16:55:27 -04:00
Shane McDonald 423df6618d Force containers in k8s to run under root group
Normally containers belong to the 'root' group, but for some reason the
downstream red hat scl redis image only belongs to the 'redis' group by default. This fixes that.
2020-06-10 13:40:15 -04:00
Shane McDonald 2bbbb04499 Bump version to 12.0.0 2020-06-09 12:19:17 -04:00
Shane McDonald 460f31a05d Fix up test that was only failing in dev env
I'm not sure how this one slipped by. The default config is built into the
image, but we were bind-mounting an empty directory on top of it.
2020-06-06 08:58:43 -04:00
Shane McDonald 91dbc2de30 Add queue / instance group registration to heartbeat for k8s installs
There is some history here.

https://github.com/ansible/awx/pull/7190 <- This PR was an attempt at fixing a
bug notting ran into where some jobs on k8s installs would get stuck in Waiting
forever.

The PR mentioned above introduced a bug where there are no instance groups on a
fresh k8s-based install. This is because this process currently happens in the
launch scripts, before the database is up.

With this patch, queue / instance group registration happens in the heartbeat,
right after auto-registering the instance.
2020-06-06 08:58:35 -04:00
Shane McDonald 747fdf38d8 Stop bouncing k8s deployment post-install
We shouldnt need to do this now that RabbitMQ autoclustering is gone.
2020-05-29 13:47:33 -04:00
Shane McDonald cdfc9e05d4 Fix offline RHEL 8 builds
This was causing our EL8 Brew builds to break, because it wasn't being
vendored. This is in fact required for python3. It was being resolved as a
dependency of other things (see list at end of line), so it was being downloaded
on-the-fly since our normal builds have internet access. It only broke when it
wasn't vendored for offline builds.
2020-05-15 17:52:08 -04:00
Shane McDonald c370cb4d93 Get OpenShift / arbitrary user ids working again 2020-05-15 08:32:43 -04:00
Shane McDonald c3ff7ab247 Do not start services when generating swagger docs 2020-05-12 16:35:09 -04:00
Shane McDonald a461df0e4d Fix installer for oc 4.3 2020-05-06 11:40:07 -04:00
Shane McDonald e9cda0c819 Merge pull request #4292 from shanemcd/fix-inventory-plugin-permissions
Fix permissions for vendored collections in dev env
2020-05-04 15:38:17 -04:00
Shane McDonald a98887deb0 Update INVENTORY_COLLECTIONS_ROOT in dev env settings 2020-05-04 14:23:05 -04:00
Shane McDonald b12c0def7d Fix permissions for vendored collections in dev env 2020-05-04 12:44:04 -04:00
Shane McDonald 9be1fd56d2 Remove problematic variable
This is already here: https://github.com/ansible/awx/blob/devel/installer/roles/kubernetes/defaults/main.yml#L58

Was also causing downstream stuff to break.
2020-04-30 11:09:06 -04:00
Shane McDonald 5cad0d243a Dev env: stop and remove containers before removing volume 2020-04-21 15:47:59 -04:00
Shane McDonald 29a582f869 Dockerfile organization 2020-04-15 14:43:59 -04:00
Shane McDonald c0af3c537b Configure rsyslog to listen over a unix domain socket instead of a port
- Add a placeholder rsyslog.conf so it doesn't fail on start
 - Create access restricted directory for unix socket to be created in
 - Create RSyslogHandler to exit early when logging socket doesn't exist
 - Write updated logging settings when dispatcher comes up and restart rsyslog so they  take effect
 - Move rsyslogd to the web container and create rpc supervisor.sock
 - Add env var for supervisor.conf path
2020-04-13 11:43:59 -04:00
Shane McDonald 677a8dae7b Enable tty in dev container
Pretty colors and real-time migration logs
2020-04-08 11:43:30 -04:00
Shane McDonald 7e52f4682c Use a docker volume for the dev env db 2020-04-07 13:14:19 -04:00
Shane McDonald bb319136e4 Merge pull request #6585 from shanemcd/cleanup-cleanup
Tidy up the dev environment a bit
2020-04-06 13:09:39 -04:00
Shane McDonald 6fc815937b Tidy up the dev environment a bit 2020-04-06 11:13:51 -04:00
Shane McDonald d57258878d Update more references to statefulset 2020-04-02 12:44:26 -04:00
Shane McDonald ff0186f72b Delete k8s StatefulSet if it exists (for upgrades) 2020-04-02 12:21:35 -04:00
Shane McDonald 3060505110 Switch from StatefulSet to Deployment
We can do this now that we dropped RabbitMQ.
2020-04-02 09:24:49 -04:00
Shane McDonald 45ce6d794e Initial migration of rabbitmq -> redis for k8s installs 2020-03-18 16:10:17 -04:00
Shane McDonald 3bd7b3b0f8 Merge pull request #5999 from wenottingham/reinventing-the-whl
Remove requirements_setup_requires and related handling.
2020-02-19 12:11:31 -05:00
Shane McDonald 6a29a0898a Pin shellingham
Was seeing:

Collecting shellingham<2.0,>=1.1 (from poetry==0.12.17->-r tower/requirements/requirements_setup_requires.txt (line 12))
  File was already downloaded /ansible-tower/tower/requirements/vendor/shellingham-1.3.2.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib64/python3.6/tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-jixdv7cx/shellingham/setup.py'
2020-02-18 09:32:24 -05:00
Shane McDonald 1833872be9 Drop virtualenv from requirements_setup_requires.txt 2020-02-18 09:17:53 -05:00
Shane McDonald 3f57061509 Add packages missing from base images
Related:

- https://github.com/ansible/awx/issues/5770
- https://github.com/ansible/awx/issues/5724
2020-02-07 13:06:42 -05:00
Shane McDonald 3977ec42e1 Add kubectl / oc-specific API server version logic 2020-01-15 17:12:53 -05:00
Shane McDonald 862fafab86 Merge pull request #5637 from ansible/9-1-1
Bump version to 9.1.1
2020-01-13 18:48:14 -05:00
Shane McDonald b4a7cdbb60 Pin setuptools in requirements_setup_requires.txt
This is a file we use downstream to ensure that things under our dependencies'
`setup_requires` are available when we build offline.
2020-01-13 14:01:37 -05:00
Shane McDonald 6da5205d73 Bump version to 9.1.1 2020-01-13 10:30:08 -05:00
Shane McDonald f7ba706ec2 Merge pull request #5635 from shanemcd/ch-ch-ch-changelog
Introduce CHANGELOG.md
2020-01-10 16:26:40 -05:00
Shane McDonald 5455fe3c10 Introduce CHANGELOG.md 2020-01-10 16:08:17 -05:00
Shane McDonald 8ac8bc8df2 Merge pull request #5609 from shanemcd/downstream-k8s-changes
Pull in downstream k8s installer changes
2020-01-10 13:56:49 -05:00
Shane McDonald d3b7829e69 Pull in downstream k8s installer changes 2020-01-08 11:04:12 -05:00
Shane McDonald cf55b6a0ba Bootstrap venv creation with flit and poetry
this is in addition to pip and setuptools installs

add in --ignore-installed and --no-build-isolation flags
reasoning is that we are not installing needed packages
for building
2020-01-07 17:14:33 -06:00
Shane McDonald bd8643d599 Set default value for create_preload_data in image_build role
This caused our AWX release workflow to blow up
2019-12-17 13:40:37 -05:00
Shane McDonald b23856f126 Bump VERSION to 9.1.0 2019-12-17 11:38:32 -05:00
Shane McDonald c1abc56753 Merge remote-tracking branch 'downstream/release_3.6.2' into downstream-changes 2019-12-16 11:13:10 -05:00
Shane McDonald 0b4ae74698 Remove some unused stuff from k8s secret 2019-12-12 19:36:56 -05:00
Shane McDonald c439a1ec8f Fix permissions on projects directory by pre-creating it
This broke after
https://github.com/ansible/awx/commit/f78c9f357dc9cce2d446fb2eddfc05d6cc3c0fff
but people seem to like this functionality so instead of reverting it we can do this.
2019-12-04 17:39:38 -05:00
Shane McDonald 68a6984fcd Merge pull request #5422 from shanemcd/oc-ugh
Generic method of detecting k8s api version
2019-12-02 12:49:40 -05:00
Shane McDonald a90e0e8834 Merge pull request #5425 from shanemcd/memcached-hostname
Fix memcached_hostname bug in k8s installs
2019-12-02 12:45:04 -05:00
Shane McDonald 8ab6a79b37 Fix memcached_hostname bug in k8s installs
Fallout from https://github.com/ansible/awx/pull/5340.
2019-12-02 12:36:57 -05:00