MariaDB clusters failing with TypeError

Bug #1570602 reported by Doug Shelley
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
High
Craig Vyvial
Mitaka
New
Undecided
Unassigned

Bug Description

Executed this command:
trove cluster-create cl1 mariadb 10.1 --instance flavor=trove.tiny,volume=1,nic='net-id=5402eae2-8502-4012-b40e-1e5da1686c5d' --instance flavor=trove.tiny,volume=1,nic='net-id=5402eae2-8502-4012-b40e-1e5da1686c5d' --instance flavor=trove.tiny,volume=1,nic='net-id=5402eae2-8502-4012-b40e-1e5da1686c5d''

2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi [-] a14f39d4-6dad-48f1-9935-92da0e330b73: unhashable type: 'list'
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi Traceback (most recent call last):
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi File "/usr/lib/python2.7/dist-packages/trove/common/wsgi.py", line 250, in execute_action
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi **action_args)
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi File "/usr/lib/python2.7/dist-packages/trove/common/base_wsgi.py", line 393, in execute_action
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi return self.dispatch(self.controller, action, request, **action_args)
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi File "/usr/lib/python2.7/dist-packages/trove/common/base_wsgi.py", line 402, in dispatch
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi return method(*args, **kwargs)
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi File "/usr/lib/python2.7/dist-packages/trove/cluster/service.py", line 194, in create
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi locality)
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi File "/usr/lib/python2.7/dist-packages/trove/cluster/models.py", line 221, in create
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi locality)
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi File "/usr/lib/python2.7/dist-packages/trove/common/strategies/cluster/galera_common/api.py", line 146, in create
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi datastore_version)
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi File "/usr/lib/python2.7/dist-packages/trove/common/strategies/cluster/galera_common/api.py", line 102, in _validate_cluster_instances
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi if len(set(instance_nics)) != 1:
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi TypeError: unhashable type: 'list'
2016-04-14 21:04:15.700 1077 ERROR trove.common.wsgi

Amrith Kumar (amrith)
Changed in trove:
status: New → Confirmed
importance: Undecided → High
milestone: none → newton-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
assignee: nobody → Craig Vyvial (cp16net)
status: Confirmed → In Progress
Revision history for this message
Craig Vyvial (cp16net) wrote :

This would apply to any type of cluster that uses the galera strategy while setting the nics on a create call.

Changed in trove:
assignee: Craig Vyvial (cp16net) → Amrith (amrith)
Amrith Kumar (amrith)
Changed in trove:
assignee: Amrith (amrith) → Craig Vyvial (cp16net)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/306638
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=15ea555624396a48c6f077bf51ef7de77a8c7fc5
Submitter: Jenkins
Branch: master

commit 15ea555624396a48c6f077bf51ef7de77a8c7fc5
Author: Craig Vyvial <email address hidden>
Date: Fri Apr 15 16:56:44 2016 -0500

    Fix MariaDB clusters failing with TypeError

    This would apply to any type of cluster that uses the galera strategy
    while setting the nics on a create call. When we called cast to set()
    the object was a list of lists. The set method can not has a list so
    this was causesing a unhashable error.

    The change is to make the instance_nics a list of strings (what we
    originaly expected) to resolve this issue.

    Change-Id: I6b04f8b580720e5791e0977a9347d031cdbf9710
    Closes-Bug: #1570602

Changed in trove:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/trove 6.0.0.0b2

This issue was fixed in the openstack/trove 6.0.0.0b2 development milestone.

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.