Error running provisioning: undefined method `uids' for #<Array:0x00000002461278>

Bug #1336664 reported by Moshe Levi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
New
Undecided
Unassigned

Bug Description

in the latest master code in the node provisioning is not started due to error in fuel-astute
which was entered in this commit 2b3a8592cc71c6883d82f5bc4820641fba9292a2

mclient_remove_piece_node expect nodes but mclient_remove_nodes pass part

     def mclient_remove_nodes(nodes)
       Astute.logger.info "#{@ctx.task_id}: Starting removing of nodes: #{nodes.uids.inspect}"
+ results = []
+
+ nodes.each_slice(Astute.config[:MAX_NODES_PER_REMOVE_CALL]).with_index do |part, i|
+ sleep Astute.config[:NODES_REMOVE_INTERVAL] if i != 0
+ results += mclient_remove_piece_nodes(part)
+ end
+ results
+ end
+
+ def mclient_remove_piece_nodes(nodes)
       remover = MClient.new(@ctx, "erase_node", nodes.uids.sort, check_result=false)
       responses = remover.erase_node(:reboot => @reboot)
       Astute.logger.debug "#{@ctx.task_id}: Data received from nodes: #{responses.inspect}"

Moshe Levi (moshele)
description: updated
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.