Sami Wagiaalla
52c9a3abe2
RBD return output in error case
2016-01-14 11:33:33 -05:00
Sami Wagiaalla
7767698459
Remove SupportsOwnershipManagement volume attribute
2016-01-13 10:37:10 -05:00
Sami Wagiaalla
4ac151321a
Call SetVolumeOwnership from volume plugins
2016-01-13 10:37:10 -05:00
Sami Wagiaalla
f650648aae
Add fsGroup to SetUp and SetUpAt
2016-01-13 10:37:10 -05:00
k8s-merge-robot
6f50699b93
Merge pull request #17192 from SuhasAnand/SuhasAnand-rbd-attachdisk-fix_unnecessary_call
...
Auto commit by PR queue bot
2016-01-11 22:07:00 -08:00
Chakravarthy Nelluri
fa76de79e5
Add support for flex volume. Flex volume adds support for thirdparty(vendor)
...
volumes and custom mounts.
2015-12-23 14:11:38 -08:00
Phillip Wittrock
c67ce887f2
Volume Metrics Interface and base implementation.
...
- Add volume.MetricsProvider function to Volume interface.
- Add volume.MetricsDu for providing metrics via executing "du".
- Add volulme.MetricsNil for unsupported Volumes.
2015-12-09 16:06:24 -08:00
Sami Wagiaalla
66c905d63e
Distinguish normal mount from format and mount in SafeFormatAndMount
2015-12-02 11:16:00 -05:00
Paul Morie
911757486d
Refactor volume.Builder.IsReadOnly() to volume.Builder.GetAttributes()
2015-11-13 23:34:48 -05:00
Suhas
ab01a22fef
rdb util: AttachDisk: Skip unnecessary call for waitforpath
...
Skip unnecessary call to waitforpath if found = true during the first call.
2015-11-12 16:32:10 -08:00
Sami Wagiaalla
1d352a16b8
Support volume relabling for pods which specify an SELinux label
2015-10-28 09:26:58 -04:00
Paul Morie
3cd12f5e05
FSGroup implementation
2015-10-22 16:40:59 -04:00
Huamin Chen
de41fd3960
rbd: no more remount.
...
remount was originally needed to ensure rw/ro is set correctly. There is no such need since mount is using exec interface
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-10-08 13:50:41 -04:00
Huamin Chen
8dbbcefdec
rbd: don't use /dev/rbd/pool/image; use sysfs to find rbd device instead
...
rbd: if rbd image is not formatted, format it to the designated filesystem type
rbd: update example README.md and include instructions to get base64 encoded Ceph secret
if rbd fails to lock image, unmap the image before exiting
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-09-29 10:13:01 -04:00
Filip Grzadkowski
7fe34f2050
Introduce nsenter writer for volume plugins
2015-09-17 16:40:29 +02:00
Chao Xu
64bf839e9f
refactor tests to use testapi rather than latest directly
2015-09-11 17:32:23 -07:00
Chao Xu
dd6c121d7f
massive changes
2015-09-11 17:31:47 -07:00
markturansky
0e7f73ad67
expand volume.Spec to include full Volume and PV
2015-09-03 08:57:32 -04:00
deads2k
7e180c258d
update testclient for delegating reaction chain
2015-09-01 12:58:35 -04:00
Saad Ali
b05cab0bc5
Merge pull request #6945 from eparis/IsMountPoint
...
Rename IsMountPoint to IsLikelyNotMountPoint
2015-08-19 12:47:51 -07:00
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Eric Paris
f125ad88ce
Rename IsMountPoint to IsLikelyNotMountPoint
...
IsLikelyNotMountPoint determines if a directory is not a mountpoint.
It is fast but not necessarily ALWAYS correct. If the path is in fact
a bind mount from one part of a mount to another it will not be detected.
mkdir /tmp/a /tmp/b; mount --bin /tmp/a /tmp/b; IsLikelyNotMountPoint("/tmp/b")
will return true. When in fact /tmp/b is a mount point. So this patch
renames the function and switches it from a positive to a negative (I
could think of a good positive name). This should make future users of
this function aware that it isn't quite perfect, but probably good
enough.
2015-08-14 18:45:43 -04:00
Kris Rousey
565189f5b8
Correcting all go vet errors
2015-08-11 13:55:37 -07:00
Rohith
dc23ded091
- fixing the complaint on the gofmt
2015-08-10 23:57:05 +01:00
Rohith
bb31cd29ea
- fixed the defencing of the rbd lock
2015-08-10 23:33:25 +01:00
Mike Danese
17defc7383
run gofmt on everything we touched
2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
markturansky
8639f24374
rebased and updated
2015-07-29 14:38:40 -04:00
markturansky
920cb34b1e
rebased and updated to latest
2015-07-29 14:38:40 -04:00
markturansky
63ccfa2beb
Added unit tests for each PV using IsReadOnly
2015-07-29 14:38:40 -04:00
markturansky
fae6759490
IsReadOnly bool on builder
2015-07-29 14:35:37 -04:00
markturansky
124bb22f92
Honor ReadOnly flag from persistent-volume plugin
2015-07-29 14:34:15 -04:00
jiangyaoguo
72e899e1b5
refector rbd volume to seperate builder and cleaner
2015-07-26 01:11:25 +08:00
Huamin Chen
fa8a2ef81d
fencing off multiple rbd mount
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-07-24 11:49:32 -04:00
markturansky
fe6399a689
Changed plugin name from exported to private
2015-06-29 13:07:22 -04:00
Huamin Chen
0280dac6b1
check IsNotExist error when validating mountpoint
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-06-17 15:25:15 -04:00
markturansky
b1464437de
fixed test
2015-06-02 09:19:28 -04:00
Jan Safranek
d2b4ae4df4
Fix persistent volumes.
...
Check Spec.PersistentVolumeSource in NFS, RBD, Gluster and iSCSI volume
plugins.
2015-06-02 09:19:28 -04:00
Tim Hockin
0bbba1c3d1
Merge pull request #8732 from markturansky/missing_pv_support
...
Fixed CanSupport func across all volumes (for PV)
2015-05-27 08:45:47 -07:00
Paul Morie
38c96725c0
Add doc.go files for all volume plugins
2015-05-23 16:59:12 -04:00
markturansky
3ad583cf2d
Fixed spotty CanSupport for PV and added more unit tests for same
2015-05-23 09:59:05 -04:00
Huamin Chen
4a800fd10e
add rados block device(rbd) volume plugin
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-05-21 14:51:31 -04:00