j-griffith / cinder-docker-driver Goto Github PK
View Code? Open in Web Editor NEWLicense: The Unlicense
License: The Unlicense
after we crate volume,how to attch volume to my containers?
Hello,
I'm trying to use your plugin on the OVH cloud (OpenStack).
But I have the following error:
FATA[0000] Error initiating gophercloud cinder client: No suitable endpoint could be found in the service catalog.
While I look at the openstack catalog, I have many URLs:
| cinder | volume | SBG1 |
| | | publicURL: https://volume.compute.sbg1.cloud.ovh.net/v1/08ce6b9efdd04e25a3f5de28a0fc7cf9 |
| | | internalURL: https://volume.compute.sbg1.cloud.ovh.net/v1/08ce6b9efdd04e25a3f5de28a0fc7cf9 |
| | | adminURL: https://volume.compute.sbg1.cloud.ovh.net/v1/08ce6b9efdd04e25a3f5de28a0fc7cf9
Maxence
Not really an issue but just wanted to know whether can I use the driver on mesos and I would assume I will need the driver on the mesos-slaves. Correct?
It seems a year or so back github.com/Sirupsen/logrus
became github.com/sirupsen/logrus
and this caused a bunch of issues with packages when they did not use the same version. The current guideline is:
Everything using logrus will need to use the lower-case: github.com/sirupsen/logrus. Any package that isn't, should be changed.
Thanks!
As cinder allow to resize the volumes can we do that form this driver ?
Exp -
$ docker volume update "name_of_the_volume " size = 20
Run the daemon, let it sit for a bit and you'll then run into auth errors when you try and run commands.
I'm trying to attach some volume from the OVH cloudstack but it fails with error below:
# docker volume create -d cinder --name test3 -o size=1 -o type=classic test3
# docker run -it --rm -v test3:/data ubuntu bash
docker: Error response from daemon: error while mounting volume '': VolumeDriver.Mount: exit status 21.
Here are the log output of cdd
.
2019/02/04 17:44:43 Entering go-plugins-helpers getPath
INFO[0171] Get volume: test3
DEBU[0171] getVolByName: `test3`
ERRO[0171] Failed to retrieve volume named: %!(EXTRA string=test3, string=during Get operation, <nil>)
2019/02/04 17:44:43 Entering go-plugins-helpers createPath
INFO[0171] Create volume test3 on Cinder
DEBU[0171] getVolByName: `test3`
DEBU[0171] Option: size = 1
DEBU[0171] Option: type = classic
DEBU[0171] Creating with options: {AvailabilityZone: ConsistencyGroupID: Description:Docker volume. Metadata:map[] Name:test3 Size:1 SnapshotID: SourceReplica: SourceVolID: ImageID: VolumeType:classic}
2019/02/04 17:45:07 Entering go-plugins-helpers getPath
INFO[0196] Get volume: test3
DEBU[0196] getVolByName: `test3`
DEBU[0196] querying volume: {Attachments:[] AvailabilityZone:nova Bootable:false ConsistencyGroupID: CreatedAt:2019-02-04T16:44:44.000000 Description:Docker volume. Encrypted:false Name:test3 VolumeType:classic ReplicationDriverData: ReplicationExtendedStatus: ReplicationStatus:disabled SnapshotID: SourceVolID: Status:available TenantID:cd4363xxxxxxxx5b84e80fd46a1f7522 Metadata:map[] Multiattach:false ID:f97b8207-ede9-4835-b5f4-323e81859d58 Size:1 UserID:fca4f16c5fbxxxxxx259ba0362590a3}
DEBU[0196] Found Volume ID: f97b8207-ede9-4835-b5f4-323e81859d58
2019/02/04 17:45:08 Entering go-plugins-helpers getPath
INFO[0196] Get volume: test3
DEBU[0196] getVolByName: `test3`
DEBU[0197] querying volume: {Attachments:[] AvailabilityZone:nova Bootable:false ConsistencyGroupID: CreatedAt:2019-02-04T16:44:44.000000 Description:Docker volume. Encrypted:false Name:test3 VolumeType:classic ReplicationDriverData: ReplicationExtendedStatus: ReplicationStatus:disabled SnapshotID: SourceVolID: Status:available TenantID:cd4363xxxxxxxx5b84e80fd46a1f7522 Metadata:map[] Multiattach:false ID:f97b8207-ede9-4835-b5f4-323e81859d58 Size:1 UserID:fca4f16c5fbxxxxxx259ba0362590a3}
DEBU[0197] Found Volume ID: f97b8207-ede9-4835-b5f4-323e81859d58
2019/02/04 17:45:08 Entering go-plugins-helpers mountPath
INFO[0197] Mounting volume &{Name:test3 ID:9ce9fe993d2e5c780758300227dc20b677f895ebdbede4865a83162ffe2093ae} on xxxmyhostxxx
DEBU[0197] getVolByName: `test3`
DEBU[0197] querying volume: {Attachments:[] AvailabilityZone:nova Bootable:false ConsistencyGroupID: CreatedAt:2019-02-04T16:44:44.000000 Description:Docker volume. Encrypted:false Name:test3 VolumeType:classic ReplicationDriverData: ReplicationExtendedStatus: ReplicationStatus:disabled SnapshotID: SourceVolID: Status:available TenantID:cd4363xxxxxxxx5b84e80fd46a1f7522 Metadata:map[] Multiattach:false ID:f97b8207-ede9-4835-b5f4-323e81859d58 Size:1 UserID:fca4f16c5fbxxxxxx259ba0362590a3}
DEBU[0197] Found Volume ID: f97b8207-ede9-4835-b5f4-323e81859d58
DEBU[0197] iface: <nil>
Addrs: [127.0.0.1/8 10.31.6.26/24 172.17.0.1/16 172.18.0.1/16]
DEBU[0197] Gather up initiator IQNs...
DEBU[0197] output and err from cat... InitiatorName=iqn.1994-05.com.redhat:fb15cd8a16f4
, %!s(<nil>)
DEBU[0197] Inspect line: InitiatorName=iqn.1994-05.com.redhat:fb15cd8a16f4
DEBU[0197] Inspect line:
DEBU[0197] Found the following iqns: [iqn.1994-05.com.redhat:fb15cd8a16f4]
DEBU[0197] Value of IPs is=[127.0.0.1/8 10.31.6.26/24 172.17.0.1/16 172.18.0.1/16]
DEBU[0197] Issue InitializeConnection...
DEBU[0197] Response from InitializeConnection: {commonResult:{Result:{Body:map[connection_info:map[driver_volume_type:rbd data:map[name:volumes/volume-f97b8207-ede9-4835-b5f4-323e81859d58 encrypted:false secret_uuid:fdccf5c0-0daa-424e-8a70-d9d2d30f557e ports:[6789 6789 6789] secret_type:ceph keyring:#
# Do not edit, this is generated by puppet
# Cluster name: ceph_cloud_volumes_6
#
[client.cinder]
key = AQBhxxxxxxxxxxRAA6dWW3L7ak+smxxq+lSJxx==
qos_specs:map[write_iops_sec:250 read_iops_sec:250] hosts:[10.69.68.49 10.69.76.49 10.69.80.49] volume_id:f97b8207-ede9-4835-b5f4-323e81859d58 cluster_name:ceph auth_enabled:true discard:true access_mode:rw auth_username:cinder]]] Header:map[] Err:<nil>}}}
DEBU[0197] Connector is: &{AccessMode:rw AuthUser:cinder AuthPass: AuthMethod: TgtDisco:false TgtIQN: TgtPortal: VolumeID:f97b8207-ede9-4835-b5f4-323e81859d58 TgtLun:0 Encrypted:false}
INFO[0197] Waiting for path
DEBU[0198] Create the node entry using args: [-m node -T -p ]
ERRO[0198] Error running iscsiadm set authmethod: exit status 21{[105 115 99 115 105 97 100 109 58 32 78 111 32 114 101 99 111 114 100 115 32 102 111 117 110 100 10]}
ERRO[0198] exit status 21
DEBU[0198] iSCSI connection done
ERRO[0198] Failed to perform iscsi attach of volume test3: exit status 21
@j-griffith Any idea on what can be wrong? Thanks :)
install.sh fails. 404 for https://github.com/j-griffith/cinder-docker-driver/download/v0.13/cinder-docker-driver
Hi,
I get an error with the command
$ sudo service cinder-docker-driver status
Nov 14 15:54:18 beats cinder-docker-driver[3752]: time="2016-11-14T15:54:18+01:00" level=info msg="Set InitiatorIFace to: default"
Nov 14 15:54:18 beats cinder-docker-driver[3752]: time="2016-11-14T15:54:18+01:00" level=info msg="Set node InitiatorIP to: "
Nov 14 15:54:18 beats cinder-docker-driver[3752]: time="2016-11-14T15:54:18+01:00" level=info msg="Set DefaultVolSz to: 1 GiB"
Nov 14 15:54:18 beats cinder-docker-driver[3752]: time="2016-11-14T15:54:18+01:00" level=info msg="Set Endpoint to: http://openstack.mydomain.com:5000/v2.0"
Nov 14 15:54:18 beats cinder-docker-driver[3752]: time="2016-11-14T15:54:18+01:00" level=info msg="Set Username to: test_account"
Nov 14 15:54:18 beats cinder-docker-driver[3752]: time="2016-11-14T15:54:18+01:00" level=info msg="Set TenantID to: 3xxxxxxxxxxxxxxxxxxxxxxxxxxxxf"
Nov 14 15:54:18 beats cinder-docker-driver[3752]: time="2016-11-14T15:54:18+01:00" level=fatal msg="Error initiating gophercloud cinder client: No suitable endpoint
This doc explains
ErrServiceNotFound is returned when no service in a service catalog matches
// the provided EndpointOpts. This is generally returned by provider service
// factory methods like "NewComputeV2()" and can mean that a service is not
// enabled for your account.
So I tried this
$ curl -L -u test_account:not_my_password http://openstack.mydomain.com:5000/v2.0
{"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://openstack.mydomain.com:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
It seems that the endpoint is reachable.
My openstack admin told me to use API V3, with https, something like
https://openstack.mydomain.com:5000/v3
I setted up the certs, and reload/restarted cinder-docker-driver.
The error concerns now a missing domainName or domainID
Nov 14 16:34:08 beats cinder-docker-driver[6625]: time="2016-11-14T16:34:08+01:00" level=info msg="Set InitiatorIFace to: default"
Nov 14 16:34:08 beats cinder-docker-driver[6625]: time="2016-11-14T16:34:08+01:00" level=info msg="Set node InitiatorIP to: "
Nov 14 16:34:08 beats cinder-docker-driver[6625]: time="2016-11-14T16:34:08+01:00" level=info msg="Set DefaultVolSz to: 1 GiB"
Nov 14 16:34:08 beats cinder-docker-driver[6625]: time="2016-11-14T16:34:08+01:00" level=info msg="Set Endpoint to: https://openstack.mydomain.com:5000/v3"
Nov 14 16:34:08 beats cinder-docker-driver[6625]: time="2016-11-14T16:34:08+01:00" level=info msg="Set Username to: test_account"
Nov 14 16:34:08 beats cinder-docker-driver[6625]: time="2016-11-14T16:34:08+01:00" level=info msg="Set TenantID to: 3xxxxxxxxxxxxxxxxxxxxxxxxxxxxf"
Nov 14 16:34:08 beats cinder-docker-driver[6625]: time="2016-11-14T16:34:08+01:00" level=fatal msg="Error initiating gophercloud provider client: You must provide exactly one of DomainID or DomainName to authenticate by Username"
Nov 14 16:34:08 beats systemd[1]: cinder-docker-driver.service: Main process exited, code=exited, status=1/FAILURE
Nov 14 16:34:08 beats systemd[1]: cinder-docker-driver.service: Unit entered failed state.
Nov 14 16:34:08 beats systemd[1]: cinder-docker-driver.service: Failed with result 'exit-code'.
The github exemple shows only API V2.
Does cinder-docker-driver works with openstack API V3 ?
If yes, could you please provide a config.json exemple to do it in V3 ?
I tried to add DomainName option in config.json file, but it wat still the same error.
(Ref : https://godoc.org/github.com/rackspace/gophercloud#AuthOptions)
Thanks !
I just downloaded cdd
v0.13
, but on launch it report to itself to be v0.12
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.