Ask Your Question

Revision history [back]

[root@dallas1 ~(keystone_boris)]$ glance image-list
+--------------------------------------+---------------------+-------------+------------------+-----------+--------+
| ID                                   | Name                | Disk Format | Container Format | Size      | Status |
+--------------------------------------+---------------------+-------------+------------------+-----------+--------+
| 592faef8-308a-4438-867a-17adf685cde4 | CirrOS 31           | qcow2       | bare             | 13147648  | active |
| d0e90250-5814-4685-9b8d-65ec9daa7117 | Fedora 20 x86_64    | qcow2       | bare             | 214106112 | active |
| 3e6eea8e-32e6-4373-9eb1-e04b8a3167f9 | Ubuntu Server 13.10 | qcow2       | bare             | 244777472 | active |
+--------------------------------------+---------------------+-------------+------------------+-----------

[root@dallas1 ~(keystone_boris)]$  nova boot --flavor 2  \
--block-device   source=image,id=d0e90250-5814-4685-9b8d-65ec9daa7117,dest=volume,size=7,shutdown=preserve,bootindex=0 VF20RS05
+--------------------------------------+-------------------------------------------------+
| Property                             | Value                                           |
+--------------------------------------+-------------------------------------------------+
| status                               | BUILD                                           |
| updated                              | 2014-03-03T15:19:56Z                            |
| OS-EXT-STS:task_state                | scheduling                                      |
| key_name                             | None                                            |
| image                                | Attempt to boot from volume - no image supplied |
| hostId                               |                                                 |
| OS-EXT-STS:vm_state                  | building                                        |
| OS-SRV-USG:launched_at               | None                                            |
| flavor                               | m1.small                                        |
| id                                   | 380e4d46-c273-4fb8-8168-4506a58aab7e            |
| security_groups                      | [{u'name': u'default'}]                         |
| OS-SRV-USG:terminated_at             | None                                            |
| user_id                              | df4a984ce2f24848a6b84aaa99e296f1                |
| name                                 | VF20RS05                                        |
| adminPass                            | 4jWTS7qXctnY                                    |
| tenant_id                            | e896be65e94a4893b870bc29ba86d7eb                |
| created                              | 2014-03-03T15:19:55Z                            |
| OS-DCF:diskConfig                    | MANUAL                                          |
| metadata                             | {}                                              |
| os-extended-volumes:volumes_attached | []                                              |
| accessIPv4                           |                                                 |
| accessIPv6                           |                                                 |
| progress                             | 0                                               |
| OS-EXT-STS:power_state               | 0                                               |
| OS-EXT-AZ:availability_zone          | nova                                            |
| config_drive                         |                                                 |
+--------------------------------------+-------------------------------------------------+
[root@dallas1 ~(keystone_boris)]$ nova list
+--------------------------------------+----------+-----------+----------------------+-------------+-----------------------------+
| ID                                   | Name     | Status    | Task State           | Power State | Networks                    |
+--------------------------------------+----------+-----------+----------------------+-------------+-----------------------------+
| 380e4d46-c273-4fb8-8168-4506a58aab7e | VF20RS05 | BUILD     | block_device_mapping | NOSTATE     |                             |
+--------------------------------------+----------+-----------+----------------------+-------------+-----------------------------+
[root@dallas1 ~(keystone_boris)]$ nova list
+--------------------------------------+----------+-----------+------------+-------------+-----------------------------+
| ID                                   | Name     | Status    | Task State | Power State | Networks                    |
+--------------------------------------+----------+-----------+------------+-------------+-----------------------------+
| 380e4d46-c273-4fb8-8168-4506a58aab7e | VF20RS05 | ACTIVE    | None       | Running     | int=10.0.0.4                |
+--------------------------------------+----------+-----------+------------+-------------+-----------------------------+

+--------------------------------------+----------+-----------+----------------------+-------------+-----------------------------+

