Comments (4)
Below is the volume attachment part of the response from openstack and it is shown clearly that id = volume_id is actually the volume id, not attachment id. This can be seen in the test you provided as well.
[ { 'server_id': '6c8cf6e0-4c8f-442f-9196-9679737feec6', 'attachment_id': '3dafcac4-1cb9-4b60-a227-d729baa10cf6', 'attached_at': '2019-09-30T19:30:34.000000', 'host_name': null, 'volume_id': '5d95d5ee-4bdd-4452-b9d7-d44ca10d3d53', 'device': '/dev/vda', 'id': '5d95d5ee-4bdd-4452-b9d7-d44ca10d3d53' } ]
from openstack4j.
There is the attachments
property inside the volume https://github.com/openstack4j/openstack4j/blob/master/core/src/main/java/org/openstack4j/openstack/storage/block/domain/CinderVolume.java#L61 and the relative id getter https://github.com/openstack4j/openstack4j/blob/master/core/src/main/java/org/openstack4j/openstack/storage/block/domain/CinderVolumeAttachment.java#L48
from openstack4j.
from openstack4j.
The id getter in CinderVolumeAttachment is for the field id - this is not the attachment id, this is the id of the volume (checked with a example request) and cannot be used for detachment. Its value is of course different from the attachment_id property.
from openstack4j.
Related Issues (20)
- Unable to create port allowed pairs HOT 5
- How to filter the type when getting the image? HOT 1
- Keystone: Support Multi-Factor Authentication with TOTP HOT 3
- Outofmemory error when downloading large objects for object storage HOT 8
- Move Travis CI from org to com or migrate to other free alternative HOT 1
- openstack4j 3.8 v3 project scoped sessions are using a proxy even though one is not configured.
- How long will 【Zun】 components be supported HOT 1
- java marshaling list of servers retrieved from OpenStack si very slow
- Cinder: Support updating/deleting a volume's metadata
- How to create netQosPolicy HOT 4
- unsupported Media Type
- Wrong service API URL used when having concurrent requests towards different Openstack modules
- doc is down.. HOT 1
- hypervisors().list() doesn't fetch IPv6 address in case compute host is on a dual stack network
- Support for Network MTU specification
- http-client not picking the Configuration dynamically.
- FloatingIPService.disassociateFromPort(fipId) doesn't work HOT 2
- Snapshot Release HOT 5
- SnakeYAML 1.33 dependency really used?! HOT 2
- The HostAggreate.getHosts() returns host name instead of host id. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openstack4j.