Bug 1383030

Summary: openstack overcloud image upload doesn't work
Product: Red Hat OpenStack Reporter: Alexandre Maumené <amaumene>
Component: rhosp-directorAssignee: Angus Thomas <athomas>
Status: CLOSED DUPLICATE QA Contact: Omri Hochman <ohochman>
Severity: high Docs Contact:
Priority: high    
Version: 10.0 (Newton)CC: dbecker, jslagle, matyoung, mburns, morazi, rhel-osp-director-maint
Target Milestone: ---Keywords: Automation, AutomationBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-10 20:16:38 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:
Embargoed:

Description Alexandre Maumené 2016-10-09 08:46:38 UTC
Description of problem:
[stack@undercloud1 ~]$ openstack overcloud image upload --image-path /home/stack/images/               
Invalid URL 'x/v1/images/detail?limit=20': No schema supplied. Perhaps you meant http://x/v1/images/detail?limit=20?

Version-Release number of selected component (if applicable):
Latest puddle (2016-10-07.4)

How reproducible:
Every time.

Steps to Reproduce:
1.openstack overcloud image upload --image-path /home/stack/images/ 

Actual results:
Invalid URL 'x/v1/images/detail?limit=20': No schema supplied. Perhaps you meant http://x/v1/images/detail?limit=20?

Expected results:
Uploading of overcloud images to glance.

Fix:
Manually upload images to glance ?
glance image-create --name bm-deploy-kernel --disk-format aki --container-format aki --file ironic-python-agent.kernel --progress
glance image-create --name bm-deploy-ramdisk --disk-format ari --container-format ari --file ironic-python-agent.initramfs --progress
glance image-create --name overcloud-full --disk-format qcow2 --container-format bare --file overcloud-full.qcow2 --progress
glance image-create --name overcloud-full-initrd --disk-format ari --container-format ari --file overcloud-full.initrd --progress
glance image-create --name overcloud-full-vmlinuz --disk-format aki --container-format aki --file overcloud-full.vmlinuz --progress

Comment 1 Alexandre Maumené 2016-10-09 09:01:05 UTC
Also need to:
cd /home/stack/images
sudo cp ironic-python-agent.kernel /httpboot/agent.kernel
sudo cp ironic-python-agent.initramfs /httpboot/agent.ramdisk
sudo cp /usr/lib/python2.7/site-packages/ironic/drivers/modules/boot.ipxe /httpboot/
sudo chown ironic:ironic /httpboot/boot.ipxe
sudo mkdir /httpboot/pxelinux.cfg
sudo chown ironic:ironic /httpboot/pxelinux.cfg/

Then introspection can start.

Comment 3 James Slagle 2016-10-10 20:16:38 UTC

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