[ https://issues.apache.org/jira/browse/DTACLOUD-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ronelle Landy closed DTACLOUD-303. ---------------------------------- Resolution: Fixed Fixed - see DTACLOUD-450 > Creating an image from running Openstack instance errors out - stopping the > instance, terminates it > --------------------------------------------------------------------------------------------------- > > Key: DTACLOUD-303 > URL: https://issues.apache.org/jira/browse/DTACLOUD-303 > Project: DeltaCloud > Issue Type: Bug > Components: Native/Frontend > Environment: RHEL 6.3 > openstack (1.0.1) > deltacloud-client (1.0.2) - on list for testing > deltacloud-core (1.0.2) - on list for testing > Reporter: Ronelle Landy > > Running Openstack instances list 'create_image' as an allowable action > however, attempting to create an image from a running instance results in an > error. Using the deltacloud 'stop' action deletes the instance so there is no > way to create an image ... > Shows running instance .... note allowable actions > <instance > href='http://qeblade39.rhq.lab.eng.bos.redhat.com:3005/api/instances/411581' > id='411581'> > <name>rlandyGUIlaunch</name> > <owner_id>rla...@redhat.com</owner_id> > <image > href='http://qeblade39.rhq.lab.eng.bos.redhat.com:3005/api/images/413' > id='413'></image> > <realm > href='http://qeblade39.rhq.lab.eng.bos.redhat.com:3005/api/realms/default' > id='default'></realm> > <state>RUNNING</state> > <hardware_profile > href='http://qeblade39.rhq.lab.eng.bos.redhat.com:3005/api/hardware_profiles/103' > id='103'> > </hardware_profile> > <actions> > <link > href='http://qeblade39.rhq.lab.eng.bos.redhat.com:3005/api/instances/411581/reboot' > method='post' rel='reboot' /> > <link > href='http://qeblade39.rhq.lab.eng.bos.redhat.com:3005/api/instances/411581/stop' > method='post' rel='stop' /> > <link > href='http://qeblade39.rhq.lab.eng.bos.redhat.com:3005/api/create_image;instance_id=411581' > method='post' rel='create_image' /> > </actions> > <public_addresses></public_addresses> > <private_addresses><address type='ipv4'>xx</address> > <address type='ipv4'>xx</address></private_addresses> > <storage_volumes></storage_volumes> > <authentication type='key'> > <login> > <username>root</username> > <password><![CDATA[]]></password> > </login> > <login> > <keyname>xxx</keyname> > </login> > </authentication> > </instance> > Error when creating instance: > OpenStack::Exception::BadRequest:Instance 411601 in state > active(image_snapshot). Cannot snapshot while the instance is in this state. > /usr/lib/ruby/gems/1.8/gems/openstack-1.0.1/lib/openstack/connection.rb:436:in > `raise_exception' > /usr/lib/ruby/gems/1.8/gems/openstack-1.0.1/lib/openstack/compute/server.rb:177:in > `create_image' > /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.2/lib/deltacloud/drivers/openstack/openstack_driver.rb:84:in > `create_image' > /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.2/lib/deltacloud/drivers/exceptions.rb:181:in > `call' > /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.2/lib/deltacloud/drivers/exceptions.rb:181:in > `safely' > /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.2/lib/deltacloud/drivers/openstack/openstack_driver.rb:81:in > `create_image' > /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.2/lib/deltacloud/collections/images.rb:44 > /usr/lib/ruby/gems/1.8/gems/sinatra-rabbit-1.0.10/lib/sinatra/rabbit/base.rb:385:in > `instance_eval' > /usr/lib/ruby/gems/1.8/gems/sinatra-rabbit-1.0.10/lib/sinatra/rabbit/base.rb:385:in > `POST /api/images' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `call' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in > `compile!' > 10.11.8.153 - - [16/Aug/2012 11:38:44] "POST /api/images HTTP/1.1" 400 593866 > 2.0506 > 10.11.8.153 - - [16/Aug/2012 11:39:34] "GET /api HTTP/1.1" 200 4312 0.1286 > 10.11.8.153 - - [16/Aug/2012 11:39:37] "GET /api/instance_states HTTP/1.1" > 200 4623 0.0448 > 10.11.8.153 - - [16/Aug/2012 11:39:37] "GET /api/instance_states?format=png > HTTP/1.1" 200 - 0.0761 > 10.11.8.153 - - [16/Aug/2012 11:39:56] "GET /api/instances HTTP/1.1" 200 3601 > 1.5621 > 10.11.8.153 - - [16/Aug/2012 11:39:59] "GET /api/instances/411601 HTTP/1.1" > 200 5229 1.5359 > 10.11.8.153 - - [16/Aug/2012 11:42:49] "GET /api/instance?format=xml > HTTP/1.1" 404 479 0.0380 > 10.11.8.153 - - [16/Aug/2012 11:43:01] "GET /api/instances?format=xml > HTTP/1.1" 200 4357 1.7785 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira