Rebeccah
4d2fcfd8c1
add a functional test for creating an EE, remove bum copy function because it's not needed, copy works from the base class
...
moved AWXKit pull additions to separate PR and made some changes that were causing linting errors in tests and add copy to show_capabilities for the ee serializer
2021-03-03 18:52:55 -05:00
Rebeccah
0921de5d2b
adding needed url endpoint for copy functionality and the beginning of some testing that can be fleshed out more fully in later work
2021-03-03 18:52:55 -05:00
beeankha
86a3a79be4
Enable utilized EE Collections name and version info to be detected
2021-03-03 18:52:55 -05:00
Rebeccah
41fb21911e
add execution_environment_admin_role to the an organizations read role, which access.py uses for determining access to reading an ee within an organization,
...
add migration file for execution_env_admin role addition to read_roles within an organization,
and set check related to mandatory
2021-03-03 18:52:55 -05:00
Rebeccah
b1361c8fe2
edit original migration file, add blank string as acceptable to model
2021-03-03 18:52:55 -05:00
Rebeccah
20ee73ce73
default pull options for container images to None, also adding pull options to awxkit
2021-03-03 18:52:55 -05:00
Rebeccah
4b40cb3abb
changed the field name from 'container_options' to simply 'pull'
2021-03-03 18:52:55 -05:00
Rebeccah
31e7e10f30
migration for container options for EE model
...
Co-authored-by: Shane McDonald <me@shanemcd.com >
2021-03-03 18:52:55 -05:00
Rebeccah
92f0af684c
execution model pull container options added
2021-03-03 18:52:55 -05:00
Shane McDonald
57b317d440
Get system jobs working under new deployment model ( #9221 )
2021-03-03 18:52:55 -05:00
Alan Rominger
c7e0e30f93
Make sure project updates run in default EE ( #9172 )
...
* Make sure project updates run in default EE
* Remove project execution_environment field from collection
2021-03-03 18:52:55 -05:00
Ryan Petrello
f850f8d3e0
introduce a new global flag for denoating K8S-based deployments
...
- In K8S-based installs, only container groups are intended to be used
for playbook execution (JTs, adhoc, inventory updates), so in this
scenario, other job types have a task impact of zero.
- In K8S-based installs, traditional instances have *zero* capacity
(because they're only members of the control plane where services
- http/s, local control plane execution - run)
- This commit also includes some changes that allow for the task manager
to launch tasks with task_impact=0 on instances that have capacity=0
(previously, an instance with zero capacity would never be selected
as the "execution node"
This means that when IS_K8S=True, any Job Template associated with an
Instance Group will never actually go from pending -> running (because
there's no capacity - all playbooks must run through Container Groups).
For an improved ux, our intention is to introduce logic into the
operator install process such that the *default* group that's created at
install time is a *Container Group* that's configured to point at the
K8S cluster where awx itself is deployed.
2021-03-03 18:52:55 -05:00
Alan Rominger
c29d476919
Fix obvious code error with foreman inventory
2021-03-03 18:52:55 -05:00
Alan Rominger
3f76499c56
Use the fully qualified inventory plugin name only for foreman
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
Alan Rominger
49bdadcdbf
Fix yet another host vs container path bug
2021-03-03 18:52:54 -05:00
Jeff Bradberry
9964ba7c9a
Improve the behavior of EE resolution for ad hoc commands
...
- call resolve_execution_environment during AdHocCommand.save()
- wrap the fallback call of the resolver in tasks.py in disable_activity_stream()
2021-03-03 18:52:54 -05:00
Jeff Bradberry
c74d60f3f3
Make sure that the new credential type is in the choices list
2021-03-03 18:52:54 -05:00
Jeff Bradberry
4993a9e6ec
Move the resolve_execution_environment method to the mixin class
...
so that it can be used with AdHocCommands as well.
2021-03-03 18:52:54 -05:00
Jeff Bradberry
6d935f740c
Fill in the new execution environment collection module
...
as well as changes to other ones that need to be able to attach EEs.
2021-03-03 18:52:54 -05:00
Jeff Bradberry
c1133b3f6d
Add in more model changes around execution environments
...
- a new unique name field to EE
- a new configure-Tower-in-Tower setting DEFAULT_EXECUTION_ENVIRONMENT
- an Org-level execution_environment_admin_role
- a default_environment field on Project
- a new Container Registry credential type
- order EEs by reverse of the created timestamp
- a method to resolve which EE to use on jobs
2021-03-03 18:52:54 -05:00
Shane McDonald
14a8e3da5e
WIP: containerized inventory updates. Thanks ALAN!!
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
Alan Rominger
9d806ddb82
Initial minimal hooking up of JT EEs to jobs
2021-03-03 18:52:54 -05:00
Alan Rominger
64f45da4d2
Fix pathing issue for credential file references
2021-03-03 18:52:54 -05:00
Alan Rominger
73418e41f3
Fix pathing issue with custom credentials
...
also fix some minor flake8 issues
2021-03-03 18:52:54 -05:00
Jeff Bradberry
f9741b619c
Make changes to support capture by the activity stream
...
Including exposing a new API view for a particular EE's activity
stream objects.
2021-03-03 18:52:54 -05:00
Jeff Bradberry
61cbd34586
Add in the basic list and detail api views
2021-03-03 18:52:53 -05:00
Jeff Bradberry
41613ff544
Add a new ExecutionEnvironment model
2021-03-03 18:52:53 -05:00
softwarefactory-project-zuul[bot]
805ba2568c
Merge pull request #9322 from jainnikhil30/workflow_launch_type_metavar
...
add workflow_job_launch_type in metavars
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2021-02-22 17:27:32 +00:00
softwarefactory-project-zuul[bot]
182a7e8e5c
Merge pull request #9251 from Saurabh-Thakre/Saurabh-Thakre-patch-1
...
Fixed the Customized Notification returning incorrect values for host_status_counts
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2021-02-19 16:07:30 +00:00
Saurabh Thakre
6aca9d80bb
Updated notifications.py
...
Fixed the customized notification returning incorrect values for host_status_counts
Update notifications.py
Removed if condition
Added exception handling
A nitpick
2021-02-18 12:24:14 +00:00
Nikhil Jain
1468e5908a
add workflow_job_launch_type in metavars
2021-02-16 18:19:37 +05:30
Bill Nottingham
e93518a030
Fix Openstack credential region implementation.
...
The injector wasn't using the same variable name as the model.
2021-02-12 17:44:44 -05:00
softwarefactory-project-zuul[bot]
3d54ab9a0f
Merge pull request #8897 from wenottingham/right-on-schedule
...
Add schedule info from summary fields to allowed notification content.
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2021-02-09 22:41:13 +00:00
Jim Ladd
5b3bb1e81d
set schedule.next_run to datetime.datetime
...
* Update JobNotificationMixin.context_stub
* .. TestJobNotificationMixin.CONTEXT_STRUCTURE
2021-02-05 13:56:56 -08:00
Bill Nottingham
7b757f17a9
Add schedule info from summary fields to allowed notification content.
2021-02-05 13:56:56 -08:00
Seth Foster
41d0a2f7b9
Add job lifecycle logging
...
Various points (e.g. created, running, processing events), are
structured into json format and output to /var/log/tower/job_lifecycle.log
As part of this work, the DependencyGraph is reworked to return
which job object is doing the blocking, rather than a boolean.
2021-02-04 12:25:51 -05:00
djj106
c4c1b9799e
fix workflow url
...
Signed-off-by: djj106 <djj106@gmail.com >
2021-01-26 08:48:08 -06:00
Ryan Petrello
16848e9154
stop detecting the need for event data migration
...
related: https://github.com/ansible/awx/issues/6010
as noted in the comment removed from this diff, it's probably time
to stop calling this function on every dispatcher service restart
2021-01-22 09:22:00 -05:00
softwarefactory-project-zuul[bot]
7daa1fe786
Merge pull request #8860 from CUB-OIT-PE/jinja-chain-undefined
...
Enabled jinja2.ChainableUndefined for custom webhook notifications
Reviewed-by: Ryan Petrello
https://github.com/ryanpetrello
2021-01-12 20:35:46 +00:00
VGU
8153d60a5f
Rollback to origin file
2020-12-13 20:15:12 +01:00
VGU
e35f1afd57
Fix lint
2020-12-13 19:05:29 +01:00
VGU
bfb00aecbe
Add project_region_name input
2020-12-13 18:57:13 +01:00
Will Haines
fc2a2e538f
Enabled jinja2.ChainableUndefined for custom webhook notifications
...
Signed-off-by: Will Haines <william.haines@colorado.edu >
2020-12-10 18:06:59 -07:00
Alan Rominger
44e6e9344b
Remove mercurial support
2020-12-01 14:06:34 -05:00
Seth Foster
a66eca82c2
can delete approval node
2020-11-24 12:27:42 -05:00
Ryan Petrello
d653c05da8
Merge branch 'downstream' into devel
2020-11-06 13:22:26 -05:00