Re: (no subject)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Thanks i could restore my cinder service.

But while trying to launch an instance, i am getting same error.
Can you please help me to know what am i doing wrong? 

2016-07-08 09:28:31.368 31909 INFO nova.compute.manager [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Starting instance...

2016-07-08 09:28:31.484 31909 INFO nova.compute.claims [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Attempting claim: memory 512 MB, disk 1 GB

2016-07-08 09:28:31.485 31909 INFO nova.compute.claims [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Total memory: 193168 MB, used: 1024.00 MB

2016-07-08 09:28:31.485 31909 INFO nova.compute.claims [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] memory limit: 289752.00 MB, free: 288728.00 MB

2016-07-08 09:28:31.485 31909 INFO nova.compute.claims [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Total disk: 8168 GB, used: 1.00 GB

2016-07-08 09:28:31.486 31909 INFO nova.compute.claims [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] disk limit: 8168.00 GB, free: 8167.00 GB

2016-07-08 09:28:31.503 31909 INFO nova.compute.claims [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Claim successful

2016-07-08 09:28:31.985 31909 INFO nova.virt.libvirt.driver [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Creating image

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Instance failed to spawn

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Traceback (most recent call last):

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2156, in _build_resources

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     yield resources

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2009, in _build_and_run_instance

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     block_device_info=block_device_info)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2527, in spawn

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     admin_pass=admin_password)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2953, in _create_image

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     instance, size, fallback_from_host)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6406, in _try_fetch_image_cache

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     size=size)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 240, in cache

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     *args, **kwargs)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 811, in create_image

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     prepare_template(target=base, max_size=size, *args, **kwargs)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 254, in inner

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     return f(*args, **kwargs)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 230, in fetch_func_sync

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     fetch_func(target=target, *args, **kwargs)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2947, in clone_fallback_to_fetch

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     libvirt_utils.fetch_image(*args, **kwargs)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/utils.py", line 408, in fetch_image

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     max_size=max_size)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/virt/images.py", line 123, in fetch_to_raw

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     max_size=max_size)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/virt/images.py", line 113, in fetch

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     IMAGE_API.download(context, image_href, dest_path=path)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 182, in download

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     dst_path=dest_path)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 367, in download

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     _reraise_translated_image_exception(image_id)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 613, in _reraise_translated_image_exception

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     six.reraise(new_exc, None, exc_trace)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 365, in download

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     image_chunks = self._client.call(context, 1, 'data', image_id)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 231, in call

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     result = getattr(client.images, method)(*args, **kwargs)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 148, in data

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     % urlparse.quote(str(image_id)))

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 280, in get

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     return self._request('GET', url, **kwargs)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 272, in _request

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     resp, body_iter = self._handle_response(resp)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]   File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 93, in _handle_response

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88]     raise exc.from_response(resp, resp.content)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Invalid: 400 Bad Request: Unknown scheme 'file' found in URI (HTTP 400)

2016-07-08 09:28:32.573 31909 ERROR nova.compute.manager [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] 

2016-07-08 09:28:32.574 31909 INFO nova.compute.manager [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Terminating instance

2016-07-08 09:28:32.579 31909 INFO nova.virt.libvirt.driver [-] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] During wait destroy, instance disappeared.

