我試圖向我的雲介紹撒哈拉以利用Hadoop,但它並不順利。我試圖遵循Openstack文檔,但它並沒有真正幫助我。現在我試圖通過命令「pip install sahara-dashboard」將撒哈拉沙漠添加到我的儀表板。儀表板上的openstack sahara錯誤
撒哈拉控制板位於:/usr/local/lib/python2.7/dist-packages/saharadashboard
原始控制板位於:在/ usr /共享/開棧-儀表板/開棧的儀表板,並且我加
INSTALLED_APPS = [
'openstack_dashboard',
'saharadashboard',
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'django_pyscss',
'openstack_dashboard.django_pyscss_fix',
'compressor',
'horizon',
'openstack_auth',
]
這/usr/share/openstack-dashboard/openstack-dashboard/setting.py。
和:/usr/share/openstack-dashboard/openstack-dashboard/local/local_settings.py,我加
SAHARA_URL='http://localhost:8386/v1.1'
OPENSTACK_API_VERSIONS = {
"data-processing": 1.1,
"identity": 3,
"volume": 2,
"image": 2,
}
"data-processing": 1.1
SAHARA_USE_NEUTRON=True
我可以看到儀表板撒哈拉同治接口,但我得到這個當我嘗試在Dashboard的Image Registry選項卡中註冊圖像時出錯。希望你不介意形象中的韓國人。我應該告訴你,其他的事情在我的雲中運行良好。我搜查了所有與撒哈拉有關的日誌,但沒有出現。
我懷疑的代碼thses部分在哪裏展示我的錯誤,但不知道如何解決這個問題。請幫忙!
/usr/local/lib/python2.7/dist-packages/saharadashboard/image_registry/forms.pyglance = importutils.import_any('openstack_dashboard.api.glance',
'horizon.api.glance')
def _get_images(self, request, filter):
try:
images, _more = glance.image_list_detailed(request, filters=filter)
except Exception:
images = []
exceptions.handle(request,
_("Unable to retrieve images with filter %s.") %
filter)
return images
def _get_public_images(self, request):
filter = {"is_public": True,
"status": "active"}
return self._get_images(request, filter)
def _get_tenant_images(self, request):
filter = {"owner": request.user.tenant_id,
"status": "active"}
return self._get_images(request, filter)
UPDATE
一目瞭然上控制器圖像列表
+--------------------------------------+------------------------------+
| ID | Name |
+--------------------------------------+------------------------------+
| 28747d2b-c113-4dd3-ad44-908141461e6d | cirros |
| ecb9ac84-7459-4b3b-a832-59329ae1e0ea | github-enterprise-2.6.5 |
| 39ce8087-f95b-4204-bcee-0f084735cba9 | manila-service-image |
| f9a678a8-492f-481e-8c82-5d0c84f69675 | mysqlTest |
| 5ae10b0d-c732-481a-944f-ca3a5a5f4915 | sahara-vanilla-latest-ubuntu |
| f9ea4193-1a92-434d-b247-27b748feb4a1 | Ubuntu Server 14.04 LTS |
+--------------------------------------+------------------------------+
是的..它沒有工作。嘗試使用CLI工作。儀表板配置必須設置錯誤.. – Hoon