Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IGNORE THIS - DO NOT MERGE] ht main compare #95

Draft
wants to merge 623 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
623 commits
Select commit Hold shift + click to select a range
4a5220c
Merge branch 'acs_4.12' into cca_4.12
Jan 14, 2019
54f31a6
Merge branch 'acs_4.12' into cca_4.12
Jan 21, 2019
c0fda46
Merge branch 'acs_4.12' into cca_4.12
Jan 23, 2019
cf0a157
Merge branch 'acs_4.12' into cca_4.12
Jan 25, 2019
134345a
Merge branch 'acs_4.12' into cca_4.12
Jan 28, 2019
8ad7033
Merge branch 'master' into cca_4.12
Feb 18, 2019
951179b
Fix merge error
Feb 18, 2019
e1908ce
Merge branch 'acs_4.12' into cca_4.12
Mar 11, 2019
e3d32a1
Merge branch 'acs_4.12' into cca_4.12
Mar 18, 2019
23d16f7
Merge branch 'acs_4.12' into cca_4.12
Mar 20, 2019
d8855b3
Updating pom.xml version numbers for release 4.12.0.0-cca
Mar 20, 2019
a7fe7a8
Updating pom.xml version numbers for release 4.12.0.1-cca-SNAPSHOT
Mar 21, 2019
d13fc13
Merge branch 'acs_4.12' into cca_4.12
Mar 25, 2019
f0d0e13
Merge branch 'acs_4.12' into cca_4.12
Mar 27, 2019
345f42d
Update systemvmtemplate ISO
Apr 2, 2019
18a54b7
Merge branch 'acs_4.12' into cca_4.12
Apr 8, 2019
d7ae521
Merge branch 'acs_4.12' into cca_4.12
Apr 9, 2019
559d72b
Add schema path for 4.10.0.235 to 4.10.0.236
Apr 15, 2019
0a8c844
Start VPN service on VR as of the same type it had not global
Apr 15, 2019
8f596b7
Add schema path for 4.10.0.236 to 4.10.0.237
Apr 15, 2019
52bfac7
Add schema path for 4.10.0.237 to 4.10.0.238
Apr 15, 2019
72cca51
Calculate core-per-socket number
Apr 15, 2019
1620309
Whitelist VR traffic
Apr 15, 2019
972802f
Add schema path for 4.10.0.238 to 4.10.0.239
Apr 15, 2019
8efb005
Merge branch 'merge-forward' into 'cca_4.12'
Apr 15, 2019
fdc226e
Fix swift paths to upload artifacts
Apr 16, 2019
7b344cc
Add missing fields to disk_offering_view
Apr 16, 2019
fa04ecf
Add 'acs2' environment
Apr 16, 2019
42df662
Merge branch 'fix-disk-offering' into 'cca_4.12'
Apr 16, 2019
7d54cf4
Fix path when pushing systemvm template to swift
Apr 17, 2019
49b04bd
Do not add comments with double quotes
May 7, 2019
1df61af
Add Nvidia Tesla V100
May 7, 2019
fc54ea0
Merge branch 'acs_4.12' into cca_4.12
May 14, 2019
f57b7bf
Add Ubuntu 18.04, 18.10, 19.04 guest OS
May 14, 2019
7e95317
Merge branch 'add-new-ubuntu-os-type' into 'cca_4.12'
May 14, 2019
14f8cc0
Merge branch 'acs_4.12' into cca_4.12
May 24, 2019
d7fbd52
Merge branch 'acs_4.12' into cca_4.12
May 30, 2019
21283d0
Merge branch 'acs_4.12' into cca_4.12
May 31, 2019
b3a2f3d
Merge branch 'acs_4.12' into cca_4.12
Jun 3, 2019
6b49259
Merge branch 'acs_4.12' into cca_4.12
Jun 10, 2019
879f3ca
Merge branch 'acs_4.12' into cca_4.12
Jun 17, 2019
1df4340
Merge branch 'acs_4.12' into cca_4.12
Jun 20, 2019
bff9317
Merge branch 'acs_4.12' into cca_4.12
Jun 26, 2019
82bb6a5
Merge branch 'acs_4.12' into cca_4.12
Jul 2, 2019
58977d0
Merge branch 'acs_4.12' into cca_4.12
Jul 4, 2019
f82c2dd
Fix URL of systemvm template ISO
Aug 7, 2019
37bdabc
Merge branch 'fix-systemvm-template' into 'cca_4.12'
Aug 7, 2019
6c8f06c
Print out systemvm template URL when pushed to swift
Aug 8, 2019
cefe306
Merge branch 'fix-systemvm-template' into 'cca_4.12'
Aug 8, 2019
f00ecab
Fix merge forward conflict issue
Aug 13, 2019
4941cc7
Merge branch 'fix-merge-conflict' into 'cca_4.12'
Aug 13, 2019
d2f94f8
Database upgrade path 4.10.0.239 -> 4.10.0.240 -> 4.11.0.0
Aug 14, 2019
6b8c1d7
Do not attempt to upgrade systemvm template to 4.11.3.0
Aug 15, 2019
f4a69a9
Added Datera to storage plugin pom.
Sep 5, 2019
9730c48
Add missing datera plugin in client/pom
Sep 5, 2019
7c20c4a
Fix datera plugin version
Sep 5, 2019
55529bd
Add missing function to DateraPrimaryDataStoreDriver
Sep 11, 2019
ceba2c7
Merge branch 'fix-datera' into 'cca_4.12'
Sep 11, 2019
bfd5caa
Fix slow vm creation when large sf snapshot count
May 22, 2019
b7392aa
Merge branch 'fix-slow-vm-creation' into 'cca_4.12'
Sep 11, 2019
437447b
Add missing vpn certificate download button
Sep 23, 2019
70aa5e6
Merge branch 'ike-cert-ui' into 'cca_4.12'
Sep 23, 2019
8154d3d
Update swift credential
Sep 23, 2019
e7634f4
Updating pom.xml version numbers for release 4.12.0.1-cca
Oct 4, 2019
8a4c6f1
Updating pom.xml version numbers for release 4.12.0.2-cca-SNAPSHOT
Oct 4, 2019
4deae4b
schema: add 4.12.0.1 to 4.12.0.2
Oct 4, 2019
05e294d
Added cleanup for Ubuntu 18.04, 18.10, and 19.04 for Xenserver, added…
Oct 10, 2019
34a123c
Merge branch 'ubuntu-18-19-windows-2019-xenserver-sql' into 'cca_4.12'
Oct 10, 2019
a968576
Updating pom.xml version numbers for release 4.12.0.2-cca
Oct 10, 2019
57c62ed
Updating pom.xml version numbers for release 4.12.0.3-cca-SNAPSHOT
Oct 11, 2019
6a2c08f
schema: add 4.12.0.2 to 4.12.0.3
Oct 11, 2019
7cba0b1
Add missing pool to 'DeleteStoragePoolCommand' command
Nov 8, 2019
1a97f70
Merge branch 'fix-solidfire-issue' into 'cca_4.12'
pdion891 Nov 8, 2019
867fca0
Updating pom.xml version numbers for release 4.12.0.3-cca
Nov 11, 2019
5d6d68f
Updating pom.xml version numbers for release 4.12.0.4-cca-SNAPSHOT
Nov 11, 2019
0397d38
schema: add 4.12.0.3 to 4.12.0.4
Nov 13, 2019
0a35603
add NetScaler vpx OS type for xenserver
pdion891 Nov 19, 2019
c7130d3
Merge branch 'cca_41204-ostypevpx' into 'cca_4.12'
Nov 19, 2019
d59c298
Fix logrotate
Nov 29, 2019
e1b6738
Merge branch 'fix-logrotate' into 'cca_4.12'
Nov 29, 2019
fa7e955
Fixed that postrouting rule for iptables is only applied if the sourc…
Dec 2, 2019
2488f76
Merge branch 'port-forwarding-fix' into 'cca_4.12'
Dec 2, 2019
4e22e2b
Updating pom.xml version numbers for release 4.12.0.4-cca
Dec 2, 2019
a29db85
Updating pom.xml version numbers for release 4.12.0.5-cca-SNAPSHOT
Dec 11, 2019
e0a77f0
schema: add 4.12.0.4 to 4.12.0.5
Dec 11, 2019
a76eb9e
Enabling MAAS integration
Dec 12, 2019
300c48a
Merge branch 'maas-merge-forward' into 'cca_4.12'
Dec 12, 2019
e824be5
Consider HostTag on BareMetalPlanner to select a host
Dec 16, 2019
81d96d3
Merge branch 'filter-bm-by-tags' into 'cca_4.12'
Dec 16, 2019
7e0d201
Reverted to old functionality for all except source_nats to fix hairp…
Jan 9, 2020
c754bc5
Merge branch 'port-forwarding-fix-without-crashes' into 'cca_4.12'
Jan 9, 2020
cbda360
Enable config to control MaaS disk erasure on release
Jan 10, 2020
a78d6cd
Merge branch 'maas-disk-erase-config' into 'cca_4.12'
Jan 10, 2020
622ac62
Update configuration.js
csoucy Jan 16, 2020
5c44d09
Update configuration.js
csoucy Jan 16, 2020
152de80
adding new GPU model Tesla T4
csoucy Jan 15, 2020
b380727
Update configuration.js
csoucy Jan 15, 2020
1ca5298
Update configuration.js
csoucy Jan 16, 2020
4c3c0d3
Merge branch 'tesla-t4-vgpu' into 'cca_4.12'
Jan 16, 2020
e2d128e
Fix typo in configuration.js file
Jan 16, 2020
fe32dc3
List maas serviceoffering api
Jan 24, 2020
3fc6757
Merge branch 'list-maas-serviceoffering-api' into 'cca_4.12'
Jan 24, 2020
5121505
Do not read baremetal external URL from global setting if the type is…
Jan 24, 2020
1ba54b8
Merge branch 'bm-external-url' into 'cca_4.12'
Jan 24, 2020
5862c1f
add missing rule for port forwarding rule in vpc
Feb 4, 2020
866a398
Merge branch 'hairpinning-4.13' into 'cca_4.12'
Feb 4, 2020
a290bcc
Extract VLANs based on the provided name
Feb 6, 2020
5a8f51f
Merge branch 'extract-vlan-properly' into 'cca_4.12'
Feb 6, 2020
293fe07
Revert "Merge branch 'extract-vlan-properly' into 'cca_4.12'"
Feb 6, 2020
d3a69fa
Updated initial iptables rules so that Netfilter wouldn't delete them…
Feb 4, 2020
def17c4
Merge branch 'fix-vr-reboot-issue' into 'cca_4.12'
Feb 6, 2020
fdc8753
Updating pom.xml version numbers for release 4.12.0.5-cca
Feb 6, 2020
532d416
Merge verify and rpm jobs together
Feb 10, 2020
2e23877
Merge branch 'fix-pipeline' into 'cca_4.12'
Feb 10, 2020
a692560
Updating pom.xml version numbers for release 4.12.0.6-cca-SNAPSHOT
Feb 13, 2020
b600b05
schema: add 4.12.0.5 to 4.12.0.6
Feb 13, 2020
42e6ca5
server: Add option 'details' to listProjects and listAccounts (#3331)
Mar 19, 2020
f1edfcb
Merge branch 'fix/listProject' into 'cca_4.12'
Mar 19, 2020
b441d3c
Improve performance and process of releasing VLANs
Mar 30, 2020
e5e3c14
Merge branch 'extract-vlan-properly' into 'cca_4.12'
Mar 30, 2020
1ffdc9d
Fix build credentials
Apr 23, 2020
bfd5d79
Merge branch 'fix/buildCreds' into 'cca_4.12'
Apr 23, 2020
2bdfbbf
Do not log responses from MaaS server
Jan 7, 2020
6492ecb
Merge branch 'remove-debug-log-items' into 'cca_4.12'
Apr 23, 2020
69a3887
fix log sentence and typo
pdion891 Jan 6, 2020
1191e01
Merge branch 'minifix' into 'cca_4.12'
Apr 23, 2020
0a55b2b
Adding XenServer 8.1 hypervisor capabilities
Apr 23, 2020
78b29bf
Merge branch 'dev/xenserver81' into 'cca_4.12'
Apr 23, 2020
44eb57f
bare-metal: managed LLDP on maaspxe network
Apr 23, 2020
b0b5924
Merge branch 'dev/lldpMaaspxe' into 'cca_4.12'
Apr 23, 2020
9c2e1c6
Deleting VLAN only when untagged
May 8, 2020
51c1cd4
Merge branch 'fix/bmVlan' into 'cca_4.12'
May 11, 2020
81f8ded
Changed XenServer to new name
May 19, 2020
dfc00be
Merge branch 'fix/xen81' into 'cca_4.12'
May 20, 2020
bbaa5c7
Updating pom.xml version numbers for release 4.12.0.6-cca
May 20, 2020
e166187
Updating pom.xml version numbers for release 4.12.0.7-cca-SNAPSHOT
May 20, 2020
a00743b
Slight redesign of maas service offering API
May 21, 2020
8e5db54
Merge branch 'fix-mass-api' into 'cca_4.12'
May 21, 2020
79152bc
Fixed multiple connections not closing on error
May 25, 2020
fdca426
Merge branch 'fix/stuckConnections' into 'cca_4.12'
May 25, 2020
8d851e3
Releasing 4.12.0.7
May 28, 2020
d2dc8ff
Incremented to next version
May 28, 2020
a971d40
Fixing volume migration not matching tags
Jun 5, 2020
4280285
Merge branch 'fix/migratePool' into 'cca_4.12'
Jun 5, 2020
ca6f1a9
Fix for the share template
Jun 5, 2020
ed5e427
Merge branch 'fix/shareTemplate' into 'cca_4.12'
Jun 5, 2020
14859ab
Releasing version 4.12.0.8-cca
Jun 8, 2020
d187e64
Incrementing for next version
Jun 8, 2020
755104c
Fix for recalculating meta data when scaling
Jun 18, 2020
59d9a68
Merge branch 'fix/vmMetaOnScale' into 'cca_4.12'
Jun 18, 2020
bbca6bd
Added old permission for sub domains
Jun 15, 2020
053f3a0
Added old permission for sub domains
Jun 18, 2020
d522fbb
Waiting for first iptables command to finish
Jul 20, 2020
a3bdce2
Merge branch 'fix/ipTabWait' into 'cca_4.12'
Jul 20, 2020
5208b69
Removed logs
Jul 20, 2020
e3ab62f
Release for 4.12.0.9-cca
Jul 20, 2020
4ee32e1
Removed import
Jul 20, 2020
a671c73
Incrementing for next version
Jul 20, 2020
830123e
Changes to be able to boot from a pxe server on the network.
Aug 19, 2020
74f7739
Merge branch 'dev/pxeNetBoot' into 'cca_4.12'
Aug 19, 2020
f11fbec
Using VM pod and cluster id when volume metadata is missing.
Aug 24, 2020
2690d42
Merge branch 'fix/vdipurlonPure' into 'cca_4.12'
Aug 24, 2020
46b992c
Added xenserver 8.2 inserts
Aug 24, 2020
1739aeb
Merge branch 'dev/xen82Support' into 'cca_4.12'
Aug 24, 2020
ef56677
Release 4.12.0.10-cca
Aug 26, 2020
4e5fc6e
Incremented for new version
Aug 28, 2020
50f8941
Removed required for network boot ip
Aug 31, 2020
0228c6f
Merge branch 'fix/vpcCreate' into 'cca_4.12'
Aug 31, 2020
617e77b
Release 4.12.0.11
Aug 31, 2020
0c2d2ff
Preparing new version
Sep 3, 2020
c46d049
Fix required for vpc update
Sep 3, 2020
2694b63
Merge branch 'fix/vpcModif' into 'cca_4.12'
Sep 3, 2020
6707f62
Setting proper version
Sep 3, 2020
1f48586
Releasing 4.12.0.12-cca
Sep 3, 2020
93a0630
Incremented version
Sep 3, 2020
e42d717
Fix for npe in remove storage
Sep 9, 2020
5cb2d93
Merge branch 'fix/npeRMStorage' into 'cca_4.12'
Sep 11, 2020
fed38f6
Fix pxe boot
Jan 11, 2021
fa547c2
Merge branch 'fix/pxeboot' into 'cca_4.12'
Jan 11, 2021
f1efd67
Fix data volume import / export functionality when using swift as sec…
skattoju4 Jan 25, 2021
3fabcc4
Merge branch 'fix_data_volume_import_export_swift' into 'cca_4.12'
skattoju4 Jan 25, 2021
07d4e3c
Source NAT Ip switch
Jan 28, 2021
06bdd83
Merge branch 'dev/sourceNatSwitch' into 'cca_4.12'
Jan 28, 2021
7514dab
releasing 4.12.0.13-cca
Jan 28, 2021
aded637
Changing version for next release
Jan 28, 2021
58b7908
Releasing 4.12.0.14-cca
Feb 2, 2021
9247df2
Preparing for next release
Feb 3, 2021
6400a09
Splitting comma for netwok usage
Feb 3, 2021
c2bf29c
fix copy template from swift issue
skattoju4 Feb 24, 2021
c1c3e59
Releasing 4.12.0.15-cca
skattoju4 Mar 1, 2021
c1872db
Preparing for next release
skattoju4 Mar 1, 2021
4b60aa2
Releasing 4.12.0.16-cca
skattoju4 Mar 1, 2021
897f691
Adding delemiter to end of usage
Feb 3, 2021
717545e
Merge branch 'fix/vpcNetUsage' into 'cca_4.12'
Mar 2, 2021
5df2caf
Preparing for next release
skattoju4 Mar 2, 2021
d4fa503
Zeroing out the the usage when error
Mar 9, 2021
a6d40fd
Merge branch 'fix/usageNetwork' into 'cca_4.12'
Mar 11, 2021
2cd627c
Releasing 4.12.0.17-cca
Mar 11, 2021
58bad3b
Incrementing to new version
Mar 11, 2021
21ff283
added acs3 and acs4 as deploy targets to .gitlab-ci.yml
skattoju4 Mar 11, 2021
759b414
Update the VDI.introduce API call
syed Dec 10, 2020
338ebbd
Merge branch 'cca_4.12_xs8_fix' into 'cca_4.12'
skattoju4 Apr 1, 2021
acf61e2
fix env name .gitlab-ci.yml
skattoju4 Apr 1, 2021
b384fcb
create Volume Access Groups per cluster instead of CloudStack-RandomU…
skattoju4 Jun 2, 2020
f1de38b
Merge branch 'solidfire_access_groups_with_cluster_uuid' into 'cca_4.12'
skattoju4 Apr 23, 2021
acc118b
Fixing VR configurations for BM
Jun 10, 2021
f00182b
Merge branch 'fix/vrMissConfig' into 'cca_4.12'
Jun 10, 2021
8977485
Adding logs and fixing zombie storage
Jun 2, 2021
37f229c
Merge branch 'fix/zombieStorage' into 'cca_4.12'
Jun 10, 2021
6d7efef
Releasing 4.12.0.18-cca
Jun 10, 2021
8ee62bf
Incrementing to new snapshot
Jun 10, 2021
7a72078
Adding logs when switch connection errors
Jun 18, 2021
2f98037
Merge branch 'fix/switchLogs' into 'cca_4.12'
Jun 23, 2021
d9eda80
Changed BM maas pool name api constant to proper one
Jun 17, 2021
0f67cd3
Merge branch 'fix/maasClusterPool' into 'cca_4.12'
Jun 23, 2021
015e0c7
Reverting vdi call
Jun 23, 2021
d42e42f
Merge branch 'fix/slowVR' into 'cca_4.12'
Jun 23, 2021
4010ce0
Releasing 4.12.0.19-cca
Jun 23, 2021
eb61473
Incrementing version
Jun 28, 2021
0731dd9
mvn test
pdion891 Aug 11, 2021
76fee0d
Revert "mvn test"
pdion891 Aug 11, 2021
5da7865
Synchronizing list
Aug 18, 2021
21002d5
Merge branch 'fix/hostMonitorsSync' into 'cca_4.12'
Aug 26, 2021
70964b2
Adding config variables and removing extra retry
Aug 9, 2021
417f01d
Merge branch 'fix/ipmiPing' into 'cca_4.12'
Aug 26, 2021
f3e86e5
Releasing 4.12.0.20-cca
Aug 30, 2021
44cb424
Increment next version
Aug 30, 2021
605fbe6
Merge branch 'cca_4.12' into ak-ht-rebase
shwstppr Jun 28, 2022
5ab2870
Merge branch 'ak-ht-rebase-4.13' into ak-ht-rebasemain
shwstppr Jul 1, 2022
017eedb
fixes for build failures
shwstppr Jul 1, 2022
22c9644
fix duplicate dependency
shwstppr Jul 7, 2022
6063506
engine/schema: fix upgrade path for exising guestos mappings
shwstppr Jul 7, 2022
52875e7
comment locally added dependency
shwstppr Jul 7, 2022
a2103d5
fix packaging
shwstppr Jul 7, 2022
7b406ad
refactor for correct checks
shwstppr Jul 7, 2022
deff55a
fix test with correct values
shwstppr Jul 7, 2022
eed42ed
disable tests, need usage fix
shwstppr Jul 7, 2022
1b3d09a
Merge branch 'main' into ak-ht-rebasemain
shwstppr Jul 7, 2022
e44b090
fix template_view
shwstppr Jul 7, 2022
ad2953c
db issue fix
shwstppr Jul 11, 2022
1393aaf
fix template copy size npe
shwstppr Jul 11, 2022
cecf112
fix for diskoffering error
shwstppr Jul 12, 2022
ba8f683
Merge branch 'main' into ak-ht-rebasemain
shwstppr Jul 18, 2022
441921b
Merge branch 'main' into ak-ht-rebasemain
shwstppr Jul 19, 2022
052ceb7
upgrade fix
shwstppr Jul 26, 2022
8f25244
Merge branch 'main' into ak-ht-rebasemain
shwstppr Jul 26, 2022
4fb8bd1
Merge branch 'main' into ak-ht-rebasemain
shwstppr Aug 9, 2022
0b0fffa
Merge branch 'main' into ak-ht-rebasemain
shwstppr Aug 25, 2022
1da3806
Merge branch 'main' into ak-ht-rebasemain
shwstppr Sep 1, 2022
3ab3f97
Merge branch 'main' into ak-ht-rebasemain
shwstppr Sep 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
384 changes: 384 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,384 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

image: khos2ow/ci-cd-tools:latest

# Define CI stages
stages:
- test
- archive
- integration
- deploy

# Global Variables
variables:
GIT_DEPTH: "40"
MAVEN_OPTS: '-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=INFO
-Dorg.slf4j.simpleLogger.showDateTime=true
-Djava.awt.headless=true
-Dmaven.repo.local=/root/.m2/repository'

.load_rpm_swift_function: &LOAD_REPO_SWIFT |
function load_swift() {
export OS_USERNAME=cloudops-pdion
export OS_TENANT_NAME=cloudops-jenkins-swift
export OS_PASSWORD=Vr8ySJw8PosU6s1V
export OS_AUTH_URL=https://auth-qc.cloud.ca/v2.0
export OS_REGION_NAME=east
}

.load_template_swift_function: &LOAD_TEMPLATE_SWIFT |
function load_swift() {
export OS_USERNAME=cloudops-pdion
export OS_TENANT_NAME=cloudops-jenkins
export OS_PASSWORD=Vr8ySJw8PosU6s1V
export OS_AUTH_URL=https://auth-qc.cloud.ca/v2.0
export OS_REGION_NAME=east
}

.yum_repo_path_function: &YUM_REPO_PATH |
function yum_repo_path() {
if [ "${CI_PROJECT_NAMESPACE}" = "dev" ]; then
if [ -n "${CI_COMMIT_TAG}" ]; then
local version=$(cd ${CI_PROJECT_DIR}; mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
local major_version=`echo ${version} | cut -d. -f1`.`echo ${version} | cut -d. -f2`
local os_target="centos7"

case "$version" in
*"-SNAPSHOT") local stable_prefix="unstable" ;;
*) local stable_prefix="stable" ;;
esac

echo "${stable_prefix}/${major_version}/${os_target}"
elif [ "${CI_COMMIT_REF_NAME}" = "cca_4.12" -o "${CI_COMMIT_REF_NAME}" = "cca_4.11" -o "${CI_COMMIT_REF_NAME}" = "cca_4.10" ]; then
local version=$(cd ${CI_PROJECT_DIR}; mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
local major_version=`echo ${version} | cut -d. -f1`.`echo ${version} | cut -d. -f2`
local os_target="centos7"

case "$version" in
*"-SNAPSHOT") local stable_prefix="unstable" ;;
*) local stable_prefix="stable" ;;
esac

