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 support for open-iscsi transports. #16877

Merged
merged 1 commit into from
Dec 9, 2015

Conversation

anish
Copy link
Contributor

@anish anish commented Nov 5, 2015

This enables use of software or hardware transports viz. be2iscsi,
bnx2i, cxgb3i, cxgb4i, qla4xx, iser and ocs. The default transport
(tcp) happens to be called "default".

Use of non-default transports changes the disk path to the following format:
/dev/disk/by-path/pci-<pci_id>-ip--iscsi--lun-<lun_id>

@k8s-bot
Copy link

k8s-bot commented Nov 5, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

1 similar comment
@k8s-bot
Copy link

k8s-bot commented Nov 5, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

@k8s-github-robot k8s-github-robot added kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 5, 2015
@k8s-github-robot
Copy link

Labelling this PR as size/M

@anish
Copy link
Contributor Author

anish commented Nov 5, 2015

Can anyone give me pointers on this ? Build fails with
./pkg/api/v1/types.generated.go is out of date. Please run hack/update-codecgen.sh

actually running that generates a very big changeset, not sure if I'm supposed to be doing that add adding it to the commit. There seems to be a Issue #16128 open for this as well

@k8s-github-robot
Copy link

Labelling this PR as size/XXL

@k8s-github-robot k8s-github-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 6, 2015
@anish anish force-pushed the iscsi_iface branch 2 times, most recently from 886f58f to c5b32d7 Compare November 6, 2015 04:05
@anish anish force-pushed the iscsi_iface branch 3 times, most recently from 3a0ae73 to c23041a Compare November 6, 2015 10:48
@pmorie
Copy link
Member

pmorie commented Nov 6, 2015

@k8s-bot test this

@pmorie
Copy link
Member

pmorie commented Nov 6, 2015

@anish running update-codecgen.sh might generate a large changeset for now. You should run:

$ hack/update-all.sh && hack/verify-all.sh

@k8s-bot
Copy link

k8s-bot commented Nov 6, 2015

GCE e2e test build/test passed for commit c23041ae932960fd6a9d35ca00923f4d9c5e27fe.

@anish
Copy link
Contributor Author

anish commented Nov 6, 2015

@pmorie that's what I originally went for, but travis-ci insisted on running update-codecgen.sh, you can see the original log at https://s3.amazonaws.com/archive.travis-ci.org/jobs/89531094/log.txt

@anish
Copy link
Contributor Author

anish commented Nov 6, 2015

Also probably need @rootfs to chime in since it's iscsi

@pmorie
Copy link
Member

pmorie commented Nov 7, 2015

@kubernetes/rh-storage

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 7, 2015
if b.iface == "default" {
devicePath = strings.Join([]string{"/dev/disk/by-path/ip", b.portal, "iscsi", b.iqn, "lun", b.lun}, "-")
} else {
devicePath = strings.Join([]string{"/dev/disk/by-path/pci", "*", "ip", b.portal, "iscsi", b.iqn, "lun", b.lun}, "-")
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't have the setup. Any reference in udev I can see this device path?

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 think this is what you want.

You can take a look at the openstack changes that do the same here and here

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks

@k8s-bot
Copy link

k8s-bot commented Dec 7, 2015

GCE e2e build/test failed for commit c963b3b35d47ced2589fb3227ca35b4aa0a88db2.

@pmorie pmorie added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 7, 2015
@pmorie
Copy link
Member

pmorie commented Dec 7, 2015

@k8s-bot test this

@k8s-bot
Copy link

k8s-bot commented Dec 7, 2015

GCE e2e build/test failed for commit c963b3b35d47ced2589fb3227ca35b4aa0a88db2.

@pmorie
Copy link
Member

pmorie commented Dec 7, 2015

@k8s-bot test this

@anish
Copy link
Contributor Author

anish commented Dec 7, 2015

I ran this locally, none of the stuff causing errors seem to be completely unrelated to any of my code, error logs here if anyone would care to take a look :

https://gist.github.com/anish/2454dab407c4e9ea9418

Only changes on my side have been a rebase requiring some changes to the api html files.

@k8s-bot
Copy link

k8s-bot commented Dec 7, 2015

GCE e2e test build/test passed for commit c963b3b35d47ced2589fb3227ca35b4aa0a88db2.

@pmorie
Copy link
Member

pmorie commented Dec 7, 2015

@k8s-bot unit test this

This enables use of software or hardware transports viz. be2iscsi,
bnx2i, cxgb3i, cxgb4i, qla4xx, iser and ocs. The default transport
(tcp) happens to be called "default".

Use of non-default transports changes the disk path to the following format:
/dev/disk/by-path/pci-<pci_id>-ip-<portal>-iscsi-<iqn>-lun-<lun_id>
@k8s-github-robot
Copy link

PR changed after LGTM, removing LGTM.

@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 9, 2015
@k8s-bot
Copy link

k8s-bot commented Dec 9, 2015

GCE e2e test build/test passed for commit 6e46fa1.

@anish
Copy link
Contributor Author

anish commented Dec 9, 2015

Will check back later, but the failing test passes locally :

[anish@kerb kubernetes]$ git branch
* iscsi_iface
  master
[anish@kerb kubernetes]$ hack/test-go.sh pkg/api
Running tests for APIVersion: v1,extensions/v1beta1,metrics/v1alpha1 with etcdPrefix: registry
+++ [1208 18:33:20] Running tests without code coverage
ok      k8s.io/kubernetes/pkg/api       1.143s
Running tests for APIVersion: v1,extensions/v1beta1,metrics/v1alpha1 with etcdPrefix: kubernetes.io/registry
+++ [1208 18:33:29] Running tests without code coverage
ok      k8s.io/kubernetes/pkg/api       1.335s

@pmorie
Copy link
Member

pmorie commented Dec 9, 2015

@k8s-bot unit test this

@pmorie pmorie closed this Dec 9, 2015
@pmorie pmorie reopened this Dec 9, 2015
@pmorie pmorie added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 9, 2015
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Dec 9, 2015

GCE e2e test build/test passed for commit 6e46fa1.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Dec 9, 2015

GCE e2e test build/test passed for commit 6e46fa1.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Dec 9, 2015

GCE e2e test build/test passed for commit 6e46fa1.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Dec 9, 2015
Auto commit by PR queue bot
@k8s-github-robot k8s-github-robot merged commit 5f7019a into kubernetes:master Dec 9, 2015
@anish anish deleted the iscsi_iface branch December 10, 2015 09:25
@anish anish restored the iscsi_iface branch December 10, 2015 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants