Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra validation check for v2plugin #1096

Merged
merged 3 commits into from
Dec 6, 2017

Conversation

kahou82
Copy link
Member

@kahou82 kahou82 commented Dec 5, 2017

Currently, demo-v2plugin doesn't check if contiv is installed and
enabled.

This patchset is to check if v2plugin is installed and enabled at the
end of the installation

Signed-off-by: kalei@cisco.com

Currently, demo-v2plugin doesn't check if contiv is installed and
enabled.

This patchset is to check if v2plugin is installed and enabled at the
end of the installation

Signed-off-by: <kalei@cisco.com>
@@ -45,6 +45,21 @@
node.runCmdThread(command)

time.sleep(15)

print "Check netplugin is installed and enabled"
out, x, y = nodes[0].runCmd("docker plugin ls")
Copy link
Contributor

Choose a reason for hiding this comment

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

if you don't care about the err and exit value, use '_', though I think you could have docker installed but docker plugin ls fail when dockerd is not running, so you might want to check exit status

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 done.

Copy link
Contributor

@chrisplo chrisplo left a comment

Choose a reason for hiding this comment

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

better than it was, though maybe misleading when dockerd is not running (but installed)

@kahou82 kahou82 merged commit 51e5f6f into contiv:master Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants