softwarefactory-project-zuul[bot]
c9ec0d31f1
Merge pull request #9498 from ryanpetrello/bye-bye-virtualenv
...
remove custom_virtualenv support from the AWX collection and docs
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2021-03-06 14:12:32 +00:00
Ryan Petrello
4c60999161
remove custom_virtualenv support from the AWX collection and docs
2021-03-05 15:38:46 -05:00
softwarefactory-project-zuul[bot]
18ba40506f
Merge pull request #9480 from wenottingham/burn-it
...
Remove ansible venvs & collection infrastructure.
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2021-03-05 19:29:05 +00:00
softwarefactory-project-zuul[bot]
2ae82b9302
Merge pull request #9452 from ryanpetrello/rsyslogd-last-ditch
...
make rsyslogd socket emit failures a bit less verbose (but still write to stderr)
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2021-03-05 19:14:33 +00:00
Bill Nottingham
0505e38071
Remove ansible venvs & collection infrastructure.
2021-03-04 13:06:06 -05:00
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
Shane McDonald
befc658042
Wire up --pull option for EEs
2021-03-03 18:52:55 -05:00
beeankha
60827143bb
Bump up unified_jobs_table version for new column addition
2021-03-03 18:52:55 -05:00
beeankha
5b17ab6873
Enable EE collections info to be loaded as valid JSON vs stringified JSON
2021-03-03 18:52:55 -05:00
beeankha
0e80f663ab
Add installed_collections column to unified job query
2021-03-03 18:52:55 -05:00
beeankha
cb95de0862
Assign entire file path to variable
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
Jeff Bradberry
b417fc3803
Turn off permissions check bypassing for admins when hitting the execution environment list and detail views.
2021-03-03 18:52:55 -05:00
Jeff Bradberry
5b2adc89cf
Make the managed_by_tower field read-only for EEs (similar to how we deal with it not being settable for Credentials) and add permissions checking for Org EE Admins.
...
can_add: gets an explicit role to check against, `'execution_environment_admin_role'`
can_change: leverages `self.check_related()` for the case where the Org is not changing, but also adds an explicit check for the EE Admin Role when the Org is changing to an explicit different Org.
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
eaa74b40c1
add org admins as able to control EEs even if they don't have the ee_admin role for the specific ee and prevent managed_by_tower EEs from being edited/deleted
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
Shane McDonald
05ef51f710
Add migration to reset custom pod specs
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
6a7520d10f
Handle quota exceeded in Container Groups v2
2021-03-03 18:52:55 -05:00
Shane McDonald
9f39bab2b8
Quick fix for jobs failing in dev environment / VMs
...
The other alternative here is to go all the way with
https://github.com/ansible/ansible-runner/pull/617 , which is proving to be
difficult if not impossible.
2021-03-03 18:52:55 -05:00
Shane McDonald
428f8addf8
Create default EE as a part of create_preload_data
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
Shane McDonald
86363e260e
Provide new default pod defintion in CG metadata ( #9181 )
2021-03-03 18:52:55 -05:00
Alan Rominger
8f66793276
Assure that unit_id is always defined ( #9180 )
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
Alan Rominger
a435843f23
Exception handling to always release work units
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
b05b6b2e03
Fix minor syntax error failing AdHocCommands
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
341e1e34e3
Dont zip/unzip private data dir for local jobs
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
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
e453afa064
FOLLOW UP ON THIS: Fix fact_cache directory location
...
The part where we pass in the runner params to the processor phase is
legit. Need to investigate why the fact_cache directory is no longer nested
under job.id.
2021-03-03 18:52:55 -05:00
Shane McDonald
cf96275f1b
Pull awx -> receptor job code into its own class
2021-03-03 18:52:54 -05:00
Shane McDonald
be8168b555
Surface errors when launching jobs through Receptor
...
This will raise errors such as:
exec: "ansible-runner": executable file not found in $PATH
2021-03-03 18:52:54 -05:00
Shane McDonald
fd92ba0c0b
Actually cancel things
2021-03-03 18:52:54 -05:00
Shane McDonald
f1df4c54f8
Begin integrating receptor
2021-03-03 18:52:54 -05:00
Shane McDonald
521d3d5edb
Initial EE integration
2021-03-03 18:52:54 -05:00
Alan Rominger
90b9c7861c
Allow jobs to run in the base ansible-runner image ( #8949 )
2021-03-03 18:52:54 -05:00
Alan Rominger
eb5bf599e3
Fix raw archive project updates
...
Several squashed commits
Fix git bug introduced by setting remote tmp in project path
change shebang back to py3 again
Revert shebang change
2021-03-03 18:52:54 -05:00