Attachment of a logical network to a virtual machine
AssigneeRed Hat Israel, Ltd.
InventorsLior Vernia, Eldan Shaul Hildesheim
Life of this patent
Estimating the term…
Abstract
A request to attach a logical network to a virtual machine is received. The cluster associated with the virtual machine is identified. The cluster includes a plurality of hosts. A host interface of each host of the plurality of hosts in the cluster is identified in view of an interface selection policy. The host interface of each of the hosts of the plurality of hosts in the cluster is assigned to the logical network.
Claims20
A method comprising:
- receiving, by a processing device of a management server, a request to attach a logical network to a virtual machine, the request received from a client device;
- identifying, by the processing device, a cluster associated with the virtual machine, wherein the cluster comprises a plurality of hosts;
- for each host of the plurality of hosts in the cluster:
- selecting, by the processing device, a host interface of the host in view of an operating characteristic of the host interface satisfying a condition of an interface selection policy;
- assigning, by the processing device, the selected host interface of the host to the logical network, wherein the assigning comprises storing a host interface identifier of the host interface with a virtual machine identifier of the virtual machine and a logical network identifier of the logical network in a data store maintained by the management server;
- providing, to the client device for each host of the plurality of hosts in the cluster, a status to indicate whether the assigning of the host interface to the logical network was accepted, the status comprising configuration information for the host, the host interface, and the logical network;
- and
- responsive to determining, by the processing device, that the status indicates that the assigning of the host interface was not accepted, sending an error status message to the client device, wherein the error status message comprises the configuration information for the host, the host interface, and the logical network, and providing a recommendation in view of the configuration information for the host, the host interface, and the logical network of the error status message.
A system comprising:
- a memory;
- and
- a processing device, operatively coupled to the memory, to:
- receive a request to attach a logical network to a virtual machine, the request received from a client device;
- identify a cluster associated with the virtual machine, wherein the cluster comprises a plurality of hosts;
- for each host of the plurality of hosts in the cluster:
- select a host interface of the host in view of an operating characteristic of the host interface satisfying a condition of an interface selection policy;
- assign the selected host interface of the host to the logical network, wherein the assigning comprises storing a host interface identifier of the host interface with a virtual machine identifier of the virtual machine and a logical network identifier of the logical network in a data store maintained by a management server;
- provide, to the client device for each host of the plurality of hosts in the cluster, a status to indicate whether the assigning of the host interface to the logical network was accepted, the status comprising configuration information for the host, the host interface, and the logical network;
- and
- responsive to determining that the status indicates that the assigning of the host interface was not accepted, send an error status message to the client device, wherein the error status message comprises the configuration information for the host, the host interface, and the logical network, and providing a recommendation in view of the configuration information for the host, the host interface, and the logical network of the error status message.
A non-transitory computer readable storage medium comprising instructions, that when executed by a processing device, cause the processing device to:
- receive, by the processing device of a management server, a request to attach a logical network to a virtual machine, the request received from a client device;
- identify a cluster associated with the virtual machine, wherein the cluster comprises a plurality of hosts;
- for each host of the plurality of hosts in the cluster:
- select, by the processing device, a host interface of the host in view of an operating characteristic of the host interface satisfying a condition of an interface selection policy;
- assign the selected host interface of the host to the logical network, wherein the assigning comprises storing a host interface identifier of the host interface with a virtual machine identifier of the virtual machine and a logical network identifier of the logical network in a data store maintained by the management server;
- provide, to the client device for each host of the plurality of hosts in the cluster, a status to indicate whether the assigning of the host interface to the logical network was accepted, the status comprising configuration information for the host, the host interface, and the logical network;
- and
- responsive to determining that the status indicates that the assigning of the host interface was not accepted, send an error status message to the client device, wherein the error status message comprises the configuration information for the host, the host interface, and the logical network, and providing a recommendation in view of the configuration information for the host, the host interface, and the logical network of the error status message.
Dependencies are inferred from the claim text.