Previous topic

The nova.version Module

Next topic

The nova.virt.baremetal.fake Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.virt.baremetal.dom Module

class BareMetalDom(fake_dom_file='/tftpboot/test_fake_dom_file')

Bases: object

BareMetalDom class handles fake domain for bare metal back ends.

This implements the singleton pattern.

change_domain_state(name, state)

Changes domain state by the given state and updates domain file.

create_domain(xml_dict, bpath)

Adds a domain to domains list and activates an idle bare-metal node.

destroy_domain(name)

Removes domain from domains list and deactivates node.

find_domain(name)

Finds domain by the given name and returns the domain.

get_domain_info(instance_name)

Finds domain by the given instance_name and returns informaiton.

For example, status, memory_kb, vcpus, etc.

list_domains()

Returns the instance name from domains list.

reboot_domain(name)

Finds domain and deactivates (power down) bare-metal node.

Activates the node again. In case of fail, destroys the domain from domains list.

store_domain()

Stores fake domains to the file.

read_domains(fname)
write_domains(fname, domains)