Commit Graph

808 Commits

Author SHA1 Message Date
Christian M. Adams 2239c8d6e5 Add full path to data migration example in docs 2021-02-23 09:07:37 -05:00
Christian M. Adams ec40f62c4d Mount SECRET_KEY into dev env & document it 2021-02-22 18:46:47 -05:00
Christian M. Adams b583aeb646 Pass docker project_name whenever docker-compose is used
- Also, do no explicitly name containers
2021-02-22 17:05:51 -05:00
Christian M. Adams af6af052d0 Remove unneeded roles from the installer directory 2021-02-22 15:37:24 -05:00
Christian M. Adams 9672e72834 Consolidate the Local Docker installer and the dev env
- removes local_docker installer and points community users to our development environment (make docker-compose)
  - provides a migration path from Local Docker Compose installations --> the dev environment
  - the dev env can now be configured to use an external database
  - consolidated the Local Docker and dev env docker-compose.yml files into one template file, used by the dockerfile role
  - added a 'sources' role to template out config files
  - the postgres data dir is no longer a bind-mount, it is a docker volume
  - the redis socket is not longer a bind-mount, it is a docker volume
  - the local_settings.py.docker-compose file no longer needs to be copied over in the dev env
  - Create tmp rsyslog.conf in rsyslog volume to avoid cross-linking. Previously, the tmp code-generated rsyslog.conf was being written to /tmp (by default).  As a result, we were attempting to shutil.move() across volumes.
  - move k8s image build and push roles under tools/ansible
  - See tools/docker-compose/README.md for usage of these changes
2021-02-22 13:44:19 -05:00
mcharanrm 412015b7bd tools/scripts/firehose.py: capture all job ids, attach events to all jobs ids and distribute the events 2021-02-19 19:10:34 +05:30
Christian M. Adams 36466b9694 Upgrade PostgreSQL from 10 to 12 2021-01-08 10:54:00 -05:00
Shane McDonald 6f9862c72e Sweeping replace of old dev venv paths 2020-12-26 21:29:22 -05:00
Ryan Petrello 3d5f28f790 Introduce a strict Content-Security-Policy 2020-12-08 13:25:46 -05:00
Ryan Petrello a1ddbd760d report callback receiver status in the sosreport 2020-09-18 10:49:50 -04:00
Alan Rominger 05fb47dece Remove out of date collection testing tools 2020-09-15 22:59:12 -04:00
Chris Meyers f32716a0f1 remove instance_filter 2020-09-01 12:50:56 -04:00
softwarefactory-project-zuul[bot] 57732d4630 Merge pull request #7824 from shanemcd/fix-isolated-dev-env
Fix isolated dev env

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-08-04 23:30:56 +00:00
Shane McDonald 00ea453ccd Fix isolated dev env 2020-08-04 17:25:57 -04:00
Bill Nottingham bd6cac966a Create marginally more realistic event data with firehose 2020-08-03 20:57:10 -04:00
Jake McDermott ddadf332cc Create static dir during bootstrap
Co-authored-by: nixocio <nixocio@gmail.com>
2020-06-25 08:56:07 -04:00
Rebeccah 118e1b8df1 removing memchache mentions in comments
remove memcached folder as it is no longer needed, also address a couple grammatical errors
2020-06-18 15:52:59 -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
Ryan Petrello 0ad78874ce remove TCP ports for redis (it only listens on a unix domain socket) 2020-06-09 12:29:33 -04:00
Rebeccah d7f9e66710 added changelog entry 2020-06-09 11:09:04 -04:00
Rebeccah d2bbe7aa1a remove memcache from everywhere and add djagno-redis to cover it 2020-06-09 10:24:23 -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
softwarefactory-project-zuul[bot] 4a5edf7b88 Merge pull request #7184 from wenottingham/a-preview-of-whats-to-come
Remove dev env futzing of supervisord.conf permissions

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-06-04 21:47:02 +00:00
Bill Nottingham 559d917184 Make supervisor more consistent
Configs go in /etc, sockets in /var/run/supervisor for all invocations.
2020-06-02 19:51:16 -04:00
Bill Nottingham 131f5ff018 Remove dev env futzing of supervisord.conf permissions
If we just link it into the dev env, we don't need to copy it at
startup, and we don't need write permissions on it.
2020-05-28 13:12:57 -04:00
Elijah DeLee efa5a95cf1 fix flake8 2020-05-28 13:00:37 -04:00
Elijah DeLee 90ca2fd59b be a bit more respectful of event request
minimum events made now is 10,000, used to be 10,000*number of cores.

