Ask Your Question
-1

Failure to boot instance via volume on F20 compute node

asked 2014-03-03 03:42:50 -0500

dbaxps gravatar image

updated 2014-03-03 04:16:56 -0500

In /var/log/nova/compute.log :-

2014-03-03 13:28:43.646 1344 WARNING nova.virt.libvirt.driver [req-1bd6630e-b799-4d78-b702-f06da5f1464b df4a984ce2f24848a6b84aaa99e296f1 e896be65e94a4893b870bc29b a86d7eb] [instance: f621815f-3805-4f52-a878-9040c6a4af53] File injection into a boot from volume instance is not supported

 2014-03-03 13:30:48.024 1344 WARNING nova.virt.libvirt.volume [req-1bd6630e-b799-4d78-b702-f06da5f1464b df4a984ce2f24848a6b84aaa99e296f1 e896be65e94a4893b870bc29ba86d7eb] ISCSI volume not yet found at: vda. Will rescan & retry.  Try number: 0
    2014-03-03 13:30:48.082 1344 ERROR nova.compute.manager [req-1bd6630e-b799-4d78-b702-f06da5f1464b df4a984ce2f24848a6b84aaa99e296f1 e896be65e94a4893b870bc29ba86d7eb] [instance: f621815f-3805-4f52-a878-9040c6a4af53] Instance failed to spawn
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53] Traceback (most recent call last):
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1423, in _spawn
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]     block_device_info)
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2088, in spawn
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]     write_to_disk=True)
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3084, in to_xml
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]     disk_info, rescue, block_device_info)
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2960, in get_guest_config
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]     inst_type):
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2777, in get_guest_storage_config
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]     info)
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1042, in volume_driver_method
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]     return method(connection_info, *args, **kwargs)
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]   File "/usr/lib/python2.7/site-packages/nova/openstack/common/lockutils.py", line 246, in inner
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]     return f(*args, **kwargs)
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/volume.py", line 285, in connect_volume
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]     self._run_iscsiadm(iscsi_properties, ("--rescan",))
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/volume.py", line 218, in _run_iscsiadm
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]     check_exit_code=check_exit_code)
    2014-03-03 13:30:48.082 1344 TRACE nova.compute.manager [instance: f621815f-3805-4f52-a878-9040c6a4af53]   File "/usr/lib/python2.7/site-packages/nova/utils.py", line 177, in execute
    2014-03-03 13:30:48.082 ...
(more)
edit retag flag offensive close merge delete

Comments

On compute : [root@dallas2 nova]# iscsiadm -m discovery -t sendtargets -p 192.168.1.130 192.168.1.130:3260,1 iqn.2010-10.org.openstack:volume-061e4f6f-260a-41fa-9cb0-d747682e4d92 192.168.1.130:3260,1 iqn.2010-10.org.openstack:volume-36f3fa59-c35f-4fe1-98c0-7f2813862107 192.168.1.130:3260,1 iqn.2010-10.org.openstack:volume-4704ead1-c17b-405f-b960-e65eab5146e3 192.168.1.130:3260,1 iqn.2010-10.org.openstack:volume-900db960-e1e6-4dc9-9f97-0ee2298815bf

dbaxps gravatar imagedbaxps ( 2014-03-03 04:07:59 -0500 )edit

[root@dallas1 ~(keystone_admin)]$ lsof -i -n | grep iscsi tgtd 30524 root 6u IPv4 861339 0t0 TCP *:iscsi-target (LISTEN) tgtd 30524 root 7u IPv6 861340 0t0 TCP *:iscsi-target (LISTEN) [root@dallas1 ~(keystone_admin)]$ service tgtd stop Redirecting to /bin/systemctl stop tgtd.service [root@dallas1 ~(keystone_admin)]$ lsof -i -n | grep iscsi [root@dallas1 ~(keystone_admin)]$ service tgtd start Redirecting to /bin/systemctl start tgtd.service [root@dallas1 ~(keystone_admin)]$ lsof -i -n | grep iscsi tgtd 24796 root 6u IPv4 1970357 0t0 TCP *:iscsi-target (LISTEN) tgtd 24796 root 7u IPv6 1970358 0t0 TCP *:iscsi-target (LISTEN)

dbaxps gravatar imagedbaxps ( 2014-03-03 04:19:51 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-03-03 10:26:15 -0500

dbaxps gravatar image

updated 2014-03-21 03:03:29 -0500

   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
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-03-03 03:42:50 -0500

Seen: 869 times

Last updated: Mar 21 '14