[ovirt-users] gdeploy error

2017-02-14 Thread Ishmael Tsoaela
Hi,


I am a new sys admin and trying to install glusterfs using gdeploy, I
started with a simple script to enable a service(ntpd).


 gdeploy --version
gdeploy 2.0.1

[root@ovirt1 gdeploy]# cat ntp.conf
[hosts]
ovirt1

[service1]
action=enable
service=ntpd

[service2]
action=start
service=ntpd



The issue is that the gdeploy is returning error
fatal: [ovirt1]: FAILED! => {"failed": true, "msg": "module (setup) is
missing interpreter line"}


Is there a simple way to debug or figure out how to fix this error?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] gdeploy error

2017-02-15 Thread Sandro Bonazzola
On Tue, Feb 14, 2017 at 3:52 PM, Ishmael Tsoaela 
wrote:

> Hi,
>
>
> I am a new sys admin and trying to install glusterfs using gdeploy, I
> started with a simple script to enable a service(ntpd).
>
>
>  gdeploy --version
> gdeploy 2.0.1
>
> [root@ovirt1 gdeploy]# cat ntp.conf
> [hosts]
> ovirt1
>
> [service1]
> action=enable
> service=ntpd
>
> [service2]
> action=start
> service=ntpd
>
>
>
> The issue is that the gdeploy is returning error
> fatal: [ovirt1]: FAILED! => {"failed": true, "msg": "module (setup) is
> missing interpreter line"}
>
>
> Is there a simple way to debug or figure out how to fix this error?
>
>
I guess it's missing the ansible rpm. Adding Ramesh.




>
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] gdeploy error

2017-02-15 Thread Ramesh Nachimuthu

+ Sac,


