Change:
Get this red error message: ==minion-1: /vagrant/cluster/vagrant/../../cluster/vagrant/provision- line 87: Operation not permitted The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell Stdout from the command: Adding kubernetes-master to hosts file Adding kubernetes-minion-2 to hosts file Adding kubernetes-minion-3 to hosts file INFO: sh -- Version 2014.10.14 INFO: System Information: INFO: CPU: GenuineIntel INFO: CPU Arch: x8664 INFO: OS Name: Linux INFO: OS Version: 3.11.10-301.fc20.x8664 INFO: Distribution: Fedora 20 INFO: Installing minion INFO: Found function installfedoradeps INFO: Found function installfedorastable INFO: Found function installfedorastablepost INFO: Found function installfedorarestartdaemons INFO: Found function daemonsrunning INFO: Found function installfedoracheckservices INFO: Running installfedoradeps() Resolving Dependencies --Running transaction check ---Package PyYAML.x8664 0:3.10-10.fc20 will be installed ---Package libyaml.x8664 0:0.1.6-1.fc20 will be installed ---Package m2crypto.x8664 0:0.21.1-13.fc20 will be installed ---Package python-crypto.x8664 0:2.6.1-1.fc20 will be installed ---Package python- 0:2.7.3-1.fc20 will be installed --Processing Dependency: python-babel = 0.8 for package: python-jinja2-2.7.3- --Processing Dependency: python-markupsafe for package: python-jinja2-2.7.3- ---Package python-msgpack.x8664 0:0.4.2-1.fc20 will be installed ---Package python- 0:1.2.3-5.fc20 will be installed --Processing Dependency: python-urllib3 = 1.7 for package: python-requests-1.2.3- --Processing Dependency: python-chardet for package: python-requests-1.2.3- ---Package python-zmq.x8664 0:13.0.2-1.fc20 will be installed --Processing Dependency: ()(64bit) for package: python-zmq-13.0.2-1.fc20.x8664 ---Package yum- 0:1.1.31-23.fc20 will be installed --Processing Dependency: yum = 3.4.3-148 for package: yum-utils-1.1.31- --Processing Dependency: python-kitchen for package: yum-utils-1.1.31- --Running transaction check ---Package python- 0:1.3-3.fc20 will be installed --Processing Dependency: pytz for package: python-babel-1.3- --Processing Dependency: python-setuptools for package: python-babel-1.3- ---Package python- 0:2.0.1-7.fc20 will be installed ---Package python- 0:1.1.1-5.fc20 will be installed ---Package python-markupsafe.x8664 0:0.18-1.fc20 will be installed ---Package python- 0:1.8.2-1.fc20 will be installed --Processing Dependency: python-backports-sslmatchhostname for package: python-urllib3-1.8.2- ---Package 0:3.4.3-106.fc20 will be updated ---Package 0:3.4.3-152.fc20 will be an update ---Package zeromq3.x8664 0:3.2.4-1.fc20 will be installed --Processing Dependency: libpgm-()(64bit) for package: zeromq3-3.2.4-1.fc20.x8664 --Running transaction check ---Package openpgm.x8664 0:5.2.122-2.fc20 will be installed ---Package python-backports- 0:3.4.0.2-4.fc20 will be installed --Processing Dependency: python-backports for package: python-backports-sslmatchhostname-3.4.0.2- ---Package python- 0:1.4.2-1.fc20 will be installed ---Package 0:-5.fc20 will be installed --Running transaction check ---Package python-backports.x8664 0:1.0-3.fc20 will be installed --Finished Dependency Resolution Dependencies Resolved Package Arch Version Repository Size Installing: PyYAML x8664 3.10-10.fc20 updates 155 k libyaml x8664 0.1.6-1.fc20 updates 55 k m2crypto x8664 0.21.1-13.fc20 updates 426 k python-crypto x8664 2.6.1-1.fc20 fedora 470 k python-jinja2 noarch 2.7.3-1.fc20 updates 515 k python-msgpack x8664 0.4.2-1.fc20 updates 67 k python-requests noarch 1.2.3-5.fc20 fedora 75 k python-zmq x8664 13.0.2-1.fc20 fedora 429 k yum-utils noarch 1.1.31-23.fc20 updates 113 k Updating: yum noarch 3.4.3-152.fc20 updates 1.2 M Installing for dependencies: openpgm x8664 5.2.122-2.fc20 fedora 172 k python-babel noarch 1.3-3.fc20 updates 2.4 M python-backports x8664 1.0-3.fc20 fedora 5.4 k python-backports-sslmatchhostname noarch 3.4.0.2-4.fc20 updates 13 k python-chardet noarch 2.0.1-7.fc20 fedora 222 k python-kitchen noarch 1.1.1-5.fc20 fedora 266 k python-markupsafe x8664 0.18-1.fc20 fedora 27 k python-setuptools noarch 1.4.2-1.fc20 updates 413 k python-urllib3 noarch 1.8.2-1.fc20 updates 79 k pytz noarch -5.fc20 fedora 38 k zeromq3 x8664 3.2.4-1.fc20 fedora 340 k Transaction Summary Install 9 Packages (+11 Dependent packages) Upgrade 1 Package Total download size: 7.5 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. warning: /var/cache/yum/x8664/20/updates/packages/PyYAML-3.10- Header V3 RSA/SHA256 Signature, key ID : NOKEY Public key for PyYAML-3.10- is not installed Public key for openpgm-5.2.122- is not installed
Total 342 kB/s | 7.5 MB 00:22 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-20-x8664 Importing GPG key 0x246110C1: Userid : "Fedora (20) " Fingerprint: c7c9 a9c8 9153 f201 83ce 7cba 2eb1 61fa 2461 10c1 Package : fedora-release-20-1.noarch ( From : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-20-x8664 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python-chardet-2.0.1- 1/22 Installing : python-kitchen-1.1.1- 2/22 Updating : yum-3.4.3- 3/22 Installing : pytz-- 4/22 Installing : openpgm-5.2.122-2.fc20.x8664 5/22 Installing : zeromq3-3.2.4-1.fc20.x8664 6/22 Installing : libyaml-0.1.6-1.fc20.x8664 7/22 Installing : python-markupsafe-0.18-1.fc20.x8664 8/22 Installing : python-backports-1.0-3.fc20.x8664 9/22 Installing : python-backports-sslmatchhostname-3.4.0.2- 10/22 Installing : python-setuptools-1.4.2- 11/22 Installing : python-babel-1.3- 12/22 Installing : python-urllib3-1.8.2- 13/22 Installing : python-requests-1.2.3- 14/22 Installing : python-jinja2-2.7.3- 15/22 Installing : PyYAML-3.10-10.fc20.x8664 16/22 Installing : python-zmq-13.0.2-1.fc20.x8664 17/22 Installing : yum-utils-1.1.31- 18/22 Installing : m2crypto-0.21.1-13.fc20.x8664 19/22 Installing : python-crypto-2.6.1-1.fc20.x8664 20/22 Installing : python-msgpack-0.4.2-1.fc20.x8664 21/22 Cleanup : yum-3.4.3- 22/22 Verifying : python-msgpack-0.4.2-1.fc20.x8664 1/22 Verifying : python-backports-1.0-3.fc20.x8664 2/22 Verifying : python-setuptools-1.4.2- 3/22 Verifying : python-chardet-2.0.1- 4/22 Verifying : python-backports-sslmatchhostname-3.4.0.2- 5/22 Verifying : python-requests-1.2.3- 6/22 Verifying : python-jinja2-2.7.3- 7/22 Verifying : python-zmq-13.0.2-1.fc20.x8664 8/22 Verifying : python-babel-1.3- 9/22 Verifying : yum-utils-1.1.31- 10/22 Verifying : python-crypto-2.6.1-1.fc20.x8664 11/22 Verifying : python-markupsafe-0.18-1.fc20.x8664 12/22 Verifying : PyYAML-3.10-10.fc20.x8664 13/22 Verifying : libyaml-0.1.6-1.fc20.x8664 14/22 Verifying : openpgm-5.2.122-2.fc20.x8664 15/22 Verifying : pytz-- 16/22 Verifying : zeromq3-3.2.4-1.fc20.x8664 17/22 Verifying : python-kitchen-1.1.1- 18/22 Verifying : m2crypto-0.21.1-13.fc20.x8664 19/22 Verifying : python-urllib3-1.8.2- 20/22 Verifying : yum-3.4.3- 21/22 Verifying : yum-3.4.3- 22/22 Installed: PyYAML.x8664 0:3.10-10.fc20 libyaml.x8664 0:0.1.6-1.fc20 m2crypto.x8664 0:0.21.1-13.fc20 python-crypto.x8664 0:2.6.1-1.fc20 python- 0:2.7.3-1.fc20 python-msgpack.x8664 0:0.4.2-1.fc20 python- 0:1.2.3-5.fc20 python-zmq.x8664 0:13.0.2-1.fc20 yum- 0:1.1.31-23.fc20 Dependency Installed: openpgm.x8664 0:5.2.122-2.fc20 python- 0:1.3-3.fc20 python-backports.x8664 0:1.0-3.fc20 python-backports- 0:3.4.0.2-4.fc20 python- 0:2.0.1-7.fc20 python- 0:1.1.1-5.fc20 python-markupsafe.x8664 0:0.18-1.fc20 python- 0:1.4.2-1.fc20 python- 0:1.8.2-1.fc20 0:-5.fc20 zeromq3.x8664 0:3.2.4-1.fc20 Updated: 0:3.4.3-152.fc20 Complete! INFO: Running installfedorastable() Resolving Dependencies --Running transaction check ---Package salt- 0:2014.1.7-3.fc20 will be installed --Processing Dependency: salt = 2014.1.7-3.fc20 for package: salt-minion-2014.1.7- --Running transaction check ---Package 0:2014.1.7-3.fc20 will be installed --Processing Dependency: sshpass for package: salt-2014.1.7- --Processing Dependency: pciutils for package: salt-2014.1.7- --Running transaction check ---Package pciutils.x8664 0:3.2.1-2.fc20 will be installed --Processing Dependency: pciutils-libs = 3.2.1-2.fc20 for package: pciutils-3.2.1-2.fc20.x8664 ---Package sshpass.x8664 0:1.05-5.fc20 will be installed --Running transaction check ---Package pciutils-libs.x8664 0:3.2.1-1.fc20 will be updated ---Package pciutils-libs.x8664 0:3.2.1-2.fc20 will be an update --Finished Dependency Resolution Dependencies Resolved Package Arch Version Repository Size Installing: salt-minion noarch 2014.1.7-3.fc20 updates 21 k Installing for dependencies: pciutils x8664 3.2.1-2.fc20 updates 90 k salt noarch 2014.1.7-3.fc20 updates 2.7 M sshpass x8664 1.05-5.fc20 fedora 21 k Updating for dependencies: pciutils-libs x8664 3.2.1-2.fc20 updates 44 k Transaction Summary Install 1 Package (+3 Dependent packages) Upgrade ( 1 Dependent package) Total download size: 2.9 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
Total 323 kB/s | 2.9 MB 00:09 Running transaction check Running transaction test Transaction test succeeded Running transaction (shutdown inhibited) Installing : sshpass-1.05-5.fc20.x8664 1/6 Updating : pciutils-libs-3.2.1-2.fc20.x8664 2/6 Installing : pciutils-3.2.1-2.fc20.x8664 3/6 Installing : salt-2014.1.7- 4/6 Installing : salt-minion-2014.1.7- 5/6 Cleanup : pciutils-libs-3.2.1-1.fc20.x8664 6/6 Verifying : pciutils-libs-3.2.1-2.fc20.x8664 1/6 Verifying : pciutils-3.2.1-2.fc20.x8664 2/6 Verifying : salt-2014.1.7- 3/6 Verifying : sshpass-1.05-5.fc20.x8664 4/6 Verifying : salt-minion-2014.1.7- 5/6 Verifying : pciutils-libs-3.2.1-1.fc20.x8664 6/6 Installed: salt- 0:2014.1.7-3.fc20 Dependency Installed: pciutils.x8664 0:3.2.1-2.fc20 0:2014.1.7-3.fc20 sshpass.x8664 0:1.05-5.fc20 Dependency Updated: pciutils-libs.x8664 0:3.2.1-2.fc20 Complete! INFO: Running installfedorastablepost() disabled ln -s '/usr/lib/systemd/system/salt-minion.service' '/etc/systemd/system/multi-' INFO: Running installfedoracheckservices() INFO: Running installfedorarestartdaemons() INFO: Running daemonsrunning() INFO: Salt installed! Stderr from the command: /vagrant/cluster/vagrant/../../cluster/vagrant/provision- line 87: Operation not permitted
Is this from head or the v0.4 release? sent from tiny keyboard On Oct 18, 2014 8:35 AM, "Deyuan Deng" wrote:
From head, running
I'm having trouble reproducing this. I did find another problem () that I'm fixing though. The file that is missing gets dynamically created and written to '/vagrant' as the VM comes up. Either that file didn't get created for some reason (error?) or it was deleted while the vagrant run was ongoing. Can you give me a little bit more context? What machine/OS are you running on? Does this happen all the time or was this an one-off error?
I'm running ubuntu 14.04, vagrant version 1.6.3 This is happening all the time. The command I used is: $ $ vagrant up (My previous comment is somewhat incomplete, the error is from vagrant up command)
Can you perhaps post the full log to a gist or something? Also, if you could put a near the top of that'd help too. I don't have an ubuntu machine that I can easily repro on unfortunately. And doing vagrant inside of vagrant probably doesn't work well :)
Just re-ran it.
-- Sorry I disappeared yesterday. Family :) What is happening here is that you are getting an error from within the vagrant VM when you are trying to write to stuff in the /vagrant directory. I'm really not sure why and how this isn't working. Probably some permissions issue someplace. I'm going to chat with to see if we can move that file from /vagrant to /tmp. That should solve this issue.
I can look into moving the into an alternate directory. In theory, the /vagrant folder is supposed to be write-able, so it must mean your host is not giving write permission where you checked out the code to the vagrant user. Not sure why.
Thanks for investigating the problem, let me know if you need more information from my side.

Discussion:
sdn: cmd.wait: <del> - name: /vagrant/network_closure.sh </del> <ins> - name: /kubernetes-vagrant/network_closure.sh </ins> - watch: - pkg: docker-io - pkg: openvswitch

BRIDGE_NETWORK=${BRIDGE_ADDRESS}/24 BRIDGE_NETMASK=255.255.255.0 NETWORK_CONF_PATH=/etc/sysconfig/network-scripts/ <del> POST_NETWORK_SCRIPT=/vagrant/network_closure.sh </del> <ins> POST_NETWORK_SCRIPT_DIR=/kubernetes-vagrant POST_NETWORK_SCRIPT=${POST_NETWORK_SCRIPT_DIR}/network_closure.sh # ensure location of POST_NETWORK_SCRIPT exists mkdir -p $POST_NETWORK_SCRIPT_DIR </ins> # add docker bridge ifcfg file cat <<EOF > ${NETWORK_CONF_PATH}ifcfg-${DOCKER_BRIDGE}

# persist please iptables-save >& /etc/sysconfig/iptables <del> # self-destruct after doing the job #rm -f ${POST_NETWORK_SCRIPT} </del> EOF chmod +x ${POST_NETWORK_SCRIPT}