Bug 1444215 - "octavia-diskimage-create.sh -i rhel" fails with "/var/cache/yum/rhel-7-server-rpms/gen/primary_db.sqlite: [Errno 28] No space left on device"
Summary: "octavia-diskimage-create.sh -i rhel" fails with "/var/cache/yum/rhel-7-serve...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-octavia
Version: 11.0 (Ocata)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Assaf Muller
QA Contact: Toni Freger
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-20 21:05 UTC by Chris Janiszewski
Modified: 2019-09-10 14:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-26 18:28:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
runlog for building rhel7 Amphora images (7.17 KB, text/plain)
2017-04-20 21:05 UTC, Chris Janiszewski
no flags Details

Description Chris Janiszewski 2017-04-20 21:05:43 UTC
Created attachment 1273070 [details]
runlog for building rhel7 Amphora images

Description of problem:
Followed instructions from:
https://review.openstack.org/#/c/447496/11/doc/source/advanced_deployment/deploy_octavia.rst
Failed with first Post deploy step:
"octavia-diskimage-create.sh -i rhel" failes with:
Error: Error writing to file /var/cache/yum/rhel-7-server-rpms/gen/primary_db.sqlite: [Errno 28] No space left on device

Increasing available disk space to rhel7-guest.qcow2 didn't fix the problem.

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


How reproducible:
Every time

Steps to Reproduce:
on undercloud
1. sudo yum install -y openstack-octavia-diskimage-create
2. source varables:
export DIB_LOCAL_IMAGE=/home/stack/rhel7-octavia.qcow2
export REG_METHOD=portal
export REG_USER="<removed>"
export REG_PASSWORD="<removed>"
export REG_POOL_ID="<removed>"
export REG_REPOS="rhel-7-server-rpms rhel-7-server-extras-rpms rhel-ha-for-rhel-7-server-rpms \
                rhel-7-server-optional-rpms rhel-7-server-openstack-beta-rpms"

3.octavia-diskimage-create.sh -i rhel

Actual results:
Error: Error writing to file /var/cache/yum/rhel-7-server-rpms/gen/primary_db.sqlite: [Errno 28] No space left on device

Expected results:
Amphora image successfully crated

Additional info:
Please see attachment for runlog

Comment 1 Nir Magnezi 2017-04-24 08:52:20 UTC
Chris,

The default disk used in diskimage-create.sh is 2GB, which is not enough for the RHEL cloud image.
Please use at least a 3GB disk by simply appending '-s 3' to how command you used to invoke the script.

Let me know if that worked for you.

Comment 2 Chris Janiszewski 2017-04-24 13:28:28 UTC
Nir,

That worked good. I would recommend including this information in the docs:
https://review.openstack.org/#/c/447496/11/doc/source/advanced_deployment/deploy_octavia.rst
Or whatever becomes official doc for the solution, otherwise we are going to have other folks tripping over it.
Thanks again!

Comment 3 Assaf Muller 2017-04-26 18:28:57 UTC
Closing and adding a comment here:
https://review.openstack.org/#/c/447496/11/doc/source/advanced_deployment/deploy_octavia.rst


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