- Original Message -
> From: "Sandro Bonazzola" 
> To: "Ishmael Tsoaela" , "Ramesh Nachimuthu" 
> 
> Cc: "users" 
> Sent: Wednesday, February 15, 2017 1:52:26 PM
> Subject: Re: [ovirt-users] gdeploy error
> 
> On Tue, Feb 14, 2017 at 3:52 PM, Ishmael Tsoaela 
> wrote:
> 
> > Hi,
> >
> >
> > I am a new sys admin and trying to install glusterfs using gdeploy, I
> > started with a simple script to enable a service(ntpd).
> >
> >
> >  gdeploy --version
> > gdeploy 2.0.1
> >
> > [root@ovirt1 gdeploy]# cat ntp.conf
> > [hosts]
> > ovirt1
> >
> > [service1]
> > action=enable
> > service=ntpd
> >
> > [service2]
> > action=start
> > service=ntpd
> >
> >
> >
> > The issue is that the gdeploy is returning error
> > fatal: [ovirt1]: FAILED! => {"failed": true, "msg": "module (setup) is
> > missing interpreter line"}
> >
> >
> > Is there a simple way to debug or figure out how to fix this error?
> >
> >
> I guess it's missing the ansible rpm. Adding Ramesh.

Ansible will be installed as a dependency for gdeploy in version gdeploy 2.0.1. 
So its not an issue.

Ishmael, Do you see any related issue in /var/log/messages?. gdeploy logs in a 
local file. So can you check any thing under .gdeploy/* ?

Regards,
Ramesh

> 
> 
> 
> 
> >
> >
> >
> >
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >
> >
> 
> 
> --
> Sandro Bonazzola
> Better technology. Faster innovation. Powered by community collaboration.
> See how it works at redhat.com
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] gdeploy error

2017-02-15 Thread Ishmael Tsoaela
Hi Ramesh,

I could not see anything related to the issue:





[root@ovirt gdeploy]# pwd
/home/gdeploy

[root@ovirt gdeploy]# ls -lrth
total 72K
-rw-r--r--.  1 root root  634 Feb 15 04:12 TODO
-rw-r--r--.  1 root root 1.6K Feb 15 04:12 README.md
-rw-r--r--.  1 root root   71 Feb 15 04:12 MANIFEST.in
-rw-r--r--.  1 root root  18K Feb 15 04:12 LICENSE
drwxr-xr-x.  3 root root  144 Feb 15 04:12 docs
drwxr-xr-x.  4 root root   54 Feb 15 04:12 extras
drwxr-xr-x.  2 root root 4.0K Feb 15 04:12 examples
-rw-r--r--.  1 root root 3.7K Feb 15 04:12 gdeploy.spec
-rwxr-xr-x.  1 root root  530 Feb 15 04:12 gdeploy_setup.sh
drwxr-xr-x.  2 root root   40 Feb 15 04:12 gdeploy
drwxr-xr-x.  2 root root  104 Feb 15 04:12 gdeploycore
drwxr-xr-x. 21 root root 4.0K Feb 15 04:12 gdeployfeatures
drwxr-xr-x.  2 root root   51 Feb 15 04:12 man
drwxr-xr-x.  2 root root   44 Feb 15 04:12 gdeployrest
drwxr-xr-x.  2 root root  233 Feb 15 04:12 gdeploylib
drwxr-xr-x.  2 root root  228 Feb 15 04:12 modules
drwxr-xr-x.  2 root root   29 Feb 15 04:12 tests
-rw-r--r--.  1 root root 1.3K Feb 15 04:12 setup.py
-rw-r--r--.  1 root root  121 Feb 15 04:12 requirements.txt
drwxr-xr-x.  2 root root 8.0K Feb 15 04:12 playbooks
drwxr-xr-x.  2 root root  110 Feb 15 04:18 gdeploy.egg-info
drwxr-xr-x.  5 root root   62 Feb 15 04:18 build
drwxr-xr-x.  2 root root   37 Feb 15 04:18 dist
-rw-r--r--.  1 root root   92 Feb 15 04:20 ntp.conf
[root@ovirt gdeploy]# ls -lrth  gdeploy/
total 16K
-rw-r--r--. 1 root root   25 Feb 15 04:12 __init__.py
-rw-r--r--. 1 root root 8.3K Feb 15 04:12 gdeploy


[root@ovirt gdeploy]# tail  /var/log/messages
Feb 15 04:21:05 ovirt systemd: Starting Cleanup of Temporary Directories...
Feb 15 04:21:05 ovirt systemd: Started Cleanup of Temporary Directories.
Feb 15 04:21:41 ovirt systemd-logind: Removed session 60.
Feb 15 04:21:41 ovirt systemd: Removed slice user-0.slice.
Feb 15 04:21:41 ovirt systemd: Stopping user-0.slice.
Feb 15 04:21:45 ovirt systemd: Created slice user-0.slice.
Feb 15 04:21:45 ovirt systemd: Starting user-0.slice.
Feb 15 04:21:45 ovirt systemd: Started Session 61 of user root.
Feb 15 04:21:45 ovirt systemd-logind: New session 61 of user root.
Feb 15 04:21:45 ovirt systemd: Starting Session 61 of user root.











On Wed, Feb 15, 2017 at 11:00 AM, Ramesh Nachimuthu 
wrote:

>
> + Sac,
>
>
> - Original Message -
> > From: "Sandro Bonazzola" 
> > To: "Ishmael Tsoaela" , "Ramesh Nachimuthu" <
> rnach...@redhat.com>
> > Cc: "users" 
> > Sent: Wednesday, February 15, 2017 1:52:26 PM
> > Subject: Re: [ovirt-users] gdeploy error
> >
> > On Tue, Feb 14, 2017 at 3:52 PM, Ishmael Tsoaela 
> > wrote:
> >
> > > Hi,
> > >
> > >
> > > I am a new sys admin and trying to install glusterfs using gdeploy, I
> > > started with a simple script to enable a service(ntpd).
> > >
> > >
> > >  gdeploy --version
> > > gdeploy 2.0.1
> > >
> > > [root@ovirt1 gdeploy]# cat ntp.conf
> > > [hosts]
> > > ovirt1
> > >
> > > [service1]
> > > action=enable
> > > service=ntpd
> > >
> > > [service2]
> > > action=start
> > > service=ntpd
> > >
> > >
> > >
> > > The issue is that the gdeploy is returning error
> > > fatal: [ovirt1]: FAILED! => {"failed": true, "msg": "module (setup) is
> > > missing interpreter line"}
> > >
> > >
> > > Is there a simple way to debug or figure out how to fix this error?
> > >
> > >
> > I guess it's missing the ansible rpm. Adding Ramesh.
>
> Ansible will be installed as a dependency for gdeploy in version gdeploy
> 2.0.1. So its not an issue.
>
> Ishmael, Do you see any related issue in /var/log/messages?. gdeploy logs
> in a local file. So can you check any thing under .gdeploy/* ?
>
> Regards,
> Ramesh
>
> >
> >
> >
> >
> > >
> > >
> > >
> > >
> > > ___
> > > Users mailing list
> > > Users@ovirt.org
> > > http://lists.ovirt.org/mailman/listinfo/users
> > >
> > >
> >
> >
> > --
> > Sandro Bonazzola
> > Better technology. Faster innovation. Powered by community collaboration.
> > See how it works at redhat.com
> >
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] gdeploy error

2017-02-15 Thread Ishmael Tsoaela
Hi,

service.py or setup.py


if service,py, which of the below do you suggest I move:


/usr/lib/python2.7/site-packages/slip/dbus/service.py
/usr/lib/python2.7/site-packages/firewall/core/io/service.py
/usr/lib/python2.7/site-packages/vdsm/tool/service.py
/usr/lib/python2.7/site-packages/ansible/plugins/action/service.py
/usr/lib/python2.7/site-packages/ansible/module_utils/service.py
/usr/lib/python2.7/site-packages/ansible/modules/core/system/service.py
/usr/lib/python2.7/site-packages/gdeploy-2.0.1-py2.7.egg/gdeployfeatures/service/service.py
/usr/lib64/python2.7/site-packages/dbus/service.py
/home/gdeploy/gdeployfeatures/service/service.py
/home/gdeploy/build/lib/gdeployfeatures/service/service.py





On Wed, Feb 15, 2017 at 11:32 AM, Sachidananda URS  wrote:

> Hi,
>
>
> On Wed, Feb 15, 2017 at 2:30 PM, Ramesh Nachimuthu 
> wrote:
>
>>
>> + Sac,
>>
>>
>> - Original Message -
>> > From: "Sandro Bonazzola" 
>> > To: "Ishmael Tsoaela" , "Ramesh Nachimuthu" <
>> rnach...@redhat.com>
>> > Cc: "users" 
>> > Sent: Wednesday, February 15, 2017 1:52:26 PM
>> > Subject: Re: [ovirt-users] gdeploy error
>> >
>> > On Tue, Feb 14, 2017 at 3:52 PM, Ishmael Tsoaela 
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > >
>> > > I am a new sys admin and trying to install glusterfs using gdeploy, I
>> > > started with a simple script to enable a service(ntpd).
>> > >
>> > >
>> > >  gdeploy --version
>> > > gdeploy 2.0.1
>> > >
>> > > [root@ovirt1 gdeploy]# cat ntp.conf
>> > > [hosts]
>> > > ovirt1
>> > >
>> > > [service1]
>> > > action=enable
>> > > service=ntpd
>> > >
>> > > [service2]
>> > > action=start
>> > > service=ntpd
>> > >
>> > >
>> > >
>> > > The issue is that the gdeploy is returning error
>> > > fatal: [ovirt1]: FAILED! => {"failed": true, "msg": "module (setup) is
>> > > missing interpreter line"}
>> > >
>> > >
>> > > Is there a simple way to debug or figure out how to fix this error?
>>
>
> This is because of a conflicting module. I think there is another
> service.py in the python library path.
> Can you please find that and move it momentarily? Just to ensure that is
> the case.
>
> -sac
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] gdeploy error

2017-02-15 Thread Sachidananda URS
Hi,


On Wed, Feb 15, 2017 at 2:30 PM, Ramesh Nachimuthu 
wrote:

>
> + Sac,
>
>
> - Original Message -
> > From: "Sandro Bonazzola" 
> > To: "Ishmael Tsoaela" , "Ramesh Nachimuthu" <
> rnach...@redhat.com>
> > Cc: "users" 
> > Sent: Wednesday, February 15, 2017 1:52:26 PM
> > Subject: Re: [ovirt-users] gdeploy error
> >
> > On Tue, Feb 14, 2017 at 3:52 PM, Ishmael Tsoaela 
> > wrote:
> >
> > > Hi,
> > >
> > >
> > > I am a new sys admin and trying to install glusterfs using gdeploy, I
> > > started with a simple script to enable a service(ntpd).
> > >
> > >
> > >  gdeploy --version
> > > gdeploy 2.0.1
> > >
> > > [root@ovirt1 gdeploy]# cat ntp.conf
> > > [hosts]
> > > ovirt1
> > >
> > > [service1]
> > > action=enable
> > > service=ntpd
> > >
> > > [service2]
> > > action=start
> > > service=ntpd
> > >
> > >
> > >
> > > The issue is that the gdeploy is returning error
> > > fatal: [ovirt1]: FAILED! => {"failed": true, "msg": "module (setup) is
> > > missing interpreter line"}
> > >
> > >
> > > Is there a simple way to debug or figure out how to fix this error?
>

This is because of a conflicting module. I think there is another
service.py in the python library path.
Can you please find that and move it momentarily? Just to ensure that is
the case.

-sac
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users