Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

quadespresso
Copy link
Contributor

No description provided.

@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "master" [email protected]:quadespresso/libnetwork.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@quadespresso
Copy link
Contributor Author

@codecov-io
Copy link

codecov-io commented Feb 14, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@5c1218c). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2077   +/-   ##
=========================================
  Coverage          ?   36.31%           
=========================================
  Files             ?       99           
  Lines             ?    15810           
  Branches          ?        0           
=========================================
  Hits              ?     5742           
  Misses            ?     9204           
  Partials          ?      864

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c1218c...5a7526d. Read the comment docs.

@quadespresso
Copy link
Contributor Author

Ping @fcrisciani @ctelfer @ddebroy PTAL

Copy link

@adamancini adamancini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change, do we expect ssd will be installed on the host? Will it be included in the dsinfo image?

@quadespresso
Copy link
Contributor Author

@adamancini yes: https://github.com/docker/orca/blob/master/images/dsinfo/Dockerfile#L36

Also: still waiting on this to be merged, which will address where ssd.py gets pulled from, once merged: https://github.com/docker/orca/pull/12210

@trapier
Copy link

trapier commented Mar 22, 2018

Am focusing on other work activities through at least next Tuesday March 27. Please nominate another reviewer if this needs attention before then.

support.sh Outdated
IPTABLES="${IPTABLES:-iptables}"
IPVSADM="${IPVSADM:-ipvsadm}"
IP="${IP:-ip}"
SSDBIN="${SSDBIN:-/ssd}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@quadespresso if I drop a ssd binary (or shell script calling 'docker run ... ssd') in my $PATH to test, the leading / breaks the lookup for the command - I think we can we depend on $PATH inside the container, can we change this to SSDBIN="${SSDBIN:-ssd}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://gist.github.com/adamancini/116ae89b260dc64b67ee46e86ef3a9b1 are my results from support.sh when I call it with ssd support

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed on Slack with @adamancini, I'll make the change as discussed above to remove the leading /.

Likewise, I'll update Dockerfile in dsinfo to /bin in order to leverage $PATH correctly (and to be consistent with a couple other items we're copying to that directory).

echo -e "\t IP overlap found: $ip_overlap"
echo -e "\t Processed $containers containers"

if [ "true" == ${SSD} ] ; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if the SSD has some output, but I would like the SUMMARY to be the last thing to be printed at the end

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${SSD} is just something getting passed from another script to enable the ssd code. If I've understood your question correctly?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put the comment on the top of the block but was referring to the underlying code. I would like to keep the summary as the last output produced from the script, so you need to move your change on top

support.sh Outdated
for netName in $(docker network ls -f driver=overlay --format "{{.Name}}") ; do
echo "## $netName ##"
${SSDBIN} $netName gossip-consistency
done
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The concern with running gossip-consistency is that this command eventually forks another container, so doing this on x networks will result of x containers. Would this be taxing?

${SSDBIN} $netName
echo ""
done
echo "" ; echo "#### SSD control-plane consistency check across nodes in a cluster ####"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@quadespresso let's take gossip-consistency out for now, we'll add it back once we address the caller

@ctelfer
Copy link
Contributor

ctelfer commented Aug 28, 2018

Looks like all comments were addressed. The unit tests that failed clearly had nothing to do with this change as it touches none of the go code, but the tests that were failing were go tests.

Copy link
Contributor

@ctelfer ctelfer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ctelfer ctelfer merged commit 01cc4b1 into moby:master Aug 28, 2018
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.

8 participants