A connection to a hypervisor through baremetal.
Related Flags
| baremetal_type: | Baremetal domain type. |
|---|---|
| baremetal_uri: | Override for the default baremetal URI (baremetal_type). |
| rescue_image_id: | |
| Rescue ami image (default: ami-rescue). | |
| rescue_kernel_id: | |
| Rescue aki image (default: aki-rescue). | |
| rescue_ramdisk_id: | |
| Rescue ari image (default: ari-rescue). | |
| injected_network_template: | |
| Template file for injected network | |
| allow_project_net_traffic: | |
| Whether to allow in project network traffic | |
Bases: nova.virt.driver.ComputeDriver
Updates compute manager resource info on ComputeNode table.
This method is called when nova-coompute launches, and whenever admin executes “nova-manage service update_resource”.
Get cpuinfo information.
Obtains cpu feature from virConnect.getCapabilities, and returns as a json string.
| Returns: | see above description |
|---|
Return the current state of the host. If ‘refresh’ is True, run the update first.
Get hypervisor type.
| Returns: | hypervisor type (ex. qemu) |
|---|
Get hypervisor version.
| Returns: | hypervisor version (ex. 12003) |
|---|
Retrieve information from baremetal for a specific instance name.
If a baremetal error is encountered during lookup, we might raise a NotFound exception or Error exception depending on how severe the baremetal error is.
Get the total hdd size(GB) of physical computer.
| Returns: | The total amount of HDD(GB). Note that this value shows a partition where NOVA-INST-DIR/instances mounts. |
|---|
Get the free hdd size(GB) of physical computer.
| Returns: | The total usage of HDD(GB). Note that this value shows a partition where NOVA-INST-DIR/instances mounts. |
|---|
Get the total memory size(MB) of physical computer.
| Returns: | the total amount of memory(MB). |
|---|
Get the free memory size(MB) of physical computer.
| Returns: | the total usage of memory(MB). |
|---|
Get vcpu number of physical computer.
| Returns: | the number of cpu core. |
|---|
Get vcpu usage number of physical computer.
| Returns: | The total number of vcpu that currently used. |
|---|
See comments of same method in firewall_driver.
Update the status info of the host, and return those values to the calling program.