Giter VIP home page Giter VIP logo

csi-scaleio's People

Contributors

akutz avatar codenrhoden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

csi-scaleio's Issues

Allocation of 250GB volume fails due to rounding error

I requested a PVC of 250GB (250000000000 bytes) and the PVC fails to provision because the SIO CSI is requesting less than 250GB (it's allocating 249108103168 ... 232GiB).

I0110 20:09:07.205827       1 controller.go:88] GRPC call: /csi.v0.Controller/CreateVolume
I0110 20:09:07.205835       1 controller.go:89] GRPC request: name:"vxvol-cd41cb7315" capacity_range:<required_bytes:250000000000 > volume_capabilities:<mount:<> access_mode:<mode:SINGLE_NODE_WRITER > > parameters:<key:"storagepool" value:"default" > 
I0110 20:09:07.331820       1 controller.go:91] GRPC response: volume:<capacity_bytes:249108103168 id:"695d57e600000002" > 
I0110 20:09:07.331871       1 controller.go:92] GRPC error: <nil>

By inspection, I can see the error around here: https://github.com/thecodeteam/csi-scaleio/blob/master/service/controller.go#L180

250GB ends up being 232.83GiB but since it's integer math, the integer part is lost and sizeInGB ends up being 232 and that's an even multiple of 8 so it allocates a volume of 232GiB. This unfortunately is less than what was requested by the PVC so the allocation fails.

I would expect this bug to exist for any allocation 1 to 1Gi more than a multiple of 8GiB.

Workaround is to ensure you request your PVCs in Gi not G.

Updates for CSI 0.1

Now that 0.1 is tagged for CSI, make updates to make compatible with spec.

There are some return codes that have changed, and we need to incorporate gocsi changes to idempotency interceptor logic.

Agents crash when a stale csi.sock remains

$ kubectl -n vxflex logs messy-pronghorn-agent-24llb agent 
time="2018-08-07T21:48:36Z" level=fatal msg="failed to listen" error="listen unix /var/lib/kubelet/plugins/com.thecodeteam.scaleio/csi.sock: bind: address already in use"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.