仪表板上的openstack sahara错误

时间:2016-12-08 15:09:34

标签: openstack

我试图将Sahara引入云端以利用Hadoop,并且它进展不顺利。我试图遵循Openstack文档,但它并没有真正帮助我。现在我尝试通过命令" pip install sahara-dashboard"将sahara添加到我的仪表板中。

Sahara Dashboard位于:/usr/local/lib/python2.7/dist-packages/saharadashboard

原始仪表板位于:/ usr / share / openstack-dashboard / openstack-dashboard,我添加了

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上看到Sahara管理界面,但是当我尝试在Dashboard的Image Registry选项卡中注册图像时,我收到此错误。希望你不要在图像中注意韩语。我应该告诉你其他的东西在我的云中工作得很好。我搜索了与撒哈拉有关的所有日志,但没有任何结果。

image description

我怀疑这部分代码是向我显示错误的地方,但我不知道如何解决这个问题。请帮助!

/usr/local/lib/python2.7/dist-packages/saharadashboard/image_registry/forms.py

 glance = 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)

更新

在控制器上浏览图像列表

 +--------------------------------------+------------------------------+
    | 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      |
    +--------------------------------------+------------------------------+

1 个答案:

答案 0 :(得分:0)

你可能遇到keystone.Did问题,你试图重启keystone?