Skip to content
New issue

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

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

Already on GitHub? # to your account

Renaming BackupError to Error in Manager #347

Merged
merged 1 commit into from
Jul 23, 2019

Conversation

r-shreesha
Copy link
Contributor

The following code changes modify the name backupError to error

The following code changes modify the name `backupError` to `error`
@r-shreesha r-shreesha requested a review from yasker July 22, 2019 23:55
@yasker yasker merged commit ae13394 into longhorn:master Jul 23, 2019
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 5, 2019
Update github.com/container-storage-interface/spec to v1.1.0
Remove github.com/kubernetes-csi/drivers
Add github.com/kubernetes-csi/csi-lib-utils v0.6.1

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 5, 2019
1. Since the CSI version is upgrade to v1.1.0, there are serval
new service functions introduced (but not implemented).

2. After removing the dependency csi-common, we need to take care
of the server definition and gRPC server launch.

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 5, 2019
Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 5, 2019
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 5, 2019
In previous implementation, the provisioner name is different
from the driver name. But the new provisioner will directly use
the driver name as its provisioner name. Hence we need an uniform
driver name for all CSI components.

https://github.com/kubernetes-csi/external-provisioner/tree/v1.4.0#deprecated-arguments

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 5, 2019
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 5, 2019
…tation

Now the provisioner won't wait for Detach
(ControllerUnpublishVolume()) complete before invoking DeleteVolume.
Then Detach will get stuck in the NOT_FOUND error since there is no
way to verify the volume before detaching.

For the details, See
container-storage-interface/spec#382

And the spec doc has removed NOT_FOUND error for
ControllerUnpublishVolume():
https://github.com/container-storage-interface/spec/blob/release-1.2/spec.md#controllerunpublishvolume

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 5, 2019
Since we modified our CSI driver name to `driver.longhorn.io`

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 5, 2019
1. The new external CSI provisioner will use driver name as its
provisioner name. Previously, the provisioner name is different
from driver name, which is `rancher.io/longhorn` and does not
follow the driver naming schema. Hence we cannot deploy a
compatible provisioner and a related CSI driver with old provisioner
name to handle the existing volumes.

2. The external CSI provisioner uses the annotations of PVC/PV to
find the matching CSI driver. Hence we can updating the annotations
for Longhorn related PVC/PV so that the new provisioner is able to
verify and handle the existing volumes.

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 5, 2019
The existing running volumes are still using the old driver name.
We can deploy a compatible CSI driver and an attacher with the
old driver name to handle attach and detach for those volumes.

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 8, 2019
Update github.com/container-storage-interface/spec to v1.1.0
Remove github.com/kubernetes-csi/drivers
Add github.com/kubernetes-csi/csi-lib-utils v0.6.1

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 8, 2019
1. Since the CSI version is upgrade to v1.1.0, there are serval
new service functions introduced (but not implemented).

2. After removing the dependency csi-common, we need to take care
of the server definition and gRPC server launch.

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 8, 2019
Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 8, 2019
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 8, 2019
In previous implementation, the provisioner name is different
from the driver name. But the new provisioner will directly use
the driver name as its provisioner name. Hence we need an uniform
driver name for all CSI components.

https://github.com/kubernetes-csi/external-provisioner/tree/v1.4.0#deprecated-arguments

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 8, 2019
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 8, 2019
…tation

Now the provisioner won't wait for Detach
(ControllerUnpublishVolume()) complete before invoking DeleteVolume.
Then Detach will get stuck in the NOT_FOUND error since there is no
way to verify the volume before detaching.

For the details, See
container-storage-interface/spec#382

And the spec doc has removed NOT_FOUND error for
ControllerUnpublishVolume():
https://github.com/container-storage-interface/spec/blob/release-1.2/spec.md#controllerunpublishvolume

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 8, 2019
Since we modified our CSI driver name to `driver.longhorn.io`

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 8, 2019
1. The new external CSI provisioner will use driver name as its
provisioner name. Previously, the provisioner name is different
from driver name, which is `rancher.io/longhorn` and does not
follow the driver naming schema. Hence we cannot deploy a
compatible provisioner and a related CSI driver with old provisioner
name to handle the existing volumes.

