Openstack: nova: attach interface failed

nova/api/openstack/compute/attach_interfaces.py

There are many exceptions in this to explain why the attach failed, but they are not printed in the log, but returned to the client or the corresponding server program using the http protocol.

        try:
            vif = self.compute_api.attach_interface(context,
                instance, network_id, port_id, req_ip, tag=tag)
        except (exception.InterfaceAttachFailedNoNetwork,
                exception.NetworkAmbiguous,
                exception.NoMoreFixedIps,
                exception.PortNotUsable,
                exception.AttachInterfaceNotSupported,
                exception.SecurityGroupCannotBeApplied,
                exception.NetworkInterfaceTaggedAttachNotSupported,
                exception.NetworksWithQoSPolicyNotSupported,
                exception.InterfaceAttachPciClaimFailed,
                exception.InterfaceAttachResourceAllocationFailed,
                exception.ForbiddenPortsWithAccelerator,
                exception.ForbiddenWithRemoteManagedPorts,
                exception.ExtendedResourceRequestOldCompute,
                ) as e:
            raise exc.HTTPBadRequest(explanation=e.format_message())

Free download:
[cis2-1 (overcloudrc) httpd]$ ls
aodh-bee cinder-bee heat-bee horizon manila-bee nova-bee nova-placement
barbican-bee gnocchi-bee heat-bee-cfn keystone neutron- bee nova-metadata panko-bee

Guess you like

Origin blog.csdn.net/qq_36428903/article/details/130508477