UtahDave / salt-vagrant-demo

Demo of Salt in Vagrant. 1 master and 2 minions
Apache License 2.0
247 stars 191 forks source link

vagrant up step fails on mac osx 10.7.5 #7

Closed rduggal closed 9 years ago

rduggal commented 9 years ago

Trying to get the demo going as per README.rst, I get a failure, captured output below.

Any idea what could i be doing wrong ?


bash-3.2# vagrant up Bringing machine 'master' up with 'virtualbox' provider... Bringing machine 'minion1' up with 'virtualbox' provider... Bringing machine 'minion2' up with 'virtualbox' provider... ==> master: Importing base box 'ubuntu/trusty64'... ==> master: Matching MAC address for NAT networking... ==> master: Checking if box 'ubuntu/trusty64' is up to date... ==> master: Setting the name of the VM: salt-vagrant-demo_master_1437800690447_95469 ==> master: Clearing any previously set forwarded ports... ==> master: Fixed port collision for 22 => 2222. Now on port 2200. ==> master: Clearing any previously set network interfaces... ==> master: Preparing network interfaces based on configuration... master: Adapter 1: nat master: Adapter 2: hostonly ==> master: Forwarding ports... master: 22 => 2200 (adapter 1) ==> master: Booting VM... ==> master: Waiting for machine to boot. This may take a few minutes... master: SSH address: 127.0.0.1:2200 master: SSH username: vagrant master: SSH auth method: private key master: Warning: Connection timeout. Retrying... master: Warning: Remote connection disconnect. Retrying... master: master: Vagrant insecure key detected. Vagrant will automatically replace master: this with a newly generated keypair for better security. master: master: Inserting generated public key within guest... master: Removing insecure key from the guest if it's present... master: Key inserted! Disconnecting and reconnecting using new SSH key... ==> master: Machine booted and ready! ==> master: Checking for guest additions in VM... ==> master: Setting hostname... ==> master: Configuring and enabling network interfaces... ==> master: Mounting shared folders... master: /vagrant => /Users/rama/salt-vagrant-demo master: /srv/salt => /Users/rama/salt-vagrant-demo/saltstack/salt ==> master: Running provisioner: salt... Copying salt master config to vm. Uploading master keys. Checking if salt-master is installed salt-master was not found. Using Bootstrap Options: -k /tmp/minion-seed-keys -M -N stable Bootstrapping Salt... (this may take a while) stdin: is not a tty

%

T o t a l

% Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0

0

0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

0

0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0

9 3

2 0 4 k 93 191k 0 0 82547 0 0:00:02 0:00:02 --:--:-- 82517

1 0 0 204k 100 204k 0 0 87900 0 0:00:02 0:00:02 --:--:-- 87871

Reading package lists...

Building dependency tree...

Reading state information...

The following NEW packages will be installed: debian-archive-keyring 0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded. Need to get 34.4 kB of archives. After this operation, 84.0 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe debian-archive-keyring all 2012.4 [34.4 kB] Fetched 34.4 kB in 1s (30.0 kB/s) Selecting previously unselected package debian-archive-keyring. (Reading database ... 86712 files and directories currently installed.) Preparing to unpack .../debian-archive-keyring_2012.4_all.deb ... Unpacking debian-archive-keyring (2012.4) ... Setting up debian-archive-keyring (2012.4) ... Ign http://security.ubuntu.com trusty-security InRelease Ign http://archive.ubuntu.com trusty InRelease Hit http://security.ubuntu.com trusty-security Release.gpg Ign http://archive.ubuntu.com trusty-updates InRelease Hit http://security.ubuntu.com trusty-security Release Hit http://archive.ubuntu.com trusty Release.gpg Hit http://archive.ubuntu.com trusty-updates Release.gpg Hit http://security.ubuntu.com trusty-security/main Sources Hit http://archive.ubuntu.com trusty Release Hit http://security.ubuntu.com trusty-security/universe Sources Hit http://archive.ubuntu.com trusty-updates Release Hit http://security.ubuntu.com trusty-security/main amd64 Packages Hit http://security.ubuntu.com trusty-security/universe amd64 Packages Hit http://archive.ubuntu.com trusty/main Sources Hit http://archive.ubuntu.com trusty/universe Sources Hit http://security.ubuntu.com trusty-security/main Translation-en Hit http://archive.ubuntu.com trusty/main amd64 Packages Hit http://security.ubuntu.com trusty-security/universe Translation-en Hit http://archive.ubuntu.com trusty/universe amd64 Packages Hit http://archive.ubuntu.com trusty/main Translation-en Hit http://archive.ubuntu.com trusty/universe Translation-en Hit http://archive.ubuntu.com trusty-updates/main Sources Hit http://archive.ubuntu.com trusty-updates/universe Sources Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages Hit http://archive.ubuntu.com trusty-updates/main Translation-en Hit http://archive.ubuntu.com trusty-updates/universe Translation-en Ign http://archive.ubuntu.com trusty/main Translation-en_US Ign http://archive.ubuntu.com trusty/universe Translation-en_US Reading package lists...

