octavia : diskimage-create.sh ignores -s flag ?

Michael Johnson johnsomor at gmail.com
Thu Feb 14 23:32:34 UTC 2019


Hi there.

I have not used the "DIB_LOCAL_IMAGE" setting. Are you following the
example in the README
here?:https://github.com/openstack/octavia/tree/master/diskimage-create#using-distribution-packages-for-amphora-agent
The variable will need to be exported.

As for the -s setting for the image size, I do know this works. We use
this as part of our gate test jobs since the centos image must be 3GB
in size.
The only way -s wouldn't be honored would be if you have a
"AMP_IMAGESIZE" environment variable defined. That will override the
-s setting.

Also note, that the default "qcow2" format is compressed, the .qcow2
file output will not be the same size as you requested with -s. Only
when it is booted will it expand out to the full 10GB you specified
with -s.

Michael

On Thu, Feb 14, 2019 at 3:05 PM M. Ranganathan <mranga at gmail.com> wrote:
>
> Hello,
>
> I am using octavia to build the image
>
> https://github.com/openstack/octavia/tree/master/diskimage-create
>
> I want to run it as a loadbalanced server. Do I need to run diskimage-builder prior to running disk-image-create on the image? My original image ran under virt-manager (imported an ISO into virt manager).
>
> Thanks,
>
> Ranga
>
>
>
>
> On Thu, Feb 14, 2019 at 5:43 PM Clark Boylan <cboylan at sapwetik.org> wrote:
>>
>> On Thu, Feb 14, 2019, at 2:30 PM, M. Ranganathan wrote:
>> > Hello,
>> >
>> > I have been struggling to create a diskimage from an existing qcow2 image.
>> >
>> > I find that diskimage-builder does the following:
>> >
>> > 1. apparently ignores DIB_LOCAL_IMAGE environment setting and
>> > 2. ignores the -s flag. No matter what -s I supply, it creates a 2gb image.
>> >
>> > My flags are as follows:
>> >
>> >
>> > bash diskimage-create.sh -s 10
>>
>> Can you clarify where the diskimage-create.sh script comes from? Diskimage-builder's command to build an image is disk-image-create and it takes a --image-size flag (-s isn't a valid argument).
>>
>> >
>> >
>> > Not sure what I am doing wrong. Any help appreciated.
>> >
>> > Thanks
>> >
>> > --
>> > M. Ranganathan
>>
>
>
> --
> M. Ranganathan
>



More information about the openstack-discuss mailing list