echo "${stable_prefix}/${major_version}/${os_target}"
else
echo "dev/${CI_COMMIT_REF_NAME}"
fi
else
echo "dev/${CI_COMMIT_REF_NAME}"
fi
}

.template_path_function: &TEMPLATE_PATH |
function template_path() {
if [ "${CI_PROJECT_NAMESPACE}" = "dev" ]; then
if [ "${CI_COMMIT_REF_NAME}" = "cca_4.12" -o "${CI_COMMIT_REF_NAME}" = "cca_4.11" -o "${CI_COMMIT_REF_NAME}" = "cca_4.10" ]; then
local version=$(cd ${CI_PROJECT_DIR}; mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
local major_version=`echo ${version} | cut -d. -f1`.`echo ${version} | cut -d. -f2`

case "$version" in
*"-SNAPSHOT") local stable_prefix="unstable" ;;
*) local stable_prefix="stable" ;;
esac

echo "${stable_prefix}/${major_version}"
else
echo "dev/${CI_COMMIT_REF_NAME}"
fi
else
echo "dev/${CI_COMMIT_REF_NAME}"
fi
}

# RAT checks
Audit:
image:
name: khos2ow/cloudstack-rpm-builder:centos7
entrypoint: ["/bin/bash", "-l", "-c"]
stage: test
before_script:
- environment-info.sh
script:
- mvn --activate-profiles developer,systemvm -Dsimulator --projects='org.apache.cloudstack:cloudstack' clean org.apache.rat:apache-rat-plugin:0.12:check
artifacts:
name: "audit_report_${CI_BUILD_REF_SLUG}"
paths:
- "target/rat.txt"
when: on_failure
expire_in: 1 day
only:
- branches
tags:
- java

