Periodic task terminate_unneeded_clusters fails on distributed version

Bug #1363029 reported by Andrey Pavlov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Medium
Andrey Pavlov

Bug Description

Steps to reproduce:
1. Launch sahara in distributed mode
2. Launch transient cluster test

2014-08-28 13:32:20.983 14384 DEBUG sahara.service.periodic [-] Terminating unneeded transient clusters terminate_unneeded_clusters /home/kshatrix/sahara/sahara/service/periodic.py:72
2014-08-28 13:32:21.028 14384 ERROR sahara.openstack.common.periodic_task [-] Error during SaharaPeriodicTasks.terminate_unneeded_clusters: 'NoneType' object has no attribute 'find'
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task Traceback (most recent call last):
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task File "/home/kshatrix/sahara/sahara/openstack/common/periodic_task.py", line 198, in run_periodic_tasks
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task task(self, context)
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task File "/home/kshatrix/sahara/sahara/service/periodic.py", line 94, in terminate_unneeded_clusters
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task trusts.use_os_admin_auth_token(cluster)
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task File "/home/kshatrix/sahara/sahara/service/trusts.py", line 139, in use_os_admin_auth_token
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task client = keystone.client_for_trusts(cluster.trust_id)
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task File "/home/kshatrix/sahara/sahara/utils/openstack/keystone.py", line 78, in client_for_trusts
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task return _admin_client(trust_id=trust_id)
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task File "/home/kshatrix/sahara/sahara/utils/openstack/keystone.py", line 60, in _admin_client
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task auth_url = base.retrieve_auth_url()
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task File "/home/kshatrix/sahara/sahara/utils/openstack/base.py", line 84, in retrieve_auth_url
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task info = urlparse.urlparse(context.current().auth_uri)
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task File "/usr/lib/python2.7/urlparse.py", line 135, in urlparse
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task tuple = urlsplit(url, scheme, allow_fragments)
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task File "/usr/lib/python2.7/urlparse.py", line 174, in urlsplit
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task i = url.find(':')
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task AttributeError: 'NoneType' object has no attribute 'find'
2014-08-28 13:32:21.028 14384 TRACE sahara.openstack.common.periodic_task

Changed in sahara:
assignee: nobody → Pavlov Andrey (apavlov-n)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara (master)

Fix proposed to branch: master
Review: https://review.openstack.org/117750

Changed in sahara:
status: New → In Progress
Changed in sahara:
milestone: none → juno-3
importance: Undecided → Medium
Changed in sahara:
milestone: juno-3 → juno-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/117750
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=db4e5f5666f122544e28ea648e45544e76a9caa5
Submitter: Jenkins
Branch: master

commit db4e5f5666f122544e28ea648e45544e76a9caa5
Author: Andrey Pavlov <email address hidden>
Date: Fri Aug 29 15:18:06 2014 +0400

    Fixed terminate_unneeded_clusters fail in distributed mode

    Change-Id: I382508ce2ce9b68dca12ab4c716f8ac58eb23f09
    Closes-Bug: #1363029

Changed in sahara:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in sahara:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in sahara:
milestone: juno-rc1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.