next up previous contents
Next: 問題五 Up: 除錯 Previous: 問題三   Contents

問題四

  1. 啟動 cinder quantum nova 等服務時出現以下錯誤訊息,且確定 qpidd.conf 設定無誤也運作正常。
    [root@kvm4 ~(keystone_myuser)]# tail /var/log/cinder/*
    
    ==> /var/log/cinder/volume.log <==
    2015-04-25 10:37:50    ERROR [cinder.openstack.common.rpc.impl_qpid] \
    Unable to connect to AMQP server: Error in sasl_client_start (-1) \
    SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.  \
    Minor code may provide more information (\
    Credentials cache file '/tmp/krb5cc_165' not found). Sleeping 2 seconds
    
  2. 原因為安裝了 cyrus-sasl-gssapi 套件做認證,但又沒設定好。
  3. 解決方式:因 openstack 不使用此認證,故將其移除再重新啟動 qpidd 服務即可。
    [root@kvm4 ~(keystone_myuser)]# yum remove cyrus-sasl-gssapi
    [root@kvm4 ~(keystone_myuser)]# /etc/init.d/qpidd restart
    
  4. 再次重新啟動 ciner 相關服務,已無錯誤訊息。
    [root@kvm4 ~(keystone_admin)]# cat a.sh
    rm /var/log/cinder/* -f
    /etc/init.d/openstack-cinder-scheduler restart
    /etc/init.d/openstack-cinder-api restart
    /etc/init.d/openstack-cinder-volume restart
    sleep 4
    tail /var/log/cinder/*
    
    [root@kvm4 ~(keystone_myuser)]# sh a.sh
    [root@deyu ~(keystone_admin)]# sh a.sh 
    Stopping openstack-cinder-scheduler:                       [  OK  ]
    Starting openstack-cinder-scheduler:                       [  OK  ]
    Stopping openstack-cinder-api:                             [  OK  ]
    Starting openstack-cinder-api:                             [  OK  ]
    Stopping openstack-cinder-volume:                          [  OK  ]
    Starting openstack-cinder-volume:                          [  OK  ]
    ==> /var/log/cinder/api.log <==
    
    ==> /var/log/cinder/scheduler.log <==
    2015-04-25 10:49:54 CRITICAL [cinder] need more than 0 values to unpack
    
    ==> /var/log/cinder/volume.log <==
    



2015-12-29