could dig deeper but this is better for debugging changes to script
2020-05-27 19:34:12 -04:00
Elijah DeLee 5d5edf6535 create timestamp outside loop
this may be expensive
2020-05-27 18:43:26 -04:00
Elijah DeLee a599afa81c Also apply time delta to job
This way they all happened on the same day
2020-05-27 18:29:11 -04:00
Elijah DeLee 1835787772 add option to set hour delta on firehose 2020-05-27 17:56:07 -04:00
Elijah DeLee 00060c9572 make time delta for firehose events configurable
This was hardcoded to back in january, which make it of limited use testing
automation analytics behavior when there are many events, we need it to be sometime in the past two months.

Will take another pass to do the hours delta
2020-05-27 17:47:38 -04:00
Bill Nottingham 63494c94b7 Fix rsyslog in the dev env by using a local dir volume
We broke this in the image refactor.
2020-05-19 17:00:09 -04:00
Christian Adams 7e0ef6dd7b Remove unneeded dockerfile-sync 2020-05-15 17:43:07 -04:00
Ryan Petrello 54178a1982 stop pre-generating awx.egg-info 2020-05-15 11:47:53 -04:00
Bill Nottingham d5817fd87a Remove repo files no longer used in build process 2020-05-14 15:02:32 -04:00
Bill Nottingham 8b51e8eb82 Stage rsyslog.conf from existing version so we don't have two copies. 2020-05-14 15:02:32 -04:00
Bill Nottingham 66245d3094 Reorganize both dev and prod container builds
Use only one (templated) docker file for both builds.

Move to two-stage container builds in order to save space in the
final image.
2020-05-14 15:02:32 -04:00
Seth Foster 4da0e0dd80 Vendor collections for isolated jobs to work in ansible 2.10
kubectl and synchronize are now part of community.kubernetes
and ansible.posix collections, respectively. This change installs
these collections to a local directory to be used in inventory and
isolated management playbooks.

awx issue #6930
2020-05-13 10:41:01 -04:00
Bill Nottingham caa4e90fa0 Remove extraneous re-install of rsyslog 2020-05-11 22:24:16 -04:00
Christian Adams d0a7f7f4e9 Merge pull request #4297 from rooftopcellist/rsyslog_term
Rsyslog config race condition between saving and writing the file
2020-05-06 13:41:13 -04:00
Alan Rominger 961c5589c1 Refresh inventory collection requirements (#4296)
* Refresh inventory collection requirements

Fix bug specific to Docker development where the right folder of
  install was not specified in the setting

Add initial rhv/ovirt version for consistency

* Update unit test to ovirt name change
2020-05-05 18:22:00 -04:00
Christian Adams c565130b35 TERM rsyslogd instead of KILL for more graceful shutdown 2020-05-05 15:38:57 -04:00
Shane McDonald b12c0def7d Fix permissions for vendored collections in dev env 2020-05-04 12:44:04 -04:00
chris meyers 960aa9df16 add redis logs to sosreport
* rhel8 /var/log/redis/redis.log
* rhel7 scl location
2020-04-28 09:12:42 -04:00
Christian Adams c07b6285da Increase stopwait time for rsyslogd service 2020-04-27 14:33:46 -04:00
Graham Mainwaring d55b223aae Use sysconfig file to get the list of services 2020-04-24 14:08:24 -04:00
Graham Mainwaring e36ffa5764 Return more status information from ansible-tower-service status and error check commands better 2020-04-24 11:37:16 -04:00
softwarefactory-project-zuul[bot] c0e07198cf Merge pull request #6283 from AlanCoding/vendoring_collections
Use vendored collections for inventory imports

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-04-23 18:54:50 +00:00
AlanCoding ab703e2a32 Add feature docs and document development tooling 2020-04-22 21:41:52 -04:00
Ryan Petrello cec7cb393d record redis config in the sosreport 2020-04-20 17:03:50 -04:00