2016-07-08 09:28:32.646 31909 INFO nova.virt.libvirt.driver [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Deleting instance files /var/lib/nova/instances/ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88_del

2016-07-08 09:28:32.647 31909 INFO nova.virt.libvirt.driver [req-c56770a7-5bab-426b-b763-7473254c6410 289598890db341f4af45ce5c57c41ba3 713114f3b9e54501a35a79e84c1e6c9d - - -] [instance: ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88] Deletion of /var/lib/nova/instances/ded46ee2-9c8f-45f7-b29f-a2d6e0e08b88_del complete

2016-07-08 09:29:15.793 31909 INFO nova.compute.resource_tracker [req-05a653d9-d629-497c-a4cd-d240c3e6c225 - - - - -] Auditing locally available compute resources for node controller

2016-07-08 09:29:16.295 31909 INFO nova.compute.resource_tracker [req-05a653d9-d629-497c-a4cd-d240c3e6c225 - - - - -] Total usable vcpus: 40, total allocated vcpus: 0

2016-07-08 09:29:16.296 31909 INFO nova.compute.resource_tracker [req-05a653d9-d629-497c-a4cd-d240c3e6c225 - - - - -] Final resource view: name=controller phys_ram=193168MB used_ram=1024MB phys_disk=8168GB used_disk=1GB total_vcpus=40 used_vcpus=0 pci_stats=None

2016-07-08 09:29:16.337 31909 INFO nova.compute.resource_tracker [req-05a653d9-d629-497c-a4cd-d240c3e6c225 - - - - -] Compute_service record updated for OSKVM1:controller



[root@OSKVM1 nova]# openstack image list

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

| ID                                   | Name              |

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

| a8b45c8a-a5c8-49d8-a529-1e4088bdbf3f | SevOne20k         |

| 5ab4e28c-f92c-428c-a520-61d8a937a70f | SevOner2q         |

| b7757ffd-0965-4c96-86cb-dbf3094a2e66 | Sevone vmdk image |

| 025f8a67-6796-439f-92a7-87f35c57cd66 | SevOne Compressed |

| 8b0f5432-74e6-48c2-bd20-0db80fb3c07b | SevOne            |

| 5c089b72-87c1-4181-a567-a71f59f83c99 | cirros            |

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

[root@OSKVM1 nova]# glance image-show a8b45c8a-a5c8-49d8-a529-1e4088bdbf3f

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

| Property         | Value                                |

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

| checksum         | 21995fe7ab30f9b12eb6bea182304522     |

| container_format | bare                                 |

| created_at       | 2016-07-06T17:26:31Z                 |

| disk_format      | qcow2                                |

| id               | a8b45c8a-a5c8-49d8-a529-1e4088bdbf3f |

| min_disk         | 0                                    |

| min_ram          | 0                                    |

| name             | SevOne20k                            |

| owner            | 7ee74061ac7c421a824a6e04e445d3d0     |

| protected        | False                                |

| size             | 7181697024                           |

| status           | active                               |

| tags             | []                                   |

| updated_at       | 2016-07-06T17:44:13Z                 |

| virtual_size     | None                                 |

| visibility       | public                               |

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


Regards

Gaurav Goyal


On Fri, Jul 8, 2016 at 3:15 AM, Fran Barrera <franbarrera6@xxxxxxxxx> wrote:
Hello,

You only need a create a pool and authentication in Ceph for cinder.

Your configuration should be like this (This is an example configuration with Ceph Jewel and Openstack Mitaka):


[DEFAULT]
enabled_backends = ceph
[ceph]
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_pool = volumes
rbd_ceph_conf = /etc/ceph/ceph.conf
rbd_flatten_volume_from_snapshot = false
rbd_max_clone_depth = 5
rbd_store_chunk_size = 4
rados_connect_timeout = -1
glance_api_version = 2
rbd_user = cinder
rbd_secret_uuid = c35bd3d8-ec12-2052-9672d-334824635616

And then, remove the cinder database, recreate and poblate with "cinder-manage db sync". Finally restart the cinder services and everything should work fine.


Regards,
Fran.

2016-07-08 8:18 GMT+02:00 Kees Meijs <kees@xxxxxxxx>:
Hi Gaurav,

The following snippets should suffice (for Cinder, at least):
[DEFAULT]
enabled_backends=rbd

[rbd]
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_pool = cinder-volumes
rbd_ceph_conf = /etc/ceph/ceph.conf
rbd_flatten_volume_from_snapshot = false
rbd_max_clone_depth = 5
rbd_store_chunk_size = 4
rados_connect_timeout = -1
rbd_user = cinder
rbd_secret = REDACTED

backup_driver = cinder.backup.drivers.ceph
backup_ceph_conf = /etc/ceph/ceph.conf
backup_ceph_user = cinder-backup
backup_ceph_chunk_size = 134217728
backup_ceph_pool = backups
backup_ceph_stripe_unit = 0
backup_ceph_stripe_count = 0
restore_discard_excess_bytes = true

Obviously you'd alter the directives according to your configuration and/or wishes.

And no, creating RBD volumes by hand is not needed. Cinder will do this for you.

K.


On 08-07-16 04:14, Gaurav Goyal wrote:
Yeah i didnt find additional section for [ceph] in my cinder.conf file. Should i create that manually? 
As i didnt find [ceph] section so i modified same parameters in [DEFAULT] section.
I will change that as per your suggestion.

Moreoevr checking some other links i got to know that, i must configure following additional parameters
should i do that and install tgtadm package?
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
Do i need to execute following commands? 
"pvcreate /dev/rbd1" &
"vgcreate cinder-volumes /dev/rbd1" 


_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux