summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-04-01Update block parametersJulien4-16/+7
Fix issue: 1. father job block child jobs 2. deploy the env in daisy-virtual slaves Change-Id: Idcda4b8ca5fcf9abbfae3c60bf656a0901a20e02 Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
2017-04-01Add tox supportJulien7-0/+62
be easier to test jjb locally before submit for review. add unitest in modules dir to tox(tox -emodules) Change-Id: Ief4f10debc567d1d3ba111685c86b812a2058697 Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
2017-03-31Apex: fixes writing sha info into propertiesTim Rozet1-4/+4
Change-Id: Idc5ca86dbc51d83860f26244a4ed7d88015552d0 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-03-31Apex: Fixes regexp to match label names as wellTim Rozet1-1/+1
Change-Id: I42f8836320e4bce2f890aa4a17d59f53efab7f97 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-03-31xci: Update main script and readmeFatih Degirmenci2-7/+373
This change - updates the main script to run the playbooks - creates the initial version of the readme file Change-Id: I4110433bce541a5d9645f34457f9e1b1ee93df19 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-31xci: Create playbook to destroy, create and provision VM nodesFatih Degirmenci5-29/+44
This change moves preparation (cloning repos, combining opnfv/bifrost with openstack/bifrost), destroying and creating VM nodes from the script into a separate playbook. This requires the host to have ansible installed. The version of ansible to install using pip currently matches to what bifrost uses but it is hardcoded and needs to be fixed properly. The reason for having this as a playbook to simplify the script and increase the reuse. This playbook will be used for - developer sandbox - periodic bifrost jobs to run against latest on given branch and promoting bifrost sha1 to pin later on - daily jobs to run using pinned versions of bifrost Change-Id: I033f12290dfea19d4c74be80eea7203211c0369e Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-31Merge "xci: Add ansible files for sandbox mini flavor"Fatih Degirmenci5-0/+273
2017-03-31xci: Add ansible files for sandbox ha flavorFatih Degirmenci5-0/+389
This patch adds noha target host configuration playbook, inventory, variable files and so on to use until we have time to fix things more properly and some other functionality becomes available in upstream. This approach will result in duplicates but it is something we can perhaps live with. The playbook to configure target hosts will be same with the one we will have for noha flavor but for different for the flavor mini. The user variables and openstack user configuration will be different between flavors and keeping deployment specific configuration. Change-Id: I4e2b375b9f8f6bd5f8c5da91a522b78d61a58125 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-31Merge "xci: Add ansible files for sandbox noha flavor"Fatih Degirmenci7-0/+325
2017-03-31Merge "Add wait method for Docker builds"Jose Lausuch1-8/+10
2017-03-31Add wait method for Docker buildsjose.lausuch1-8/+10
By default, if a docker build job triggers and there is another one running at the same time, it will abort the job. This adds a wait method with a timeout to avoid that. Change-Id: Ica86885c60ce4137c85474ec4b7441ac5bab600c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-03-31Merge "unify raise exception process"Serena Feng4-33/+52
2017-03-30xci: Add ansible files for sandbox mini flavorFatih Degirmenci5-0/+273
This patch adds mini target host configuration playbook, inventory, variable files and so on to use until we have time to fix things more properly and some other functionality becomes available in upstream. This approach will result in duplicates but it is something we can perhaps live with. The user variables and openstack user configuration will be different between flavors and keeping deployment specific configuration. Change-Id: Ie312dfa2047d094b590de970c1436d69f4c69668 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-30xci: Add ansible files for sandbox noha flavorFatih Degirmenci7-0/+325
This patch adds noha target host configuration playbook, inventory, variable files and so on to use until we have time to fix things more properly and some other functionality becomes available in upstream. This approach will result in duplicates but it is something we can perhaps live with. NFS configuration is converted into a role and the rest is adjusted accordingly. The playbook to configure target hosts will be same with the one we will have for ha flavor but for different for the flavor mini. The user variables and openstack user configuration will be different between flavors and keeping deployment specific configuration. Change-Id: I8faceae846285fc3e4260cbced5b740a9b0c3766 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-30xci: Move role configure-network to the right placeFatih Degirmenci1-3/+2
Incorrectly placed role configure-network causes ansible to skip the roles at the beginning of the playbook. Change-Id: Id85e9684eb86acad7c11104b434a319c37e16903 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-30Merge "xci: Add ansible files for sandbox aio flavor"Fatih Degirmenci4-0/+27
2017-03-30Merge "Modify interactions with installer VM to set up jenkins-ci for cbench ↵Tim Rozet1-4/+8
test"
2017-03-30xci: Add ansible files for sandbox aio flavorFatih Degirmenci4-0/+27
This patch adds aio opnfv host configuration playbook, inventory, variable files and so on to use until we have time to fix things more properly and some other functionality becomes available in upstream. This approach will result in duplicates but it is something we can perhaps live with. The playbook to configure opnfv host is different from the playbook used for the rest of the flavors as our target host is the opnfv host itself. This is the reason for not having target host configuration playbook. This installation of aio will be driven by upstream scripts/playbooks entirely and we just execute the scripts we have in openstack-ansible repo. Change-Id: Ica814bdac1d324414f3add382a8241de49c93a2e Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-30prototypes: bifrost: Remove ironic templatesMarkos Chandras2-158/+0
This effectively reverts d8235c3c97f4 and 7c1b8bf89d6ce since upstream has now fixed the issues reported in https://review.openstack.org/#/c/450681/ Change-Id: I35588146654d9141bc9357faa3d44e8799c5b706 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-03-30Merge "xci: Ensure using flavor inventory"Fatih Degirmenci1-0/+4
2017-03-30xci: Networking fixes to introduce role and interface varFatih Degirmenci6-57/+65
Network configuration task and accompanied handler put into a role and handler is converted to task. Distro specific var, interface, is introduced to ensure we do not hardcode the interface which might not be available. Update the templates accordingly. Change-Id: I667620fe22c93a9b20a1d8c1b7b0051d7647b591 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-30Merge "dovetail: fix wrapper disable problem"Jun Li2-6/+2
2017-03-30xci: Ensure using flavor inventoryFatih Degirmenci1-0/+4
This is needed in order to configure target hosts that are in the flavor inventory file rather than what is there by default, which is aio. Change-Id: Iab27ed71a3d7c03f8fbbec8ceb7af92259320412
2017-03-30Merge "xci: Add common and OS family ansible var files"Fatih Degirmenci6-0/+52
2017-03-30xci: Add common and OS family ansible var filesFatih Degirmenci6-0/+52
OS family vars_files are currently empty and put there to show the intend. (kind of TODO) opnfv.yml holds non-distro and non-flavor specific variables. Change-Id: I65aff2650257f2df00fd1f0a0638fd1aff596ac4 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-30Merge "bugfix: fix the docker_cleanup path"mei mei2-113/+5
2017-03-30Merge "disable TestAPI update temporarily"Serena Feng1-1/+2
2017-03-30Merge "xci: Add main playbooks and files"Fatih Degirmenci14-0/+643
2017-03-30unify raise exception processSerenaFeng4-33/+52
Change-Id: I109ef9550a57e218b6f5c9196812b33133d34134 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-03-30dovetail: fix wrapper disable problemxudan2-6/+2
JIRA: DOVETAIL-377 Since there are two wrappers in dovetail-ci-jobs.yml and dovetail-weekly-jobs.yml, respectively, the first wrapper (build-name and timeout) is disable. Combine them into one wrapper with build-name, timeout and fix-workspace-permissions. Change-Id: I4a4f766fc90612be2642bc01708d93392fb163ed Signed-off-by: xudan <xudan16@huawei.com>
2017-03-30replace self-defined http codes with standard definitionsSerenaFeng13-126/+115
Change-Id: I3045dc690e0bc1186f5c548cb533462dd03130d9 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-03-30disable TestAPI update temporarilySerenaFeng1-1/+2
recently I plan to make some effort on TestAPI, add scenario processing exceptions, perfect swaggr documents, refactor unreasonable coding...etc, all of those will not change the original process or data structure, whilst many patches will be submitted. Because there is latency during TestAPI update, and it will cause test results lost, so I think it is better to disable TestAPI automatic update for now and re-enable it when the work gets done. Change-Id: I5ceab808350a1ece500c8743622d197326aa5419 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-03-29Modify interactions with installer VM to set up jenkins-ci for cbench testJamo Luhrsen1-4/+8
- was grabbing stackrc for SDN_CONTROLLER_IP, but it actually in overcloudrc - need to skip hostkeychecking for scp operations - change permissions and ownership of /tmp/.ssh/ files so jenkins-ci can take over as the user Change-Id: I2d8f3aadfd6eff35a288a4e49eabb035bb2560ef Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
2017-03-30bugfix: fix the docker_cleanup pathyuyang2-113/+5
JIRA: RELENG-196 JIRA: BOTTLENECK-148 The path for calling docker_cleanup.sh is incorrect which causing building job fail. This patch is to fix the issue. Change-Id: I2a8ea79383123f541f4e67bc58a3f2f3e3d9beeb Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
2017-03-29xci: Add main playbooks and filesFatih Degirmenci14-0/+643
This patch adds the main/common playbooks, files, and templates to be used for all flavors. The provisioning and OpenStack installation process will be as below - provision VMs for flavor using bifrost - once the VMs are provisioned, configure-localhost.yml playbook will be run, preparing the localhost in order to ensure the right playbooks (configure-opnfvhost.yml and configure-targethosts.yml), inventory files and var files are in place before we proceed with configuring opnfv host. - after getting the right files for the flavor, opnfv host will be configured using configure-opnfvhost.yml playbook. - finally, the target hosts will be configured. - once the above process is completed, openstack-ansible playbooks will be run, setting up hosts, infrastructure and OpenStack. Change-Id: I6e08b2cfdab9627f765e6fc414917b09f953cab2 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-29Merge "prototypes: bifrost: Remove /opt/stack from previous deployments"Fatih Degirmenci4-3/+6
2017-03-29Merge "add rename scenario exceptions"Morgan Richomme2-8/+54
2017-03-29Merge "dovetail: fix wipe workspace error"Jun Li3-7/+13
2017-03-29prototypes: bifrost: Remove /opt/stack from previous deploymentsMarkos Chandras4-3/+6
/opt/stack is being created by bifrost so the destroy-env.sh script should be responsible for cleaning up all the remnants. That way we can use the destroy-env.sh script outside of Jenkins as well. Change-Id: I72d9737cf2446ff3ffc02f195337a6873eceb5c0 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-03-29Merge "Add docker-compose files and requirements"Morgan Richomme15-14/+555
2017-03-29Merge "xci: Destroy/undefine only the VMs we created"Fatih Degirmenci1-6/+2
2017-03-29Set the jobs 4 hours apartCristina Pauna1-9/+9
A non-ci pod is made ci-pod for danube release, therefore this patch modifies the cron jobs to be 4 hours apart instead of 8 This commit should be merged after the lable of the pods are changed Request: OPNFV Helpdesk #39128 Change-Id: Ic88180d01d9ea03d03b79355cd78891ad612c59b Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
2017-03-29xci: Destroy/undefine only the VMs we createdFatih Degirmenci1-6/+2
Destroying/undefining all the VMs on host might cause issues for the users. This change tries to reduce the possibility of it by removing VMs listed by vbmc. Change-Id: I5134043309722632df68a0800c6403e6f39a8d16 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-29dovetail: fix wipe workspace errorMatthewLi3-7/+13
JIRA: DOVETAIL-377 workspace wipe clean error log https://build.opnfv.org/ci/job/dovetail-compass-virtual-debug-master/365/console this is caused of wrong permissions with files under $WORKSPACE seems the former method in dovetail-run not take effects(log into host, it's still root:root, not $USER:$USER_GROUP) use global fix workspace permission in wrapper to replace former method Change-Id: I6ceaaf630590666f3b3db5f2628334879df2b8fb Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
2017-03-29Merge "Make prescm step workspace permission fix a macro available to all"Fatih Degirmenci2-12/+9
2017-03-29add rename scenario exceptionsSerenaFeng2-8/+54
JIRA: RELENG-163 Change-Id: I680a181a3c1728034e5782de4bc65cc07f64540c Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-03-29Merge "bugfix: Bottlencks cleanup docker-compose dockers"mei mei2-110/+123
2017-03-29Make prescm step workspace permission fix a macro available to allFatih Degirmenci2-12/+9
bifrost-verify jobs have been using this without issues and it is needed for many other jobs in order to avoid unnecessary failures. This change makes workspace permission fix prescm step a macro. Change-Id: Ib5678dbf21c17ce640a600d2a06ebed9674663fa Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-29Merge "keep methods' name/docstring after decorator"Serena Feng2-0/+7
2017-03-29prototypes: bifrost: Fix Ironic drivers for VMsMarkos Chandras1-1/+1
Commit d8235c3c97f4("Set database pool_size in ironic.conf and inspector.conf templates") added a copy of the ironic.conf.j2 template file to workaround an upstream bug but it also changed the default ironic drivers leading to broken introspection. We use virtual BMC for controlling the VMs and this expects ipmi ironic drivers so we fix that. Change-Id: Ibb2cc58738ec1693e136bdce7335cd1b861ec613 Fixes: d8235c3c97f4("Set database pool_size in ironic.conf and inspector.conf templates") Signed-off-by: Markos Chandras <mchandras@suse.de>