Reading package lists...

Building dependency tree...

Reading state information... software-properties-common is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.

Reading package lists...

Building dependency tree...

Reading state information...

pciutils is already the newest version. procps is already the newest version. python-apt is already the newest version. upstart is already the newest version. The following extra packages will be installed: python-chardet The following packages will be upgraded: python-chardet python-requests 2 upgraded, 0 newly installed, 0 to remove and 51 not upgraded. Need to get 151 kB of archives. After this operation, 9,216 B disk space will be freed. Get:1 http://ppa.launchpad.net/chris-lea/python-chardet/ubuntu/ trusty/main python-chardet all 2.2.1-4chl1~trusty1 [107 kB] Get:2 http://ppa.launchpad.net/chris-lea/python-requests/ubuntu/ trusty/main python-requests all 2.3.0-1chl1~trusty1 [44.3 kB] Fetched 151 kB in 2s (55.4 kB/s) (Reading database ... 86722 files and directories currently installed.) Preparing to unpack .../python-chardet_2.2.1-4chl1~trusty1_all.deb ... Unpacking python-chardet (2.2.1-4chl1~trusty1) over (2.0.1-2build2) ... Preparing to unpack .../python-requests_2.3.0-1chl1~trusty1_all.deb ... Unpacking python-requests (2.3.0-1chl1~trusty1) over (2.2.1-1ubuntu0.2) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up python-chardet (2.2.1-4chl1~trusty1) ... Setting up python-requests (2.3.0-1chl1~trusty1) ... gpg: keyring /tmp/tmp1zltspzd/secring.gpg' created gpg: keyring/tmp/tmp1zltspzd/pubring.gpg' created gpg: requesting key 0E27C0A6 from hkp server keyserver.ubuntu.com gpg: /tmp/tmp1zltspzd/trustdb.gpg: trustdb created gpg: key 0E27C0A6: public key "Launchpad PPA for Salt Stack" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1)

OK

/tmp/bootstrap_salt.sh -k /tmp/minion-seed-keys -M -N stable

Stdout from the command:

Stderr from the command:

stdin: is not a tty % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 204k 100 204k 0 0 87900 0 0:00:02 0:00:02 --:--:-- 87871

bash-3.2#


qszhusightp commented 9 years ago

New to salt and having the same issue. Seem to be caused by a recent update of the salt bootstrap script. See: mitchellh/vagrant#6029

Then bumping into the issue here: mitchellh/vagrant#5973, had to downgrade vagrant to 1.7.2

Hope that helps.

rduggal commented 9 years ago

I managed to get the script with wget and run it with a -P to complete install. Closing issue

rduggal commented 9 years ago

Resolved

jpduckwo commented 9 years ago

Vagrantfile should be updated for each machine as follows to resolve

      salt.bootstrap_options = "-P"

Also only use Vagrant v 1.7.2 for the moment as there is an issue setting config files for minions in 1.7.4

thornycrackers commented 8 years ago

@jpduckwo Thankyou, That fixed my issues with it!