-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import export #6125
Import export #6125
Conversation
Build failed.
|
Build succeeded.
|
Build failed.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build failed.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build failed.
|
Build succeeded.
|
Build failed.
|
Build succeeded.
|
Build succeeded.
|
even if it isn't an object being directly imported. We might need it for relations of things that are being imported.
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
since certain role grants will not be accepted by the api unless the user or team is part of the correct organization.
Build succeeded.
|
Build failed.
|
Build succeeded.
|
Can we add something under |
@shanemcd How about this? https://github.com/ansible/awx/blob/393369adec482f73e963b73832e7e3ff8b689542/awxkit/awxkit/cli/docs/source/examples.rst#importexport |
Build succeeded.
|
FWIW, I ran this and it worked fine for all the things I tried. |
I can't get the import to match the proper credentials owners, this is why the way that the import links a credential to users/organizations/teams is via the roles. The problem with that is that one can pass an owner to when creating a credential via the api ( Lines 2619 to 2633 in 1321d29
Lines 2666 to 2667 in 1321d29
use for that given credential but checking the credentials owners the following can be seen:
"owners": [
{
"id": 3,
"type": "organization",
"name": "Ansible, Inc",
"description": "Ansible is the simplest way to automate IT.",
"url": "/api/v2/organizations/3/"
},
{
"id": 3,
"type": "team",
"name": "Ansible Users",
"description": "",
"url": "/api/v2/teams/3/"
}
] But exporting the data and importing it does not bring the imported credential to the same state. I still not sure why but the imported data is not the same as the one found previously. This is how it is after the import: "owners": [
{
"id": 2,
"type": "organization",
"name": "Ansible, Inc",
"description": "Ansible is the simplest way to automate IT.",
"url": "/api/v2/organizations/2/"
}
] We may have some other cases and I still trying to sort all of those out. |
regate |
Build succeeded (gate pipeline).
|
SUMMARY
Implement
import
andexport
commands in the new AWX CLI tool.related #5146
ISSUE TYPE
COMPONENT NAME
AWX VERSION