image created from instance remains in "queued' status

Bug #1854605 reported by Elio Martinez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Invalid
Medium
chen haochuan

Bug Description

Brief Description
-----------------
Image creation from live instance is remaining in "queued" status

Severity
--------
Minor

Steps to Reproduce
------------------
 1.Launch an Instance in the Compute
... 2.Obtain the id of the instance using grep (openstack server list)
... 3.Create an image (openstack image create <id_instance>)
... 4.List and verify the image was correctly created (openstack image list)

Expected Behavior
------------------
Image should be enabled after a few minutes showing "active"

Actual Behavior
----------------
Image status remains in "queued"

Reproducibility
---------------
100%

System Configuration
--------------------

Virtual Environment 2 controller 2 computes

###
### StarlingX
### Built from master
###

OS="centos"
SW_VERSION="19.09"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID="20191122T023000Z"

JOB="STX_build_master_master"
<email address hidden>"
BUILD_NUMBER="327"
BUILD_HOST="starlingx_mirror"
BUILD_DATE="2019-11-22 02:30:00 +0000"

Timestamp/Logs
--------------
Logs attached

Test Activity
--------
Regression Testing

Revision history for this message
Elio Martinez (elio1979) wrote :
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Assigning to Yong Hu, the disto.openstack PL, for review/follow-up

tags: added: stx.distro.openstack
Changed in starlingx:
assignee: nobody → yong hu (yhu6)
Revision history for this message
Ghada Khalil (gkhalil) wrote :

@Yong, please triage and decide whether this is gating for stx.3.0 or not.

Revision history for this message
yong hu (yhu6) wrote :

OpenStack document about how to create image from VM instance:
https://docs.openstack.org/mitaka/user-guide/cli_use_snapshots_to_migrate_instances.html

I reproduced this issue on my environment as well (cengn 11/19 build ISO + stx-openstack-1.0-19-centos-stable-latest.tgz)

Changed in starlingx:
status: New → Triaged
importance: Undecided → Medium
tags: added: stx.3.0
yong hu (yhu6)
Changed in starlingx:
assignee: yong hu (yhu6) → chen haochuan (martin1982)
Revision history for this message
chen haochuan (martin1982) wrote :
Download full text (3.3 KiB)

1, to create a image from server instance, should "openstack server image create <server>"

controller-0:~$ openstack image list
+--------------------------------------+--------------------------------------+--------+
| ID | Name | Status |
+--------------------------------------+--------------------------------------+--------+
| 8a019820-0b05-45ac-a004-d5f840b82dba | 16a4a42c-4040-47d8-84d5-69036169c4eb | queued |
| 8fab3b2a-61c8-492f-b48e-ec8485a9599d | 16a4a42c-4040-47d8-84d5-69036169c4eb | queued |
| 1b75cd76-da92-4994-bb56-33ec86c1d55b | cirros | active |
+--------------------------------------+--------------------------------------+--------+
controller-0:~$
controller-0:~$
controller-0:~$ openstack image delete 8fab3b2a-61c8-492f-b48e-ec8485a9599d
controller-0:~$
controller-0:~$
controller-0:~$ openstack server list
+--------------------------------------+------+---------+-----------------------------+--------+----------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+------+---------+-----------------------------+--------+----------+
| b2828194-2bb0-4bac-9a9a-67d33d986e36 | vm1 | ACTIVE | public-net0=192.168.101.148 | cirros | m1.tinny |
| 16a4a42c-4040-47d8-84d5-69036169c4eb | vm0 | SHUTOFF | public-net0=192.168.101.100 | cirros | m1.tinny |
+--------------------------------------+------+---------+-----------------------------+--------+----------+

controller-0:~$ openstack image list
+--------------------------------------+--------------------------------------+--------+
| ID | Name | Status |
+--------------------------------------+--------------------------------------+--------+
| 8a019820-0b05-45ac-a004-d5f840b82dba | 16a4a42c-4040-47d8-84d5-69036169c4eb | queued |
| 1b75cd76-da92-4994-bb56-33ec86c1d55b | cirros | active |
| 85ba6fed-bfbb-4b09-9477-ea7a8c6118eb | vm0 | active |
+--------------------------------------+--------------------------------------+--------+

For "openstack image create", request argument "image-name"

controller-0:~$ openstack image create
usage: openstack image create [-h] [-f {json,shell,table,value,yaml}]
                              [-c COLUMN] [--max-width <integer>]
                              [--fit-width] [--print-empty] [--noindent]
                              [--prefix PREFIX] [--id <id>]
                              [--container-format <container-format>]
                              [--disk-format <disk-format>]
                              [--min-disk <disk-gb>] [--min-ram <ram-mb>]
                              [--file <file> | --volume <volume>] [--force]
                              [--sign-key-path <sign-key-path>]
                              [--sign-cert-id <sign-cert-id>]
                              [--protected | --unprotected]
                              [--public | --private | --community | --shared]
                              [--property ...

Read more...

Revision history for this message
chen haochuan (martin1982) wrote :
Download full text (9.2 KiB)

controller-0:~$ openstack server list
+--------------------------------------+------+---------+-----------------------------+--------+----------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+------+---------+-----------------------------+--------+----------+
| b2828194-2bb0-4bac-9a9a-67d33d986e36 | vm1 | ACTIVE | public-net0=192.168.101.148 | cirros | m1.tinny |
| 16a4a42c-4040-47d8-84d5-69036169c4eb | vm0 | SHUTOFF | public-net0=192.168.101.100 | cirros | m1.tinny |
+--------------------------------------+------+---------+-----------------------------+--------+----------+
controller-0:~$
controller-0:~$ openstack server image create 16a4a42c-4040-47d8-84d5-69036169c4eb
+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| checksum | None |
| container_format | None |
| created_at | 2019-12-04T02:45:19Z |
| disk_format | None ...

Read more...

Revision history for this message
chen haochuan (martin1982) wrote :
Revision history for this message
chen haochuan (martin1982) wrote :

https://docs.openstack.org/python-openstackclient/rocky/cli/command-objects/image.html

Add command description for "openstack image create" and "openstack server image create".
To create image from instance, should use command "openstack server image create"

Changed in starlingx:
status: Triaged → 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.