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

use availability_zone instead of availability (update godep for gophercloud) #44082

Merged
merged 4 commits into from
Apr 19, 2017

Conversation

zetaab
Copy link
Member

@zetaab zetaab commented Apr 5, 2017

What this PR does / why we need it: there is typo in json variable name

Which issue this PR fixes: fixes #44032

Special notes for your reviewer:our openstack environment region name is not nova, so I tested this and it works now

All cinder blockstorages are using variable name availability_zone instead of availability. Docs:

v3:
https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=create-a-volume-detail#create-a-volume

v2:
https://developer.openstack.org/api-ref/block-storage/v2/index.html?expanded=create-volume-detail#create-volume

I could not find v1 documentation anymore from openstack pages. However, https://developer.rackspace.com/docs/cloud-block-storage/v1/api-reference/cbs-volumes-operations/#create-a-volume documentation says also availability_zone is the correct one.

Like mentioned in #44032 (comment) openstack CLI is using availability_zone

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 5, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@k8s-ci-robot
Copy link
Contributor

Hi @zetaab. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with @k8s-bot ok to test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-github-robot k8s-github-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. release-note-label-needed labels Apr 5, 2017
@zetaab zetaab changed the title use availability_zone instead of availability use availability_zone instead of availability in gophercloud blockstorage API Apr 5, 2017
@grodrigues3 grodrigues3 added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 5, 2017
@cblecker
Copy link
Member

cblecker commented Apr 6, 2017

Hi @zetaab,
We can't directly modify a vendor, as they're versioned.

It looks like this was added to gophercloud here: gophercloud/gophercloud@b06120d

We could update the godep to pull this change in. Information on updating godeps is here: https://github.com/kubernetes/community/blob/master/contributors/devel/godep.md

@zetaab zetaab closed this Apr 6, 2017
@zetaab zetaab reopened this Apr 6, 2017
@k8s-github-robot k8s-github-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 6, 2017
@zetaab
Copy link
Member Author

zetaab commented Apr 6, 2017

is that correctly updated deps? @cblecker I updated whole gophercloud/gophercloud

@cblecker
Copy link
Member

cblecker commented Apr 6, 2017

You actually need to use the Godep tool to do this kind of update, as it tracks when the updates were done and the hashes of those updates.

Directions and details here: https://github.com/kubernetes/community/blob/master/contributors/devel/godep.md

@zetaab
Copy link
Member Author

zetaab commented Apr 6, 2017

I tried to follow those instructions but it does not work, maybe someone who have done this before can do it?

 kubernetes [fixzone2●] % godep restore
godep: Dep (k8s.io/metrics/pkg/apis/custom_metrics) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/api/resource) not found
godep: Dep (k8s.io/metrics/pkg/apis/custom_metrics/install) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/apimachinery/announced) not found
godep: Dep (k8s.io/metrics/pkg/apis/custom_metrics/v1alpha1) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/api/resource) not found
godep: Dep (k8s.io/metrics/pkg/apis/metrics) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/apis/meta/v1) not found
godep: Dep (k8s.io/metrics/pkg/apis/metrics/install) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/apimachinery/announced) not found
godep: Dep (k8s.io/metrics/pkg/apis/metrics/v1alpha1) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/api/resource) not found
godep: Dep (k8s.io/metrics/pkg/client/clientset_generated/clientset) restored, but was unable to load it with error:
	Package (k8s.io/client-go/discovery) not found
godep: Dep (k8s.io/metrics/pkg/client/clientset_generated/clientset/fake) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/runtime) not found
godep: Dep (k8s.io/metrics/pkg/client/clientset_generated/clientset/scheme) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/apis/meta/v1) not found
godep: Dep (k8s.io/metrics/pkg/client/clientset_generated/clientset/typed/metrics/v1alpha1) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/apis/meta/v1) not found
godep: Dep (k8s.io/metrics/pkg/client/clientset_generated/clientset/typed/metrics/v1alpha1/fake) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/apis/meta/v1) not found
godep: Dep (k8s.io/metrics/pkg/client/custom_metrics) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/api/meta) not found
godep: Dep (k8s.io/metrics/pkg/client/custom_metrics/fake) restored, but was unable to load it with error:
	Package (k8s.io/apimachinery/pkg/labels) not found
