# US 11,119,675 B2 · Polymorphism and type casting in storage volume connections

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,119,675 B2
- Document ID: US11119675B2
- Status: Granted
- Kind: B2
- Application number: 16/574,688
- Filed: 2019-09-18
- Published: 2020-01-09
- Granted: 2021-09-14
- Earliest claimed: 2017-11-30
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Huamin Chen
- Web page: https://patentgrep.com/patent/US11119675B2

## CPC

- G06F 3/0635: {by changing the path, e.g. traffic rerouting, path reconfiguration}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0664: {at device level, e.g. emulation of a storage device or system}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Aspects of the disclosure provide for polymorphism and type casting in storage volume connections. A method of the disclosure includes storing, in a memory associated with a processing device executing a container manager, a persistent volume (PV) identifier of a PV created on a storage device and a list of polymorphic connection types supported by the PV, and responsive to receiving a query comprising the PV identifier from a container host, performing, for a connection from the container host to the storage device, type casting to identify a connection type from the list of polymorphic connection types and connection information for the connection type to enable establishment of the connection between the container host and the storage device.

## Claims

### Claim 1

A method comprising:
receiving, by a processing device executing a container manager, a query comprising a persistent volume (PV) identifier of a PV created on a storage device, a PV name of a container host, node information of the container host, and a job type of the container host, wherein the node information comprises at least one of a node identifier, cloud configuration information, or machine configuration information, wherein the PV identifier and a list of polymorphic connection types supported by the PV are stored in a memory associated with the processing device, and wherein first connection information associated with a first polymorphic connection type of the list is different from second connection information associated with a second polymorphic connection type of the list; and
responsive to receiving the query, performing, by the processing device for a connection from the container host to the storage device, type casting to identify a connection type from the list of polymorphic connection types and connection information for the connection type to enable establishment of the connection between the container host and the storage device.

### Claim 2 (depends on 1)

The method of claim 1, wherein the connection type is selected from the list of polymorphic connection types in view of the node information of the container host comprised in the query.

### Claim 3 (depends on 1)

The method of claim 1, wherein a PV record stored in the memory comprises at least one of the PV identifier of the PV, a storage capacity of the PV, the polymorphic connection types supported by the PV, or access mode of the PV.

### Claim 4 (depends on 1)

The method of claim 1, wherein the polymorphic connection types comprise at least one of a hypervisor type, a remote access protocol type, or a local volume type, and wherein a protocol utilized to establish a communication connection between the container host and the storage device in order for a container of the container host to consume the PV is identified in view of a type of environment of the container host.

### Claim 5 (depends on 4)

The method of claim 4, wherein the hypervisor type indicates a container of the container host is implemented on a virtual machine managed by a hypervisor of the container host, and wherein the connection information comprises a device identifier (ID) of the storage device, the device ID used by the hypervisor to establish the connection to the storage device.

### Claim 6 (depends on 4)

The method of claim 4, wherein the remote access protocol type indicates a container of the container host is implemented on baremetal components of the container host, and wherein the connection information comprises an identification of a connection protocol for the container host to use to establish the connection to the storage device.

### Claim 7 (depends on 4)

The method of claim 4, wherein the local volume type indicates a container of the container host is co-located with the storage device on the container host, and wherein the connection information comprises a location of the storage device, the location used to identify a device path used by the compute to establish the connection to the storage device, wherein the location comprises at least one of a host name or an Internet Protocol (IP) address of the storage device.

### Claim 8 (depends on 1)

The method of claim 1, further comprising binding, by the processing device, created PVs to requests for storage generated by node manager for containers, wherein a claim comprises a request for a specific size and access mode of storage, and wherein a storage manager to match a node manager's claim to provisioned PVs and bind the PV and claim together.

### Claim 9 (depends on 1)

The method of claim 1, wherein the polymorphic connection types further comprise at least one of a secure connection protocol or a high-performance connection protocol, and wherein the container manager further examines a particular type of compute job requested.

### Claim 10

A non-transitory machine-readable storage medium including instructions that, when executed by a processing device, cause the processing device to:
receive a query comprising a persistent volume (PV) identifier of a PV created on a storage device, a PV name of a container host, node information of the container host, and a job type of the container host, wherein the node information comprises at least one of a node identifier, cloud configuration information, or machine configuration information, wherein the PV identifier and a list of polymorphic connection types supported by the PV are stored in a memory associated with the processing device, and wherein first connection information associated with a first polymorphic connection type of the list is different from second connection information associated with a second polymorphic connection type of the list; and
responsive to receiving the query, perform, for a connection from the container host to the storage device, type casting to identify a connection type from the list of polymorphic connection types and connection information for the connection type to enable establishment of the connection between the container host and the storage device.

### Claim 11 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, wherein a PV record stored in the memory comprises at least one of the PV identifier of the PV, a storage capacity of the PV, the polymorphic connection types supported by the PV, or access mode of the PV.

### Claim 12 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, wherein the polymorphic connection types comprise at least one of a hypervisor type, a remote access protocol type, or a local volume type.

### Claim 13 (depends on 12)

The non-transitory machine-readable storage medium of claim 12, wherein the hypervisor type indicates a container of the container host is implemented on a virtual machine managed by a hypervisor of the container host, and wherein the connection information comprises a device identifier (ID) of the storage device, the device ID used by the hypervisor to establish the connection to the storage device.

### Claim 14 (depends on 12)

The non-transitory machine-readable storage medium of claim 12, wherein the remote access protocol type indicates a container of the container host is implemented on baremetal components of the container host, and wherein the connection information comprises an identification of a connection protocol for the container host to use to establish the connection to the storage device.

### Claim 15 (depends on 12)

The non-transitory machine-readable storage medium of claim 12, wherein the local volume type indicates a container of the container host is co-located with the storage device on the container host, and wherein the connection information comprises a location of the storage device, the location used to identify a device path used by the compute to establish the connection to the storage device, wherein the location comprises at least one of a host name or an Internet Protocol (IP) address of the storage device.

### Claim 16

An apparatus comprising:
a memory to store a persistent volume (PV) record corresponding to a PV created on a storage device, wherein the PV record comprises a PV identifier and a list of polymorphic connection types supported by the PV corresponding to the PV record, and wherein first connection information associated with a first polymorphic connection type of the list is different from second connection information associated with a second polymorphic connection type of the list; and
a processing device communicably coupled to the memory, to, responsive to receiving a query comprising the PV identifier, a PV name of a container host, node information of the container host, and a job type of the container host, perform, for a connection from a container host to the storage device, type casting to identify a connection type from the list of polymorphic connection types and connection information for the connection type to enable establishment of the connection between the container host and the storage device wherein the node information comprises at least one of a node identifier, cloud configuration information, or machine configuration information.

### Claim 17 (depends on 16)

The apparatus of claim 16, further comprising binding created PVs to requests for storage generated by node manager for containers, wherein a claim comprises a request for a specific size and access mode of storage, and wherein a storage manager to match a node manager's claim to provisioned PVs and bind the PV and claim together.
