I changed the protocol to http, but I still could not make the script run. 
However, I found the line on install.py that sets this command (line 183):

args='su -c \'rpm --import 
"https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/{key}.asc"\''.format(key=key),

I changed it to a dummy command: args='uname',

And I executed the command myself, as root, on the servers:

rpm --import "https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc";

then, deploy install ran OK.


I would suggest to add the instruction about commenting "Defaults    
requiretty" on /etc/sudoers on the servers. I didn't find this step on the 
documentation.

Thanks,

José

> -----Original Message-----
> From: Terekhov, Mikhail [mailto:mikhail.terek...@emc.com]
> Sent: Thursday, July 18, 2013 4:16 PM
> To: Valerio Oropeza José, ITS-CPT-DEV-TAD; o...@fuckner.net
> Cc: ceph-users@lists.ceph.com
> Subject: RE: [ceph-users] Problem executing ceph-deploy on RHEL6
> 
> > -----Original Message-----
> > From: ceph-users-boun...@lists.ceph.com [mailto:ceph-users-
> > boun...@lists.ceph.com] On Behalf Of jose.valerioorop...@swisscom.com
> > Sent: Thursday, July 18, 2013 8:12 AM
> > To: o...@fuckner.net
> > Cc: ceph-users@lists.ceph.com
> > Subject: Re: [ceph-users] Problem executing ceph-deploy on RHEL6
> >
> > I did it now and it partially solved the problem. Thanks!
> >
> > However, now I face another error:
> >
> > curl: (7) couldn't connect to host
> > error: https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc:
> > import read failed(2).
> > Traceback (most recent call last):
> >   File "/usr/bin/ceph-deploy", line 21, in <module>
> >     main()
> >   File "/usr/lib/python2.6/site-packages/ceph_deploy/cli.py", line 112, in 
> > main
> >     return args.func(args)
> >   File "/usr/lib/python2.6/site-packages/ceph_deploy/install.py", line
> > 384, in install
> >     version=version,
> >   File "/usr/lib/python2.6/site-packages/pushy/protocol/proxy.py",
> > line 255, in <lambda>
> >     (conn.operator(type_, self, args, kwargs))
> >   File
> > "/usr/lib/python2.6/site-packages/pushy/protocol/connection.py", line 66, in
> operator
> >     return self.send_request(type_, (object, args, kwargs))
> >   File
> > "/usr/lib/python2.6/site-packages/pushy/protocol/baseconnection.py",
> > line 323, in send_request
> >     return self.__handle(m)
> >   File
> > "/usr/lib/python2.6/site-packages/pushy/protocol/baseconnection.py",
> > line 639, in __handle
> >     raise e
> > pushy.protocol.proxy.ExceptionProxy: Command 'su -c 'rpm --import
> > "https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc";''
> > returned non-zero exit status 1
> >
> >
> >
> > when I type the command 'su -c 'rpm --import
> > "https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc";'
> > directly as user ceph in cephserver2, it works.
> >
> 
> I had similar problem on SLES11 SP2 but in my case it didn't work from the
> command line either. When I run the command under strace I've found that
> WEB server returns an error saying that my client tries to access https 
> resource
> but can't talk SSL protocol. Changing https to http in this URL solved the
> problem.
> 
> Regards,
> Mikhail
> 

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to