Juju machine service for Windows creates incorrect tools symlinks

Bug #1453280 reported by Adrian Vladu
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Bogdan Teleaga

Bug Description

On Windows 2012 R2, jujud service creates incorrect symlinks for charm units tools.
All the created symlinks for charm units point to the jujud file of the the first deployed charm.

Steps to reproduce the bug:
  1. Deploy on one Windows 2012 R2 machine one unit of two different charms: charm-one and charm-two.
  2. Destroy charm-one.

Effects:
   The tools directory of charm-one will be deleted, when the charm unit is destroyed.
   Every juju command for the charm-two, such as relation-get.exe, will point to a nonexistent file.
   For example:
       C:\juju\lib\agents\tools\unit-charm-two-0\config-get.exe -> C:\juju\lib\agents\tools\unit-charm-one-0\config-get.exe
   Moreover:
      C:\juju\lib\agents\tools\jujud-machine<nr>\config-get.exe -> C:\juju\lib\agents\tools\unit-charm-one-0\config-get.exe
  This will cause each command execution to fail.

Tested on Juju version 1.22.

Cause:
  The following Go code that handles the symlinks' creation does not support Windows:
   https://github.com/juju/juju/blob/master/worker/uniter/runner/jujuc/tools.go#L31

Tags: windows
Adrian Vladu (avladu)
Changed in juju-core:
assignee: nobody → Bogdan Teleaga (bteleaga)
Changed in juju-core:
status: New → In Progress
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 1.24-beta2
importance: Undecided → High
Revision history for this message
Gabriel Samfira (gabriel-samfira) wrote :
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.24-beta2 → 1.24-beta3
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
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.