[root@t1 nova] # nova volume-attach 765d0088-17de-4357-9cfe-92eea1f692ab b27f526c-64d6-4a35-8a01-b6afa602d7d5 /dev/vdb +----------+--------------------------------------+ | Property | Value | +----------+--------------------------------------+ | device | /dev/sdb | | id | b27f526c-64d6-4a35-8a01-b6afa602d7d5 | | serverId | 765d0088-17de-4357-9cfe-92eea1f692ab | | volumeId | b27f526c-64d6-4a35-8a01-b6afa602d7d5 | +----------+--------------------------------------+
[root@t1 nova] # nova volume-attach 765d0088-17de-4357-9cfe-92eea1f692ab b27f526c-64d6-4a35-8a01-b6afa602d7d5 /dev/vdb
next time, when I attach with name same DevicePathInUse will be raised
I am in liberty branch but I checked the code and seems we didn't catch DevicePathInUse in master
[root@t1 nova] # nova volume-attach 765d0088- 17de-4357- 9cfe-92eea1f692 ab b27f526c- 64d6-4a35- 8a01-b6afa602d7 d5 /dev/vdb ----+-- ------- ------- ------- ------- ------- -+ ----+-- ------- ------- ------- ------- ------- -+ 64d6-4a35- 8a01-b6afa602d7 d5 | 17de-4357- 9cfe-92eea1f692 ab | 64d6-4a35- 8a01-b6afa602d7 d5 | ----+-- ------- ------- ------- ------- ------- -+
+------
| Property | Value |
+------
| device | /dev/sdb |
| id | b27f526c-
| serverId | 765d0088-
| volumeId | b27f526c-
+------
[root@t1 nova] # nova volume-attach 765d0088- 17de-4357- 9cfe-92eea1f692 ab b27f526c- 64d6-4a35- 8a01-b6afa602d7 d5 /dev/vdb
next time, when I attach with name same DevicePathInUse will be raised
I am in liberty branch but I checked the code and seems we didn't catch DevicePathInUse in master