Salt keeps creating a half-complete staging instance on control, which stops staging from upgrading

Bug #1214807 reported by Matthew Hart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAVA Validation Lab
Fix Released
Medium
Matthew Hart

Bug Description

Tyler and I found a folder on control in /srv/lava/instances/staging which was blocking the cron job which upgrades staging to HEAD.

Traceback (most recent call last):
  File "/srv/salt/scripts/lava-upgrade", line 22, in <module>
    m_ret, w_ret = lava_salt.upgrade(client, args.instance, args.dryrun)
  File "/srv/salt/scripts/lava_salt.py", line 93, in upgrade
    assert not master, 'Detected multiple master instances in LAVA deployment'
AssertionError: Detected multiple master instances in LAVA deployment
Wed Aug 21 10:00:12 BST 2013

We removed that folder and the upgrade worked fine.

I've just checked today and found:

matthew-hart@control:~$ find /srv/lava/instances/staging/
/srv/lava/instances/staging/
/srv/lava/instances/staging/etc
/srv/lava/instances/staging/etc/lava-dispatcher
/srv/lava/instances/staging/etc/lava-dispatcher/device-types
/srv/lava/instances/staging/etc/lava-dispatcher/device-types/vexpress-tc2-benchmark.conf
/srv/lava/instances/staging/etc/lava-dispatcher/device-types/rtsm_ve-a15x1-a7x1.conf
/srv/lava/instances/staging/etc/lava-dispatcher/device-types/arndale-uefi.conf
/srv/lava/instances/staging/etc/lava-dispatcher/device-types/vexpress-a9.conf
/srv/lava/instances/staging/etc/lava-dispatcher/device-types/vexpress-a5.conf
/srv/lava/instances/staging/etc/lava-dispatcher/device-types/rtsm_ve-a15x4-a7x4.conf
/srv/lava/instances/staging/etc/lava-dispatcher/device-types/.lava
/srv/lava/instances/staging/etc/lava-dispatcher/urlmappings.txt
/srv/lava/instances/staging/etc/lava-server
/srv/lava/instances/staging/etc/lava-server/settings.conf

So it looks like control is getting this folder populated by salt somehow.

Dave Pigott (dpigott)
Changed in lava-lab:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Tyler Baker (tyler-baker)
Revision history for this message
Matthew Hart (matthew-hart) wrote :

Also:
/etc/apache2/sites-enabled/002-validation.linaro.org.conf keeps appearing on staging, and then apache fails to restart.
I guess that was introduced by Antonio's /lava-server/ redirect changes

Changed in lava-lab:
assignee: Tyler Baker (tyler-baker) → Matthew Hart (matthew-hart)
Changed in lava-lab:
status: Confirmed → 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.