← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1210931] Re: attach interface should be asynchronous

 

the process of attaching interface should be the same as detaching
insterface.

    def detach_interface(self, ctxt, instance, port_id):
        instance_p = jsonutils.to_primitive(instance)
        self.cast(ctxt, self.make_msg('detach_interface',
                 instance=instance_p, port_id=port_id),
                 topic=_compute_topic(self.topic, ctxt, None, instance),
                 version='2.25')

    def attach_interface(self, ctxt, instance, network_id, port_id,
                         requested_ip):
        instance_p = jsonutils.to_primitive(instance)
        return self.call(ctxt, self.make_msg('attach_interface',
                 instance=instance_p, network_id=network_id,
                 port_id=port_id, requested_ip=requested_ip),
                 topic=_compute_topic(self.topic, ctxt, None, instance),
                 version='2.25')

** Changed in: nova
       Status: New => Invalid

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

Title:
  attach interface should be asynchronous

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  a call operation means that the API will be blocking until the
  hypervisor returns. I do not think that is healthy.

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