Skip to content

Commit 1684021

Browse files
committed
fix merge conflict
2 parents 807aea3 + a815751 commit 1684021

File tree

609 files changed

+13780
-5378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

609 files changed

+13780
-5378
lines changed

.codeclimate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
exclude_patterns:
3-
- "scripts/jenkins/ardana/ansible/roles/heat_stack/library/ecp_os_stack.py"
3+
- "scripts/jenkins/cloud/ansible/roles/heat_stack/library/ecp_os_stack.py"

.dir-locals.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
;;; Directory Local Variables
2+
;;; For more information see (info "(emacs) Directory Variables")
3+
4+
((sh-mode
5+
((sh-basic-offset . 4))))

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,14 @@ mkcloud.*
2424
.artifacts
2525
pids/
2626
screenlog*
27+
.byebug_history
28+
29+
scripts/jenkins/cloud/manual/ansible-venv
30+
scripts/jenkins/cloud/manual/mitogen
31+
scripts/jenkins/cloud/ansible/ansible_facts
32+
scripts/jenkins/cloud/ansible/*-virt-config.yml
33+
scripts/jenkins/cloud/ansible/input_model
34+
scripts/jenkins/cloud/ansible/heat-stack-*.yml
35+
36+
scripts/jenkins/ses/ansible/ansible_facts
37+
scripts/jenkins/ses/ansible/ses-stack-template.yml

.travis.yml

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,51 @@
1-
language: bash
2-
sudo: required
3-
install:
4-
- make install
5-
script:
6-
- make test
1+
dist: xenial
2+
3+
matrix:
4+
include:
5+
- name: "Validate Filenames"
6+
language: minimal
7+
script:
8+
- make filecheck
9+
- name: "Validate Bash (bashate, roundup)"
10+
language: python
11+
install:
12+
- pip install bashate
13+
- git clone https://github.com/SUSE-Cloud/roundup
14+
- pushd roundup
15+
- ./configure
16+
- make
17+
- sudo make install
18+
- popd
19+
script:
20+
- make bashate
21+
- make rounduptest
22+
- name: "Validate Perl (Syntax)"
23+
language: minimal
24+
addons:
25+
apt:
26+
packages:
27+
- libxml-libxml-perl
28+
- libjson-perl
29+
- libjson-xs-perl
30+
- libwww-perl
31+
script:
32+
- make perlcheck
33+
- name: "Validate Ruby (Syntax)"
34+
language: ruby
35+
script:
36+
- make rubycheck
37+
- name: "Validate Python (Syntax, Unit, flake8)"
38+
language: python
39+
install:
40+
- pip install flake8
41+
- pip install flake8-import-order
42+
script:
43+
- make pythoncheck
44+
- make python_unittest
45+
- make flake8
46+
- name: "Validate Jenkins (jjb)"
47+
language: python
48+
install:
49+
- pip install 'jenkins-job-builder!=3.0.0'
50+
script:
51+
- make jjb_test

Makefile

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,19 @@ filecheck:
1111
xargs grep $$'\t'
1212

1313
bashate:
14-
cd scripts && \
1514
for f in \
16-
*.sh mkcloud mkchroot repochecker \
17-
jenkins/{update_automation,*.sh} \
18-
../hostscripts/ci1/* ../hostscripts/clouddata/syncSLErepos ../mkcloudruns/*/[^R]*;\
15+
`find -name \*.sh` \
16+
hostscripts/ci1/* \
17+
hostscripts/clouddata/{syncSLErepos,syncgitrepos} \
18+
hostscripts/gatehost/{sudo-freshadminvm,freshadminvm} \
19+
hostscripts/nagios/ci-o-o \
20+
mkcloudruns/*/[^R]*\
21+
scripts/{mkcloud,mkchroot,repochecker} \
22+
scripts/jenkins/update_automation \
23+
scripts/mkcloudhost/{runtestn,mkcloud_free_pool,mkcloude,fixlibvirt,generate-radvd-conf} \
24+
scripts/mkcloudhost/{runtestmulticloud,boot.local,boot.mkcloud,mkcloud_reserve_pool,runtestn} \
25+
scripts/mkcloudhost/{routed.cloud,hacloud.common,cloudrc.host,cloudfunc} \
26+
; \
1927
do \
2028
echo "checking $$f"; \
2129
bash -n $$f || exit 3; \
@@ -25,7 +33,7 @@ bashate:
2533

2634
perlcheck:
2735
cd scripts && \
28-
for f in `find -name \*.pl` jenkins/{apicheck,grep,japi} mkcloudhost/allocpool ; \
36+
for f in `find -name \*.pl` jenkins/{apicheck,grep,japi} mkcloudhost/{allocpool,correlatevirsh} ; \
2937
do \
3038
perl -wc $$f || exit 2; \
3139
done
@@ -39,21 +47,24 @@ rubycheck:
3947
pythoncheck:
4048
for f in `find -name \*.py` scripts/lib/libvirt/{admin-config,cleanup,compute-config,net-config,net-start,vm-start} scripts/jenkins/jenkins-job-trigger; \
4149
do \
42-
python -m py_compile $$f || exit 22; \
50+
python2 -m py_compile $$f || exit 22; \
51+
python3 -m py_compile $$f || exit 22; \
4352
done
4453

4554
rounduptest:
4655
cd scripts && roundup
4756
cd scripts/jenkins && roundup
4857

4958
flake8:
50-
flake8 scripts/ hostscripts/soc-ci/soc-ci
59+
flake8 .
5160

5261
python_unittest:
53-
python -m unittest discover -v -s scripts/lib/libvirt/
62+
python2 -m unittest discover -v
63+
python3 -m unittest discover -v
5464

5565
gerrit-project-regexp:
56-
scripts/jenkins/ardana/gerrit/project-map2project-regexp.py > jenkins/ci.suse.de/gerrit-project-regexp.txt
66+
scripts/jenkins/cloud/gerrit/project-map2project-regexp.py master > jenkins/ci.suse.de/gerrit-project-regexp-cloud9.txt
67+
scripts/jenkins/cloud/gerrit/project-map2project-regexp.py stable/pike > jenkins/ci.suse.de/gerrit-project-regexp-cloud8.txt
5768

5869
jjb_test: gerrit-project-regexp
5970
jenkins-jobs --ignore-cache test jenkins/ci.suse.de:jenkins/ci.suse.de/templates/ cloud* openstack* > /dev/null
@@ -65,23 +76,15 @@ cisd_deploy: gerrit-project-regexp
6576
cioo_deploy:
6677
jenkins-jobs --conf /etc/jenkins_jobs/jenkins_jobs-cioo.ini update jenkins/ci.opensuse.org:jenkins/ci.opensuse.org/templates/ openstack*
6778

68-
# for travis-CI:
69-
install: debianinstall genericinstall
70-
71-
debianinstall:
72-
sudo apt-get update -qq
73-
sudo apt-get -y install libxml-libxml-perl libjson-perl libjson-xs-perl python-libvirt
74-
75-
suseinstall:
76-
sudo zypper install perl-JSON-XS perl-libxml-perl python-pip libvirt-python
79+
shellcheck:
80+
shellcheck `grep -Erl '^#! ?/bin/b?a?sh'`
7781

78-
genericinstall:
79-
sudo pip install -U 'pbr>=2.0.0,!=2.1.0' bashate 'flake8<3.0.0' flake8-import-order jenkins-job-builder requests
82+
install:
83+
sudo zypper install perl-JSON-XS perl-libxml-perl perl-libwww-perl python-pip python3-pip libvirt-python python3-libvirt-python
84+
sudo pip2 install -U bashate flake8 flake8-import-order jenkins-job-builder
85+
sudo pip3 install -U bashate flake8 flake8-import-order jenkins-job-builder
8086
git clone https://github.com/SUSE-Cloud/roundup && \
8187
cd roundup && \
8288
./configure && \
8389
make && \
8490
sudo make install
85-
86-
shellcheck:
87-
shellcheck `grep -Erl '^#! ?/bin/b?a?sh'`

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ This project has several scripts for different automated tasks. Some of them are
1616

1717
# Documentation
1818

19-
## Crowbar deployments
19+
## Crowbar mkcloud deployments
2020

2121
Find out more in [`/docs/mkcloud.md`](docs/mkcloud.md)
2222

23-
## Ardana deployments
23+
## Unified Cloud deployments
2424

2525
Find out more in [`/docs/ardana/`](docs/ardana/)
2626

docs/ardana/rpm-file-checks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Ardana deployment (including a tempest run, if deployment succeeded),
88
and comparing the results. If any tampering is discovered, `init.yml`
99
will fail with a helpful error.
1010

11-
[Whitelists](../../scripts/jenkins/ardana/ansible/files/) are used to
11+
[Whitelists](../../scripts/jenkins/cloud/ansible/files/) are used to
1212
ignore known exceptions, some of which need to be fixed in the future.
1313

1414
## Testing changes to the checks
1515

1616
[The `test-post-deployment-checks.yml`
17-
playbook](../../scripts/jenkins/ardana/ansible/test-post-deployment-checks.yml)
17+
playbook](../../scripts/jenkins/cloud/ansible/test-post-deployment-checks.yml)
1818
is also provided for rapid repeated testing of the post-deployment
1919
checks, without having to deploy an entire fresh cloud each time:
2020

@@ -47,7 +47,7 @@ checks, without having to deploy an entire fresh cloud each time:
4747
git fetch myremote
4848
git reset --hard myremote/mybranch
4949

50-
- `cd scripts/jenkins/ardana/ansible/`
50+
- `cd scripts/jenkins/cloud/ansible/`
5151

5252
- Run the following command, replacing the temporary directory with
5353
the one you identified above:

0 commit comments

Comments
 (0)