问题描述
如图,用命令novaimage-list时出现http400错误,图是调试的输出
解决方案
解决方案二:
susesp2:~/key#novaimage-listERROR:n/a(HTTP400)解决方法:susesp2:~#zyppersearchnova-apiLoadingrepositorydata…Readinginstalledpackages…S|Name|Summary|Type–+——————–+——————————–+——–|openstack-nova-api|OpenStackComputeAPIservices|packagesusesp2:~#zypperinstallopenstack-nova-api其它问题引起的http400错误,novarc环境变量写错,这点很重要:suse11sp2:~/user#catnovarcNOVARC=$(readlink-f“${BASH_SOURCE:-${0}}”2>/dev/null)||NOVARC=$(python-c‘importos,sys;printos.path.abspath(os.path.realpath(sys.argv[1]))’“${BASH_SOURCE:-${0}}”)NOVA_KEY_DIR=${NOVARC%/*}exportEC2_ACCESS_KEY=”kevin:mycloud”exportEC2_SECRET_KEY=”f20bb381-9cbf-40a7-a84f-499b815efa19″exportEC2_URL=”http://192.168.1.76:8773/services/Cloud”exportS3_URL=”http://192.168.1.76:3333″exportEC2_USER_ID=42#novadoesnotuseuserid,butbundlingrequiresitexportEC2_PRIVATE_KEY=${NOVA_KEY_DIR}/pk.pemexportEC2_CERT=${NOVA_KEY_DIR}/cert.pemexportNOVA_CERT=${NOVA_KEY_DIR}/cacert.pemexportEUCALYPTUS_CERT=${NOVA_CERT}#euca-bundle-imageseemstorequirethissetaliasec2-bundle-image=”ec2-bundle-image–cert${EC2_CERT}–privatekey${EC2_PRIVATE_KEY}–user42–ec2cert${NOVA_CERT}”aliasec2-upload-bundle=”ec2-upload-bundle-a${EC2_ACCESS_KEY}-s${EC2_SECRET_KEY}–url${S3_URL}–ec2cert${NOVA_CERT}”exportNOVA_API_KEY=”kevin”exportNOVA_USERNAME=”kevin”exportNOVA_PROJECT_ID=”mycloud”exportNOVA_URL=”http://192.168.1.76:8774/v1.1/”exportNOVA_VERSION=”1.1″万事尙用Google解决方法出自此处:http://blog.csdn.net/blueorb/article/details/7831493