please someone help me On Mon, 23 Mar 2020, 19:44 Abhinav Singh, <singhabhinav0796@xxxxxxxxx> wrote: > > > ---------- Forwarded message --------- > From: Abhinav Singh <singhabhinav0796@xxxxxxxxx> > Date: Mon, Mar 23, 2020 at 7:43 PM > Subject: RGW failing to create bucket > To: <dev@xxxxxxx> > > > ceph : octopus > JaegerTracing : master > ubuntu : 18.04 > > When I implementing jaeger tracing it is unable to create a bucket. > (I m using swif to perform testing.) > /src/librados/IoCtxImpl.cc > > ``` > void librados::IoCtxImpl::queue_aio_write(AioCompletionImpl *c) > { > std::cout<<"yes"<<std::endl; > JTracer tracer; > tracer.initTracer("Writing Started", > "/home/abhinav/Desktop/GSOC/deepika/ceph/src/librados/tracerConfig.yaml"); > Span span=tracer.newSpan("writing started"); > span->Finish(); > try{ > auto yaml = YAML::LoadFile("tracerConfig.yaml"); > }catch(const YAML::ParserException& pe){ > // ldout<<pe.what()<<dendl; > std::cout<<pe.what()<<std::endl; > ofstream f; > f.open("/home/abhinav/Desktop/err.txt"); > f<<pe.what(); > f.close(); > } > // auto config = jaegertracing::Config::parse(yaml); > // auto tracer=jaegertracing::Tracer::make( > // "Writing", > // config, > // jaegertracing::logging::consoleLogger() > // ); > // opentracing::Tracer::InitGlobal( > // static_pointer_cast<opentracing::Tracer>(tracer) > // ); > // auto span = opentracing::Tracer::Global()->StartSpan("Span1"); > get(); > ofstream file; > file.open("/home/abhinav/Desktop/write.txt",std::ios::out | std::ios > ::app); > file<<"Writing /src/librados/IoCtxImpl.cc 310.\n"; > file.close(); > std::scoped_lock l{aio_write_list_lock}; > ceph_assert(c->io == this); > c->aio_write_seq = ++aio_write_seq; > ldout(client->cct, 20) << "queue_aio_write " << this << " completion " << > c > << " write_seq " << aio_write_seq << dendl; > aio_write_list.push_back(&c->aio_write_list_item); > // opentracing::Tracer::Global()->Close(); > } > ``` > /include/tracer.h > ``` > typedef std::unique_ptr<opentracing::Span> Span; > > class JTracer{ > public: > JTracer(){} > ~JTracer(){ > opentracing::Tracer::Global()->Close(); > } > void static inline loadYamlConfigFile(const char* path){ > return; > } > void initTracer(const char* tracerName,const char* filePath){ > auto yaml = YAML::LoadFile(filePath); > auto configuration = jaegertracing::Config::parse(yaml); > auto tracer = jaegertracing::Tracer::make( > tracerName, > configuration, > jaegertracing::logging::consoleLogger()); > opentracing::Tracer::InitGlobal( > std::static_pointer_cast<opentracing::Tracer>(tracer)); > Span s=opentracing::Tracer::Global()->StartSpan("Testing"); > s->Finish(); > } > Span newSpan(const char* spanName){ > Span span=opentracing::Tracer::Global()->StartSpan(spanName); > return std::move(span); > } > Span childSpan(const char* spanName,const Span& parentSpan){ > Span span = opentracing::Tracer::Global()->StartSpan(spanName, { > opentracing::ChildOf(&parentSpan->context())}); > return std::move(span); > } > Span followUpSpan(const char *spanName, const Span& parentSpan){ > Span span = opentracing::Tracer::Global()->StartSpan(spanName, { > opentracing::FollowsFrom(&parentSpan->context())}); > return std::move(span); > } > }; > ``` > > Output when trying to create new container > > ``` > errno 111 connection refused > ``` > But when I remove the tracer part in IoCtxImpl.cc it is workng fine. > > I m new to ceph, and dont know what information to share to correctly > track down the problem, if any extra informtion is needed I will share it > instantly. > > Been stuck into this issue for one week. > Please someone help me! > > Thank you. > _______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx