Bug 1327414 - Cannot upload the overcloud image to glance [NEEDINFO]
Summary: Cannot upload the overcloud image to glance
Keywords:
Status: CLOSED DUPLICATE of bug 1275326
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 10.0 (Newton)
Assignee: Jason E. Rist
QA Contact: Ola Pavlenko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-15 06:33 UTC by Shang Wu
Modified: 2016-10-14 22:54 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-14 22:54:58 UTC
Target Upstream Version:
jrist: needinfo? (opavlenk)


Attachments (Terms of Use)
glance api log (2.11 MB, text/plain)
2016-04-15 10:35 UTC, Shang Wu
no flags Details
glance registry log (3.21 MB, text/plain)
2016-04-15 10:36 UTC, Shang Wu
no flags Details

Description Shang Wu 2016-04-15 06:33:00 UTC
Description of problem:
Cannot upload the overcloud image to glance.

Version-Release number of selected component (if applicable):
OSP8 RC

How reproducible:
100%

Steps to Reproduce:
1. Download the overcloud image from: https://access.redhat.com/downloads/content/191/ver=7/rhel---7/7/x86_64/product-software

2. Select version 8 and download the two files (Ironic Python Agent Image for RHOSP director 8.0 RC & Overcloud Image for RHOSP director 8.0 RC)

3. Extract them and get:
ironic-python-agent.initramfs  
overcloud-full.qcow2  
overcloud-full.vmlinuz
ironic-python-agent.kernel     
overcloud-full.initrd    

4. Run the following command to upload them to glance:
openstack overcloud image upload --image-path /home/stack/images/


Actual results:
Complains that "The given file overcloud-full.vmlinuz is not a regular file"

Expected results:
Upload successfully and be able to list them using glance command

Additional info:

Comment 2 Shang Wu 2016-04-15 10:35:47 UTC
Created attachment 1147602 [details]
glance api log

Comment 3 Shang Wu 2016-04-15 10:36:22 UTC
Created attachment 1147603 [details]
glance registry log

Comment 4 Shang Wu 2016-04-18 13:45:24 UTC
Issue resolved the latest image update.

Comment 5 Thierry Vignaud 2016-05-19 09:39:59 UTC
This issue can happen if "openstack overcloud image upload --image-path /home/stack/images/" is run from another directory.
It works fine if run from /home/stack/images/

If run from /home/stack/images/, the error won't show up.
This is a rare error as usually one will upload the images right after untaring them, so from the right directory...

Comment 6 jivy 2016-10-10 20:39:26 UTC
This probably needs to be reopened. I'm running into the problem and i'm in the correct directory. 

[stack@undercloud images]$ ls
ironic-python-agent.initramfs  overcloud-full.initrd  overcloud-full.vmlinuz
ironic-python-agent.kernel     overcloud-full.qcow2
[stack@undercloud images]$ openstack overcloud image upload --image-path /home/s                                                                                                                                                             tack/images/
400 Bad Request: Client disconnected before sending all data to backend (HTTP 40                                                                                                                                                             0)
[stack@undercloud images]$ openstack image list

[stack@undercloud images]$ openstack image list

[stack@undercloud images]$ openstack overcloud image upload --image-path /home/stack/images/
400 Bad Request: Client disconnected before sending all data to backend (HTTP 400)
[stack@undercloud images]$ pwd
/home/stack/images

Comment 7 jivy 2016-10-10 20:40:17 UTC
This probably needs to be reopened. I'm running into the problem and i'm in the correct directory. 

[stack@undercloud images]$ ls
ironic-python-agent.initramfs  overcloud-full.initrd  overcloud-full.vmlinuz
ironic-python-agent.kernel     overcloud-full.qcow2
[stack@undercloud images]$ openstack overcloud image upload --image-path /home/s                                                                                                                                                             tack/images/
400 Bad Request: Client disconnected before sending all data to backend (HTTP 40                                                                                                                                                             0)
[stack@undercloud images]$ openstack image list

[stack@undercloud images]$ openstack image list

[stack@undercloud images]$ openstack overcloud image upload --image-path /home/stack/images/
400 Bad Request: Client disconnected before sending all data to backend (HTTP 400)
[stack@undercloud images]$ pwd
/home/stack/images

Comment 8 jivy 2016-10-10 20:41:06 UTC
Sorry, this is for Red Hat 9.0

Comment 9 jivy 2016-10-10 20:41:15 UTC
Sorry, this is for Red Hat 9.0

Comment 10 Jason E. Rist 2016-10-14 22:37:48 UTC
Can you check this on 10?

Comment 11 Jason E. Rist 2016-10-14 22:54:58 UTC

*** This bug has been marked as a duplicate of bug 1275326 ***


Note You need to log in before you can comment on or make changes to this bug.