Bootstrapping Salt... (this may take a while)
Closed this issue · 0 comments
stanislavrussu commented
Description of Issue/Question
Hello guys,
I have a dedicated server with root access.
On this server, I installed Jenkins for creating .box images via Vagrant.
Earlier it took 15-20 minutes to build. For some reason, it gets stuck (or load 3+ hours) on the vagrant up
step with the following output:
+ vagrant up
The following settings will be used for the new VM:
VM_PROJECT = 'suite'
VM_IP = '10.10.0.226'
VM_MEMORY = '8192'
VM_CPUS = '2'
VM_NAME = 'Dev VM (build-1)'
VM_DOMAIN = 'suite'
VM_SKIP_SF = '0'
BRANCH = 'master'
REPOSITORY = ''
If you save the settings, they will be stored in a .vm file on your hard drive.
To change a setting, interrupt now and modify the respective environmental variables.
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'debian10_5'...
[KProgress: 10%
[KProgress: 50%
[KProgress: 90%
[K==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: Dev VM (build-1)
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 1080 (guest) => 1080 (host) (adapter 1)
default: 3306 (guest) => 3306 (host) (adapter 1)
default: 5432 (guest) => 5432 (host) (adapter 1)
default: 5601 (guest) => 5601 (host) (adapter 1)
default: 10007 (guest) => 10007 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
[default] GuestAdditions 6.0.14 running --- OK.
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
==> default: Mounting NFS shared folders...
==> default: Mounting shared folders...
default: /vagrant => /var/lib/jenkins/jobs/devvm_test/workspace
==> default: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines...
==> default: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)...
==> default: Running provisioner: shell...
default: Running: inline script
default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
default: Selecting previously unselected package libexpat1-dev:amd64.
default: (Reading database ...
default: (Reading database ... 5%
(Reading database ... 10%
(Reading database ... 50%
(Reading database ... 90%
default: (Reading database ... 75%
default: (Reading database ... 85%
default: (Reading database ... 100%
(Reading database ... 52037 files and directories currently installed.)
default: Preparing to unpack .../libexpat1-dev_2.2.6-2+deb10u1_amd64.deb ...
default: Unpacking libexpat1-dev:amd64 (2.2.6-2+deb10u1) ...
default: Selecting previously unselected package libpython2.7:amd64.
default: Preparing to unpack .../libpython2.7_2.7.16-2+deb10u1_amd64.deb ...
default: Unpacking libpython2.7:amd64 (2.7.16-2+deb10u1) ...
default: Selecting previously unselected package libpython2.7-dev:amd64.
default: Preparing to unpack .../libpython2.7-dev_2.7.16-2+deb10u1_amd64.deb ...
default: Unpacking libpython2.7-dev:amd64 (2.7.16-2+deb10u1) ...
default: Selecting previously unselected package pkg-config.
default: Preparing to unpack .../pkg-config_0.29-6_amd64.deb ...
default: Unpacking pkg-config (0.29-6) ...
default: Selecting previously unselected package python2.7-dev.
default: Preparing to unpack .../python2.7-dev_2.7.16-2+deb10u1_amd64.deb ...
default: Unpacking python2.7-dev (2.7.16-2+deb10u1) ...
default: Setting up libpython2.7:amd64 (2.7.16-2+deb10u1) ...
default: Setting up libexpat1-dev:amd64 (2.2.6-2+deb10u1) ...
default: Setting up pkg-config (0.29-6) ...
default: Setting up libpython2.7-dev:amd64 (2.7.16-2+deb10u1) ...
default: Setting up python2.7-dev (2.7.16-2+deb10u1) ...
default: Processing triggers for man-db (2.8.5-2) ...
default: Processing triggers for libc-bin (2.28-10) ...
==> default: Running provisioner: salt...
Copying salt minion config to vm.
Checking if salt-minion is installed
salt-minion was not found.
Checking if salt-call is installed
salt-call was not found.
Bootstrapping Salt... (this may take a while)
Setup
$ vagrant -v
Vagrant 2.2.6
$ VBoxManage -v
6.0.14r133895
salt-minion and salt-master are up and running
$ vagrant global-status
id name provider state directory
---------------------------------------------------------------------------------------
1a2b3c4 default virtualbox inaccessible /var/lib/jenkins/jobs/devvm_1/workspace
4a4b5c6 default virtualbox inaccessible /var/lib/jenkins/jobs/devvm_2/workspace
7a8b9c0 default virtualbox running /var/lib/jenkins/jobs/devvm_test1/workspace
Steps to Reproduce Issue
export REPOSITORY=''
mkdir -p project
# Restart nfsd as we have cleared workspace and exports
sudo /usr/sbin/exportfs -ar
sudo /bin/systemctl status --no-pager nfs-server.service
sudo /etc/init.d/nfs-kernel-server stop
sudo /bin/systemctl start nfs-server.service
# Cleanup - in case of leftovers from previous builds
rm -f package.box .vm
vagrant destroy --force || true
# Create and provision VM
export VM_CPUS=2
export VM_MEMORY=8192
export VM_NAME="Dev VM"
vagrant up
Versions and Systems
$ salt --versions-report
/usr/lib/python3/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.3) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
Salt Version:
Salt: 3002
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.7.3
docker-py: Not Installed
gitdb: 2.0.5
gitpython: 2.1.11
Jinja2: 2.10
libgit2: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: 3.6.1
pygit2: Not Installed
Python: 3.7.3 (default, Apr 3 2019, 05:39:12)
python-gnupg: Not Installed
PyYAML: 3.13
PyZMQ: 17.1.2
smmap: 2.0.5
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.1
System Versions:
dist: debian 10 buster
locale: UTF-8
machine: x86_64
release: 4.19.0-6-amd64
system: Linux
version: Debian GNU/Linux 10 buster
Thanks in advance!