Bug 1327414

Summary: Cannot upload the overcloud image to glance
Product: Red Hat OpenStack Reporter: Shang Wu <shwu>
Component: python-tripleoclientAssignee: Jason E. Rist <jrist>
Status: CLOSED DUPLICATE QA Contact: Ola Pavlenko <opavlenk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: hbrock, jcoufal, jivy, jrist, jslagle, mburns, opavlenk, rhel-osp-director-maint, tvignaud
Target Milestone: ---Keywords: Reopened
Target Release: 10.0 (Newton)Flags: jrist: needinfo? (opavlenk)
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-14 22:54:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
glance api log
none
glance registry log none

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 ***