This Page

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

The nova.api.ec2.ec2utils Module

nova.api.ec2.ec2utils.ec2_id_to_id(ec2_id)

Convert an ec2 ID (i-[base 16 number]) to an instance id (int)

nova.api.ec2.ec2utils.id_to_ec2_id(instance_id, template='i-%08x')

Convert an instance ID (int) to an ec2 ID (i-[base 16 number])