[openstack-dev] [OpenStack-Infra] [ThirdPartyCI] Need help setting up CI

Eduard Matei eduard.matei at cloudfounders.com
Tue Dec 16 08:41:06 UTC 2014


Hi,

Can someone point me to some working documentation on how to setup third
party CI? (joinfu's instructions don't seem to work, and manually running
devstack-gate scripts fails:

Running gate_hook
Job timeout set to: 163 minutes
timeout: failed to run command
‘/opt/stack/new/devstack-gate/devstack-vm-gate.sh’: No such file or
directory
ERROR: the main setup script run by this job failed - exit code: 127
    please look at the relevant log files to determine the root cause
Cleaning up host
... this takes 3 - 4 minutes (logs at logs/devstack-gate-cleanup-host.txt.gz)

Build step 'Execute shell' marked build as failure.

I have a working Jenkins slave with devstack and our internal libraries, i
have Gerrit Trigger Plugin working and triggering on patches created, i
just need the actual job contents so that it can get to comment with the
test results.

Thanks,

Eduard

On Tue, Dec 9, 2014 at 1:59 PM, Eduard Matei <eduard.matei at cloudfounders.com
> wrote:

> Hi Darragh, thanks for your input
>
> I double checked the job settings and fixed it:
> - build triggers is set to Gerrit event
> - Gerrit trigger server is "Gerrit" (configured from Gerrit Trigger Plugin
> and tested separately)
> - Trigger on: Patchset Created
> - Gerrit Project: Type: Path, Pattern openstack-dev/sandbox, Branches:
> Type: Path, Pattern: ** (was Type Plain on both)
> Now the job is triggered by commit on openstack-dev/sandbox :)
>
> Regarding the Query and Trigger Gerrit Patches, i found my patch using
> query: status:open project:openstack-dev/sandbox change:139585 and i can
> trigger it manually and it executes the job.
>
> But i still have the problem: what should the job do? It doesn't actually
> do anything, it doesn't run tests or comment on the patch.
> Do you have an example of job?
>
> Thanks,
> Eduard
>
> On Tue, Dec 9, 2014 at 1:13 PM, Bailey, Darragh <dbailey at hp.com> wrote:
>
>> Hi Eduard,
>>
>>
>> I would check the trigger settings in the job, particularly which "type"
>> of pattern matching is being used for the branches. Found it tends to be
>> the spot that catches most people out when configuring jobs with the
>> Gerrit Trigger plugin. If you're looking to trigger against all branches
>> then you would want "Type: Path" and "Pattern: **" appearing in the UI.
>>
>> If you have sufficient access using the 'Query and Trigger Gerrit
>> Patches' page accessible from the main view will make it easier to
>> confirm that your Jenkins instance can actually see changes in gerrit
>> for the given project (which should mean that it can see the
>> corresponding events as well). Can also use the same page to re-trigger
>> for PatchsetCreated events to see if you've set the patterns on the job
>> correctly.
>>
>> Regards,
>> Darragh Bailey
>>
>> "Nothing is foolproof to a sufficiently talented fool" - Unknown
>>
>> On 08/12/14 14:33, Eduard Matei wrote:
>> > Resending this to dev ML as it seems i get quicker response :)
>> >
>> > I created a job in Jenkins, added as Build Trigger: "Gerrit Event:
>> > Patchset Created", chose as server the configured Gerrit server that
>> > was previously tested, then added the project openstack-dev/sandbox
>> > and saved.
>> > I made a change on dev sandbox repo but couldn't trigger my job.
>> >
>> > Any ideas?
>> >
>> > Thanks,
>> > Eduard
>> >
>> > On Fri, Dec 5, 2014 at 10:32 AM, Eduard Matei
>> > <eduard.matei at cloudfounders.com
>> > <mailto:eduard.matei at cloudfounders.com>> wrote:
>> >
>> >     Hello everyone,
>> >
>> >     Thanks to the latest changes to the creation of service accounts
>> >     process we're one step closer to setting up our own CI platform
>> >     for Cinder.
>> >
>> >     So far we've got:
>> >     - Jenkins master (with Gerrit plugin) and slave (with DevStack and
>> >     our storage solution)
>> >     - Service account configured and tested (can manually connect to
>> >     review.openstack.org <http://review.openstack.org> and get events
>> >     and publish comments)
>> >
>> >     Next step would be to set up a job to do the actual testing, this
>> >     is where we're stuck.
>> >     Can someone please point us to a clear example on how a job should
>> >     look like (preferably for testing Cinder on Kilo)? Most links
>> >     we've found are broken, or tools/scripts are no longer working.
>> >     Also, we cannot change the Jenkins master too much (it's owned by
>> >     Ops team and they need a list of tools/scripts to review before
>> >     installing/running so we're not allowed to experiment).
>> >
>> >     Thanks,
>> >     Eduard
>> >
>> >     --
>> >
>> >     *Eduard Biceri Matei, Senior Software Developer*
>> >     www.cloudfounders.com
>> >     <http://www.cloudfounders.com/> | eduard.matei at cloudfounders.com
>> >     <mailto:eduard.matei at cloudfounders.com>
>> >
>> >
>> >
>> >     *CloudFounders, The Private Cloud Software Company*
>> >
>> >     Disclaimer:
>> >     This email and any files transmitted with it are confidential and
>> >     intended solely for the use of the individual or entity to whom
>> >     they are addressed.If you are not the named addressee or an
>> >     employee or agent responsible for delivering this message to the
>> >     named addressee, you are hereby notified that you are not
>> >     authorized to read, print, retain, copy or disseminate this
>> >     message or any part of it. If you have received this email in
>> >     error we request you to notify us by reply e-mail and to delete
>> >     all electronic files of the message. If you are not the intended
>> >     recipient you are notified that disclosing, copying, distributing
>> >     or taking any action in reliance on the contents of this
>> >     information is strictly prohibited.  E-mail transmission cannot be
>> >     guaranteed to be secure or error free as information could be
>> >     intercepted, corrupted, lost, destroyed, arrive late or
>> >     incomplete, or contain viruses. The sender therefore does not
>> >     accept liability for any errors or omissions in the content of
>> >     this message, and shall have no liability for any loss or damage
>> >     suffered by the user, which arise as a result of e-mail
>> transmission.
>> >
>> >
>> >
>> >
>> > --
>> > *Eduard Biceri Matei, Senior Software Developer*
>> > www.cloudfounders.com
>> > <http://www.cloudfounders.com/> | eduard.matei at cloudfounders.com
>> > <mailto:eduard.matei at cloudfounders.com>
>> >
>> >
>> >
>> > *CloudFounders, The Private Cloud Software Company*
>> >
>> > Disclaimer:
>> > This email and any files transmitted with it are confidential and
>> > intended solely for the use of the individual or entity to whom they
>> > are addressed.If you are not the named addressee or an employee or
>> > agent responsible for delivering this message to the named addressee,
>> > you are hereby notified that you are not authorized to read, print,
>> > retain, copy or disseminate this message or any part of it. If you
>> > have received this email in error we request you to notify us by reply
>> > e-mail and to delete all electronic files of the message. If you are
>> > not the intended recipient you are notified that disclosing, copying,
>> > distributing or taking any action in reliance on the contents of this
>> > information is strictly prohibited.  E-mail transmission cannot be
>> > guaranteed to be secure or error free as information could be
>> > intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
>> > contain viruses. The sender therefore does not accept liability for
>> > any errors or omissions in the content of this message, and shall have
>> > no liability for any loss or damage suffered by the user, which arise
>> > as a result of e-mail transmission.
>> >
>> >
>> > _______________________________________________
>> > OpenStack-Infra mailing list
>> > OpenStack-Infra at lists.openstack.org
>> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra
>>
>>
>
>
> --
>
> *Eduard Biceri Matei, Senior Software Developer*
> www.cloudfounders.com
>  | eduard.matei at cloudfounders.com
>
>
>
> *CloudFounders, The Private Cloud Software Company*
>
> Disclaimer:
> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
> If you are not the named addressee or an employee or agent responsible for delivering this message to the named addressee, you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this email in error we request you to notify us by reply e-mail and to delete all electronic files of the message. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
> E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the content of this message, and shall have no liability for any loss or damage suffered by the user, which arise as a result of e-mail transmission.
>
>


-- 

*Eduard Biceri Matei, Senior Software Developer*
www.cloudfounders.com
 | eduard.matei at cloudfounders.com



*CloudFounders, The Private Cloud Software Company*

Disclaimer:
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.
If you are not the named addressee or an employee or agent responsible
for delivering this message to the named addressee, you are hereby
notified that you are not authorized to read, print, retain, copy or
disseminate this message or any part of it. If you have received this
email in error we request you to notify us by reply e-mail and to
delete all electronic files of the message. If you are not the
intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
information is strictly prohibited.
E-mail transmission cannot be guaranteed to be secure or error free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the content of this
message, and shall have no liability for any loss or damage suffered
by the user, which arise as a result of e-mail transmission.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141216/d84c8fb9/attachment.html>


More information about the OpenStack-dev mailing list