问题描述
+++dirname./glance-with-swift.shUsing/usr/local/lib/python2.7/dist-packagesSearchingforrepoze.lru==0.6Bestmatch:repoze.lru0.6Addingrepoze.lru0.6toeasy-install.pthfileUsing/usr/local/lib/python2.7/dist-packagesFinishedprocessingdependenciesforglance==2013.1+cd/opt/openstack-ubuntu-14-04/chap05+pipinstallpython-glanceclient-ihttp://192.168.56.180/pipRequirementalreadysatisfied(use--upgradetoupgrade):python-glanceclientin/usr/local/lib/python2.7/dist-packagesRequirementalreadysatisfied(use--upgradetoupgrade):prettytable>=0.6,<0.8in/usr/lib/python2.7/dist-packages(frompython-glanceclient)Requirementalreadysatisfied(use--upgradetoupgrade):python-keystoneclient>=0.1.2,<1in/usr/local/lib/python2.7/dist-packages(frompython-glanceclient)Requirementalreadysatisfied(use--upgradetoupgrade):pyOpenSSLin/usr/lib/python2.7/dist-packages(frompython-glanceclient)Requirementalreadysatisfied(use--upgradetoupgrade):warlock>=0.7.0,<2in/usr/local/lib/python2.7/dist-packages(frompython-glanceclient)Requirementalreadysatisfied(use--upgradetoupgrade):iso8601>=0.1.4in/usr/lib/python2.7/dist-packages(frompython-keystoneclient>=0.1.2,<1->python-glanceclient)Requirementalreadysatisfied(use--upgradetoupgrade):requests>=0.8.8in/usr/lib/python2.7/dist-packages(frompython-keystoneclient>=0.1.2,<1->python-glanceclient)Requirementalreadysatisfied(use--upgradetoupgrade):simplejsonin/usr/lib/python2.7/dist-packages(frompython-keystoneclient>=0.1.2,<1->python-glanceclient)Requirementalreadysatisfied(use--upgradetoupgrade):oslo.config>=1.1.0in/usr/local/lib/python2.7/dist-packages(frompython-keystoneclient>=0.1.2,<1->python-glanceclient)Requirementalreadysatisfied(use--upgradetoupgrade):jsonschema>=0.7,<2in/usr/local/lib/python2.7/dist-packages(fromwarlock>=0.7.0,<2->python-glanceclient)Requirementalreadysatisfied(use--upgradetoupgrade):jsonpatch>=0.10,<2in/usr/local/lib/python2.7/dist-packages(fromwarlock>=0.7.0,<2->python-glanceclient)Requirementalreadysatisfied(use--upgradetoupgrade):jsonpointer>=1.0in/usr/local/lib/python2.7/dist-packages(fromjsonpatch>=0.10,<2->warlock>=0.7.0,<2->python-glanceclient)Cleaningup...+exportSERVICE_TOKEN=admin_token+SERVICE_TOKEN=admin_token+exportSERVICE_ENDPOINT=http://192.168.56.180:35357/v2.0+SERVICE_ENDPOINT=http://192.168.56.180:35357/v2.0+get_tenantSERVICE_TENANTservice+set+oxtraceadmin_tokenHTTPConnectionPool(host='192.168.56.180',port=35357):Maxretriesexceededwithurl:/v2.0/tenants(Causedby<class'socket.error'>:[Errno111]Connectionrefused)+get_roleADMIN_ROLEadmin+set+oxtraceHTTPConnectionPool(host='192.168.56.180',port=35357):Maxretriesexceededwithurl:/v2.0/OS-KSADM/roles(Causedby<class'socket.error'>:[Errno111]Connectionrefused)++wc-l++grepglance++keystoneuser-listHTTPConnectionPool(host='192.168.56.180',port=35357):Maxretriesexceededwithurl:/v2.0/users(Causedby<class'socket.error'>:[Errno111]Connectionrefused)+[[0-eq0]]++get_idkeystoneuser-create--name=glance--pass=keystone_glance_password--tenant_id--email=glance@example.com++exportSERVICE_TOKEN=admin_token++SERVICE_TOKEN=admin_token++exportSERVICE_ENDPOINT=http://192.168.56.180:35357/v2.0++SERVICE_ENDPOINT=http://192.168.56.180:35357/v2.0+++awk'/id/{print$4}'+++keystoneuser-create--name=glance--pass=keystone_glance_password--tenant_id--email=glance@example.comusage:keystoneuser-create--name<user-name>[--tenant-id<tenant-id>][--pass<pass>][--email<email>][--enabled<true|false>]keystoneuser-create:error:argument--tenant_id:expectedoneargument++echo+GLANCE_USER=+keystoneuser-role-add--tenant_id--user_id--role_idusage:keystoneuser-role-add--user<user>--role<role>[--tenant<tenant>]keystoneuser-role-add:error:argument--tenant_id:expectedoneargumentroot@stack:/opt/openstack-ubuntu-14-04/chap05#glanceindexYoumustprovideausernameviaeither--os-usernameorenv[OS_USERNAME][color=#FF0000]root@stack:/opt/openstack-ubuntu-14-04/chap05#=http://192.168.56.180:35357/v2.0-su:=http://192.168.56.180:35357/v2.0:Nosuchfileordirectory[/color]root@stack:/opt/openstack-ubuntu-14-04/chap05#+++awk'/id/{print$4}'Nocommand'+++'found,didyoumean:Command'c++'frompackage'clang-3.5'(universe)Command'c++'frompackage'clang-3.3'(universe)Command'c++'frompackage'libc++-helpers'(universe)Command'c++'frompackage'clang-3.4'(universe)Command'c++'frompackage'g++'(main)Command'g++'frompackage'g++'(main)+++:commandnotfoundroot@stack:/opt/openstack-ubuntu-14-04/chap05#+++keystoneuser-create--name=glance--pass=keystone_glance_password--tenant_id--email=glance@example.comNocommand'+++'found,didyoumean:Command'g++'frompackage'g++'(main)Command'c++'frompackage'clang-3.5'(universe)Command'c++'frompackage'libc++-helpers'(universe)Command'c++'frompackage'clang-3.3'(universe)Command'c++'frompackage'clang-3.4'(universe)Command'c++'frompackage'g++'(main)+++:commandnotfoundroot@stack:/opt/openstack-ubuntu-14-04/chap05