Commit Graph
100 Commits
Author SHA1 Message Date
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
Shane McDonald e68d576fd2 Generic method of detecting k8s api version
Related: https://github.com/ansible/awx/issues/5388
2019-12-02 11:45:20 -05:00
Shane McDonald dcbb2813b5 Pull in downstream changes to k8s installer 2019-12-02 08:12:51 -05:00
Shane McDonald 15bcea7301 Fix VERSION reported in dev container 2019-11-25 12:56:49 -05:00
Shane McDonald ce8c0066d0 Fix downstream tests
I backported how we do the VERSION detection in 3.5.something. This should
already be fixed upstream.
2019-11-25 12:55:18 -05:00
Shane McDonald 24abc1462f Merge pull request #3985 from shanemcd/fix-cache
Fix Docker build caching
2019-11-25 11:41:33 -05:00
Shane McDonald 12363ae175 Fix Docker build caching
The flow will need to be:

- Pre-pull image you want to use
- Re-tag as image:$(COMPOSE_TAG)
- COMPOSE_TAG=mytag make docker-compose-build
2019-11-25 11:32:41 -05:00
Shane McDonald 31650bb0bd Remove usage of idle_timeout when checking status of isolated / containerized jobs 2019-11-25 10:31:33 -05:00
Shane McDonald db2316b791 Remove usage of idle_timeout when checking status of isolated / containerized jobs 2019-11-22 11:41:00 -05:00
Shane McDonald 094eef635d Fix typo 2019-11-15 14:17:08 -05:00
Shane McDonald 56bb82e303 Fix ordering 2019-11-15 14:14:54 -05:00
Shane McDonald 0290dd3246 Regenerate table of contents 2019-11-15 14:11:10 -05:00
Shane McDonald de8c46cab0 Remove obsolote docker-compose instructions 2019-11-15 14:04:05 -05:00
Shane McDonald 9028a48ab2 Add a note on upgrading 2019-11-15 14:03:46 -05:00
Shane McDonald 709fa74070 Fix verbiage in INSTALL.md 2019-11-15 14:01:28 -05:00
Shane McDonald 1d6f116687 Bump RabbitMQ version in k8s/openshift installs
See https://github.com/ansible/awx-rabbitmq/pull/13
2019-11-14 08:01:35 -05:00
Shane McDonald f66f24eb83 Merge pull request #4107 from gizero/docker-compose-fix-create_preload_data
ensure "create_preload_data" is honored in docker-compose deployments
2019-11-12 11:44:15 -05:00
Shane McDonald eaac54040c Merge pull request #5192 from shanemcd/local-projects
Mount local projects directory inside of dev container.
2019-11-07 07:35:45 -05:00
Shane McDonald 763ac25b2e Merge pull request #5253 from shanemcd/stop-requiring-pg-admin-when-we-dont-need-it
Dont require pg_admin_password unless we're using it.
2019-11-06 14:20:55 -05:00
Shane McDonald 922723cf39 Merge pull request #5220 from JensPfeifle/patch-1
Update required Ansible version to 2.8+
2019-11-06 11:36:37 -05:00
Shane McDonald 24da2b78b8 Dont require pg_admin_password unless we're using it. 2019-11-05 15:26:48 -05:00
Shane McDonald 8a4c85e473 Merge pull request #5231 from shanemcd/bump-version-9.0.1
Bump version to 9.0.1
2019-11-04 11:23:13 -05:00
Shane McDonald 09d883f94a Bump version to 9.0.1 2019-11-04 11:20:42 -05:00
Shane McDonald 9ef57ec510 Merge pull request #5227 from shanemcd/more-downstream-k8s-fallout-sorry-folks
More downstream k8s fallout, sorry folks
2019-11-04 11:19:15 -05:00
Shane McDonald 5be006f9d3 Merge pull request #5229 from shanemcd/setuid-bwrap
Set setuid bit on bwrap
2019-11-04 11:18:57 -05:00
Shane McDonald 089bafa5d4 Set setuid bit on bwrap
Related: https://github.com/ansible/awx/issues/5224
2019-11-04 11:10:09 -05:00
Shane McDonald fa278f83ad Fix k8s installs using external db 2019-11-04 09:35:11 -05:00
Shane McDonald 0d68ca8f14 Allow for overriding container groups image from k8s installer 2019-11-04 09:35:03 -05:00
Shane McDonald 713079bd70 Merge pull request #5218 from shanemcd/fix-k8s-nginx
Fix broken k8s installs
2019-11-04 08:57:48 -05:00
Shane McDonald d3b137fbc4 Fix broken k8s installs
Related: https://github.com/ansible/awx/issues/5205

