Re: s3 UnboundLocalError

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 15, 2012 at 10:04 PM, Lokesh Krishnappa
<lokesh.professional.it@xxxxxxxxx> wrote:
> am following, the below given link :
> https://github.com/ceph/s3-tests for my testing purpose ... and while
> am executing the command as:
>
> S3TEST_CONF=example.conf ./virtualenv/bin/nosetests
>
> getting results with 2error , which is as follows:
>
>  lokesh@lokesh:~/Downloads/ceph-teuthology-78b7b02$
> S3TEST_CONF=example.conf ./virtualenv/bin/nosetests
> ................EES................................
> ======================================================================
> ERROR: teuthology.orchestra.test.test_connection.test_connect

It seems like you are confusing s3-tests with teuthology? S3TEST_CONF
is definitely about s3-tests, but the unit tests you are running, and
the directory you are in, are about teuthology.

>   File "/home/lokesh/Downloads/ceph-teuthology-78b7b02/teuthology/orchestra/test/test_connection.py",
> line 47, in test_connect
>     _SSHClient=sshclient,
>   File "/home/lokesh/Downloads/ceph-teuthology-78b7b02/teuthology/orchestra/connection.py",
> line 30, in connect
>     ssh.load_system_host_keys()
> UnboundLocalError: local variable 'ssh' referenced before assignment

The error you are seeing seems only possible if someone were to change
the unit test in question, or if the behavior of the fudge library has
changed. I just confirmed that a virtualenv created from scratch, with
fudge 1.0.3, behaves as expected.

Did you edit the source?

> i thought it would be ssh login problem and tried to secure login, its
> working fine .

These are unit tests, they have nothing to do with the actual SSH
service on your host.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux