← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1663364] Re: A server creation failed due to "Failed to allocate the network"

 

nova-compute.log

http://logs.openstack.org/59/426459/4/check/gate-tempest-dsvm-neutron-
full-ubuntu-
xenial/0222b58/logs/screen-n-cpu.txt.gz#_2017-02-09_18_16_35_568

2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [req-cdd345cf-3f89-4403-8c80-7160926b6fac tempest-ImagesNegativeTestJSON-88584756 tempest-ImagesNegativeTestJSON-88584756] [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b] Failed to allocate network(s)
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b] Traceback (most recent call last):
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]   File "/opt/stack/new/nova/nova/compute/manager.py", line 2069, in _build_resources
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]     requested_networks, security_groups)
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]   File "/opt/stack/new/nova/nova/compute/manager.py", line 1447, in _build_networks_for_instance
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]     requested_networks, macs, security_groups, dhcp_options)
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]   File "/opt/stack/new/nova/nova/compute/manager.py", line 1463, in _allocate_network
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]     self._update_resource_tracker(context, instance)
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]   File "/opt/stack/new/nova/nova/compute/manager.py", line 561, in _update_resource_tracker
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]     rt.update_usage(context, instance, instance.node)
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]   File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 271, in inner
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]     return f(*args, **kwargs)
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]   File "/opt/stack/new/nova/nova/compute/resource_tracker.py", line 419, in update_usage
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]     if self.disabled(nodename):
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]   File "/opt/stack/new/nova/nova/compute/resource_tracker.py", line 432, in disabled
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]     not self.driver.node_is_available(nodename))
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]   File "/opt/stack/new/nova/nova/virt/driver.py", line 1384, in node_is_available
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]     if nodename in self.get_available_nodes():
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]   File "/opt/stack/new/nova/nova/virt/libvirt/driver.py", line 7136, in get_available_nodes
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]     return [self._host.get_hostname()]
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]   File "/opt/stack/new/nova/nova/virt/libvirt/host.py", line 683, in get_hostname
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]     hostname = self.get_connection().getHostname()
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]   File "/opt/stack/new/nova/nova/virt/libvirt/host.py", line 461, in get_connection
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b]     raise exception.HypervisorUnavailable(host=CONF.host)
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b] HypervisorUnavailable: Connection to the hypervisor is broken on host: ubuntu-xenial-internap-mtl01-7207065
2017-02-09 18:16:35.568 6692 ERROR nova.compute.manager [instance: bd439544-a42f-4802-a457-a5fdf5d97e1b] 

** Project changed: tempest => nova

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

Title:
  A server creation failed due to "Failed to allocate the network"

Status in OpenStack Compute (nova):
  New

Bug description:
  On test_create_image_from_deleted_server, Tempest waits for the server creation with pooling nova-api with "Get a server" API.
  The API returned an error response like

  http://logs.openstack.org/59/426459/4/check/gate-tempest-dsvm-neutron-
  full-ubuntu-
  xenial/0222b58/logs/tempest.txt.gz#_2017-02-09_18_16_37_270

  Body: {"server": {"OS-EXT-STS:task_state": null, "addresses": {},
  "links": [{"href":
  "https://198.72.124.211:8774/v2.1/servers/bd439544-a42f-4802-a457-a5fdf5d97e1b";,
  "rel": "self"}, {"href":
  "https://198.72.124.211:8774/servers/bd439544-a42f-4802-a457-a5fdf5d97e1b";,
  "rel": "bookmark"}], "image": {"id": "2dc6d0fb-6371-478e-a0fd-
  05c181fdeb15", "links": [{"href":
  "https://198.72.124.211:8774/images/2dc6d0fb-6371-478e-a0fd-
  05c181fdeb15", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "error",
  "OS-SRV-USG:launched_at": null, "flavor": {"id": "42", "links":
  [{"href": "https://198.72.124.211:8774/flavors/42";, "rel":
  "bookmark"}]}, "id": "bd439544-a42f-4802-a457-a5fdf5d97e1b",
  "user_id": "ffc3b5a76f264f88b6fb8bea40597379", "OS-DCF:diskConfig":
  "MANUAL", "accessIPv4": "", "accessIPv6": "", "OS-EXT-
  STS:power_state": 0, "OS-EXT-AZ:availability_zone": "", "metadata":
  {}, "status": "ERROR", "updated": "2017-02-09T18:16:36Z", "hostId":
  "", "OS-SRV-USG:terminated_at": null, "key_name": null, "name":
  "tempest-ImagesNegativeTestJSON-server-483537554", "created":
  "2017-02-09T18:16:34Z", "tenant_id":
  "e3c9cc38bc4d458796351bd05ff199b6", "os-extended-
  volumes:volumes_attached": [], "fault": {"message": "Build of instance
  bd439544-a42f-4802-a457-a5fdf5d97e1b aborted: Failed to allocate the
  network(s), not rescheduling.", "code": 500, "created":
  "2017-02-09T18:16:36Z"}, "config_drive": ""}}

  and the test failed. The "fault" parameter shows
   {"message": "Build of instance bd439544-a42f-4802-a457-a5fdf5d97e1b aborted: Failed to allocate the network(s), not rescheduling.",
    "code": 500,
    "created": "2017-02-09T18:16:36Z"}

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