Compute Documentation

This page contains the Compute Package documentation.

The disk Module

Utility methods to resize, repartition, and modify disk images. Includes injection of SSH PGP keys into authorized_keys file.

nova.compute.disk.inject_data(*args, **kwargs)

Injects a ssh key and optionally net data into a disk image.

it will mount the image as a fully partitioned disk and attempt to inject into the specified partition number.

If partition is not specified it mounts the image as a single partition.

nova.compute.disk.partition(*args, **kwargs)

Takes a single partition represented by infile and writes a bootable drive image into outfile.

The first 63 sectors (0-62) of the resulting image is a master boot record. Infile becomes the first primary partition. If local bytes is specified, a second primary partition is created and formatted as ext2.

In the diagram below, dashes represent drive sectors. +—–+——. . .——-+——. . .——+ | 0 a| b c|d e| +—–+——. . .——-+——. . .——+ | mbr | primary partiton | local partition | +—–+——. . .——-+——. . .——+

The exception Module

The model Module

The network Module

The node Module

The node_unittest Module

Table Of Contents

Previous topic

Auth Documentation

Next topic

Endpoint Documentation

This Page