hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.29k stars 4.43k forks source link

Docker Provisioner does not install Docker successfully for Alpine OS #9277

Closed krshnmr4 closed 6 years ago

krshnmr4 commented 6 years ago

Please note that the Vagrant issue tracker is reserved for bug reports and enhancements. For general usage questions, please use the Vagrant mailing list: https://groups.google.com/forum/#!forum/vagrant-up. Thank you!

Vagrant version

1.8.6

Host operating system

MacOS

Guest operating system

Alpine OS

Vagrantfile

Last login: Sat Nov 25 05:09:32 on ttys001
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project -  (master) $ cd multiVM/
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project/multiVM -  (master) $ vagrant destroy
    vm2: Are you sure you want to destroy the 'vm2' VM? [y/N] y
==> vm2: Forcing shutdown of VM...
==> vm2: Destroying VM and associated drives...
    vm1: Are you sure you want to destroy the 'vm1' VM? [y/N] y
==> vm1: Forcing shutdown of VM...
==> vm1: Destroying VM and associated drives...
==> vm1: Pruning invalid NFS exports. Administrator privileges will be required...
Password:
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project/multiVM -  (master) $ cd ..
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project -  (master) $ ./controller.sh
Bringing machine 'vm1' up with 'virtualbox' provider...
==> vm1: Importing base box 'maier/alpine-3.4-x86_64'...
==> vm1: Matching MAC address for NAT networking...
==> vm1: Checking if box 'maier/alpine-3.4-x86_64' is up to date...
==> vm1: Setting the name of the VM: multiVM_vm1_1511828185005_95033
==> vm1: Clearing any previously set network interfaces...
==> vm1: Preparing network interfaces based on configuration...
    vm1: Adapter 1: nat
    vm1: Adapter 2: hostonly
==> vm1: Forwarding ports...
    vm1: 22 (guest) => 22220 (host) (adapter 1)
==> vm1: Running 'pre-boot' VM customizations...
==> vm1: Booting VM...
==> vm1: Waiting for machine to boot. This may take a few minutes...
    vm1: SSH address: 127.0.0.1:22220
    vm1: SSH username: vagrant
    vm1: SSH auth method: private key
    vm1: Warning: Remote connection disconnect. Retrying...
    vm1: Warning: Remote connection disconnect. Retrying...
    vm1: 
    vm1: Vagrant insecure key detected. Vagrant will automatically replace
    vm1: this with a newly generated keypair for better security.
    vm1: 
    vm1: Inserting generated public key within guest...
    vm1: Removing insecure key from the guest if it's present...
    vm1: Key inserted! Disconnecting and reconnecting using new SSH key...
==> vm1: Machine booted and ready!
==> vm1: Checking for guest additions in VM...
    vm1: No guest additions were detected on the base box for this VM! Guest
    vm1: additions are required for forwarded ports, shared folders, host only
    vm1: networking, and more. If SSH fails on this machine, please install
    vm1: the guest additions and repackage the box to continue.
    vm1: 
    vm1: This is not an error message; everything may continue to work properly,
    vm1: in which case you may ignore this message.
==> vm1: Setting hostname...
==> vm1: Configuring and enabling network interfaces...
==> vm1: Installing NFS client...
==> vm1: Exporting NFS shared folders...
==> vm1: Preparing to edit /etc/exports. Administrator privileges will be required...
Password:
==> vm1: Mounting NFS shared folders...
==> vm1: Running provisioner: shell...
    vm1: Running: inline script
==> vm1:  * Starting local ...
==> vm1:  [ ok ]
==> vm1: *****Creating MongoDB config*****
==> vm1: *****Creating MongoDB Dockerfile (Alpine based)*****
==> vm1: fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
==> vm1: v3.4.6-246-g1df4897 [http://dl-cdn.alpinelinux.org/alpine/v3.4/main]
==> vm1: OK: 5255 distinct packages available
==> vm1: fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
==> vm1: fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
==> vm1: fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
==> vm1: (1/8) Upgrading busybox (1.24.2-r14 -> 1.27.2-r4)
==> vm1: Executing busybox-1.27.2-r4.post-upgrade
==> vm1: NOTE: /usr/bin/telnet has been moved to the package 'busybox-extras'
==> vm1: NOTE: /usr/sbin/httpd has been moved to the package 'busybox-extras'
==> vm1: NOTE: /usr/bin/ftpget has been moved to the package 'busybox-extras'
==> vm1: NOTE: /usr/bin/ftpput has been moved to the package 'busybox-extras'
==> vm1: NOTE: /usr/sbin/ftpd has been moved to the package 'busybox-extras'
==> vm1: NOTE: /usr/bin/tftp has been moved to the package 'busybox-extras'
==> vm1: NOTE: /usr/sbin/fakeidentd has been moved to the package 'busybox-extras'
==> vm1: NOTE: /usr/sbin/dnsd has been moved to the package 'busybox-extras'
==> vm1: NOTE: /usr/sbin/inetd has been moved to the package 'busybox-extras'
==> vm1: NOTE: /usr/sbin/udhcpd has been moved to the package 'busybox-extras'
==> vm1: (2/8) Installing libmnl (1.0.4-r0)
==> vm1: (3/8) Installing jansson (2.10-r0)
==> vm1: (4/8) Installing libnftnl-libs (1.0.8-r1)
==> vm1: (5/8) Installing iptables (1.6.1-r1)
==> vm1: (6/8) Installing libltdl (2.4.6-r4)
==> vm1: (7/8) Installing libseccomp (2.3.2-r0)
==> vm1: (8/8) Installing docker (17.10.0-r0)
==> vm1: Executing docker-17.10.0-r0.pre-install
==> vm1: Executing busybox-1.27.2-r4.trigger
==> vm1: OK: 413 MiB in 66 packages
==> vm1:  * Caching service dependencies ... [ ok ]
==> vm1:  * /var/log/docker.log: creating file
==> vm1:  * /var/log/docker.log: correcting mode
==> vm1:  * /var/log/docker.log: correcting owner
==> vm1:  * Starting docker ...
==> vm1:  [ ok ]
==> vm1: Docker version 17.10.0-ce, build b22a36dc8a
==> vm1:  * service docker added to runlevel boot
==> vm1: --- Installing dnsmasq to resolve cs527 domains locally...
==> vm1: (1/1) Installing dnsmasq (2.76-r1)
==> vm1: Executing dnsmasq-2.76-r1.pre-install
==> vm1: Executing busybox-1.27.2-r4.trigger
==> vm1: OK: 413 MiB in 67 packages
==> vm1:  * Starting dnsmasq ...
==> vm1:  [ ok ]
==> vm1:  * service dnsmasq added to runlevel default

==> vm1: Machine 'vm1' has a post `vagrant up` message. This is a message
==> vm1: from the creator of the Vagrantfile, and not from Vagrant itself:
==> vm1: 
==> vm1: --- cs-527 VM1 ---
==> vm1: To start the VM, use `vagrant ssh` to SSH into the VM.
==> vm1: See README.md for usage instructions.
Bringing machine 'vm2' up with 'virtualbox' provider...
==> vm2: Importing base box 'maier/alpine-3.4-x86_64'...
==> vm2: Matching MAC address for NAT networking...
==> vm2: Checking if box 'maier/alpine-3.4-x86_64' is up to date...
==> vm2: Setting the name of the VM: multiVM_vm2_1511828623319_18916
==> vm2: Clearing any previously set network interfaces...
==> vm2: Preparing network interfaces based on configuration...
    vm2: Adapter 1: nat
    vm2: Adapter 2: hostonly
==> vm2: Forwarding ports...
    vm2: 22 (guest) => 22221 (host) (adapter 1)
==> vm2: Running 'pre-boot' VM customizations...
==> vm2: Booting VM...
==> vm2: Waiting for machine to boot. This may take a few minutes...
    vm2: SSH address: 127.0.0.1:22221
    vm2: SSH username: vagrant
    vm2: SSH auth method: private key
    vm2: Warning: Remote connection disconnect. Retrying...
    vm2: Warning: Remote connection disconnect. Retrying...
    vm2: 
    vm2: Vagrant insecure key detected. Vagrant will automatically replace
    vm2: this with a newly generated keypair for better security.
    vm2: 
    vm2: Inserting generated public key within guest...
    vm2: Removing insecure key from the guest if it's present...
    vm2: Key inserted! Disconnecting and reconnecting using new SSH key...
==> vm2: Machine booted and ready!
==> vm2: Checking for guest additions in VM...
    vm2: No guest additions were detected on the base box for this VM! Guest
    vm2: additions are required for forwarded ports, shared folders, host only
    vm2: networking, and more. If SSH fails on this machine, please install
    vm2: the guest additions and repackage the box to continue.
    vm2: 
    vm2: This is not an error message; everything may continue to work properly,
    vm2: in which case you may ignore this message.
==> vm2: Setting hostname...
==> vm2: Configuring and enabling network interfaces...
==> vm2: Installing NFS client...
==> vm2: Exporting NFS shared folders...
==> vm2: Preparing to edit /etc/exports. Administrator privileges will be required...
==> vm2: Mounting NFS shared folders...
==> vm2: Running provisioner: shell...
    vm2: Running: inline script
==> vm2:  * Starting local ...
==> vm2:  [ ok ]
==> vm2: *****Creating MongoDB config*****
==> vm2: *****Creating MongoDB Dockerfile (Alpine based)*****
==> vm2: fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
==> vm2: v3.4.6-246-g1df4897 [http://dl-cdn.alpinelinux.org/alpine/v3.4/main]
==> vm2: OK: 5255 distinct packages available
==> vm2: fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
==> vm2: fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
==> vm2: fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
==> vm2: (1/8) Upgrading busybox (1.24.2-r14 -> 1.27.2-r4)
==> vm2: Executing busybox-1.27.2-r4.post-upgrade
==> vm2: NOTE: /usr/bin/telnet has been moved to the package 'busybox-extras'
==> vm2: NOTE: /usr/sbin/httpd has been moved to the package 'busybox-extras'
==> vm2: NOTE: /usr/bin/ftpget has been moved to the package 'busybox-extras'
==> vm2: NOTE: /usr/bin/ftpput has been moved to the package 'busybox-extras'
==> vm2: NOTE: /usr/sbin/ftpd has been moved to the package 'busybox-extras'
==> vm2: NOTE: /usr/bin/tftp has been moved to the package 'busybox-extras'
==> vm2: NOTE: /usr/sbin/fakeidentd has been moved to the package 'busybox-extras'
==> vm2: NOTE: /usr/sbin/dnsd has been moved to the package 'busybox-extras'
==> vm2: NOTE: /usr/sbin/inetd has been moved to the package 'busybox-extras'
==> vm2: NOTE: /usr/sbin/udhcpd has been moved to the package 'busybox-extras'
==> vm2: (2/8) Installing libmnl (1.0.4-r0)
==> vm2: (3/8) Installing jansson (2.10-r0)
==> vm2: (4/8) Installing libnftnl-libs (1.0.8-r1)
==> vm2: (5/8) Installing iptables (1.6.1-r1)
==> vm2: (6/8) Installing libltdl (2.4.6-r4)
==> vm2: (7/8) Installing libseccomp (2.3.2-r0)
==> vm2: (8/8) Installing docker (17.10.0-r0)
==> vm2: Executing docker-17.10.0-r0.pre-install
==> vm2: Executing busybox-1.27.2-r4.trigger
==> vm2: OK: 413 MiB in 66 packages
==> vm2:  * Caching service dependencies ... [ ok ]
==> vm2:  * /var/log/docker.log: creating file
==> vm2:  * /var/log/docker.log: correcting mode
==> vm2:  * /var/log/docker.log: correcting owner
==> vm2:  * Starting docker ...
==> vm2:  [ ok ]
==> vm2: Docker version 17.10.0-ce, build b22a36dc8a
==> vm2:  * service docker added to runlevel boot
==> vm2: --- Installing dnsmasq to resolve cs527 domains locally...
==> vm2: (1/1) Installing dnsmasq (2.76-r1)
==> vm2: Executing dnsmasq-2.76-r1.pre-install
==> vm2: Executing busybox-1.27.2-r4.trigger
==> vm2: OK: 413 MiB in 67 packages
==> vm2:  * Starting dnsmasq ...
==> vm2:  [ ok ]
==> vm2:  * service dnsmasq added to runlevel default

==> vm2: Machine 'vm2' has a post `vagrant up` message. This is a message
==> vm2: from the creator of the Vagrantfile, and not from Vagrant itself:
==> vm2: 
==> vm2: --- cs-527 VM2 ---
==> vm2: To start the VM, use `vagrant ssh` to SSH into the VM.
==> vm2: See README.md for usage instructions.
./controller.sh: line 20: vm1                       running (virtualbox)
The VM is running. To stop this VM, you can run `vagrant halt` to: command not found
./controller.sh: line 27: vm2                       running (virtualbox)
The VM is running. To stop this VM, you can run `vagrant halt` to: command not found

Alpine Linux v3.4 (3.4.0) Development Environment

Built for use with Vagrant using:
   <https://github.com/maier/packer-templates>

See the Alpine Wiki for how-to guides and
general information about administrating
Alpine systems and development.
See <http://wiki.alpinelinux.org>

Running startup stuff
Error response from daemon: No such container: mongodb-container
Error response from daemon: No such container: remote-control-container
Sending build context to Docker daemon  4.608kB
Step 1/7 : FROM alpine:edge
edge: Pulling from library/alpine
e00d546a75ad: Pull complete 
Digest: sha256:23e7d843e63a3eee29b6b8cfcd10e23dd1ef28f47251a985606a31040bf8e096
Status: Downloaded newer image for alpine:edge
 ---> 72dfe9e82e16
Step 2/7 : RUN apk add --no-cache mongodb
 ---> Running in f6736f856fa0
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(1/20) Installing boost-system (1.62.0-r5)
(2/20) Installing libgcc (6.4.0-r5)
(3/20) Installing boost-filesystem (1.62.0-r5)
(4/20) Installing boost-regex (1.62.0-r5)
(5/20) Installing boost-thread (1.62.0-r5)
(6/20) Installing libstdc++ (6.4.0-r5)
(7/20) Installing boost (1.62.0-r5)
(8/20) Installing libbz2 (1.0.6-r6)
(9/20) Installing boost-iostreams (1.62.0-r5)
(10/20) Installing boost-program_options (1.62.0-r5)
(11/20) Installing libressl2.6-libcrypto (2.6.3-r0)
(12/20) Installing pcre (8.41-r1)
(13/20) Installing libpcrecpp (8.41-r1)
(14/20) Installing db (5.3.28-r0)
(15/20) Installing libsasl (2.1.26-r11)
(16/20) Installing snappy (1.1.4-r2)
(17/20) Installing libressl2.6-libssl (2.6.3-r0)
(18/20) Installing wiredtiger-libs (2.9.3.3.4.10-r0)
(19/20) Installing yaml-cpp (0.5.3-r4)
(20/20) Installing mongodb (3.4.10-r0)
Executing mongodb-3.4.10-r0.pre-install
Executing busybox-1.27.2-r2.trigger
OK: 144 MiB in 31 packages
 ---> 098c917d3a23
Step 3/7 : VOLUME /conf
 ---> Running in 161745bfe21b
 ---> ed24ea187e7e
Step 4/7 : VOLUME /data/db
 ---> Running in cbb8b1a2cdb8
 ---> 23c2f2dd4891
Step 5/7 : COPY conf/mongod.conf /conf/mongod.conf
 ---> 8edbc2ae6764
Step 6/7 : EXPOSE 27017
 ---> Running in 9543f5241c19
 ---> 18a4cb2eaf22
Step 7/7 : ENTRYPOINT ["mongod"]
 ---> Running in 5f79be3dfdcb
 ---> 72d3cc899b26
Removing intermediate container cbb8b1a2cdb8
Removing intermediate container 9543f5241c19
Removing intermediate container 5f79be3dfdcb
Removing intermediate container f6736f856fa0
Removing intermediate container 161745bfe21b
Successfully built 72d3cc899b26
Successfully tagged mongodb:latest
dcd7404322e3bc94f05ba29ea8d47273a04123bc8ee082e45e351f039d76d5ae
Unable to find image 'jarkt/docker-remote-api:latest' locally
latest: Pulling from jarkt/docker-remote-api
cfc728c1c558: Pull complete 
342750649827: Pull complete 
Digest: sha256:b744eb1c2d19a90f44ffd1cc1c9ceeacead67cfac25b79d48d7d2697a156e538
Status: Downloaded newer image for jarkt/docker-remote-api:latest
69d0813fd7fcc70ac12b05aa7d251b67e4d0afd4b6fda243a3d99be9cb978d7e
CONTAINER ID        IMAGE                     COMMAND                  CREATED             STATUS                  PORTS                      NAMES
69d0813fd7fc        jarkt/docker-remote-api   "/bin/sh -c 'socat..."   1 second ago        Up Less than a second   0.0.0.0:80->2375/tcp       remote-control-container
dcd7404322e3        mongodb                   "mongod"                 4 seconds ago       Up 3 seconds            0.0.0.0:27017->27017/tcp   mongodb-container
Type Exit if you would like to continue custom provisioning.
cs527-vm1:/vm-home/mongodb/alpine$ Connection to 127.0.0.1 closed by remote host.
Connection to 127.0.0.1 closed.
VM must be running to open SSH connection. Run `vagrant up`
to start the virtual machine.
Sending build context to Docker daemon  168.4kB
Step 1/9 : FROM alpine:edge
 ---> 72dfe9e82e16
Step 2/9 : VOLUME /src
 ---> Using cache
 ---> 3c3b8bd99a0e
Step 3/9 : COPY . /src
 ---> d6b017d1edb3
Step 4/9 : RUN apk add --no-cache python3 &&     python3 -m ensurepip &&     rm -r /usr/lib/python*/ensurepip &&     pip3 install --upgrade pip setuptools &&     if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi &&     if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && rm -r /root/.cache
 ---> Running in f2716dfdfb08
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(1/13) Installing libbz2 (1.0.6-r6)
(2/13) Installing libressl2.6-libcrypto (2.6.3-r0)
(3/13) Installing expat (2.2.5-r0)
(4/13) Installing libffi (3.2.1-r4)
(5/13) Installing gdbm (1.13-r1)
(6/13) Installing xz-libs (5.2.3-r1)
(7/13) Installing ncurses-terminfo-base (6.0_p20170930-r0)
(8/13) Installing ncurses-terminfo (6.0_p20170930-r0)
(9/13) Installing ncurses-libs (6.0_p20170930-r0)
(10/13) Installing readline (7.0.003-r0)
(11/13) Installing sqlite-libs (3.21.0-r0)
(12/13) Installing libressl2.6-libssl (2.6.3-r0)
(13/13) Installing python3 (3.6.3-r9)
Executing busybox-1.27.2-r2.trigger
OK: 66 MiB in 24 packages
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages
Requirement already satisfied: pip in /usr/lib/python3.6/site-packages
Requirement already up-to-date: pip in /usr/lib/python3.6/site-packages
Collecting setuptools
  Downloading setuptools-38.2.3-py2.py3-none-any.whl (489kB)
Installing collected packages: setuptools
  Found existing installation: setuptools 28.8.0
    Uninstalling setuptools-28.8.0:
      Successfully uninstalled setuptools-28.8.0
Successfully installed setuptools-38.2.3
 ---> 508ae342e5df
Removing intermediate container f2716dfdfb08
Step 5/9 : RUN pip install -r src/requirements.txt
 ---> Running in 02a9dd330ac0
Collecting mock==2.0.0 (from -r src/requirements.txt (line 1))
  Downloading mock-2.0.0-py2.py3-none-any.whl (56kB)
Collecting mongomock==3.7.0 (from -r src/requirements.txt (line 2))
  Downloading mongomock-3.7.0-py2.py3-none-any.whl
Collecting pbr==2.0.0 (from -r src/requirements.txt (line 3))
  Downloading pbr-2.0.0-py2.py3-none-any.whl (98kB)
Collecting py==1.4.32 (from -r src/requirements.txt (line 4))
  Downloading py-1.4.32-py2.py3-none-any.whl (82kB)
Collecting pymongo==3.4.0 (from -r src/requirements.txt (line 5))
  Downloading pymongo-3.4.0.tar.gz (583kB)
Collecting pytest==3.0.6 (from -r src/requirements.txt (line 6))
  Downloading pytest-3.0.6-py2.py3-none-any.whl (172kB)
Collecting sentinels==1.0.0 (from -r src/requirements.txt (line 7))
  Downloading sentinels-1.0.0.tar.gz
Collecting six==1.10.0 (from -r src/requirements.txt (line 8))
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting docker==2.6.1 (from -r src/requirements.txt (line 9))
  Downloading docker-2.6.1-py2.py3-none-any.whl (117kB)
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from pytest==3.0.6->-r src/requirements.txt (line 6))
Collecting websocket-client>=0.32.0 (from docker==2.6.1->-r src/requirements.txt (line 9))
  Downloading websocket_client-0.44.0-py2.py3-none-any.whl (199kB)
Collecting docker-pycreds>=0.2.1 (from docker==2.6.1->-r src/requirements.txt (line 9))
  Downloading docker_pycreds-0.2.1-py2.py3-none-any.whl
Collecting requests!=2.11.0,!=2.12.2,!=2.18.0,>=2.5.2 (from docker==2.6.1->-r src/requirements.txt (line 9))
  Downloading requests-2.18.4-py2.py3-none-any.whl (88kB)
Collecting urllib3<1.23,>=1.21.1 (from requests!=2.11.0,!=2.12.2,!=2.18.0,>=2.5.2->docker==2.6.1->-r src/requirements.txt (line 9))
  Downloading urllib3-1.22-py2.py3-none-any.whl (132kB)
Collecting idna<2.7,>=2.5 (from requests!=2.11.0,!=2.12.2,!=2.18.0,>=2.5.2->docker==2.6.1->-r src/requirements.txt (line 9))
  Downloading idna-2.6-py2.py3-none-any.whl (56kB)
Collecting chardet<3.1.0,>=3.0.2 (from requests!=2.11.0,!=2.12.2,!=2.18.0,>=2.5.2->docker==2.6.1->-r src/requirements.txt (line 9))
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting certifi>=2017.4.17 (from requests!=2.11.0,!=2.12.2,!=2.18.0,>=2.5.2->docker==2.6.1->-r src/requirements.txt (line 9))
  Downloading certifi-2017.11.5-py2.py3-none-any.whl (330kB)
Installing collected packages: pbr, six, mock, sentinels, mongomock, py, pymongo, pytest, websocket-client, docker-pycreds, urllib3, idna, chardet, certifi, requests, docker
  Running setup.py install for sentinels: started
    Running setup.py install for sentinels: finished with status 'done'
  Running setup.py install for pymongo: started
    Running setup.py install for pymongo: finished with status 'done'
Successfully installed certifi-2017.11.5 chardet-3.0.4 docker-2.6.1 docker-pycreds-0.2.1 idna-2.6 mock-2.0.0 mongomock-3.7.0 pbr-2.0.0 py-1.4.32 pymongo-3.4.0 pytest-3.0.6 requests-2.18.4 sentinels-1.0.0 six-1.10.0 urllib3-1.22 websocket-client-0.44.0
 ---> 625b28c7a928
Removing intermediate container 02a9dd330ac0
Step 6/9 : RUN for name in `find /src | grep __pycache__`; do rm -rf $name; done
 ---> Running in 510f0e823ff3
 ---> fcd8a5855651
Removing intermediate container 510f0e823ff3
Step 7/9 : WORKDIR /src
 ---> 8c19ff67d64b
Removing intermediate container 6a3f7bca81c8
Step 8/9 : CMD python --version
 ---> Running in 9089f19aee2c
 ---> 9ee4fb55d1dd
Removing intermediate container 9089f19aee2c
Step 9/9 : CMD pytest -s
 ---> Running in cc561569d29e
 ---> 399d8143dbf5
Removing intermediate container cc561569d29e
Successfully built 5258fef56bd1
Successfully tagged cs527-project:latest
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.0.6, py-1.4.32, pluggy-0.4.0
rootdir: /src, inifile: 
collected 5 items / 1 errors

==================================== ERRORS ====================================
___________ ERROR collecting resources/tests/test_cluster_mongodb.py ___________
ImportError while importing test module '/src/resources/tests/test_cluster_mongodb.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
resources/tests/test_cluster_mongodb.py:7: in <module>
    from mongodb import MongoDbClusterAgent
E   ModuleNotFoundError: No module named 'mongodb'
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.97 seconds ============================
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project -  (master) $ 
  [Restored Nov 27, 2017, 4:55:47 PM]
Last login: Mon Nov 27 16:55:45 on ttys000
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project -  (master) $ git branch -a
* master
  remotes/origin/master
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project -  (master) $ ls
README.md   controller.sh   multiVM     results     src     vagrant
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project -  (master) $ cd multiVM/
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project/multiVM -  (master) $ ls
README.md   Vagrantfile osx.sh
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project/multiVM -  (master) $ vi Vagrantfile
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project/multiVM -  (master) $ vagrant -v
Vagrant 1.8.6
skrishnamurthy@Shiva-MacBook ~/uiuc/cs527-project/multiVM -  (master) $ vi Vagrantfile 

Vagrant.require_version ">= 1.8.0"

required_plugins = %w(vagrant-alpine)

plugins_to_install = required_plugins.select { |plugin| not Vagrant.has_plugin? plugin }
if not plugins_to_install.empty?
  system "vagrant plugin install #{plugins_to_install.join(' ')}"
  exec "vagrant #{ARGV.join(' ')}"
end

Vagrant.configure(2) do |config|
  # For a complete reference, please see the online documentation at
  # https://docs.vagrantup.com.

  # Base this on alpine 3.4
  config.vm.box = "maier/alpine-3.4-x86_64"

# install docker and pull mongodb
  config.vm.provision "docker" do |d|
     d.pull_images "mongodb"
  end

Debug output

Provide a link to a GitHub Gist containing the complete debug output: https://www.vagrantup.com/docs/other/debugging.html. The debug output should be very long. Do NOT paste the debug output in the issue, just paste the link to the Gist.

Expected behavior

Docker should have successfully installed

Actual behavior

Errors out.

briancain commented 6 years ago

@krshnmr4 - from what I can tell in the log you provided, it looks like docker was working and installed just fine. The errors I see are not from docker or vagrant but from setting up your containers.

...
==> vm1:  * Starting docker ...
==> vm1:  [ ok ]
==> vm1: Docker version 17.10.0-ce, build b22a36dc8a
...
==> vm2:  * Starting docker ...
==> vm2:  [ ok ]
==> vm2: Docker version 17.10.0-ce, build b22a36dc8a
...

I'm going to go ahead and close this since it doesn't look like a Vagrant issue. Thanks!

ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.