# Listing our test servers nova --os-auth-url=http://192.168.0.5:5000/v2.0 list +--------------------------------------+--------------+--------+------------+-------------+------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+--------------+--------+------------+-------------+------------------+ | 9991ead8-8a88-45c3-83d0-a2ac5e7fb232 | test_server1 | ACTIVE | - | Running | private=10.0.0.2 | | 44d13e4b-a218-46b8-a714-c96e9cff2066 | test_server2 | ACTIVE | - | Running | private=10.0.0.3 | +--------------------------------------+--------------+--------+------------+-------------+------------------+ # Listing our test volume pcrews@erlking-dev:~/git/rannsaka$ cinder list +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | 41dcbd0b-ac6b-477e-84f9-bbe62da29a6a | available | test_volume1 | 1 | lvmdriver-1 | false | | +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ # Listing what exists on test_server1 pcrews@erlking-dev:~/git/rannsaka$ ssh cirros@10.0.0.2 The authenticity of host '10.0.0.2 (10.0.0.2)' can't be established. RSA key fingerprint is 05:ca:d6:08:fc:78:a2:c7:a7:d5:d1:46:db:ca:90:61. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.0.0.2' (RSA) to the list of known hosts. cirros@10.0.0.2's password: $ ls /dev bsg loop5 ram1 root tty18 tty33 tty49 tty7 ttyS21 ttyS9 bus loop6 ram10 rtc0 tty19 tty34 tty5 tty8 ttyS22 ttyprintk console loop7 ram11 sg0 tty2 tty35 tty50 tty9 ttyS23 uinput cpu_dma_latency mapper ram12 shm tty20 tty36 tty51 ttyS0 ttyS24 urandom ecryptfs mcelog ram13 snapshot tty21 tty37 tty52 ttyS1 ttyS25 usbmon0 full mem ram14 sr0 tty22 tty38 tty53 ttyS10 ttyS26 usbmon1 fuse net ram15 tty tty23 tty39 tty54 ttyS11 ttyS27 vcs hpet network_latency ram2 tty0 tty24 tty4 tty55 ttyS12 ttyS28 vcs1 input network_throughput ram3 tty1 tty25 tty40 tty56 ttyS13 ttyS29 vcsa kmsg null ram4 tty10 tty26 tty41 tty57 ttyS14 ttyS3 vcsa1 log oldmem ram5 tty11 tty27 tty42 tty58 ttyS15 ttyS30 vda loop-control port ram6 tty12 tty28 tty43 tty59 ttyS16 ttyS31 vga_arbiter loop0 ppp ram7 tty13 tty29 tty44 tty6 ttyS17 ttyS4 zero loop1 psaux ram8 tty14 tty3 tty45 tty60 ttyS18 ttyS5 loop2 ptmx ram9 tty15 tty30 tty46 tty61 ttyS19 ttyS6 loop3 pts random tty16 tty31 tty47 tty62 ttyS2 ttyS7 loop4 ram0 rfkill tty17 tty32 tty48 tty63 ttyS20 ttyS8 $ exit Connection to 10.0.0.2 closed. # Attaching volume to test_server1 on /dev/vdc pcrews@erlking-dev:~/git/rannsaka$ nova --os-auth-url=http://192.168.0.5:5000/v2.0 volume-attach 9991ead8-8a88-45c3-83d0-a2ac5e7fb232 41dcbd0b-ac6b-477e-84f9-bbe62da29a6a /dev/vdc +----------+--------------------------------------+ | Property | Value | +----------+--------------------------------------+ | device | /dev/vdc | | id | 41dcbd0b-ac6b-477e-84f9-bbe62da29a6a | | serverId | 9991ead8-8a88-45c3-83d0-a2ac5e7fb232 | | volumeId | 41dcbd0b-ac6b-477e-84f9-bbe62da29a6a | +----------+--------------------------------------+ # Listing what is on test_server1 after volume mount. NOTE: no /dev/vdc exists - but a /dev/vdb does pcrews@erlking-dev:~/git/rannsaka$ ssh cirros@10.0.0.2 cirros@10.0.0.2's password: $ ls /dev bsg loop5 ram1 root tty18 tty33 tty49 tty7 ttyS21 ttyS9 bus loop6 ram10 rtc0 tty19 tty34 tty5 tty8 ttyS22 ttyprintk console loop7 ram11 sg0 tty2 tty35 tty50 tty9 ttyS23 uinput cpu_dma_latency mapper ram12 shm tty20 tty36 tty51 ttyS0 ttyS24 urandom ecryptfs mcelog ram13 snapshot tty21 tty37 tty52 ttyS1 ttyS25 usbmon0 full mem ram14 sr0 tty22 tty38 tty53 ttyS10 ttyS26 usbmon1 fuse net ram15 tty tty23 tty39 tty54 ttyS11 ttyS27 vcs hpet network_latency ram2 tty0 tty24 tty4 tty55 ttyS12 ttyS28 vcs1 input network_throughput ram3 tty1 tty25 tty40 tty56 ttyS13 ttyS29 vcsa kmsg null ram4 tty10 tty26 tty41 tty57 ttyS14 ttyS3 vcsa1 log oldmem ram5 tty11 tty27 tty42 tty58 ttyS15 ttyS30 vda loop-control port ram6 tty12 tty28 tty43 tty59 ttyS16 ttyS31 vdb loop0 ppp ram7 tty13 tty29 tty44 tty6 ttyS17 ttyS4 vga_arbiter loop1 psaux ram8 tty14 tty3 tty45 tty60 ttyS18 ttyS5 zero loop2 ptmx ram9 tty15 tty30 tty46 tty61 ttyS19 ttyS6 loop3 pts random tty16 tty31 tty47 tty62 ttyS2 ttyS7 loop4 ram0 rfkill tty17 tty32 tty48 tty63 ttyS20 ttyS8 $ exit Connection to 10.0.0.2 closed. # Listing cinder contents to note that the system *thinks* /dev/vdc is the mountpoint pcrews@erlking-dev:~/git/rannsaka$ cinder --debug list DEBUG:keystoneclient.session:REQ: curl -i -X GET http://192.168.0.5:5000 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" DEBUG:keystoneclient.session:RESP: [300] {'content-length': '757', 'vary': 'X-Auth-Token', 'keep-alive': 'timeout=5, max=100', 'server': 'Apache/2.4.7 (Ubuntu)', 'connection': 'Keep-Alive', 'date': 'Tue, 02 Dec 2014 21:40:58 GMT', 'content-type': 'application/json'} RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2013-03-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v3+xml"}], "id": "v3.0", "links": [{"href": "http://192.168.0.5:5000/v3/", "rel": "self"}]}, {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://192.168.0.5:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}} DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://192.168.0.5:5000/v2.0/tokens DEBUG:keystoneclient.session:REQ: curl -i -X GET http://192.168.0.5:8776/v1/c8d54cca25a9496ab264be0c2d96e567/volumes/detail -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: TOKEN_REDACTED" DEBUG:keystoneclient.session:RESP: [200] {'content-length': '768', 'x-compute-request-id': 'req-3707a260-8706-429b-a804-76385da53959', 'connection': 'keep-alive', 'date': 'Tue, 02 Dec 2014 21:40:59 GMT', 'content-type': 'application/json', 'x-openstack-request-id': 'req-3707a260-8706-429b-a804-76385da53959'} RESP BODY: {"volumes": [{"status": "in-use", "display_name": "test_volume1", "attachments": [{"host_name": null, "device": "/dev/vdc", "server_id": "9991ead8-8a88-45c3-83d0-a2ac5e7fb232", "id": "41dcbd0b-ac6b-477e-84f9-bbe62da29a6a", "volume_id": "41dcbd0b-ac6b-477e-84f9-bbe62da29a6a"}], "availability_zone": "nova", "bootable": "false", "encrypted": false, "created_at": "2014-12-02T21:34:07.000000", "os-vol-tenant-attr:tenant_id": "c8d54cca25a9496ab264be0c2d96e567", "os-volume-replication:driver_data": null, "display_description": null, "os-volume-replication:extended_status": null, "volume_type": "lvmdriver-1", "snapshot_id": null, "source_volid": null, "metadata": {"readonly": "False", "attached_mode": "rw"}, "id": "41dcbd0b-ac6b-477e-84f9-bbe62da29a6a", "size": 1}]} +--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+ | 41dcbd0b-ac6b-477e-84f9-bbe62da29a6a | in-use | test_volume1 | 1 | lvmdriver-1 | false | 9991ead8-8a88-45c3-83d0-a2ac5e7fb232 | +--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+