Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Refreshing vDVS installation user guide for 0.13 release #1124

Conversation

shuklanirdesh82
Copy link
Contributor

Refreshing vDVS installation user guide for 0.13 release

  • Adding reference of bintray to down load VIB
  • managed plugin will be pulled from docker store
  • Adding command reference to deal with managed plugin

/cc @msterin


# Install on VM

We currently package the service as a RPM and Deb package. This is to be able to start the service before Docker engine starts. We will also support Docker plugin framework once it is ready.
vDVS 0.13 comes with managed plugin support using Docker plugin framework and please note DEB/RPM packages will be deprecated going forward and will not be available.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be split into two separate sentences.
Starting 0.13 release, vDVS supports a managed plugin that is available for download from Docker store. DEB/RPM packages will be deprecated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure!

**For Docker 1.13 and above**, install managed plugin from [Docker store](https://store.docker.com/plugins/e15dc9d5-e20e-4fb8-8876-9615e6e6e852?tab=description).
```
docker plugin install --grant-all-permissions --alias vsphere vmware/docker-volume-vsphere:latest
```
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be removed since we explicitly cover installation for managed plugin.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to keep it here as this is installation user guide.

Copy link
Contributor

Choose a reason for hiding this comment

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

We have exact same thing on line 36 under installation section. Why do we need to repeat it twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

make sense ... Thanks for elaborating.

docker plugin install --grant-all-permissions --alias vsphere vmware/docker-volume-vsphere:latest
```

**Using vDVS managed plugin**
Copy link
Contributor

@tusharnt tusharnt Mar 31, 2017

Choose a reason for hiding this comment

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

Using vDVS managed plugin -> vDVS managed plugin
Prerequisite : Docker 1.13 and above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using vDVS managed plugin -> vDVS managed plugin
changed it to vDVS managed plugin life cycle; basically plan is to give some commands handy

Prerequisite : Docker 1.13 and above
It is mentioned at L31 so avoid repetition

Copy link
Contributor

Choose a reason for hiding this comment

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

Here's the structure I am proposing -
vDVS managed plugin
Prerequisite : Docker 1.13 and above
Plugin lifecycle
-Installation
-Enable/Disable
-Removal

vDVS RPM/DEB based installation
Prerequisite : Docker 1.12 and earlier
Deprecated starting 0.13 release.

vsphere
~# docker plugin ls
ID NAME DESCRIPTION ENABLED
de30e65cda7b vsphere:latest VMWare vSphere Docker Volume plugin true
Copy link
Contributor

Choose a reason for hiding this comment

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

Content can be made more concise as follows -

After installation, the plugin needs to be enabled explicitly.
~# docker plugin ls
ID NAME DESCRIPTION ENABLED
de30e65cda7b vsphere:latest VMWare vSphere Docker Volume plugin false
~# docker plugin enable vsphere
vsphere
~# docker plugin ls
ID NAME DESCRIPTION ENABLED
de30e65cda7b vsphere:latest VMWare vSphere Docker Volume plugin true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After installation, the plugin needs to be enabled explicitly.

It's not always true, there is possibility that plugin is enabled already right after installation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Anyway, inline text is updated in the latest diff.


**Using vDVS managed plugin**

* **Install vDVS plugin**
Copy link
Contributor

@tusharnt tusharnt Mar 31, 2017

Choose a reason for hiding this comment

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

Install vDVS plugin -> Installation
No need to include "vDVS plugin" in each header.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to Installation L38 in latest diff

Removed "vDVS plugin" where ever it was referenced

ID NAME DESCRIPTION ENABLED
```

**For Docker 1.12 and earlier**, use DEB or RPM package.
Copy link
Contributor

Choose a reason for hiding this comment

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

RPM/DEB based installation.
Deprecated starting 0.13 release.
Prerequisite - Docker 1.12 or earlier.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is time being block and will be removed by next release so kept it as it is.

Let me know what you think.

de30e65cda7b vsphere:latest VMWare vSphere Docker Volume plugin true
```

* **Disable vDVS plugin** Using `docker plugin disable <plugin_name>`
Copy link
Contributor

Choose a reason for hiding this comment

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

Disable vDVS plugin Using docker plugin disable <plugin_name> -> Disabling the plugin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

de30e65cda7b vsphere:latest VMWare vSphere Docker Volume plugin false
```

* **Remove vDVS plugin** Using `docker plugin rm <plugin_name>`
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove vDVS plugin Using docker plugin rm <plugin_name> -> Removing the plugin

Copy link
Contributor 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

@tusharnt tusharnt left a comment

Choose a reason for hiding this comment

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

Some suggestions to make the content more concise.

@shuklanirdesh82 shuklanirdesh82 force-pushed the updateInstallUserGuide.shuklanirdesh82 branch 7 times, most recently from 4356793 to 92fb4ab Compare March 31, 2017 03:21

Let's verify the installed plugin using `docker plugin ls` command. In following example, you can see that vDVS plugin is not enabled yet.

**Note**: After installation, the plugin needs to be enabled explicitely.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this accurate? If the plugin is enabled by default then we can skip "enabling/disabling plugin" section.

Copy link
Contributor

Choose a reason for hiding this comment

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

in all my work install was auto-enabling the plugin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will wait for 0.13 vDVS plugin, after pushing to vmware (docker hub) with0.13 and latest tag; I will perform the steps manually and update accordingly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Plugin was always enabled in my case too. Never had to explicitly enable it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

steps are updated after pushing 0.13/latest plugin to vmware/docker-volume-vsphere

~# docker plugin disable vsphere
vsphere
~# docker plugin ls
ID NAME DESCRIPTION ENABLED
Copy link
Contributor

Choose a reason for hiding this comment

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

This section might not be needed if plugin is enabled by default. We can simply say that refer to Docker documentation for operations on plugins - https://docs.docker.com/engine/extend/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed, thanks!


* **Removing plugin**

Using `docker plugin rm <plugin_name>`
Copy link
Contributor

@tusharnt tusharnt Mar 31, 2017

Choose a reason for hiding this comment

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

Line 78 : Redundant and can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can you clarify, why it is redundant?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would keep it just in case so that all commands come handy in one place.

Copy link
Contributor

Choose a reason for hiding this comment

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

@pdhamdhere : Here's what I am suggesting.
Current format -
Using Removing plugin
Using docker plugin rm <plugin_name>
~# docker plugin rm vsphere
vsphere

which can be changed to

Removing plugin
~# docker plugin rm vsphere
vsphere

I am not asking to remove the output of the command.

Copy link
Contributor

@tusharnt tusharnt left a comment

Choose a reason for hiding this comment

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

Some more comments.

Copy link
Contributor

@msterin msterin left a comment

Choose a reason for hiding this comment

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

it feels the instructions were not tested. Can we make sure we do test the steps before asking customers to follow ?


* **Installation**
```
~# docker plugin install --grant-all-permissions --alias vsphere vmware/docker-volume-vsphere:latest
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume we'll put the 'latest' tag on it later ? Without the 'latest' tag it wont install

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that's correct. The idea behind this PR was flashing out install user guide for early review.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!


Let's verify the installed plugin using `docker plugin ls` command. In following example, you can see that vDVS plugin is not enabled yet.

**Note**: After installation, the plugin needs to be enabled explicitely.
Copy link
Contributor

Choose a reason for hiding this comment

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

in all my work install was auto-enabling the plugin


vDVS 0.13 comes with managed plugin support using Docker plugin framework.
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove this line since it will be redundant after tomorrow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!


vDVS 0.13 comes with managed plugin support using Docker plugin framework.

**vDVS managed plugin life cycle**
Copy link
Contributor

Choose a reason for hiding this comment

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

This too can be skipped


[VIB](http://blogs.vmware.com/vsphere/2011/09/whats-in-a-vib.html) and [Offline Depot](https://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.vsphere.install.doc/GUID-29491174-238E-4708-A78F-8FE95156D6A3.html?resultof=%2522%256f%2566%2566%256c%2569%256e%2565%2522%2520%2522%256f%2566%2566%256c%2569%256e%2522%2520%2522%2564%2565%2570%256f%2574%2522%2520) are the packages built to install the backend for the service on ESX. The backend can be installed using esxcli or vmware tools such as [VUM](http://pubs.vmware.com/vsphere-60/topic/com.vmware.ICbase/PDF/vsphere-update-manager-601-install-administration-guide.pdf)

Here is a demo show casing esxcli
Log into ESXi host and download the [latest release](https://bintray.com/vmware/vDVS/VIB/_latestVersion) [![VIB_Download](https://api.bintray.com/packages/vmware/vDVS/VIB/images/download.svg)](https://bintray.com/vmware/vDVS/VIB/_latestVersion) of vDVS driver VIB on ESXi and initiate the install by specifying the full path to the VIB.
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove one of the badge either from L9 or L13

Copy link
Contributor Author

Choose a reason for hiding this comment

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

L13 is removed.


Let's verify the installed plugin using `docker plugin ls` command. In following example, you can see that vDVS plugin is not enabled yet.

**Note**: After installation, the plugin needs to be enabled explicitely.
Copy link
Contributor

Choose a reason for hiding this comment

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

Plugin was always enabled in my case too. Never had to explicitly enable it.

de30e65cda7b vsphere:latest VMWare vSphere Docker Volume plugin true
```

Now plugin is enabled and ready to use (The `docker volume` command behaves as before and driver name should be what we passed as `--alias` )
Copy link
Contributor

Choose a reason for hiding this comment

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

Not needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed!


* **Removing plugin**

Using `docker plugin rm <plugin_name>`
Copy link
Contributor

Choose a reason for hiding this comment

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

I would keep it just in case so that all commands come handy in one place.


**vDVS DEB/RPM based installation**

**Note** DEB/RPM packages will be deprecated going forward and will not be available. It is recommeded upgrading Docker 1.13/17.03 and above and install vDVS managed plugin.
Copy link
Contributor

Choose a reason for hiding this comment

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

You can drop "it is recommeded upgrading Docker 1.13/17.03 and above and install vDVS managed plugin."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

* **Installation**
```
~# docker plugin install --grant-all-permissions --alias vsphere vmware/docker-volume-vsphere:latest
0.12: Pulling from vmware/docker-volume-vsphere
Copy link
Contributor

Choose a reason for hiding this comment

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

Dont forget to update output after you run these commands with 0.13 plugin.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

~# docker plugin install --grant-all-permissions --alias vsphere vmware/docker-volume-vsphere:latest
latest: Pulling from vmware/docker-volume-vsphere```

```
- sudo dpkg -i <name>.deb # Ubuntu or deb based distros
- sudo rpm -ivh <name>.rpm # Photon or rpm based distros
```
Here is a demo showcasing the install in a Photon OS VM.
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this demo too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

@shuklanirdesh82 shuklanirdesh82 force-pushed the updateInstallUserGuide.shuklanirdesh82 branch from 92fb4ab to 2e6c741 Compare March 31, 2017 05:50
Copy link
Contributor

@tusharnt tusharnt left a comment

Choose a reason for hiding this comment

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

LGTM

VIBs Installed: VMWare_bootbank_esx-vmdkops-service_0.12.ccfc38f-0.0.1
VIBs Removed:
VIBs Skipped:
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need an ugrade section also? If not then could mention so and also say how an upgrade can be done.

Copy link
Contributor

Choose a reason for hiding this comment

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

Will all volumes be available post upgrade? Could clarify on that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point! Instead of creating new section, shouldn't upgrade instruction goes to separate user guide. This is just an installation guide.

What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#1169 addresses this. Thanks @govint !

Will all volumes be available post upgrade? Could clarify on that

Yeah, all volumes are available post upgrade.

~# docker plugin ls
ID NAME DESCRIPTION ENABLED
831fd45343af vsphere:latest VMWare vSphere Docker Volume plugin true
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above have a new section for upgrade from package user (all current users) to plugin.

And for plugin users how they can upgrade to a newer version. At least mention if any steps are needed for upgrade.

Will all volumes be available post upgrade?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#1169 addresses this. Thanks @govint !

And for plugin users how they can upgrade to a newer version. At least mention if any steps are needed for upgrade.

0.13 is the first release for plugin users, it is better to have such information post 0.14 release.

```
- sudo dpkg -i <name>.deb # Ubuntu or deb based distros
- sudo rpm -ivh <name>.rpm # Photon or rpm based distros
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Could add a note that all current containers that are using vsphere volumes will continue to be able to run and that there is no impact (yes).

Also, one more good/must have is that Docker/containerd doesn't have to be restarted to install the plugin - meaning all containers stop and start (unless live-restore is in use).

Could also verify and mention behavior with swarm mode in use.

Copy link
Contributor

@govint govint left a comment

Choose a reason for hiding this comment

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

Should add notes on upgrade scenarios, availability of existing volumes to the sections.

@shuklanirdesh82
Copy link
Contributor Author

Should add notes on upgrade scenarios, availability of existing volumes to the sections.

Good point!
Just for the reference, separate PR will be generate to address this issue.

@shuklanirdesh82 shuklanirdesh82 merged commit 15d313a into vmware-archive:master Mar 31, 2017
@shuklanirdesh82 shuklanirdesh82 deleted the updateInstallUserGuide.shuklanirdesh82 branch March 31, 2017 07:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants