Sorry, the line breaks seem to be messed up. Here is the setup script: #5. prepare keys ceph-authtool --create-keyring ./ceph.mon.keyring --gen-key -n mon. --cap mon 'allow *' ceph-authtool --create-keyring ./ceph.client.admin.keyring --gen-key -n client.admin --set-uid=0 --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow' ceph-authtool ./ceph.mon.keyring --import-keyring ./ceph.client.admin.keyring monmaptool --create --add localhost 127.0.0.1 --fsid a7f64266-0894-4f1e-a635-d0aeaca0e993 ./monmap #6. setup & start mon echo "--------------Setup&Start Mon-----------" mkdir -p mon/mymondata ceph-mon --mkfs -i localhost --monmap ./monmap --keyring ./ceph.mon.keyring ceph-mon -i localhost #7. setup & start osd #echo "--------------Setup&Start OSD-----------" mkdir -p osd/myosddata ceph osd create 487b9f85-0fee-48df-8976-e03218466ac6 0 #this line causes the error ceph-osd -i 0 --mkfs --mkkey --osd-uuid 487b9f85-0fee-48df-8976-e03218466ac6 ceph auth add osd.0 osd 'allow *' mon 'allow profile osd' -i ./ceph.client.admin.keyring ceph osd crush add-bucket localhost host ceph osd crush move localhost root=default ceph osd crush add osd.0 1.0 host=localhost ceph-osd -i 0 -----Original Message----- From: Aakanksha Pudipeddi Sent: Wednesday, December 21, 2016 1:41 PM To: 'Shinobu Kinjo' Cc: John Spray; ceph-users Subject: RE: Ceph Import Error Sure, to build I did: 1. ./do_cmake.sh 2. cd build 3. make && sudo make install To setup: #5. prepare keys ceph-authtool --create-keyring ./ceph.mon.keyring --gen-key -n mon. --cap mon 'allow *' ceph-authtool --create-keyring ./ceph.client.admin.keyring --gen-key -n client.admin --set-uid=0 --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow' ceph-authtool ./ceph.mon.keyring --import-keyring ./ceph.client.admin.keyring monmaptool --create --add localhost 127.0.0.1 --fsid a7f64266-0894-4f1e-a635-d0aeaca0e993 ./monmap #6. setup & start mon echo "--------------Setup&Start Mon-----------" mkdir -p mon/mymondata ceph-mon --mkfs -i localhost --monmap ./monmap --keyring ./ceph.mon.keyring ceph-mon -i localhost #7. setup & start osd #echo "--------------Setup&Start OSD-----------" #mkdir -p osd/myosddata #mkdir -p /var/lib/ceph/osd/ceph-0 ceph osd create 487b9f85-0fee-48df-8976-e03218466ac6 0 -------> causes the error ceph-osd -i 0 --mkfs --mkkey --osd-uuid 487b9f85-0fee-48df-8976-e03218466ac6 ceph auth add osd.0 osd 'allow *' mon 'allow profile osd' -i ./ceph.client.admin.keyring ceph osd crush add-bucket localhost host ceph osd crush move localhost root=default ceph osd crush add osd.0 1.0 host=localhost ceph-osd -i 0 I was using ceph jewel until recently but I made sure to uninstall all binaries before setting up the cluster with kraken ceph. Thanks! Aakanksha -----Original Message----- From: Shinobu Kinjo [mailto:skinjo@xxxxxxxxxx] Sent: Wednesday, December 21, 2016 12:11 PM To: Aakanksha Pudipeddi Cc: John Spray; ceph-users Subject: Re: Ceph Import Error Can you share exact steps you took to build the cluster? On Thu, Dec 22, 2016 at 3:39 AM, Aakanksha Pudipeddi <aakanksha.pu@xxxxxxxxxxx> wrote: > I mean setup a Ceph cluster after compiling from source and make install. I usually use the long form to setup the cluster. The mon setup is fine but when I create an OSD using ceph osd create or even check the status using ceph -s after the monitor is setup, I get this error. The PATH, LD_LIBRARY_PATH and PYTHONPATH have been set accordingly. > > Thanks > Aakanksha > -----Original Message----- > From: John Spray [mailto:jspray@xxxxxxxxxx] > Sent: Wednesday, December 21, 2016 2:24 AM > To: Aakanksha Pudipeddi > Cc: ceph-users > Subject: Re: Ceph Import Error > > On Tue, Dec 20, 2016 at 11:32 PM, Aakanksha Pudipeddi <aakanksha.pu@xxxxxxxxxxx> wrote: >> I am trying to setup kraken from source and I get an import error on >> using the ceph command: >> >> >> >> Traceback (most recent call last): >> >> File "/home/ssd/src/vanilla-ceph/ceph-install/bin/ceph", line 112, >> in <module> >> >> from ceph_argparse import \ >> >> ImportError: cannot import name descsort_key >> >> >> >> The python path is correctly pointing to the location of >> ceph_argparse but I want to know if it is a known error. On looking >> online, I found that this is generally a result of circular >> dependencies, although of what, I do not know yet. Any help would be appreciated. > > Not sure what you mean by "setup from source" in this case -- are you trying to install Ceph system wide, or are you trying to run it out of your source tree? > > What is the overall command (including PYTHONPATH etc) that you are trying to run? > > John > > >> >> >> Thanks! >> >> Aakanksha >> >> >> >> >> >> >> _______________________________________________ >> ceph-users mailing list >> ceph-users@xxxxxxxxxxxxxx >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >> > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com