No such file or directory error during deployment

Bug #1403887 reported by Lucas Alvares Gomes
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ironic
Invalid
High
Unassigned

Bug Description

Dec 17 15:25:28 localhost.localdomain ironic-conductor[11986]: 2014-12-17 15:25:28.040 11986 ERROR ironic.drivers.modules.iscsi_deploy [-] Deploy failed for instance 8d7252ed-75b9-4114-a4d6-fca98124a22b. Error: [Errno 2] No such file or directory: '/dev/disk/by-path/ip-192.0.2.14:3260-iscsi-iqn-2319f569-73b8-4011-bc93-05a2e27dceea-lun-1-part1'

This seems to come from is_block_device()[1] method from deploy_utils.py when it tried to check if the root_partition is a block device in the work_on_disk() method also in deploy_utils.py:

 def is_block_device(dev):
     """Check whether a device is block or not."""
     s = os.stat(dev)
     return stat.S_ISBLK(s.st_mode)

 def work_on_disk(self ...):
     ....
     if not is_block_device(root_part):
     ....

I believe that after the partitioning we would need to wait until the device and partitions is available, and probably manually call partprobe so that the kernel re-read the partition table of that device.

Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

Marking as high because it complete cause the deployment to fail and can happen quite often (~20% of the time)

Changed in ironic:
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

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

Changed in ironic:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (master)

Change abandoned by Lucas Alvares Gomes (<email address hidden>) on branch: master
Review: https://review.openstack.org/142838
Reason: Doesn't seem to work

Revision history for this message
Dmitry Tantsur (divius) wrote :

Hi Lucas! What's the state of this bug? Could you please unassign yourself, if you're now working on it?

Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

Right I will unassigned for now since I don't have much time left to finish it in the moment.

Changed in ironic:
assignee: Lucas Alvares Gomes (lucasagomes) → nobody
Revision history for this message
aeva black (tenbrae) wrote :

Setting back to triaged. Bugs with no assignee can't be "In Progress"

Changed in ironic:
status: In Progress → Triaged
Revision history for this message
John Stafford (john-stafford) wrote :

Hi Lucas,

Is this still an issue?

Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

Hi John,

I will confirm with the internal qe guys that first found this problem, I believe it still can happen.

Changed in ironic:
assignee: nobody → SHIGEMATSU Mitsuhiro (pshige)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

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

Changed in ironic:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (master)

Change abandoned by SHIGEMATSU Mitsuhiro (<email address hidden>) on branch: master
Review: https://review.openstack.org/177348

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Lucas Alvares Gomes (<email address hidden>) on branch: master
Review: https://review.openstack.org/142838

Revision history for this message
Jim Rollenhagen (jim-rollenhagen) wrote :

Is this still a thing?

Revision history for this message
Ruby Loo (rloo) wrote :

Not sure what the status is for this. I set it to 'triaged' since it clearly isn't 'in progress'.

Changed in ironic:
assignee: SHIGEMATSU Mitsuhiro (pshige) → nobody
status: In Progress → Triaged
Revision history for this message
Dmitry Tantsur (divius) wrote :

Looks like nobody was able to reproduce it for a while.

Changed in ironic:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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