Thanks Marc for replying
Yes I am following Scalr document
<https://scalr-wiki.atlassian.net/wiki/display/docs/Step+1+-+Synchronising+Scalr+Servers+with+an+Ansible+inventory>.
I have copy the content of *scalr-ansible-tower* to */var/lib/awx/scalr* (
Refer the Image4 ) but still I am getting the same error ( Refer
job_477.txt )
Please help me!!!
On Tuesday, November 8, 2016 at 4:05:04 PM UTC-5, Marc O'Brien wrote:
>
> Hi Amit,
>
> Are you following our Ansible Tower with Scalr Tutorial
> <https://scalr-wiki.atlassian.net/wiki/display/docs/Step+1+-+Synchronising+Scalr+Servers+with+an+Ansible+inventory>?
>
> If so, it appears that when you run "git clone
> https://github.com/scalr-tutorials/scalr-ansible-tower.git" there is an
> additional level in the directory tree. Do you see any change to behavior
> if you move the contents of scalr-ansible-tower to /var/lib/awx/scalr, or
> update the path in the Ansible script to include the scalr-ansible-tower
> folder in the directory path to inventory.py? This should resolve the "no
> such file" error that you are experiencing.
>
> Many thanks,
> Wm. Marc O'Brien
> Scalr Technical Support
>
>
>
> On Tuesday, November 8, 2016 at 1:44:30 PM UTC-7, Amit Saini wrote:
>>
>> Hi Team,
>>
>> While Integration of Ansible Tower with Scalr and I configure the custom
>> script ansible tower's Inventory (Refer Image 1) and try to Sync-up with
>> Scalr but got the error ( Refer text file job_419) with message
>> *'/var/lib/awx/scalr/inventory.py':
>> [Errno 2] No such file or directory*
>>
>>
>> While I have SSH ansible tower machine and found that there is not
>> *inventory.py* file available on the following path */var/lib/awx/scalr/
>> (Refer Image3). *I found *scalr-ansible-tower* file over there
>>
>> Please help me!!!
>>
>
--
You received this message because you are subscribed to the Google Groups
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
2.488 INFO Updating inventory 1: webservers
2.526 INFO Reading executable JSON source:
/tmp/ansible_tower_launch_0_k0Yi/tmp6tHDj0
2.630 ERROR Failed to load JSON from:
Traceback (most recent call last):
File "/usr/bin/tower-manage", line 9, in <module>
load_entry_point('ansible-tower==3.0.3', 'console_scripts',
'tower-manage')()
File "/lib/python2.7/site-packages/awx/__init__.py", line 103, in manage
File
"/var/lib/awx/venv/tower/lib/python2.7/site-packages/django/core/management/__init__.py",
line 354, in execute_from_command_line
utility.execute()
File
"/var/lib/awx/venv/tower/lib/python2.7/site-packages/django/core/management/__init__.py",
line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/var/lib/awx/venv/tower/lib/python2.7/site-packages/django/core/management/base.py",
line 394, in run_from_argv
self.execute(*args, **cmd_options)
File
"/var/lib/awx/venv/tower/lib/python2.7/site-packages/django/core/management/base.py",
line 445, in execute
output = self.handle(*args, **options)
File
"/var/lib/awx/venv/tower/lib/python2.7/site-packages/django/core/management/base.py",
line 661, in handle
return self.handle_noargs(**options)
File
"/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py",
line 1285, in handle_noargs
File
"/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py",
line 499, in load_inventory_source
File
"/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py",
line 503, in load_inventory_source
File
"/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py",
line 393, in load
File
"/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py",
line 381, in command_to_json
RuntimeError: ['proot', '-v', '0', '-r', '/', '-b',
'/tmp/ansible_tower_launch_0_k0Yi/tmphmXvgu:/etc/tower', '-b',
'/tmp/ansible_tower_launch_0_k0Yi/tmpOnGbqc:/tmp', '-b',
'/tmp/ansible_tower_launch_0_k0Yi/tmpxVfj5u:/var/lib/awx', '-b',
'/tmp/ansible_tower_launch_0_k0Yi/tmpRJEh_m:/var/lib/awx/job_status', '-b',
'/tmp/ansible_tower_launch_0_k0Yi/tmp9_DVdJ:/var/lib/awx/projects', '-b',
'/tmp/ansible_tower_launch_0_k0Yi/tmphsqhhq:/var/log', '-b',
'/tmp/ansible_tower_launch_0_k0Yi:/tmp/ansible_tower_launch_0_k0Yi', '-b',
'/var/lib/awx/venv/ansible:/var/lib/awx/venv/ansible', '-b',
'/var/lib/awx/venv/tower:/var/lib/awx/venv/tower', '-w',
'/tmp/ansible_tower_launch_0_k0Yi',
'/tmp/ansible_tower_launch_0_k0Yi/tmp6tHDj0', '--list'] failed (rc=2) with
output: python: can't open file '/var/lib/awx/scalr/inventory.py': [Errno 2] No
such file or directory