← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1427098] Re: Container servers are wrongly scheduled to non-docker hypervisor

 

docker is not in the nova tree any more, so this is no longer in scope
for nova.

** Changed in: nova
       Status: New => Won't Fix

-- 
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/1427098

Title:
  Container servers are wrongly scheduled to non-docker hypervisor

Status in OpenStack Compute (nova):
  Won't Fix

Bug description:
  In an environment with more than one hypervisor type including QEMU and
  docker, when creating a container server, the request can be wrongly
  scheduled to a QEMU hypervisor.

  I test it in Juno and there is the same bug in Kilo.

  For example,  there is two compute node, one hypervisor is docker
  (node A-172), anther one hypervisor is QEMU(node B-168).

  I can create a docker server which uses docker image "tutum/wordpress" in a QEMU node(node B-168).
  In this case it ignores the parameter “image" whether is match the hypervisor type, finally this server
  boot failed with "no bootable device".

  I'm not sure is there any other parameter for QEMU,  docker and Xen
  hypervisor should check.

  My step is following:

  [root@ ~(keystone_admin)]# glance image-show tutum/wordpress
  +------------------+--------------------------------------+
  | Property         | Value                                |
  +------------------+--------------------------------------+
  | checksum         | bab44a59a74878dd953c4ae5242f7c7c     |
  | container_format | docker                               |
  | created_at       | 2015-02-02T07:00:47                  |
  | deleted          | False                                |
  | disk_format      | raw                                  |
  | id               | b8e12702-3fd1-4847-b018-ac8ba6edead7 |
  | is_public        | True                                 |
  | min_disk         | 0                                    |
  | min_ram          | 0                                    |
  | name             | tutum/wordpress                      |
  | owner            | 09291698b9ff44728493252e67fc6ee5     |
  | protected        | False                                |
  | size             | 517639680                            |
  | status           | active                               |
  | updated_at       | 2015-02-02T07:02:15                  |
  +------------------+--------------------------------------+

  [root@ ~(keystone_admin)]# nova boot --flavor 2 --image
  tutum/wordpress --key-name key1 --nic net-
  id=2510a249-1665-4184-afc8-62a2eccf6c3b --availability-zone xxx:B-168
  test-image-168

  2015-03-02 01:55:12.239 2857 WARNING nova.virt.disk.vfs.guestfs [-] Failed to close augeas aug_close: do_aug_close: y
  ou must call 'aug-init' first to initialize Augeas
  2015-03-02 01:55:12.274 2857 DEBUG nova.virt.disk.api [-] Unable to mount image /var/lib/nova/instances/e799cc70-2e9f
  -44da-9ebd-0f55ddc7cd13/disk with error Error mounting /var/lib/nova/instances/e799cc70-2e9f-44da-9ebd-0f55ddc7cd13/d
  isk with libguestfs (mount_options: /dev/sda on / (options: ''): mount: /dev/sda is write-protected, mounting read-on
  ly
  mount: unknown filesystem type '(null)'). Cannot resize. is_image_partitionless /usr/lib/python2.7/site-packages/nova
  /virt/disk/api.py:218

  2015-03-02 01:55:12.276 2857 DEBUG nova.virt.libvirt.driver [-] [instance: e799cc70-2e9f-44da-9ebd-0f55ddc7cd13] Star
  t _get_guest_xml network_info=[VIF({'profile': {}, 'ovs_interfaceid': u'563e9d58-9d41-4700-b4f2-a56a6ecfcefe', 'netwo
  rk': Network({'bridge': 'br-int', 'subnets': [Subnet({'ips': [FixedIP({'meta': {}, 'version': 4, 'type': 'fixed', 'fl
  oating_ips': [], 'address': u'10.0.0.45'})], 'version': 4, 'meta': {'dhcp_server': u'10.0.0.3'}, 'dns': [], 'routes':
   [], 'cidr': u'10.0.0.0/24', 'gateway': IP({'meta': {}, 'version': 4, 'type': 'gateway', 'address': u'10.0.0.1'})})],
   'meta': {'injected': False, 'tenant_id': u'3cf2410b5f554653a93796982657984b'}, 'id': u'2510a249-1665-4184-afc8-62a2e
  ccf6c3b', 'label': u'private'}), 'devname': u'tap563e9d58-9d', 'vnic_type': u'normal', 'qbh_params': None, 'meta': {}
  , 'details': {u'port_filter': True, u'ovs_hybrid_plug': True}, 'address': u'fa:16:3e:d9:b3:1f', 'active': False, 'typ
  e': u'ovs', 'id': u'563e9d58-9d41-4700-b4f2-a56a6ecfcefe', 'qbg_params': None})] disk_info={'disk_bus': 'virtio', 'cd
  rom_bus': 'ide', 'mapping': {'disk': {'bus': 'virtio', 'boot_index': '1', 'type': 'disk', 'dev': u'vda'}, 'root': {'b
  us': 'virtio', 'boot_index': '1', 'type': 'disk', 'dev': u'vda'}}} image_meta={u'status': u'active', u'deleted': Fals
  e, u'container_format': u'docker', u'min_ram': 0, u'updated_at': u'2015-02-02T07:02:15.000000', u'min_disk': 0, u'own
  er': u'09291698b9ff44728493252e67fc6ee5', u'is_public': True, u'deleted_at': None, u'properties': {}, u'size': 517639
  680, u'name': u'tutum/wordpress', u'checksum': u'bab44a59a74878dd953c4ae5242f7c7c', u'created_at': u'2015-02-02T07:00
  :47.000000', u'disk_format': u'raw', u'id': u'b8e12702-3fd1-4847-b018-ac8ba6edead7'} rescue=None block_device_info={'
  block_device_mapping': [], 'root_device_name': u'/dev/vda', 'ephemerals': [], 'swap': None} _get_guest_xml /usr/lib/p
  ython2.7/site-packages/nova/virt/libvirt/driver.py:4147

  2015-03-02 01:55:17.616 2857 DEBUG nova.compute.manager [-] [instance: e799cc70-2e9f-44da-9ebd-0f55ddc7cd13] Checking
   state _get_power_state /usr/lib/python2.7/site-packages/nova/compute/manager.py:1156

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1427098/+subscriptions


References