[2.1, r5773] Custom commissioning script gets stuck in running state if the script its not runable.

Bug #1669246 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Lee Trager

Bug Description

00-maas-01-test.py Wed, 01 Mar. 2017 22:50:56 Running

This blocks the commissioning process completely.

Related branches

Changed in maas:
milestone: none → 2.2.0
importance: Undecided → High
status: New → Triaged
Revision history for this message
Andres Rodriguez (andreserl) wrote :

roaksoax@rivals:~⟫ cat 00-maas-01-test.py
import os
os.system('cat /proc/cpuinfo')
roaksoax@rivals:~⟫ cat 00-maas-00-test.py
import os
dev_disk_byid='/dev/disk/by-id/'
path="/dev/sda"
def _path_to_idpath(path):
        """Searches dev_disk_byid for a device symlinked to /dev/[path]"""
        if os.path.exists(dev_disk_byid):
            for link in os.listdir(dev_disk_byid):
                if os.path.exists(path) and os.path.samefile(
                        os.path.join(dev_disk_byid, link), path):
                    return os.path.join(dev_disk_byid, link)
        return None

print(_path_to_idpath(path))

Revision history for this message
Andres Rodriguez (andreserl) wrote :

I did add
#!/usr/bin/python

at the top of my script..

Changed in maas:
status: Triaged → Invalid
milestone: 2.2.0 → none
summary: - [2.1, r5773] Custom commissioning script gets stuck in running state
+ [2.1, r5773] Custom commissioning script gets stuck in running state if
+ the script its not runable.
Changed in maas:
status: Invalid → Triaged
importance: High → Medium
milestone: none → 2.2.0
Changed in maas:
assignee: nobody → Lee Trager (ltrager)
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
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.