Ask Your Question
0

sahara image retrieval failure

asked 2016-11-20 10:01:28 -0600

openstackstarter gravatar image

updated 2016-11-23 20:52:41 -0600

Hi. I'm trying to introduce Sahara to my cloud to utilize Hadoop, and it's not going well. I tried to follow Openstack Documents but it didn't really help me. Now I'm trying to add sahara to my dashboard by command "pip install sahara-dashboard".

Sahara Dashboard is located : /usr/local/lib/python2.7/dist-packages/saharadashboard

original Dashboard is located : /usr/share/openstack-dashboard/openstack-dashboard, and I added

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',
]

this to /usr/share/openstack-dashboard/openstack-dashboard/setting.py.

and in : /usr/share/openstack-dashboard/openstack-dashboard/local/local_settings.py , I added

    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

I can see Sahara managment interface on Dashboard, but I'm getting this error when I try to register image in Image Registry tab of Dashboard. Hope you don't mind Korean in the image. I ought to tell you other things are working fine in my cloud. I searched through all logs related to Sahara, and nothing comes up.

image description

I suspect that thses parts of code are where showing me the error, but don't know how to fix this issue. Please Help!

/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)

UPDATE

glance image-list on controller

 +--------------------------------------+------------------------------+
    | 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      |
    +--------------------------------------+------------------------------+
edit retag flag offensive close merge delete

Comments

Search the Glance logs. The code snippet shows that Glance is used to get the image list; there is nothing about Sahara in the code, which explains why nothing is in the Sahara logs.

When you run glance image-list on the command line, are there any public or tenant-owned images?

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-21 07:03:36 -0600 )edit

Sorry for the delay. I editted my question with more info. All images are uploaded from controller, and I guess they're all public. Is that going to be a problem?

openstackstarter gravatar imageopenstackstarter ( 2016-11-23 20:55:50 -0600 )edit

Disclosure: I know very little about Sahara, and nothing about its integration in Horizon. The error message indicate that there is no active public image, and no image that belongs to that tenant. That's my naive interpretation. Perhaps there are other conditions for finding Sahara images.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-24 06:15:45 -0600 )edit

Thanks for your comment. I've checked sahara image's publicity and it's public.. and other images are working fine. still trying to figure out what wrong.. :-< I guess sahara is not the most famous subject since you are the first and the last one who cares.. thanks.

openstackstarter gravatar imageopenstackstarter ( 2016-11-25 00:14:13 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-12-01 20:49:44 -0600

zxt50330 gravatar image

It seems something wrong in your sahara conf.

my authtoken config.

/etc/sahara/sahara.conf

[keystone_authtoken] 
auth_uri=http://127.0.0.1:5000/v2.0
identity_uri=http://127.0.0.1:35357/
admin_user=admin
admin_password=123
admin_tenant_name=admin

http://docs.openstack.org/developer/s...

edit flag offensive delete link more

Comments

thank you for answer. unfortunately, I have same config as yours.. any other suggestions..?

openstackstarter gravatar imageopenstackstarter ( 2016-12-08 09:07:17 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-11-20 10:01:28 -0600

Seen: 76 times

Last updated: Dec 01 '16