# Import Objetcs with tower-cli from AWX version 2.1.2 to version 7.0.0

**URL:** <https://forum.ansible.com/t/import-objetcs-with-tower-cli-from-awx-version-2-1-2-to-version-7-0-0/31479>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 17, 2019, 1:47pm UTC](https://forum.ansible.com/t/import-objetcs-with-tower-cli-from-awx-version-2-1-2-to-version-7-0-0/31479 "2019-10-17T13:47:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alberto\_Jimenez\_Loza](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Alberto\_Jimenez\_Loza](https://forum.ansible.com/u/Alberto_Jimenez_Loza)\
**Post date:** [October 17, 2019, 1:47pm UTC](https://forum.ansible.com/t/import-objetcs-with-tower-cli-from-awx-version-2-1-2-to-version-7-0-0/31479/1 "2019-10-17T13:47:34Z")

</div>

I have been worked with AWX in production along a year with the version 2.1.2.

When I migrated from 1.0.6 to 2.1.2 version, I used tower-cli with receive and send options.

Now I have tried the same procedure to migrate the objects.

When I have imported the credential, projects, teams I don´t have any problem, but when I trie to import the job\_template it doesn´t go ok.

It appears allways the next error message:

**Option credential is not a valid option for job\_template xxxxx**

Is it possible import a object of AWX 2.1.2 version to AWX 7.0.0?  
What is the procedure?

---

<div class="post-metadata">

**Author:** ![Jesse\_Keating1](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@Jesse\_Keating1](https://forum.ansible.com/u/Jesse_Keating1)\
**Post date:** [October 17, 2019, 1:57pm UTC](https://forum.ansible.com/t/import-objetcs-with-tower-cli-from-awx-version-2-1-2-to-version-7-0-0/31479/2 "2019-10-17T13:57:47Z")

</div>

This is a known bug in tower\_cli. It will not likely be fixed there though, and instead usage will shift over to awx cli, powered by awxkit.

---

<div class="post-metadata">

**Author:** ![Alberto\_Jimenez\_Loza](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Alberto\_Jimenez\_Loza](https://forum.ansible.com/u/Alberto_Jimenez_Loza)\
**Post date:** [October 17, 2019, 3:04pm UTC](https://forum.ansible.com/t/import-objetcs-with-tower-cli-from-awx-version-2-1-2-to-version-7-0-0/31479/3 "2019-10-17T15:04:19Z")

</div>

I installed awx from github [https://github.com/ansible/awx/tree/devel/awxkit/awxkit/cli/docs](https://github.com/ansible/awx/tree/devel/awxkit/awxkit/cli/docs) with this command:

```auto
pip install "https://github.com/ansible/awx/archive/7.0.0.tar.gz#egg=awxkit&subdirectory=awxkit"
awx --help

```

And It works.

Is there any option as tower-cli receive/send in awx-cli?

Is there any procedure to migrate data from AWX2.1.2 to 7.0.0?

resource  
login authenticate and retrieve an OAuth2 token  
config print current configuration values  
job\_templates (job\_template)  
metrics  
job\_events  
inventory\_scripts (inventory\_script)  
labels (label)  
schedules (schedule)  
workflow\_job\_nodes  
instances (instance)  
instance\_groups (instance\_group)  
credential\_types (credential\_type)  
teams (team)  
inventory\_updates (inventory\_update)  
system\_jobs  
workflow\_jobs (workflow\_job)  
ad\_hoc\_commands (ad\_hoc)  
project\_updates (project\_update)  
ping  
inventory (inventories)  
config  
credential\_input\_sources  
inventory\_sources (inventory\_source)  
jobs (job)  
users (user)  
organizations (organization)  
notification\_templates (notification\_template)  
tokens  
unified\_jobs  
applications (application)  
groups (group)  
unified\_job\_templates  
credentials (credential)  
workflow\_approvals  
workflow\_job\_template\_nodes (node)  
projects (project)  
me  
workflow\_job\_templates (workflow)  
roles (role)  
notifications  
settings (setting)  
system\_job\_templates  
hosts (host)  
activity\_stream

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [October 17, 2019, 3:15pm UTC](https://forum.ansible.com/t/import-objetcs-with-tower-cli-from-awx-version-2-1-2-to-version-7-0-0/31479/4 "2019-10-17T15:15:54Z")

</div>

I actually believe this will need to be addressed on the tower-cli side as a stop-gap measure, only because it is vastly easier than the alternatives. I have one test in the AWX collection which is marked as xfail right now for this bug. I have some prior attempts at the problem lying around, but we updated the error handling to rase 400 errors in this case. You’re seeing that message. This is better than silently failing to copy the credentials in my book. This also gives some more options to catch and detect the error in tower-cli and make decisions based on that. I’m am still unsure of exact details of the solution right now, but it’s a known issue and a fix is planned for the sake of both the functionality of the AWX collection and send/receive.
