[Openstack] resize lvm-backed instance
Ivan Derbenev
ivan.derbenev at tech-corps.com
Sun Feb 14 19:53:59 UTC 2016
Wow, I completely missed this answer, and now I do have the same problem
I looked at code and found that LVM migration is not implemented, however, I don't wanna migrate, I want to resize
Here's log I'm getting
2016-02-14 14:38:45.016 25601 INFO nova.compute.resource_tracker [req-73be063c-747a-4933-bef3-31a19c10f278 - - - - -] Total usable vcpus: 8, total allocated vcpus: 13
2016-02-14 14:38:45.017 25601 INFO nova.compute.resource_tracker [req-73be063c-747a-4933-bef3-31a19c10f278 - - - - -] Final resource view: name=openstack04 phys_ram=32175MB used_ram=32256MB phys_disk=837GB used_disk=104GB total_vcpus=8 used_vcpus=13 pci_stats=None
2016-02-14 14:38:45.060 25601 INFO nova.compute.resource_tracker [req-73be063c-747a-4933-bef3-31a19c10f278 - - - - -] Compute_service record updated for openstack04:openstack04
2016-02-14 14:38:45.061 25601 DEBUG oslo_concurrency.lockutils [req-73be063c-747a-4933-bef3-31a19c10f278 - - - - -] Lock "compute_resources" released by "nova.compute.resource_tracker._update_available_resource" :: held 0.197s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:265
2016-02-14 14:38:51.528 25601 DEBUG oslo_service.periodic_task [req-73be063c-747a-4933-bef3-31a19c10f278 - - - - -] Running periodic task ComputeManager._heal_instance_info_cache run_periodic_tasks /usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py:213
2016-02-14 14:38:51.529 25601 DEBUG nova.compute.manager [req-73be063c-747a-4933-bef3-31a19c10f278 - - - - -] Starting heal instance info cache _heal_instance_info_cache /usr/lib/python2.7/dist-packages/nova/compute/manager.py:5478
2016-02-14 14:38:51.612 25601 DEBUG oslo_concurrency.lockutils [req-73be063c-747a-4933-bef3-31a19c10f278 - - - - -] Acquired semaphore "refresh_cache-3e2836b6-602a-44de-a835-9d1936a53785" lock /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:198
2016-02-14 14:38:51.613 25601 DEBUG nova.objects.instance [req-73be063c-747a-4933-bef3-31a19c10f278 - - - - -] Lazy-loading `flavor' on Instance uuid 3e2836b6-602a-44de-a835-9d1936a53785 obj_load_attr /usr/lib/python2.7/dist-packages/nova/objects/instance.py:860
2016-02-14 14:38:51.754 25601 DEBUG nova.network.base_api [req-73be063c-747a-4933-bef3-31a19c10f278 - - - - -] [instance: 3e2836b6-602a-44de-a835-9d1936a53785] Updating instance_info_cache with network_info: [VIF({'profile': None, 'ovs_interfaceid': None, 'preserve_on_delete': False, 'network': Network({'bridge': u'br1004', 'subnets': [Subnet({'ips': [FixedIP({'meta': {}, 'version': 4, 'type': u'fixed', 'floating_ips': [], 'address': u'10.1.10.49'})], 'version': 4, 'meta': {u'dhcp_server': u'10.1.10.3'}, 'dns': [IP({'meta': {}, 'version': 4, 'type': u'dns', 'address': u'8.8.4.4'}), IP({'meta': {}, 'version': 4, 'type': u'dns', 'address': u'10.1.2.100'})], 'routes': [], 'cidr': u'10.1.10.0/24', 'gateway': IP({'meta': {}, 'version': 4, 'type': u'gateway', 'address': u'10.1.10.3'})}), Subnet({'ips': [], 'version': None, 'meta': {u'dhcp_server': u'10.1.10.3'}, 'dns': [], 'routes': [], 'cidr': None, 'gateway': IP({'meta': {}, 'version': None, 'type': u'gateway', 'address': None})})], 'meta': {u'multi_host': True, u'should_create_bridge': True, u'should_create_vlan': True, u'bridge_interface': u'eth1', u'tenant_id': u'2b1b8aa01abf4db8ab9aa8c22cf861f0', u'vlan': 1004}, 'id': u'9540bfd0-e620-4302-bb1e-dfe69ad9bcda', 'label': u'tcdefault-1004'}), 'devname': None, 'vnic_type': u'normal', 'qbh_params': None, 'meta': {}, 'details': {}, 'address': u'fa:16:3e:eb:41:69', 'active': False, 'type': u'bridge', 'id': u'd9171467-de05-4a99-aaab-4d0d57343658', 'qbg_params': None})] update_instance_cache_with_nw_info /usr/lib/python2.7/dist-packages/nova/network/base_api.py:43
2016-02-14 14:38:51.769 25601 DEBUG oslo_concurrency.lockutils [req-73be063c-747a-4933-bef3-31a19c10f278 - - - - -] Releasing semaphore "refresh_cache-3e2836b6-602a-44de-a835-9d1936a53785" lock /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:211
2016-02-14 14:38:51.770 25601 DEBUG nova.compute.manager [req-73be063c-747a-4933-bef3-31a19c10f278 - - - - -] [instance: 3e2836b6-602a-44de-a835-9d1936a53785] Updated the network info_cache for instance _heal_instance_info_cache /usr/lib/python2.7/dist-packages/nova/compute/manager.py:5539
2016-02-14 14:38:53.337 25601 DEBUG oslo_concurrency.lockutils [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] Acquired semaphore "refresh_cache-3bc4ba06-77bc-4b3c-a857-dd1a2f74ca24" lock /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:198
2016-02-14 14:38:53.387 25601 DEBUG nova.network.base_api [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] [instance: 3bc4ba06-77bc-4b3c-a857-dd1a2f74ca24] Updating instance_info_cache with network_info: [VIF({'profile': None, 'ovs_interfaceid': None, 'preserve_on_delete': False, 'network': Network({'bridge': u'br1004', 'subnets': [Subnet({'ips': [FixedIP({'meta': {}, 'version': 4, 'type': u'fixed', 'floating_ips': [], 'address': u'10.1.10.39'})], 'version': 4, 'meta': {u'dhcp_server': u'10.1.10.3'}, 'dns': [IP({'meta': {}, 'version': 4, 'type': u'dns', 'address': u'8.8.4.4'}), IP({'meta': {}, 'version': 4, 'type': u'dns', 'address': u'10.1.2.100'})], 'routes': [], 'cidr': u'10.1.10.0/24', 'gateway': IP({'meta': {}, 'version': 4, 'type': u'gateway', 'address': u'10.1.10.3'})}), Subnet({'ips': [], 'version': None, 'meta': {u'dhcp_server': u'10.1.10.3'}, 'dns': [], 'routes': [], 'cidr': None, 'gateway': IP({'meta': {}, 'version': None, 'type': u'gateway', 'address': None})})], 'meta': {u'multi_host': True, u'should_create_bridge': True, u'should_create_vlan': True, u'bridge_interface': u'eth1', u'tenant_id': u'2b1b8aa01abf4db8ab9aa8c22cf861f0', u'vlan': 1004}, 'id': u'9540bfd0-e620-4302-bb1e-dfe69ad9bcda', 'label': u'tcdefault-1004'}), 'devname': None, 'vnic_type': u'normal', 'qbh_params': None, 'meta': {}, 'details': {}, 'address': u'fa:16:3e:d2:cc:2e', 'active': False, 'type': u'bridge', 'id': u'86b88941-9b3d-48f3-bb8b-89df092c8840', 'qbg_params': None})] update_instance_cache_with_nw_info /usr/lib/python2.7/dist-packages/nova/network/base_api.py:43
2016-02-14 14:38:53.407 25601 DEBUG oslo_concurrency.lockutils [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] Releasing semaphore "refresh_cache-3bc4ba06-77bc-4b3c-a857-dd1a2f74ca24" lock /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:211
2016-02-14 14:38:53.759 25601 DEBUG nova.virt.libvirt.driver [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] [instance: 3bc4ba06-77bc-4b3c-a857-dd1a2f74ca24] Starting migrate_disk_and_power_off migrate_disk_and_power_off /usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py:6642
2016-02-14 14:38:53.763 25601 DEBUG oslo_concurrency.processutils [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf blockdev --getsize64 /dev/openstack04-ky01-vg/3bc4ba06-77bc-4b3c-a857-dd1a2f74ca24_disk execute /usr/lib/python2.7/dist-packages/oslo_concurrency/processutils.py:230
2016-02-14 14:38:53.825 25601 DEBUG oslo_concurrency.processutils [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] CMD "sudo nova-rootwrap /etc/nova/rootwrap.conf blockdev --getsize64 /dev/openstack04-ky01-vg/3bc4ba06-77bc-4b3c-a857-dd1a2f74ca24_disk" returned: 0 in 0.063s execute /usr/lib/python2.7/dist-packages/oslo_concurrency/processutils.py:260
2016-02-14 14:38:53.850 25601 INFO nova.compute.manager [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] [instance: 3bc4ba06-77bc-4b3c-a857-dd1a2f74ca24] Setting instance back to ACTIVE after: Instance rollback performed due to: Migration pre-check error: Migration is not supported for LVM backed instances
2016-02-14 14:38:53.974 25601 DEBUG oslo_concurrency.lockutils [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] Lock "compute_resources" acquired by "nova.compute.resource_tracker.update_usage" :: waited 0.000s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:253
2016-02-14 14:38:54.019 25601 DEBUG oslo_concurrency.lockutils [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] Lock "compute_resources" released by "nova.compute.resource_tracker.update_usage" :: held 0.045s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:265
2016-02-14 14:38:54.191 25601 DEBUG oslo_concurrency.lockutils [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] Lock "compute_resources" acquired by "nova.compute.resource_tracker.update_usage" :: waited 0.000s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:253
2016-02-14 14:38:54.235 25601 DEBUG oslo_concurrency.lockutils [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] Lock "compute_resources" released by "nova.compute.resource_tracker.update_usage" :: held 0.044s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:265
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher [req-8a8069fb-2df1-4683-9e66-e48fbe446c94 Ivan Derbenev 2b1b8aa01abf4db8ab9aa8c22cf861f0 - - -] Exception during message handling: Migration pre-check error: Migration is not supported for LVM backed instances
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher executor_callback))
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher executor_callback)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 89, in wrapped
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher payload)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 72, in wrapped
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher return f(self, context, *args, **kw)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 350, in decorated_function
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher LOG.warning(msg, e, instance=instance)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 323, in decorated_function
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 400, in decorated_function
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 311, in decorated_function
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher migration.instance_uuid, exc_info=True)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 288, in decorated_function
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 378, in decorated_function
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info())
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 366, in decorated_function
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 3825, in resize_instance
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher self.instance_events.clear_events_for_instance(instance)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher self.gen.throw(type, value, traceback)
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 6354, in _error_out_instance_on_exception
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher raise error.inner_exception
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher MigrationPreCheckError: Migration pre-check error: Migration is not supported for LVM backed instances
2016-02-14 14:38:54.240 25601 ERROR oslo_messaging.rpc.dispatcher
Regards,
IT engineer
Farheap, Russia
Ivan Derbenev
-----Original Message-----
From: Chris Friesen [mailto:chris.friesen at windriver.com]
Sent: Friday, October 16, 2015 6:47 PM
To: openstack at lists.openstack.org
Subject: Re: [Openstack] resize lvm-backed instance
I think it should be possible. What errors do you see in the logs?
Chris
On 10/16/2015 01:44 AM, Ivan Derbenev wrote:
> bump
>
> Regards,
>
> IT engineer
>
> Farheap, Russia
>
> Ivan Derbenev
>
> *From:*Ivan Derbenev [mailto:ivan.derbenev at tech-corps.com]
> *Sent:* Tuesday, October 13, 2015 1:53 PM
> *To:* openstack at lists.openstack.org
> *Subject:* [Openstack] resize lvm-backed instance
>
> Hello!
>
> Is it possible to resize (and, possibly, migrate) lvm-backed instances in kilo?
>
> When I try to do so, I am getting an error
>
> /Instance rollback performed due to: Migration pre-check error:
> Migration is not supported for LVM backed instances/
>
> What’s the workaround?
>
> Yes, I can go into DB manually every time, but I don’t like this
>
> Regards,
>
> IT engineer
>
> Farheap, Russia
>
> Ivan Derbenev
>
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
More information about the Openstack
mailing list