nova-docker snapshot does not return proper image ID

Bug #1312690 reported by Boden R
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
nova-docker
New
Undecided
Unassigned

Bug Description

With the current impl of the nova-docker virt driver and the docker-registry (https://github.com/dotcloud/docker-registry) snapshotting a docker container does not return the image ID of the final image created from the snapshot operation.

For example consumer code should be able to do something like this:

        image_uuid = self.clients("nova").servers.create_image(server,
                                                               server.name)
        image = self.clients("nova").images.get(image_uuid)
        image = bench_utils.wait_for(
            image,
            is_ready=bench_utils.resource_is("ACTIVE"),
            update_resource=bench_utils.get_from_manager(),
            timeout=CONF.benchmark.nova_server_image_create_timeout,
            check_interval=
                CONF.benchmark.nova_server_image_create_poll_interval
        )

That is, the image returned from the create_image should reflect the image UUID of the "final" image created during capture. However with docker driver the process actually creates a final image call <image_name>:latest.

Example:
- Install devstack + nova-docker driver
- Pull, tag and push a docker image into glance using docker-registry with glance store
- Create a nova server for docker -- results in a docker container
- Use the nova python api to snapshot the server (see code snippet above).
- The image_uuid returned in the above snippet might point to an image named 'myzirdsivgoftfqp'. However the actual final image created by the snapshot is named 'myzirdsivgoftfqp:latest' and is not the same image referred to in the return response from the create_image call

Such behavior impacts consumers and is not consistent with the nova snapshot behavior.

Revision history for this message
Joe Gordon (jogo) wrote :

nova doesn't support docker any more (as per commit I1c9bea2fdeebc4199c4f7d8fca4580a6fb7fed5b) What version of nova are you using?

Changed in nova:
status: New → Incomplete
Revision history for this message
Justin Shepherd (jshepher) wrote :

Should this bug be marked as "Won't fix" since the docker driver was excised from the codebase?

Changed in nova:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.