2. The external CSI provisioner uses the annotations of PVC/PV to
find the matching CSI driver. Hence we can updating the annotations
for Longhorn related PVC/PV so that the new provisioner is able to
verify and handle the existing volumes.

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
shuo-wu pushed a commit to shuo-wu/longhorn-manager that referenced this pull request Nov 8, 2019
The existing running volumes are still using the old driver name.
We can deploy a compatible CSI driver and an attacher with the
old driver name to handle attach and detach for those volumes.

Longhorn longhorn#347

Signed-off-by: Shuo Wu <shuo@rancher.com>
yasker pushed a commit that referenced this pull request Nov 8, 2019
Update github.com/container-storage-interface/spec to v1.1.0
Remove github.com/kubernetes-csi/drivers
Add github.com/kubernetes-csi/csi-lib-utils v0.6.1

Longhorn #347

Signed-off-by: Shuo Wu <shuo@rancher.com>
yasker pushed a commit that referenced this pull request Nov 8, 2019
1. Since the CSI version is upgrade to v1.1.0, there are serval
new service functions introduced (but not implemented).

2. After removing the dependency csi-common, we need to take care
of the server definition and gRPC server launch.

Longhorn #347

Signed-off-by: Shuo Wu <shuo@rancher.com>
yasker pushed a commit that referenced this pull request Nov 8, 2019
Longhorn #347

Signed-off-by: Shuo Wu <shuo@rancher.com>
yasker pushed a commit that referenced this pull request Nov 8, 2019
Longhorn #347

Signed-off-by: Shuo Wu <shuo@rancher.com>
yasker pushed a commit that referenced this pull request Nov 8, 2019
In previous implementation, the provisioner name is different
from the driver name. But the new provisioner will directly use
the driver name as its provisioner name. Hence we need an uniform
driver name for all CSI components.

https://github.com/kubernetes-csi/external-provisioner/tree/v1.4.0#deprecated-arguments

Longhorn #347

Signed-off-by: Shuo Wu <shuo@rancher.com>
yasker pushed a commit that referenced this pull request Nov 8, 2019
yasker pushed a commit that referenced this pull request Nov 8, 2019
…tation

Now the provisioner won't wait for Detach
(ControllerUnpublishVolume()) complete before invoking DeleteVolume.
Then Detach will get stuck in the NOT_FOUND error since there is no
way to verify the volume before detaching.

For the details, See
container-storage-interface/spec#382

And the spec doc has removed NOT_FOUND error for
ControllerUnpublishVolume():
https://github.com/container-storage-interface/spec/blob/release-1.2/spec.md#controllerunpublishvolume

Longhorn #347

Signed-off-by: Shuo Wu <shuo@rancher.com>
yasker pushed a commit that referenced this pull request Nov 8, 2019
Since we modified our CSI driver name to `driver.longhorn.io`

Longhorn #347

Signed-off-by: Shuo Wu <shuo@rancher.com>
yasker pushed a commit that referenced this pull request Nov 8, 2019
1. The new external CSI provisioner will use driver name as its
provisioner name. Previously, the provisioner name is different
from driver name, which is `rancher.io/longhorn` and does not
follow the driver naming schema. Hence we cannot deploy a
compatible provisioner and a related CSI driver with old provisioner
name to handle the existing volumes.

2. The external CSI provisioner uses the annotations of PVC/PV to
find the matching CSI driver. Hence we can updating the annotations
for Longhorn related PVC/PV so that the new provisioner is able to
verify and handle the existing volumes.

Longhorn #347

Signed-off-by: Shuo Wu <shuo@rancher.com>
yasker pushed a commit that referenced this pull request Nov 8, 2019
The existing running volumes are still using the old driver name.
We can deploy a compatible CSI driver and an attacher with the
old driver name to handle attach and detach for those volumes.

Longhorn #347

Signed-off-by: Shuo Wu <shuo@rancher.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants