The nova.virt.baremetal.db.api Module

Defines interface for DB access.

The underlying driver is loaded as a LazyPluggable.

Functions in this module are imported into the nova.virt.baremetal.db namespace. Call these functions from nova.virt.baremetal.db namespace, not the nova.virt.baremetal.db.api namespace.

All functions in this module return objects that implement a dictionary-like interface. Currently, many of these objects are sqlalchemy objects that implement a dictionary interface. However, a future goal is to have all of these objects be simple dictionaries.

Related Flags

baremetal_db_backend:
 string to lookup in the list of LazyPluggable backends. sqlalchemy is the only supported backend right now.
[BAREMETAL] sql_connection:
 string specifying the sqlalchemy connection to use, like: sqlite:///var/lib/nova/nova.sqlite.
bm_interface_create(context, bm_node_id, address, datapath_id, port_no)
bm_interface_destroy(context, if_id)
bm_interface_get(context, if_id)
bm_interface_get_all(context)
bm_interface_get_all_by_bm_node_id(context, bm_node_id)
bm_interface_get_by_vif_uuid(context, vif_uuid)
bm_interface_set_vif_uuid(context, if_id, vif_uuid)
bm_node_associate_and_update(context, node_uuid, values)
bm_node_create(context, values)
bm_node_destroy(context, bm_node_id)
bm_node_find_free(context, service_host=None, memory_mb=None, cpus=None, local_gb=None)
bm_node_get(context, bm_node_id)
bm_node_get_all(context, service_host=None)
bm_node_get_associated(context, service_host=None)
bm_node_get_by_instance_uuid(context, instance_uuid)
bm_node_get_by_node_uuid(context, node_uuid)
bm_node_get_unassociated(context, service_host=None)
bm_node_update(context, bm_node_id, values)
bm_pxe_ip_associate(context, bm_node_id)
bm_pxe_ip_create(context, address, server_address)
bm_pxe_ip_create_direct(context, bm_pxe_ip)
bm_pxe_ip_destroy(context, ip_id)
bm_pxe_ip_destroy_by_address(context, address)
bm_pxe_ip_disassociate(context, bm_node_id)
bm_pxe_ip_get(context, ip_id)
bm_pxe_ip_get_all(context)
bm_pxe_ip_get_by_bm_node_id(context, bm_node_id)

Previous topic

The nova.virt.baremetal.base Module

Next topic

The nova.virt.baremetal.db.migration Module

This Page