seed.apply tries to use salt.syspaths.BOOTSTRAP outside chroot. #25947
Labels
Bug
broken, incorrect, or confusing behavior
Execution-Module
help-wanted
Community help is needed to resolve this
P3
Priority 3
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
stale
Milestone
There seems to be an issue with seed.apply (actually, It affects also virt.init). The problem is that the image is never seeded with the minion. I tried it on an Ubuntu server 15.04, a Debian-8 guest image and salt version, 2015.5.0.
The command:
salt 'id' seed.apply /srv/salt/vm-images/debian_test_chroot.qcow2 guest1
(the same happens with other images I tried)Returns always False and nothing is installed.
I debugged it and I found the following:
Which evaluates to:
The problem is that
/usr/lib/python2.7/dist-packages/salt/cloud/deploy/bootstrap-salt.sh
is outside the chroot, so, when it tries to execute the command, the result is:"/bin/bash: line 0: type: salt-minion: not found\nsh: 0: Can't open /usr/lib/python2.7/dist-packages/salt/cloud/deploy/bootstrap-salt.sh\n"
The text was updated successfully, but these errors were encountered: