On 12/12/19 7:04 AM, Thanh ha wrote:
> On Thu, 12 Dec 2019 at 09:38, Robert Varga <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     On 12/12/2019 14:50, Thanh Ha wrote:
>     > On Thu, 12 Dec 2019 at 03:56, Robert Varga <[email protected]
>     <mailto:[email protected]>
>     > <mailto:[email protected] <mailto:[email protected]>>> wrote:
>     >
>     >     Hello,
>     >
>     >     is there a simple way to know what is the content of a built
>     image?
>     >
>     >     I mean
>     >   
>      
> https://jenkins.opendaylight.org/releng/view/builder/job/builder-packer-merge-centos-7-builder/78/
>     >     does tell me there is a new image, but there is nothing in the
>     logs
>     >     which would tell me what the actual content is.
>     >
>     >     That really makes it a matter of guessing as to what the delta
>     between
>     >     "ZZCI - CentOS 7 - builder - x86_64 - 20190924-232354.3819"
>     (currently
>     >     in use) and "ZZCI - CentOS 7 - builder - x86_64 -
>     20191201-060129.829"
>     >     (produced by the build above) really is.
>     >
>     >
>     > Hi Robert,
> 
>     Hey Thanh,
> 
>     > Not a super convenient way but you can use the packages_end.diff:
>     >
>     >
>     
> https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/builder-packer-merge-centos-7-builder/78/packages_end.txt.gz
> 
>     Yeah, that's what I assumed would be the answer, but these files are
>     produced for every build:
>     
> https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/yangtools-maven-verify-master-mvn35-openjdk11/616/packages_end.txt.gz
> 
>     > This tells you which packages were installed into the image in that
>     > particular build. The hard part is tracking down the logs for the
> 
>     hence correction: this tells me what packages were installed into the
>     image that ran the the job.
> 
>     What I am after is something different: the packer job created a new
>     image for potential use in jobs (turtles all the way down) -- and I want
>     to know the contents of that new image.
> 
>     One way would be to try sandbox with that image (and look at
>     packages_end of that job), except it seems I am too lame to be able to
>     get that running.
> 
>  
> This will be difficult without LF's help. So as you have found, the
> builder profiles available in Jenkins are defined here:
> 
> https://github.com/opendaylight/releng-builder/blob/master/jenkins-config/clouds/openstack/odlvex/centos7-builder-2c-2g.cfg
> 
> which when updated triggers a Jenkins job to reconfigure it's global
> configuration to add / update the profiles defined in these cfg files.
> 
> What we need in this case then is to have someone with admin privileges
> manually intervene and add temporary build profiles in the Jenkins
> sandbox and then run a job to produce the output on each builder we want
> to get the package_end.txt for.
> 
> (or skip Jenkins entirely and just have an LF admin launch the 2
> different VMs manually and email us the results)

There's another option, since the sandbox also needs the ability to do
multi-node tests that means that the cloud credentials can be used to
craft a job to launch the newly defined instance as a multi-node
instance and have a script to just go pull the package listing.

It's still work in any case.

If someone can come up with a way to get packer to eject that
information during the build (via ansible) then we could capture it in
the build job. I suppose an enhancement to the image build job would be
to after finishing creating the image to then launch a clean instance on
the new image and then capture the package listing.

-Andy-

-- 
Andrew J Grimberg
Manager Release Engineering
The Linux Foundation

Attachment: signature.asc
Description: OpenPGP digital signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#1142): 
https://lists.opendaylight.org/g/infrastructure/message/1142
Mute This Topic: https://lists.opendaylight.org/mt/68276166/21656
Group Owner: [email protected]
Unsubscribe: https://lists.opendaylight.org/g/infrastructure/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to