godep: Error checking some deps.
kubernetes [fixzone2●●] % ./hack/godep-save.sh
godep: Package (google.golang.org/genproto/googleapis/bigtable/admin/v2) not found
!!! Error in ./hack/godep-save.sh:37
  Error in ./hack/godep-save.sh:37. 'GOPATH=${GOPATH}:${KUBE_ROOT}/staging godep save "${REQUIRED_BINS[@]}"' exited with status 1
Call stack:
  1: ./hack/godep-save.sh:37 main(...)
Exiting with status 1
 kubernetes [fixzone2●●] %

@zetaab
Copy link
Member Author

zetaab commented Apr 7, 2017

@cblecker any ideas?

@cblecker
Copy link
Member

cblecker commented Apr 7, 2017

Oh hmm.. try using hack/godep-restore.sh to restore the deps instead of invoking godep restore directly. I'll review and update those docs as they don't include that.

@cblecker
Copy link
Member

cblecker commented Apr 7, 2017

I just tried this locally, and it seems to have worked. If you wouldn't mind testing on your environment to see if that allows you to update the godep, that would be great.

@zetaab zetaab closed this Apr 8, 2017
@zetaab zetaab reopened this Apr 8, 2017
@zetaab
Copy link
Member Author

zetaab commented Apr 8, 2017

@cblecker your instructions works pretty well, if those files are now OK :)

The only thing which did not work is verify godeps

% ./hack/verify-godeps.sh
Checking for 'Godeps/' changes against '/master'
fatal: Not a valid object name /master

i tried also execute godep update and rerun it, but it did not help

@cblecker
Copy link
Member

cblecker commented Apr 8, 2017

Ah! Are you working off a git branch, or just a clone of master?

@cblecker
Copy link
Member

cblecker commented Apr 8, 2017

@k8s-bot ok to test

@zetaab
Copy link
Member Author

zetaab commented Apr 8, 2017

I was working in that fixzone2 branch

git checkout master
git merge fixzone2
./hack/verify-godeps.sh
Checking for 'Godeps/' changes against '/master'
fatal: Not a valid object name /master

I have no idea why those tests fail :)
edit: ah i need modify some code as well

@zetaab
Copy link
Member Author

zetaab commented Apr 8, 2017

@cblecker thanks for helping 👍

@grodrigues3
Copy link
Contributor

@k8s-bot ok to test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 13, 2017
@xsgordon
Copy link

/cc @k8s-sig-openstack-bugs

@idvoretskyi Can you add the sig/openstack label please?

@dchen1107 dchen1107 added the area/provider/openstack Issues or PRs related to openstack provider label Apr 14, 2017
@dchen1107
Copy link
Member

/lgtm

@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dchen1107, pospispa, zetaab

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 14, 2017
@cblecker
Copy link
Member

@dchen1107 @zetaab Does this need a release note? Only piece that is blocking merge here.

@zetaab
Copy link
Member Author

zetaab commented Apr 17, 2017

well, imo someone (who have access) could add release-note-none or release-note and remove release-note-label-needed and do-not-merge? This is basically godep update for gophercloud, and if i check previous changelog items, some of these are there. So if we just add release-note its fine for me(its added to changelog with that i think?).

@zetaab zetaab changed the title use availability_zone instead of availability in gophercloud blockstorage API use availability_zone instead of availability (update godep for gophercloud) Apr 17, 2017
@cblecker
Copy link
Member

Release notes are needed when there is a breaking change, or a notable change in functionality (for better or worse). In this case, I this looks like just a bug fix.
/release-note-none

Will still need @dchen1107 to remove the do-not-merge

@k8s-ci-robot
Copy link
Contributor

@cblecker: you can only set release notes if you are the author or an assignee.

In response to this:

Release notes are needed when there is a breaking change, or a notable change in functionality (for better or worse). In this case, I this looks like just a bug fix.
/release-note-none

Will still need @dchen1107 to remove the do-not-merge

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@cblecker
Copy link
Member

/assign

@cblecker
Copy link
Member

/release-note-none

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Apr 17, 2017
@zetaab
Copy link
Member Author

zetaab commented Apr 18, 2017

@k8s-bot non-cri e2e test this

1 similar comment
@pospispa
Copy link
Contributor

@k8s-bot non-cri e2e test this

@jsafrane jsafrane removed the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Apr 19, 2017
@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 712ccf3 into kubernetes:master Apr 19, 2017
@idvoretskyi
Copy link
Member

cc @kubernetes/sig-openstack-bugs

pospispa pushed a commit to pospispa/origin that referenced this pull request Apr 28, 2017
This is "backport" of Kubernetes PR #44082 (kubernetes/kubernetes#44082).
Actually, the github.com/gophercloud/gophercloud library version is bumped up to a version that contains the availability zone fix.

The problem is described in Bugzilla #1444828 (https://bugzilla.redhat.com/show_bug.cgi?id=1444828).

The problem was introduced into Kubernetes 1.6 and fixed in Kubernetes 1.7.
That's why the fix is "backported" into OpenShift 3.6.
pospispa pushed a commit to pospispa/origin that referenced this pull request Apr 28, 2017
This is "backport" of Kubernetes PR #44082 (kubernetes/kubernetes#44082).
Actually, the github.com/gophercloud/gophercloud library version is bumped up to a version that contains the availability zone fix.

The problem is described in Bugzilla #1444828 (https://bugzilla.redhat.com/show_bug.cgi?id=1444828).

The problem was introduced into Kubernetes 1.6 and fixed in Kubernetes 1.7.
That's why the fix is "backported" into OpenShift 3.6.
pospispa pushed a commit to pospispa/origin that referenced this pull request Apr 28, 2017
This is "backport" of Kubernetes PR #44082 (kubernetes/kubernetes#44082).
Actually, the github.com/gophercloud/gophercloud library version is bumped up to a version that contains the availability zone fix.

The problem is described in Bugzilla #1444828 (https://bugzilla.redhat.com/show_bug.cgi?id=1444828).

The problem was introduced into Kubernetes 1.6 and fixed in Kubernetes 1.7.
That's why the fix is "backported" into OpenShift 3.6.
pospispa pushed a commit to pospispa/origin that referenced this pull request May 2, 2017
…0898813696af0

This is first part of the "backport" of Kubernetes PR #44082 (kubernetes/kubernetes#44082).
Actually, the github.com/gophercloud/gophercloud library version is bumped up to a version that contains the availability zone fix.

The problem is described in Bugzilla #1444828 (https://bugzilla.redhat.com/show_bug.cgi?id=1444828).

The problem was introduced into Kubernetes 1.6 and fixed in Kubernetes 1.7.
That's why the fix is "backported" into OpenShift 3.6.
pospispa pushed a commit to pospispa/origin that referenced this pull request May 2, 2017
This is second and last part of the "backport" of Kubernetes PR #44082 (kubernetes/kubernetes#44082).
Actually, the github.com/gophercloud/gophercloud library version is bumped up to a version that contains the availability zone fix.

The problem is described in Bugzilla #1444828 (https://bugzilla.redhat.com/show_bug.cgi?id=1444828).

The problem was introduced into Kubernetes 1.6 and fixed in Kubernetes 1.7.
That's why the fix is "backported" into OpenShift 3.6.
dims pushed a commit to dims/kubernetes that referenced this pull request Feb 8, 2018
Automatic merge from submit-queue

use availability_zone instead of availability (update godep for gophercloud)

**What this PR does / why we need it**: there is typo in json variable name

**Which issue this PR fixes**: fixes kubernetes#44032

**Special notes for your reviewer**:our openstack environment region name is not nova, so I tested this and it works now

All cinder blockstorages are using variable name availability_zone instead of availability. Docs: 

v3:
https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=create-a-volume-detail#create-a-volume

v2:
https://developer.openstack.org/api-ref/block-storage/v2/index.html?expanded=create-volume-detail#create-volume

I could not find v1 documentation anymore from openstack pages. However, https://developer.rackspace.com/docs/cloud-block-storage/v1/api-reference/cbs-volumes-operations/#create-a-volume documentation says also availability_zone is the correct one. 

Like mentioned in kubernetes#44032 (comment) openstack CLI is using availability_zone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/openstack Issues or PRs related to openstack provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storageclass cinder is ignoring availability zone