Skip to content

Bump v1.7.1 - #14264

Merged
calavera merged 20 commits into
moby:releasefrom
calavera:bump_v1.7.1
Jul 14, 2015
Merged

calavera merged 20 commits into
moby:releasefrom
calavera:bump_v1.7.1

Conversation

@calavera

Copy link
Copy Markdown
Contributor

Scheduled to be released Tuesday, July 7th.

RC1 will be pushed to test.docker.com momentarily along with rpms.

Please help with testing as this will be the official RC.

During `(*Graph).Register, there was no protection on adding new layers
concurrently. In some cases, this resulted in corruption of a layer by creating
the directory but not the underlying data. This manifested in several different
IO errors reported in the client.  This attempts to fix this by adding a mutex
by Image ID to protect the Register operation.

We do not completely understand the root cause of this corruption other than
the result is somehow tied to this particular function.  This fix has been
confirmed to address the issue through testing.

Unfortunately, this fix does not address existing corruption. The user will
have to remove and re-pull the corrupt layer to stop the error from happening
in the future. This change only ensures that the layer will not become corrupt.

Signed-off-by: Stephen J Day <[email protected]>
@tianon

tianon commented Jun 29, 2015

Copy link
Copy Markdown
Member

Shouldn't this have a few more of the commits from the milestone in it? (https://github.com/docker/docker/pulls?q=is%3Apr+milestone%3A1.7.1, especially the merged ones?)

@calavera

Copy link
Copy Markdown
Contributor Author

@tianon yes, working on it. I wasn't sure if we opened this PR before or after having all the commits that go in the release, so I opened it already.

@tianon

tianon commented Jun 29, 2015

Copy link
Copy Markdown
Member

Fair enough, just checking! 👍 ❤️

cpuguy83 and others added 4 commits June 29, 2015 11:09
With the 1.7 release, we introduced a change to how we store registry
credentials, but the build API endpoint did not expect a change in the format
of that file. This patch fixes this problem so that you can again pull private
images during `docker build`.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <[email protected]> (github: jlhawn)
Today, endpoints implementing v2 cannot properly fallback to v1 because the underlying transport that deals with authentication (Basic / Token) doesn't get annotated.

This doesn't affect DockerHub because the DockerHub endpoint appears as 'https://index.docker.io/v1/' (in .dockercfg), and the 'v1' tricks this logic just long enough that the transport is always annotated for DockerHub accesses.

Signed-off-by: Matt Moore <[email protected]>
@thaJeztah thaJeztah mentioned this pull request Jun 29, 2015
@thaJeztah

Copy link
Copy Markdown
Member

@calavera you'll mention when the RC is built and available for testing? (because I'm pointing people to this PR to watch)

@calavera

Copy link
Copy Markdown
Contributor Author

@thaJeztah yes, still waiting for a few more PRs in the milestone before cutting the RC.

mavenugo and others added 2 commits June 30, 2015 16:00
libnetwork host, none and bridge driver initialization is incorrectly
disabled if the daemon flag --bridge=none. The expected behavior of
setting --bridge as none is to disable the bridge driver alone and let
all other modes to be operational.

Signed-off-by: Madhu Venugopal <[email protected]>
Signed-off-by: David Calavera <[email protected]>

Conflicts:
	daemon/container_linux.go
	daemon/daemon.go
	daemon/daemon_unix.go
	daemon/daemon_windows.go
Commit id: 3daf67270570c1e07e3e3184d46a10f0c5d66f87

Signed-off-by: Jana Radhakrishnan <[email protected]>
@choman

choman commented Jul 2, 2015

Copy link
Copy Markdown

getting eager to test. is the RC ready?

@calavera

calavera commented Jul 2, 2015

Copy link
Copy Markdown
Contributor Author

@lesgrossman there are still a couple if remaining issues in the milestone.

@choman

choman commented Jul 2, 2015

Copy link
Copy Markdown

@calavera thanks for the update, continuing to wait patiently.

@choman

choman commented Jul 9, 2015

Copy link
Copy Markdown

@calavera Your welcome. just trying to do my part, slowly getting more involved. LMK when the RPMs are available. testing on ubuntu 15.04 now

@jessfraz

jessfraz commented Jul 9, 2015

Copy link
Copy Markdown
Contributor

RPMs

Centos 6/RHEL6
https://test.docker.com/rpm/1.7.1-rc3/centos-6/RPMS/x86_64/docker-engine-1.7.1-0.3.rc3.el6.x86_64.rpm
https://test.docker.com/rpm/1.7.1-rc3/centos-6/SRPMS/docker-engine-1.7.1-0.3.rc3.el6.src.rpm

Centos 7/RHEL7
https://test.docker.com/rpm/1.7.1-rc3/centos-7/RPMS/x86_64/docker-engine-1.7.1-0.3.rc3.el7.centos.x86_64.rpm
https://test.docker.com/rpm/1.7.1-rc3/centos-7/SRPMS/docker-engine-1.7.1-0.3.rc3.el7.centos.src.rpm

Fedora 20
https://test.docker.com/rpm/1.7.1-rc3/fedora-20/RPMS/x86_64/docker-engine-1.7.1-0.3.rc3.fc20.x86_64.rpm
https://test.docker.com/rpm/1.7.1-rc3/fedora-20/SRPMS/docker-engine-1.7.1-0.3.rc3.fc20.src.rpm

Fedora 21
https://test.docker.com/rpm/1.7.1-rc3/fedora-21/RPMS/x86_64/docker-engine-1.7.1-0.3.rc3.fc21.x86_64.rpm
https://test.docker.com/rpm/1.7.1-rc3/fedora-21/SRPMS/docker-engine-1.7.1-0.3.rc3.fc21.src.rpm

Fedora 22
https://test.docker.com/rpm/1.7.1-rc3/fedora-22/RPMS/x86_64/docker-engine-1.7.1-0.3.rc3.fc22.x86_64.rpm
https://test.docker.com/rpm/1.7.1-rc3/fedora-22/SRPMS/docker-engine-1.7.1-0.3.rc3.fc22.src.rpm

@thaJeztah

Copy link
Copy Markdown
Member

@calavera was #14456 cherry-picked?

@calavera

Copy link
Copy Markdown
Contributor Author

@thaJeztah I did not 😿 thanks for the ping, adding that commit now.

@jfrazelle do you think we need an RC4 for that or we can test the rpms without it? I'm guessing it should be good as long as we use it to create the final packages.

@ssadams11

Copy link
Copy Markdown

Tried the latest (rc3) but no joy. Still failing to connect across containers.

Failed Environment:

uname -a
Linux tinkertools.rlse.cloud9.ibm.com 2.6.32-504.23.4.el6.x86_64 #1 SMP Fri May 29 10:16:43 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

docker version
Client version: 1.7.1-rc3
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): c2e658d
OS/Arch (client): linux/amd64
Server version: 1.7.1-rc3
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): c2e658d
OS/Arch (server): linux/amd64

Steps taken:

  1. wget https://test.docker.com/rpm/1.7.1-rc3/centos-6/RPMS/x86_64/docker-engine-1.7.1-0.3.rc3.el6.x86_64.rpm
  2. yum localinstall --nogpgcheck docker-engine-1.7.1-0.3.rc3.el6.x86_64.rpm
  3. service docker start
  4. docker run hello-world
    succeeds
  5. run mongo container
    succeeds
  6. run meteord container connecting to mongo container over port 27017
    restarts in loop until max retries
  7. docker logs myMeteor
    Error: failed to connect to [tinkertools.rlse.cloud9.ibm.com:27017]

As before the same setup and containers connect and run fine on ubuntu:

Successful Environment:

uname -a
Linux tinkertools2 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:08:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

docker version
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): linux/amd64
Server version: 1.7.0
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 0baf609
OS/Arch (server): linux/amd64

@jessfraz

Copy link
Copy Markdown
Contributor

Is that rhel 6 what arguments are you passing to the daemon

On Thursday, July 9, 2015, ssadams11 [email protected] wrote:

Tried the latest (rc3) but no joy. Still failing to connect across
containers.

Failed Environment:

uname -a
Linux tinkertools.rlse.cloud9.ibm.com 2.6.32-504.23.4.el6.x86_64 #1
#1 SMP Fri May 29 10:16:43 EDT
2015 x86_64 x86_64 x86_64 GNU/Linux

docker version
Client version: 1.7.1-rc3
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): c2e658d
c2e658d
OS/Arch (client): linux/amd64
Server version: 1.7.1-rc3
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): c2e658d
c2e658d
OS/Arch (server): linux/amd64

Steps taken:

  1. wget
    https://test.docker.com/rpm/1.7.1-rc3/centos-6/RPMS/x86_64/docker-engine-1.7.1-0.3.rc3.el6.x86_64.rpm
  2. yum localinstall --nogpgcheck docker-engine-1.7.1-0.3.rc3.el6.x86_64.rpm
  3. service docker start
  4. docker run hello-world

succeeds
5) run mongo container
succeeds
6) run meteord container connecting to mongo container over port 27017
restarts in loop until max retries
7) docker logs myMeteor
Error: failed to connect to [tinkertools.rlse.cloud9.ibm.com:27017]

As before the same setup and containers connect and run fine on ubuntu:

Successful Environment:

uname -a
Linux tinkertools2 3.13.0-51-generic #84
#84 SMP Wed Apr 15 12:08:34
UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

docker version
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
0baf609
OS/Arch (client): linux/amd64
Server version: 1.7.0
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 0baf609
0baf609
OS/Arch (server): linux/amd64

—
Reply to this email directly or view it on GitHub
#14264 (comment).

@mavenugo

Copy link
Copy Markdown
Contributor

@ssadams11 just to confirm can you please check if my earlier comment has any impact for your use-case ? #14264 (comment)

@hebime

hebime commented Jul 10, 2015

Copy link
Copy Markdown

@jfrazelle I'm having the same issue as well.
I'm running rhel 6. I even downgraded the kernel as @mavenugo suggested in the previous comment. I started the daemon with no extra arguments.

@ssadams11

Copy link
Copy Markdown

yes, RHEL 6.6. 2.6.32-504.23.4.el6.x86_64
I did not downgrade kernel as suggested. I'll try that next.

containers launched using the following:

docker run --name myMongo --restart=always -d -p 27017:27017 mongo

docker run -d
-e ROOT_URL=http://tinkertools.sl.cloud9.ibm.com
-e MONGO_URL=mongodb://tinkertools.sl.cloud9.ibm.com:27017/local
-v ~/:/bundle
-p 80:80
--restart=always
--name=myMeteor
meteorhacks/meteord:base

@ssadams11

Copy link
Copy Markdown

@mavenugo
I downgraded the kernel as you suggested but still same results.

@mavenugo

Copy link
Copy Markdown
Contributor

@ssadams11 looking at your use-case, it seems similar to #13873 which we resolved in 1.7.0. Essentially the issue was about trying to reach a container running in the same host via the Host-IP and mapped port (instead of using the container-ip or container-linking).

Tried a simple case in Centos6.6 with the the kernel that I mentioned above -

  • start a container exposing port 8000 & run nc server
$ sudo docker run --rm -p 8000:8000 busybox sh -c "echo hello | nc -lp 8000"
  • check the host's eth0 ip-address (not the container's ip-address).
$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 08:00:27:6B:1C:DD
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe6b:1cdd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7083 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4119 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5234165 (4.9 MiB)  TX bytes:313561 (306.2 KiB)
  • Start another container connecting to the first container via host's eth0 ip and exposed port
$ sudo docker run -it  busybox nc 10.0.2.15 8000
hello
  • If it works, the 2nd container must output hello as echoed by the server container.

Can you please confirm if that works for you ?

As you can see above, it works fine in my centos setup and hence I have to suspect either any incorrect left-over iptables rules in your environment (or) name resolution for tinkertools.sl.cloud9.ibm.com. Can you please try using the host-ip (instead of the name to confirm the behavior ?).

Also for your reference, the IPTables rules for the above simple scenario looks like this -

$ sudo iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DOCKER     all  --  anywhere             anywhere            ADDRTYPE match dst-type LOCAL

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  172.17.0.0/16        anywhere
MASQUERADE  all  --  172.17.0.0/16        anywhere
MASQUERADE  tcp  --  172.17.0.34          172.17.0.34         tcp dpt:irdmi

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
DOCKER     all  --  anywhere            !loopback/8          ADDRTYPE match dst-type LOCAL

Chain DOCKER (2 references)
target     prot opt source               destination
DNAT       tcp  --  anywhere             anywhere            tcp dpt:irdmi to:172.17.0.34:8000

$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
DOCKER     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere            ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain DOCKER (1 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             172.17.0.34         tcp dpt:irdmi

…es on libraries during build.

Signed-off-by: Avi Miller <[email protected]>
@icecrime

Copy link
Copy Markdown
Contributor

LGTM

Signed-off-by: David Calavera <[email protected]>
@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

@thaJeztah

Copy link
Copy Markdown
Member

Just FYI; I pinged @ibuildthecloud to check if they have discovered issues, he's testing now

@jessfraz

Copy link
Copy Markdown
Contributor

oh nice

@ibuildthecloud

Copy link
Copy Markdown
Contributor

LGTM. Tried basic integration tests, not full suite, but I assume it will be good :)

calavera added a commit that referenced this pull request Jul 14, 2015
@calavera
calavera merged commit a35c498 into moby:release Jul 14, 2015
@thaJeztah

Copy link
Copy Markdown
Member

Thanks @ibuildthecloud sorry I was a bit late pinging you, but glad you were able to do the basic testing.

@calavera
calavera deleted the bump_v1.7.1 branch July 14, 2015 23:34
@choman

choman commented Jul 16, 2015

Copy link
Copy Markdown

accidentally updated centOS 6.6 and a new kernel came down. docker 1.7.1 appear very
unstable with this new kernel. my VM has panic'd twice while working with docker. It is possible
this would happened on the kernel - 1. Trying to figure out how to roll back a kernel and test
same stuff, sorry not really a centOS guy.

in either case, may need a 1.7.2 release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.