The following commit introduced this bug:
https://github.com/ansible/awx/commit/712b07c136ea31a14c035378a439c9b7a6712054#diff-a2ef2d6347894a92a6b882e3793fb06c
2019-11-03 16:03:19 -05:00
Shane McDonald 69597c5654 Sync Dockerfiles 2019-11-01 08:38:37 -04:00
Shane McDonald fa61aef194 Install missing locales in dev container image. 2019-11-01 08:29:11 -04:00
Shane McDonald 4d4ae84e32 Fix docker cache
This was causing the cache to miss on some docker versions, in addition to
throwing a warning that says it will break soon.
2019-10-31 16:57:17 -04:00
Shane McDonald d645d0894a Merge pull request #5196 from ansible/9.0.0-for-real
Bump VERSION to 9.0.0
2019-10-31 13:48:01 -04:00
Shane McDonald 4575cae458 Bump VERSION to 9.0.0 2019-10-31 13:39:42 -04:00
Shane McDonald f78c9f357d Mount local projects directory inside of dev container.
Yesterday I noticed that we have awx/projects in our .gitignore. I am assuming
this pre-dates our containerized development environment. With this commit, any
project under awx/projects/ will be made available in the dev environment for
selection when creating a Manual project. This comes in super handy when
testing changes to playbooks locally.
2019-10-31 08:01:54 -04:00
Shane McDonald 288fea8960 Deleting unused unit-tests directory
Same as https://github.com/ansible/awx/pull/5179 except I wont accidentally
close it.
2019-10-30 17:35:19 -04:00
Shane McDonald c019d873b9 Update AWX images to CentOS 8 2019-10-30 16:43:23 -04:00
Shane McDonald 28994d4b0b Install oc and kubectl in upstream task image 2019-10-30 12:15:51 -04:00
Shane McDonald 6c877a15e3 Update dev env to centos:8 2019-10-29 17:09:45 -04:00
Shane McDonald dc89479b4c Merge pull request #3901 from ryanpetrello/syntax
fix a syntax error
2019-10-25 10:21:30 -04:00
Shane McDonald 8356327c2b Downstream k8s installer changes 2019-10-22 15:57:40 -04:00
Shane McDonald 8f75382b81 Implement retry logic for container group pod launches 2019-10-10 15:53:56 -04:00
Shane McDonald b93164e1ed Prevent pods from failing if the reason is because of a resource quota
Signed-off-by: Shane McDonald <me@shanemcd.com>
2019-10-10 15:53:50 -04:00
Shane McDonald 59413e0a8f Change default pod spec in OPTIONS request to json 2019-10-04 13:21:28 -04:00
Shane McDonald aab1cd68b0 Fix InstanceGroup summary fields 2019-10-04 13:21:24 -04:00
Shane McDonald 92cc9a9213 Create separate Make target for cleaning API-related artifacts
My workflow for running tests is now:

```
$ docker exec -ti tools_awx_1 make clean-api awx-link test
```
2019-10-04 13:21:23 -04:00
Shane McDonald b9c675e3a2 API documentation for container groups 2019-10-04 13:21:23 -04:00
Shane McDonald bd5003ca98 Task manager / scheduler Kubernetes integration 2019-10-04 13:21:21 -04:00
Shane McDonald a9059edc65 Allow associating a credential with an instance group 2019-10-04 12:54:31 -04:00
Shane McDonald 7850e3a835 Ignore unison and emacs temporary files 2019-10-04 12:54:31 -04:00
Shane McDonald 22441d280e Fix pg password in cluster dev env 2019-09-17 08:45:19 -04:00
Shane McDonald 3b89e894db Stop using PG SCL in dev env 2019-09-16 11:41:13 -04:00
Shane McDonald fe0db4e329 Consolidate scl enable calls 2019-09-12 15:43:09 -04:00
Shane McDonald 3c0a0e1f4a Fix arg parsing in entrypoint 2019-09-12 15:12:04 -04:00
Shane McDonald b2e8e3cc3d Add scl enable back to start_tests script
I think we need to specify the entrypoint in the pod definition too
2019-09-12 14:03:08 -04:00
Shane McDonald 804ec0dde9 Handle SCL enable in one place 2019-09-12 13:54:32 -04:00
Shane McDonald e7bb5ac3e4 Fix tests 2019-09-12 13:41:41 -04:00
Shane McDonald 036567817e Implement local docker pg upgrade 2019-09-12 12:52:43 -04:00
Shane McDonald 18a316646b Fix typo in migration filename 2019-08-16 10:29:34 -04:00
Shane McDonald 2d7420317b Bump VERSION to 6.1.0 2019-07-18 13:08:52 -04:00
Shane McDonald 7936dff188 Change the devel containers to be based on Fedora instead of CentOS
since we need a more recent version of sqlite.
2019-07-12 15:11:22 -04:00