[root@dallas1 ~(keystone_boris)]$ nova delete 380e4d46-c273-4fb8-8168-4506a58aab7e
[root@dallas1 ~(keystone_boris)]$ cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
|                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| e6fc8995-f0cf-42f6-896e-d178677b1ef8 | available |              |  7   |     None    |   true   |             |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
[root@dallas1 ~(keystone_boris)]$ nova boot --flavor 2 --user-data=./myfile.txt --block_device_mapping vda=e6fc8995-f0cf-42f6-896e-d178677b1ef8:::0 VF20RS07
+--------------------------------------+----------------------------------------------------+
| Property                             | Value                                              |
+--------------------------------------+----------------------------------------------------+
| status                               | BUILD                                              |
| updated                              | 2014-03-03T15:27:16Z                               |
| OS-EXT-STS:task_state                | scheduling                                         |
| key_name                             | None                                               |
| image                                | Attempt to boot from volume - no image supplied    |
| hostId                               |                                                    |
| OS-EXT-STS:vm_state                  | building                                           |
| OS-SRV-USG:launched_at               | None                                               |
| flavor                               | m1.small                                           |
| id                                   | 241b0086-df5b-428b-a686-3d2279e376c0               |
| security_groups                      | [{u'name': u'default'}]                            |
| OS-SRV-USG:terminated_at             | None                                               |
| user_id                              | df4a984ce2f24848a6b84aaa99e296f1                   |
| name                                 | VF20RS07                                           |
| adminPass                            | cvKbG6EBJBx8                                       |
| tenant_id                            | e896be65e94a4893b870bc29ba86d7eb                   |
| created                              | 2014-03-03T15:27:15Z                               |
| OS-DCF:diskConfig                    | MANUAL                                             |
| metadata                             | {}                                                 |
| os-extended-volumes:volumes_attached | [{u'id': u'e6fc8995-f0cf-42f6-896e-d178677b1ef8'}] |
| accessIPv4                           |                                                    |
| accessIPv6                           |                                                    |
| progress                             | 0                                                  |
| OS-EXT-STS:power_state               | 0                                                  |
| OS-EXT-AZ:availability_zone          | nova                                               |
| config_drive                         |                                                    |
+--------------------------------------+----------------------------------------------------+
[root@dallas1 ~(keystone_boris)]$ nova list
+--------------------------------------+----------+-----------+------------+-------------+-----------------------------+
| ID                                   | Name     | Status    | Task State | Power State | Networks                    |
+--------------------------------------+----------+-----------+------------+-------------+-----------------------------+
| 241b0086-df5b-428b-a686-3d2279e376c0 | VF20RS07 | ACTIVE    | None       | Running     | int=10.0.0.4                |
+--------------------------------------+----------+-----------+------------+-------------+-----------------------------+
[root@dallas1 ~(keystone_boris)]$ neutron floatingip-create extCreated a new floatingip:
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| fixed_ip_address    |                                      |
| floating_ip_address | 192.168.1.109                        |
| floating_network_id | 0ed406bf-3552-4036-9006-440f3e69618e |
| id                  | 87914285-549f-45f6-8129-5e9071119dbb |
| port_id             |                                      |
| router_id           |                                      |
| tenant_id           | e896be65e94a4893b870bc29ba86d7eb     |
+---------------------+--------------------------------------+
[root@dallas1 ~(keystone_boris)]$ neutron port-list --device-id  241b0086-df5b-428b-a686-3d2279e376c0
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                       |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
| 8f6f97dd-c942-4050-8a73-3b7bb685ffb7 |      | fa:16:3e:40:ec:d7 | {"subnet_id": "2e838119-3e2e-46e8-b7cc-6d00975046f2", "ip_address": "10.0.0.4"} |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
[root@dallas1 ~(keystone_boris)]$ neutron floatingip-associate 87914285-549f-45f6-8129-5e9071119dbb  8f6f97dd-c942-4050-8a73-3b7bb685ffb7
Associated floatingip 87914285-549f-45f6-8129-5e9071119dbb
[root@dallas1 ~(keystone_boris)]$ ping 192.168.1.109 
PING 192.168.1.109 (192.168.1.109) 56(84) bytes of data.
64 bytes from 192.168.1.109: icmp_seq=1 ttl=63 time=6.29 ms
64 bytes from 192.168.1.109: icmp_seq=2 ttl=63 time=0.919 ms
64 bytes from 192.168.1.109: icmp_seq=3 ttl=63 time=0.700 ms
64 bytes from 192.168.1.109: icmp_seq=4 ttl=63 time=5.00 ms
64 bytes from 192.168.1.109: icmp_seq=5 ttl=63 time=0.866 ms
^C
   As of 03/11/14 standard schema via `cinder create --image-id IMAGE_ID  --display_name VOL_NAME SIZE` & `nova boot --flavor 2 --user-data=./myfile.txt --block_device_mapping vda=VOL_ID:::0 VM_NAME`  started to work fine on F20.


    [root@dallas1 ~(keystone_boris)]$ glance image-list
 +--------------------------------------+---------------------+-------------+------------------+-----------+--------+
 | ID                                   | Name                | Disk Format | Container Format | Size      | Status |
 +--------------------------------------+---------------------+-------------+------------------+-----------+--------+
 | 592faef8-308a-4438-867a-17adf685cde4 | CirrOS 31           | qcow2       | bare             | 13147648  | active |
 | d0e90250-5814-4685-9b8d-65ec9daa7117 | Fedora 20 x86_64    | qcow2       | bare             | 214106112 | active |
 | 3e6eea8e-32e6-4373-9eb1-e04b8a3167f9 | Ubuntu Server 13.10 | qcow2       | bare             | 244777472 | active |
 +--------------------------------------+---------------------+-------------+------------------+-----------

 [root@dallas1 ~(keystone_boris)]$  nova boot --flavor 2  \
 --block-device   source=image,id=d0e90250-5814-4685-9b8d-65ec9daa7117,dest=volume,size=7,shutdown=preserve,bootindex=0 VF20RS05
 +--------------------------------------+-------------------------------------------------+
 | Property                             | Value                                           |
 +--------------------------------------+-------------------------------------------------+
 | status                               | BUILD                                           |
 | updated                              | 2014-03-03T15:19:56Z                            |
 | OS-EXT-STS:task_state                | scheduling                                      |
 | key_name                             | None                                            |
 | image                                | Attempt to boot from volume - no image supplied |
 | hostId                               |                                                 |
 | OS-EXT-STS:vm_state                  | building                                        |
 | OS-SRV-USG:launched_at               | None                                            |
 | flavor                               | m1.small                                        |
 | id                                   | 380e4d46-c273-4fb8-8168-4506a58aab7e            |
 | security_groups                      | [{u'name': u'default'}]                         |
 | OS-SRV-USG:terminated_at             | None                                            |
 | user_id                              | df4a984ce2f24848a6b84aaa99e296f1                |
 | name                                 | VF20RS05                                        |
 | adminPass                            | 4jWTS7qXctnY                                    |
 | tenant_id                            | e896be65e94a4893b870bc29ba86d7eb                |
 | created                              | 2014-03-03T15:19:55Z                            |
 | OS-DCF:diskConfig                    | MANUAL                                          |
 | metadata                             | {}                                              |
 | os-extended-volumes:volumes_attached | []                                              |
 | accessIPv4                           |                                                 |
 | accessIPv6                           |                                                 |
 | progress                             | 0                                               |
 | OS-EXT-STS:power_state               | 0                                               |
 | OS-EXT-AZ:availability_zone          | nova                                            |
 | config_drive                         |                                                 |
 +--------------------------------------+-------------------------------------------------+
 [root@dallas1 ~(keystone_boris)]$ nova list
 +--------------------------------------+----------+-----------+----------------------+-------------+-----------------------------+
 | ID                                   | Name     | Status    | Task State           | Power State | Networks                    |
 +--------------------------------------+----------+-----------+----------------------+-------------+-----------------------------+
 | 380e4d46-c273-4fb8-8168-4506a58aab7e | VF20RS05 | BUILD     | block_device_mapping | NOSTATE     |                             |
 +--------------------------------------+----------+-----------+----------------------+-------------+-----------------------------+
 [root@dallas1 ~(keystone_boris)]$ nova list
 +--------------------------------------+----------+-----------+------------+-------------+-----------------------------+
 | ID                                   | Name     | Status    | Task State | Power State | Networks                    |
 +--------------------------------------+----------+-----------+------------+-------------+-----------------------------+
 | 380e4d46-c273-4fb8-8168-4506a58aab7e | VF20RS05 | ACTIVE    | None       | Running     | int=10.0.0.4                |
 +--------------------------------------+----------+-----------+------------+-------------+-----------------------------+

 +--------------------------------------+----------+-----------+----------------------+-------------+-----------------------------+

 [root@dallas1 ~(keystone_boris)]$ nova delete 380e4d46-c273-4fb8-8168-4506a58aab7e
 [root@dallas1 ~(keystone_boris)]$ cinder list
 +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
 |                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable | Attached to |
 +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
 | e6fc8995-f0cf-42f6-896e-d178677b1ef8 | available |              |  7   |     None    |   true   |             |
 +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
 [root@dallas1 ~(keystone_boris)]$ nova boot --flavor 2 --user-data=./myfile.txt --block_device_mapping vda=e6fc8995-f0cf-42f6-896e-d178677b1ef8:::0 VF20RS07
 +--------------------------------------+----------------------------------------------------+
 | Property                             | Value                                              |
 +--------------------------------------+----------------------------------------------------+
 | status                               | BUILD                                              |
 | updated                              | 2014-03-03T15:27:16Z                               |
 | OS-EXT-STS:task_state                | scheduling                                         |
 | key_name                             | None                                               |
 | image                                | Attempt to boot from volume - no image supplied    |
 | hostId                               |                                                    |
 | OS-EXT-STS:vm_state                  | building                                           |
 | OS-SRV-USG:launched_at               | None                                               |
 | flavor                               | m1.small                                           |
 | id                                   | 241b0086-df5b-428b-a686-3d2279e376c0               |
 | security_groups                      | [{u'name': u'default'}]                            |
 | OS-SRV-USG:terminated_at             | None                                               |
 | user_id                              | df4a984ce2f24848a6b84aaa99e296f1                   |
 | name                                 | VF20RS07                                           |
 | adminPass                            | cvKbG6EBJBx8                                       |
 | tenant_id                            | e896be65e94a4893b870bc29ba86d7eb                   |
 | created                              | 2014-03-03T15:27:15Z                               |
 | OS-DCF:diskConfig                    | MANUAL                                             |
 | metadata                             | {}                                                 |
 | os-extended-volumes:volumes_attached | [{u'id': u'e6fc8995-f0cf-42f6-896e-d178677b1ef8'}] |
 | accessIPv4                           |                                                    |
 | accessIPv6                           |                                                    |
 | progress                             | 0                                                  |
 | OS-EXT-STS:power_state               | 0                                                  |
 | OS-EXT-AZ:availability_zone          | nova                                               |
 | config_drive                         |                                                    |
 +--------------------------------------+----------------------------------------------------+
 [root@dallas1 ~(keystone_boris)]$ nova list
 +--------------------------------------+----------+-----------+------------+-------------+-----------------------------+
 | ID                                   | Name     | Status    | Task State | Power State | Networks                    |
 +--------------------------------------+----------+-----------+------------+-------------+-----------------------------+
 | 241b0086-df5b-428b-a686-3d2279e376c0 | VF20RS07 | ACTIVE    | None       | Running     | int=10.0.0.4                |
 +--------------------------------------+----------+-----------+------------+-------------+-----------------------------+
 [root@dallas1 ~(keystone_boris)]$ neutron floatingip-create extCreated a new floatingip:
 +---------------------+--------------------------------------+
 | Field               | Value                                |
 +---------------------+--------------------------------------+
 | fixed_ip_address    |                                      |
 | floating_ip_address | 192.168.1.109                        |
 | floating_network_id | 0ed406bf-3552-4036-9006-440f3e69618e |
 | id                  | 87914285-549f-45f6-8129-5e9071119dbb |
 | port_id             |                                      |
 | router_id           |                                      |
 | tenant_id           | e896be65e94a4893b870bc29ba86d7eb     |
 +---------------------+--------------------------------------+
 [root@dallas1 ~(keystone_boris)]$ neutron port-list --device-id  241b0086-df5b-428b-a686-3d2279e376c0
 +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
 | id                                   | name | mac_address       | fixed_ips                                                                       |
 +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
 | 8f6f97dd-c942-4050-8a73-3b7bb685ffb7 |      | fa:16:3e:40:ec:d7 | {"subnet_id": "2e838119-3e2e-46e8-b7cc-6d00975046f2", "ip_address": "10.0.0.4"} |
 +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
 [root@dallas1 ~(keystone_boris)]$ neutron floatingip-associate 87914285-549f-45f6-8129-5e9071119dbb  8f6f97dd-c942-4050-8a73-3b7bb685ffb7
 Associated floatingip 87914285-549f-45f6-8129-5e9071119dbb
 [root@dallas1 ~(keystone_boris)]$ ping 192.168.1.109 
 PING 192.168.1.109 (192.168.1.109) 56(84) bytes of data.
 64 bytes from 192.168.1.109: icmp_seq=1 ttl=63 time=6.29 ms
 64 bytes from 192.168.1.109: icmp_seq=2 ttl=63 time=0.919 ms
 64 bytes from 192.168.1.109: icmp_seq=3 ttl=63 time=0.700 ms
 64 bytes from 192.168.1.109: icmp_seq=4 ttl=63 time=5.00 ms
 64 bytes from 192.168.1.109: icmp_seq=5 ttl=63 time=0.866 ms
 ^C