# Archive RPMs to object storage
RPM:
image:
name: khos2ow/cloudstack-rpm-builder:centos7
entrypoint: ["/bin/bash", "-l", "-c"]
stage: archive
before_script:
- environment-info.sh
- pip3 install python-swiftclient
- pip3 install python-keystoneclient
- *LOAD_REPO_SWIFT
- *YUM_REPO_PATH
script:
# worksaround for SSLHandshakeException issue, https://github.com/apache/cloudstack/issues/2682#issuecomment-392973706
- cat ${CI_PROJECT_DIR}/client/conf/java.security.ciphers.in >> /usr/lib/jvm/java-1.8.0-openjdk/jre/lib/security/java.security

# download required vhd-util file, if it doesn't exist
- wget http://download.cloudstack.org/tools/vhd-util --directory-prefix=${CI_PROJECT_DIR}/scripts/vm/hypervisor/xenserver

# do the packaging and creating RPMs
- /usr/local/bin/docker-entrypoint.sh --workspace-path ${CI_PROJECT_DIR} --distribution centos7 --use-timestamp

# upload RPMs to swift object storage
- |
load_swift

swift_path=`yum_repo_path`
namespace="cloudstack"

# upload to swift
swift post ${namespace} -r '.r:*,.rlistings'
swift upload ${namespace} --object-name ${swift_path} ${CI_PROJECT_DIR}/dist/rpmbuild/RPMS

