Re: [openstack-dev] [TripleO][DIB] how create triplo overcloud image with latest kernel?

2017-09-30 Thread Moshe Levi
Thanks you all for the tips.
We were able to create image using blogpost that Yolanda mentioned.

From: Yolanda Robla Mota [mailto:yrobl...@redhat.com]
Sent: Wednesday, September 27, 2017 6:40 PM
To: OpenStack Development Mailing List (not for usage questions) 
<openstack-dev@lists.openstack.org>
Cc: Moshe Levi <mosh...@mellanox.com>; Hasan Qunoo <has...@mellanox.com>; 
Waleed Musa <wale...@mellanox.com>
Subject: Re: [openstack-dev] [TripleO][DIB] how create triplo overcloud image 
with latest kernel?

If you need a guideline about how to build TripleO images with DIB, i have that 
blogpost: 
http://teknoarticles.blogspot.com.es/2017/07/build-and-use-security-hardened-images.html<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fteknoarticles.blogspot.com.es%2F2017%2F07%2Fbuild-and-use-security-hardened-images.html=02%7C01%7Cmoshele%40mellanox.com%7C6f913bbb62a14993fdaf08d505be10a0%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636421236235553988=eZqPKn0Q%2BP8FJ%2Fe8v7CJXCT4ACNDyiNC980%2BFvbgKss%3D=0>
This if for security hardened images, but your replace 
"overcloud-hardened-images" by "overcloud-images", it will build the default 
one. You can specify the base image you want to use, as well as enable any repo 
you have, that may take the latest kernel.
Hope it helps!

On Wed, Sep 27, 2017 at 5:21 PM, Brad P. Crochet 
<b...@redhat.com<mailto:b...@redhat.com>> wrote:

On Tue, Sep 26, 2017 at 2:58 PM Ben Nemec 
<openst...@nemebean.com<mailto:openst...@nemebean.com>> wrote:


On 09/26/2017 05:43 AM, Moshe Levi wrote:
> Hi all,
>
> As part of the OVS Hardware Offload [1] [2],  we need to create new
> Centos/Redhat 7 image  with latest kernel/ovs/iproute.
>
> We tried to use virsh-customize to install the packages and we were able
> to update iproute and ovs, but for the kernel there is no space.
>
> We also tried with virsh-customize to uninstall the old kenrel but we no
> luck.
>
> Is other ways to replace kernel  package in existing image?

Do you have to use an existing image?  The easiest way to do this would
be to create a DIB element that installs what you want and just include
that in the image build in the first place.  I don't think that would be
too difficult to do now that we're keeping the image definitions in
simple YAML files.

If it is just packages, a DIB element wouldn't even be necessary. You could 
define a new yaml that just adds the packages that you want, and add that to 
the CLI when you build the images.

>
> [1] - 
> https://review.openstack.org/#/c/504911/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freview.openstack.org%2F%23%2Fc%2F504911%2F=02%7C01%7Cmoshele%40mellanox.com%7C6f913bbb62a14993fdaf08d505be10a0%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636421236235553988=X8eJ6XL2v6%2BUepvqpcmlRVSWKobPQV6kjawZShL%2BCD4%3D=0>
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freview.openstack.org%2F%23%2Fc%2F504911%2F=02%7C01%7Cmoshele%40mellanox.com%7Cc801dab0778b428e226508d504c97ecf%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636420185839119329=6oEmh0LJacV3WPGGp3wW%2BhL3nPDxRh%2BzNPY67X09Blc%3D=0>
>
>
> [2] - 
> https://review.openstack.org/#/c/502313/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freview.openstack.org%2F%23%2Fc%2F502313%2F=02%7C01%7Cmoshele%40mellanox.com%7C6f913bbb62a14993fdaf08d505be10a0%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636421236235553988=SEF6cyDF8IBlroFbbO8BPMYNOJe7n35azGVKfmYUIaM%3D=0>
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freview.openstack.org%2F%23%2Fc%2F502313%2F=02%7C01%7Cmoshele%40mellanox.com%7Cc801dab0778b428e226508d504c97ecf%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636420185839119329=EsydZ9EsUjkYcF92Gys569SJEvQ%2B%2Fu6uV8WAQJ0YMfc%3D=0>
>
>
>
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: 
> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2FOpenStack-dev-request%40lists.openstack.org%3Fsubject%3Aunsubscribe=02%7C01%7Cmoshele%40mellanox.com%7C6f913bbb62a14993fdaf08d505be10a0%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636421236235553988=MEMmNdpo5geSrCeMa6LxPP%2BYc8qxM%2Bh1SQ3nOWF2T3Y%3D=0>
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.openstack.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fopenstack-dev=02%7C01%7Cmoshele%40mellanox.com%7C6f913bbb62a14993fdaf08d505be10a0%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636421236235553988=x5kGvCTcWxS2VdwjhbHo54Euu2Ahjhm2FpVBonlZi%2FM%3D=0>
>


Re: [openstack-dev] [TripleO][DIB] how create triplo overcloud image with latest kernel?

2017-09-27 Thread Yolanda Robla Mota
If you need a guideline about how to build TripleO images with DIB, i have
that blogpost:
http://teknoarticles.blogspot.com.es/2017/07/build-and-use-security-hardened-images.html

This if for security hardened images, but your replace
"overcloud-hardened-images" by "overcloud-images", it will build the
default one. You can specify the base image you want to use, as well as
enable any repo you have, that may take the latest kernel.

Hope it helps!

On Wed, Sep 27, 2017 at 5:21 PM, Brad P. Crochet  wrote:

>
> On Tue, Sep 26, 2017 at 2:58 PM Ben Nemec  wrote:
>
>>
>>
>> On 09/26/2017 05:43 AM, Moshe Levi wrote:
>> > Hi all,
>> >
>> > As part of the OVS Hardware Offload [1] [2],  we need to create new
>> > Centos/Redhat 7 image  with latest kernel/ovs/iproute.
>> >
>> > We tried to use virsh-customize to install the packages and we were able
>> > to update iproute and ovs, but for the kernel there is no space.
>> >
>> > We also tried with virsh-customize to uninstall the old kenrel but we no
>> > luck.
>> >
>> > Is other ways to replace kernel  package in existing image?
>>
>> Do you have to use an existing image?  The easiest way to do this would
>> be to create a DIB element that installs what you want and just include
>> that in the image build in the first place.  I don't think that would be
>> too difficult to do now that we're keeping the image definitions in
>> simple YAML files.
>>
>>
> If it is just packages, a DIB element wouldn't even be necessary. You
> could define a new yaml that just adds the packages that you want, and add
> that to the CLI when you build the images.
>
>
>> >
>> > [1] - https://review.openstack.org/#/c/504911/
>> > > https%3A%2F%2Freview.openstack.org%2F%23%2Fc%2F504911%2F=02%7C01%
>> 7Cmoshele%40mellanox.com%7Cc801dab0778b428e226508d504c97ecf%
>> 7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636420185839119329=
>> 6oEmh0LJacV3WPGGp3wW%2BhL3nPDxRh%2BzNPY67X09Blc%3D=0>
>> >
>> >
>> > [2] - https://review.openstack.org/#/c/502313/
>> > > https%3A%2F%2Freview.openstack.org%2F%23%2Fc%2F502313%2F=02%7C01%
>> 7Cmoshele%40mellanox.com%7Cc801dab0778b428e226508d504c97ecf%
>> 7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636420185839119329=
>> EsydZ9EsUjkYcF92Gys569SJEvQ%2B%2Fu6uV8WAQJ0YMfc%3D=0>
>> >
>> >
>> >
>> >
>> > 
>> __
>> > OpenStack Development Mailing List (not for usage questions)
>> > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:
>> unsubscribe
>> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>> >
>>
>> 
>> __
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:
>> unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
> --
> Brad P. Crochet, RHCA, RHCE, RHCVA, RHCDS
> Principal Software Engineer
> (c) 704.236.9385 <(704)%20236-9385>
>
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 

Yolanda Robla Mota

Principal Software Engineer, RHCE

Red Hat



C/Avellana 213

Urb Portugal

yrobl...@redhat.comM: +34605641639


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [TripleO][DIB] how create triplo overcloud image with latest kernel?

2017-09-27 Thread Brad P. Crochet
On Tue, Sep 26, 2017 at 2:58 PM Ben Nemec  wrote:

>
>
> On 09/26/2017 05:43 AM, Moshe Levi wrote:
> > Hi all,
> >
> > As part of the OVS Hardware Offload [1] [2],  we need to create new
> > Centos/Redhat 7 image  with latest kernel/ovs/iproute.
> >
> > We tried to use virsh-customize to install the packages and we were able
> > to update iproute and ovs, but for the kernel there is no space.
> >
> > We also tried with virsh-customize to uninstall the old kenrel but we no
> > luck.
> >
> > Is other ways to replace kernel  package in existing image?
>
> Do you have to use an existing image?  The easiest way to do this would
> be to create a DIB element that installs what you want and just include
> that in the image build in the first place.  I don't think that would be
> too difficult to do now that we're keeping the image definitions in
> simple YAML files.
>
>
If it is just packages, a DIB element wouldn't even be necessary. You could
define a new yaml that just adds the packages that you want, and add that
to the CLI when you build the images.


> >
> > [1] - https://review.openstack.org/#/c/504911/
> > <
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freview.openstack.org%2F%23%2Fc%2F504911%2F=02%7C01%7Cmoshele%40mellanox.com%7Cc801dab0778b428e226508d504c97ecf%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636420185839119329=6oEmh0LJacV3WPGGp3wW%2BhL3nPDxRh%2BzNPY67X09Blc%3D=0
> >
> >
> >
> > [2] - https://review.openstack.org/#/c/502313/
> > <
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freview.openstack.org%2F%23%2Fc%2F502313%2F=02%7C01%7Cmoshele%40mellanox.com%7Cc801dab0778b428e226508d504c97ecf%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636420185839119329=EsydZ9EsUjkYcF92Gys569SJEvQ%2B%2Fu6uV8WAQJ0YMfc%3D=0
> >
> >
> >
> >
> >
> >
> __
> > OpenStack Development Mailing List (not for usage questions)
> > Unsubscribe:
> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-- 
Brad P. Crochet, RHCA, RHCE, RHCVA, RHCDS
Principal Software Engineer
(c) 704.236.9385
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [TripleO][DIB] how create triplo overcloud image with latest kernel?

2017-09-26 Thread Ben Nemec



On 09/26/2017 05:43 AM, Moshe Levi wrote:

Hi all,

As part of the OVS Hardware Offload [1] [2],  we need to create new 
Centos/Redhat 7 image  with latest kernel/ovs/iproute.


We tried to use virsh-customize to install the packages and we were able 
to update iproute and ovs, but for the kernel there is no space.


We also tried with virsh-customize to uninstall the old kenrel but we no 
luck.


Is other ways to replace kernel  package in existing image?


Do you have to use an existing image?  The easiest way to do this would 
be to create a DIB element that installs what you want and just include 
that in the image build in the first place.  I don't think that would be 
too difficult to do now that we're keeping the image definitions in 
simple YAML files.




[1] - https://review.openstack.org/#/c/504911/ 
 



[2] - https://review.openstack.org/#/c/502313/ 
 





__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [TripleO][DIB] how create triplo overcloud image with latest kernel?

2017-09-26 Thread Jan Gutter
I've used the following trick in the past to enlarge the images:

qemu-img resize ${OVERCLOUD_IMG} +3G
LIBGUESTFS_BACKEND=direct virt-customize -m 2048 -a
${OVERCLOUD_IMG} --run-command 'xfs_growfs /dev/sda'

Please also double-check the filesystem, some overcloud images use
ext4, for example. After modifying the image, I then run virt-sparsify
to shrink them a bit.

On Tue, Sep 26, 2017 at 12:43 PM, Moshe Levi  wrote:
> Hi all,
>
>
>
> As part of the OVS Hardware Offload [1] [2],  we need to create new
> Centos/Redhat 7 image  with latest kernel/ovs/iproute.
>
> We tried to use virsh-customize to install the packages and we were able to
> update iproute and ovs, but for the kernel there is no space.
>
> We also tried with virsh-customize to uninstall the old kenrel but we no
> luck.
>
> Is other ways to replace kernel  package in existing image?
>
>
>
>
>
>
>
> [1] - https://review.openstack.org/#/c/504911/
>
> [2] - https://review.openstack.org/#/c/502313/
>
>
>
>
>
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



-- 
Jan Gutter
Embedded Networking Software Engineer

Netronome | First Floor Suite 1, Block A, Southdowns Ridge Office Park,
Cnr Nellmapius and John Vorster St, Irene, Pretoria, 0157
Phone: +27 (12) 665-4427 | Skype: jangutter |  www.netronome.com

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [TripleO][DIB] how create triplo overcloud image with latest kernel?

2017-09-26 Thread Moshe Levi
Hi all,

As part of the OVS Hardware Offload [1] [2],  we need to create new 
Centos/Redhat 7 image  with latest kernel/ovs/iproute.
We tried to use virsh-customize to install the packages and we were able to 
update iproute and ovs, but for the kernel there is no space.
We also tried with virsh-customize to uninstall the old kenrel but we no luck.
Is other ways to replace kernel  package in existing image?



[1] - 
https://review.openstack.org/#/c/504911/
[2] - 
https://review.openstack.org/#/c/502313/


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev