yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #16923
[Bug 1190583] Re: ssh key injection fails for instances booted from remote volumes
*** This bug is a duplicate of bug 1188543 ***
https://bugs.launchpad.net/bugs/1188543
in current code virt/libvirt/driver.py:_inject_data
there is one function ' injection_image.check_image_exists' to help check whether disk image is there.
if not, just print warn and do NOT handle file injection.
2511 if any((key, net, metadata, admin_pass, files)):
2512 injection_image = self.image_backend.image(
2513 instance,
2514 'disk' + suffix,
2515 image_type)
2516 img_id = instance['image_ref']
2517
2518 try:
2519 if injection_image.check_image_exists():
2520 disk.inject_data(injection_image.path,
2521 key, net, metadata, admin_pass, files,
2522 partition=target_partition,
2523 use_cow=CONF.use_cow_images,
2524 mandatory=('files',))
2525 else:
2526 LOG.warn(_LW('Image %s not found on disk storage. '
2527 'Continue without injecting data'),
2528 injection_image.path, instance=instance)
2529 except Exception as e:
2530 with excutils.save_and_reraise_exception():
2531 LOG.error(_LE('Error injecting data into image '
2532 '%(img_id)s (%(e)s)'),
2533 {'img_id': img_id, 'e': e},
2534 instance=instance)
reference: http://openstack.10931.n7.nabble.com/nova-libvirt-Should-
file-injection-work-for-boot-from-volume-images-td19568.html
** This bug has been marked a duplicate of bug 1188543
NBD mount errors when booting an instance from volume
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1190583
Title:
ssh key injection fails for instances booted from remote volumes
Status in OpenStack Compute (Nova):
In Progress
Bug description:
ssh key injection expects the instance's disk image to be available
locally and fails if the instance is booted from a remote cinder
volume
compute.log reports something like the following:
WARNING nova.virt.disk.api [req-bd4be1ec-1d62-4da3-a194-b82003553709
8165f2c0a4d945a3ad61cdfc82bc71e8 6a89483177bd4301bba60d6ebd095e52]
Ignoring error injecting data into image (Error mounting
/var/lib/nova/instances/c8964c15-47b6-459e-8731-bd06d05be1f1/disk with
libguestfs
(/var/lib/nova/instances/c8964c15-47b6-459e-8731-bd06d05be1f1/disk: No
such file or directory))
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1190583/+subscriptions