mkdir -p ${CI_PROJECT_DIR}/target/rpms

# fix repo metadata
if [ -n "${swift_path}" ]; then
swift download ${namespace} --prefix ${swift_path} --output-dir=${CI_PROJECT_DIR}/target/rpms
createrepo --update ${CI_PROJECT_DIR}/target/rpms/${swift_path}
swift delete ${namespace} --prefix ${swift_path}/repodata
swift upload ${namespace} --object-name ${swift_path}/repodata/ ${CI_PROJECT_DIR}/target/rpms/${swift_path}/repodata/
fi
artifacts:
name: "test_report_${CI_BUILD_REF_SLUG}"
paths:
- "*/target/surefire-reports"
- "*/*/target/surefire-reports"
- "*/*/*/target/surefire-reports"
- "*/*/*/*/target/surefire-reports"

- "*/target/checkstyle-result.xml"
- "*/*/target/checkstyle-result.xml"
- "*/*/*/target/checkstyle-result.xml"
- "*/*/*/*/target/checkstyle-result.xml"
when: on_failure
expire_in: 1 day
only:
- branches
tags:
- java

# Archive SystemVM Template to object storage
SysVM Template:
stage: archive
when: manual
variables:
MAVEN_OPTS: '-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=INFO
-Dorg.slf4j.simpleLogger.showDateTime=true
-Djava.awt.headless=true
-Dmaven.repo.local=~/maven-repo/repository'
before_script:
- *LOAD_TEMPLATE_SWIFT
- *TEMPLATE_PATH
script:
- |
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

# get the version before going any further
VERSION=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
TIMESTAMP=$(date +%s)

# clear out BUILD_NUMBER to not be shown in system vm template file name
BUILD_NUMBER=""
MAJOR_VERSION=`echo ${VERSION} | cut -d. -f1`.`echo ${VERSION} | cut -d. -f2`

cd ${CI_PROJECT_DIR}/tools/appliance

build_appliance="systemvmtemplate"
build_version=$(echo $VERSION | sed 's/\-SNAPSHOT/\-'${TIMESTAMP}'/g')
build_branch=

chmod +x build.sh
./build.sh "$build_appliance" "$build_version" "$build_branch"

# upload templates to swift object storage
- |
load_swift

swift_path=`template_path`
namespace="systemvm"

# move file to end destination
mkdir -p ${CI_PROJECT_DIR}/target/templates
mv ${CI_PROJECT_DIR}/tools/appliance/dist/*-xen.vhd.bz2 ${CI_PROJECT_DIR}/target/templates
mv ${CI_PROJECT_DIR}/tools/appliance/dist/*-kvm.qcow2.bz2 ${CI_PROJECT_DIR}/target/templates

# create md5sum file
full_name=`basename ${CI_PROJECT_DIR}/target/templates/*.qcow2.bz2 | sed 's/\-kvm\.qcow2\.bz2//g'`
partial_name=$(echo ${full_name} | sed 's/systemvmtemplate\-//g' | sed 's/systemvm64template\-//g')
md5sum=$(cd ${CI_PROJECT_DIR}/target/templates; md5sum * > ${full_name}.md5sum; cat ${full_name}.md5sum)

# upload to swift
swift post ${namespace} -r '.r:*,.rlistings'
swift upload ${namespace} --object-name ${swift_path} ${CI_PROJECT_DIR}/target/templates | xargs -n1 swift stat -v ${namespace} | grep URL | sort | sed 's/URL\://g' | tr -d ' '
after_script:
- git clean -fdx
only:
- branches
tags:
- systemvm

# Run integration tests against live build
Integration Test:
stage: integration
when: manual
before_script:
- environment-info.sh
script:
- echo "TODO"
only:
- branches
except:
- master
- cca_4.10
- cca_4.11
- cca_4.12

.deploy: &DEPLOY
stage: deploy
when: manual
before_script:
- environment-info.sh
- *YUM_REPO_PATH
script:
- |
mkdir -p ~/.ssh

echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
chmod 700 ~/.ssh/id_rsa

ssh-keyscan ${LAB_ENV_IP} >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts

export REPO_BASE="https://objects-east.cloud.ca/v1/a8286006ae394ede8bc081f586ae048d/cloudstack/"
export REPO_PATH="`yum_repo_path`"

ssh -T ${SSH_USER}@${LAB_ENV_IP} << EOF
sudo su -

set -e

# stop services
echo -e "stopping chef-client...\n"
systemctl stop chef-client

echo -e "stopping cloudstack-usage...\n"
systemctl stop cloudstack-usage

echo -e "stopping cloudstack-management...\n"
systemctl stop cloudstack-management

# update yum repo
echo -e "updating /etc/yum.repos.d/cloudstack.repo...\n"

sed -i "s|^baseurl=${REPO_BASE}.*|baseurl=${REPO_BASE}${REPO_PATH}|gI" /etc/yum.repos.d/cloudstack.repo
sed -i "s/^enabled=0/enabled=1/gI" /etc/yum.repos.d/cloudstack.repo

cat /etc/yum.repos.d/cloudstack.repo
echo ""

# upgrade cloudstack
echo -e "updating cloudstack rpm...\n"
yum clean metadata
yum upgrade --assumeyes cloudstack-*

# start services
echo -e "starting cloudstack-management...\n"
systemctl start cloudstack-management

echo -e "starting cloudstack-usage...\n"
systemctl start cloudstack-usage

echo -e "starting chef-client...\n"
systemctl start chef-client
EOF
environment:
name: ${LAB_ENV_NAME}

ccd-r1-acs1-acs01:
<<: *DEPLOY
variables:
LAB_ENV_NAME: "ccd-r1-acs1-acs01"
LAB_ENV_IP: "10.218.184.158"

ccd-r1-acs2-acs01:
<<: *DEPLOY
variables:
LAB_ENV_NAME: "ccd-r1-acs2-acs01"
LAB_ENV_IP: "10.218.184.40"

ccd-r1-bm1-acs01:
<<: *DEPLOY
variables:
LAB_ENV_NAME: "ccd-r1-bm1-acs01"
LAB_ENV_IP: "10.218.184.74"

ccd-r1-dev1-acs01:
<<: *DEPLOY
variables:
LAB_ENV_NAME: "ccd-r1-dev1-acs01"
LAB_ENV_IP: "10.218.184.249"

ccd-r1-dev2-acs01:
<<: *DEPLOY
variables:
LAB_ENV_NAME: "ccd-r1-dev2-acs01"
LAB_ENV_IP: "10.218.184.116"

ccd-r1-stg-acs01:
<<: *DEPLOY
variables:
LAB_ENV_NAME: "ccd-r1-stg-acs01"
LAB_ENV_IP: "10.218.184.166"

ccd-r1-stg-acs02:
<<: *DEPLOY
variables:
LAB_ENV_NAME: "ccd-r1-stg-acs02"
LAB_ENV_IP: "10.218.184.207"

cca-r1-beta02-mtg02:
<<: *DEPLOY
variables:
LAB_ENV_NAME: "cca-r1-beta02-mtg02"
LAB_ENV_IP: "172.27.2.119"

ccd-r1-acs3-acs01:
<<: *DEPLOY
variables:
LAB_ENV_NAME: "ccd-r1-acs3-acs01"
LAB_ENV_IP: "10.218.184.156"

ccd-r1-acs4:
<<: *DEPLOY
variables:
LAB_ENV_NAME: "ccd-r1-acs4-acs01"
LAB_ENV_IP: "10.218.184.142"
4 changes: 4 additions & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
<artifactId>cloud-framework-direct-download</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.bettercloud</groupId>
<artifactId>vault-java-driver</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
Loading