Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #797 from vmware/it-is-done-6.5-is-here.kerneltime
Browse files Browse the repository at this point in the history
Support for ESX 6.5 in CI runs
  • Loading branch information
Ritesh H Shukla authored Dec 6, 2016
2 parents db3a74e + e13cf1f commit 8613173
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .drone.sec
Original file line number Diff line number Diff line change
@@ -1 +1 @@
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.JY29IzUwGWjjLvS7jPrKVtFTChbxt9dto_fH9ayz52ezOdgYJNuI0DFG1I7HJnHR2FZ9X10QBRVCU88LnrYizuryeuPbBno5P9UrwLFcf0vBeU_lsvZmeBrCRCY3J__rLIDc5BHdSxCfjAcoLfy14efDv7gQYMu8bejl9xSn1Gjt3BI4TtOeL3728XReyY7JkQZfMCV-DRRybG7t__trQSDV4Gj_s2dFchMTmmCQLGLFv3vtLJuVLYksMVcwkqODG-YIuZy623BbR0dRXWOMO8pZR64hHmV84rVZOiVt0Uczwr-Mrvvy2YYqYwq-9OoOxGqu5hl1CHu5jXLlBXUIpg.Ydq4N_iLh3_uXwXB.a9g9QOWyjUQzpEfqbDmVIXI4foGOr_AaaESUTiP7EpM8oLaWl7JqaACZ06VAL_LgrbAIYlDjjuTRZoGC7u21ifVKreM1RY7PhNlwwj-TBPD5-jis9S15Ku65t-jcPjcOs73sueh16-aP2Z_g-hh4gM7N-oE3rhqz8WjsJTwxSLrKh0M4-qfZL4XULF7Q2U556sJjF4oXfmEE58l608SueXK0zw_dhRyjSQ9QM0jzoUh_tE-wIo8uvvXIVE904NfjBrjVK2iO9HEq3US053OSaWkcdaK4vd9si1NadUd_QuWVZ191Dzc-goRUOTE4es-Ce3ZFpD-0Kom7Q6Ev1jchJsJEGVJ8js388C9XtJCKrt5qq3Fl9IC8WldCv50zFF0mF36Ha5lGFLL2-eQGt6jk79I8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Ymi0o8rtBMqCsrjkHD80iBrxItFMihUzSRgji1kGLJ-xd37gYj0P4S1JzBX14GmsozFyWuRC9NW4d8XnZo5FNnIm9ibtdwq8g7s6s40eXOmOiMBKEDgmGg7o9JMHJd7VbVrq-xVXUsWrNAwO1TaEW-K4ZtTt7-PSDBqG7kMjdaK0uCPSz4ZO9egFC7_-GUjsXpqnJ00h6ziXjtUvHi9WgRlvFz8CdAy756UVwYBCqHJYbrAhEd7693MdHUrrbK890LKzWc1UaXgzpjc60Jq_VCFFoXsTkbtGNIgi76HBV9b2N6aIoYvCYCD6M-beDqu93BMZYCdjwpQ.Wqy6Lwem83zgypW981c5GQ
142 changes: 56 additions & 86 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,33 @@ build:

serialize:
image: cnastorage/vibauthor-and-go:0.9
environment:
environment: &setup_env
- DRONE_TOKEN=$$DRONE_TOKEN
- DRONE_SERVER=$$DRONE_SERVER
- TEST_URL_ARRAY=$$TEST_URL_ARRAY
- GOVC_USERNAME=$$CI_BASE_VMWARE_ESX_USER
- GOVC_PASSWORD=$$CI_BASE_VMWARE_ESX_PASS
- GOVC_USERNAME_ESX=$$CI_VMWARE_ESX_USER
- GOVC_PASSWORD_ESX=$$CI_VMWARE_ESX_PASS
- GOVC_INSECURE=1
- GOVC_URL=$$CI_BASE_ESX_IP
- TEST_ESX=$$CI_ESX_NAME
- TEST_URL_ARRAY=$$CI_ESX_IP_6_0
- ESX_6_0=$$CI_ESX_NAME_6_0
- ESX_6_5=$$CI_ESX_NAME_6_5
- GOVC_URL_6_0=$$CI_ESX_IP_6_0
- GOVC_URL_6_5=$$CI_ESX_IP_6_5
- SSH_KEY_OPT=-i /drone/src/github.com/vmware/docker-volume-vsphere/key
- GOVC_GET_IP=govc vm.ip -a -v4
- KEY=$$KEY
- ESX_6_0=$$CI_ESX_NAME_6_0
- ESX_6_5=$$CI_ESX_NAME_6_5
commands:
- misc/drone-scripts/validate-and-serialize.sh

build_dev:
image: cnastorage/vibauthor-and-go:0.9
environment:
- KEY=$$KEY
commands:
- pwd
environment: *setup_env
commands: &build_cmd
- if [ "$TAG" != "" ]; then export PKG_VERSION=$TAG; fi
- go get github.com/golang/lint/golint
- make -s build
- echo $KEY | base64 -d > /drone/src/github.com/vmware/docker-volume-vsphere/key
Expand All @@ -33,15 +42,8 @@ build:

build_tag:
image: cnastorage/vibauthor-and-go:0.9
environment:
- KEY=$$KEY
commands:
- export PKG_VERSION=$$TAG
- echo $PKG_VERSION
- go get github.com/golang/lint/golint
- make -s build
- echo $KEY | base64 -d > /drone/src/github.com/vmware/docker-volume-vsphere/key
- chmod 0600 /drone/src/github.com/vmware/docker-volume-vsphere/key
environment: *setup_env
commands: *build_cmd
when:
event: tag

Expand All @@ -52,70 +54,69 @@ build:
when:
event: [push, pull_request]

package:
package_dev:
image: cnastorage/fpm
commands:
commands: &package_cmd
- if [ "$TAG" != "" ]; then export PKG_VERSION=$TAG; fi
- make -s deb rpm
when:
event: [push, pull_request]

package_tag:
image: cnastorage/fpm
commands:
- export PKG_VERSION=$$TAG
- echo $PKG_VERSION
- make -s deb rpm
commands: *package_cmd
when:
event: tag

setup_pr_tag:
image: cnastorage/vibauthor-and-go:0.9
environment:
- GOVC_USERNAME=$$CI_BASE_VMWARE_ESX_USER
- GOVC_PASSWORD=$$CI_BASE_VMWARE_ESX_PASS
- GOVC_INSECURE=1
- GOVC_URL=$$CI_BASE_ESX_IP
- TEST_ESX=$$CI_ESX_NAME
commands:
environment: *setup_env
commands: &setup_cmd
- misc/drone-scripts/setup.sh
when:
event: [pull_request, tag]

setup_push:
image: cnastorage/vibauthor-and-go:0.9
environment:
- GOVC_USERNAME=$$CI_BASE_VMWARE_ESX_USER
- GOVC_PASSWORD=$$CI_BASE_VMWARE_ESX_PASS
- GOVC_INSECURE=1
- GOVC_URL=$$CI_BASE_ESX_IP
- TEST_ESX=$$CI_ESX_NAME
commands:
- misc/drone-scripts/setup.sh
environment: *setup_env
commands: *setup_cmd
when:
event: [push]
branch: [master, runci/*]

test_dev_branch: # Identical to test except for when it occurs
image: cnastorage/vibauthor-and-go:0.9
privileged: true
environment:
- GOVC_USERNAME=$$CI_VMWARE_ESX_USER
- GOVC_PASSWORD=$$CI_VMWARE_ESX_PASS
- GOVC_INSECURE=1
- GOVC_URL=$$CI_ESX_IP
- SSH_KEY_OPT=-i /drone/src/github.com/vmware/docker-volume-vsphere/key
commands:
- pwd
- export VM1=`govc vm.ip photon.ga.vmfs`
- export VM2=`govc vm.ip Ubuntu.1404.vmfs`
environment: *setup_env
commands: &test_cmd
- GOVC_USERNAME=$GOVC_USERNAME_ESX
- GOVC_PASSWORD=$GOVC_PASSWORD_ESX
- if [ "$TAG" != "" ]; then export PKG_VERSION=$TAG; fi
- echo
- echo "=> Running tests on ESX_6.5" `date`
- echo
- export GOVC_URL=$GOVC_URL_6_5
- export VM1=`$GOVC_GET_IP photon.vmfs`
- export VM2=`$GOVC_GET_IP Ubuntu.16.10`
- ./misc/drone-scripts/deploy-and-test-wrapper.sh $GOVC_URL_6_5 $VM1 $VM2 $$BUILD_NUMBER < /dev/null
- echo
- echo "=> Running tests on VSAN ESX_6.5" `date`
- echo
- export VM1=`$GOVC_GET_IP photon.vsan`
- export VM2=`$GOVC_GET_IP Ubuntu.14.04`
- ./misc/drone-scripts/deploy-and-test-wrapper.sh $GOVC_URL_6_5 $VM1 $VM2 $$BUILD_NUMBER < /dev/null
- echo
- echo "=> Running tests on ESX_6.0" `date`
- echo
- export GOVC_URL=$GOVC_URL_6_0
- export VM1=`$GOVC_GET_IP photon.ga.vmfs`
- export VM2=`$GOVC_GET_IP Ubuntu.1404.vmfs`
- ./misc/drone-scripts/deploy-and-test-wrapper.sh $GOVC_URL $VM1 $VM2 $$BUILD_NUMBER < /dev/null
- echo
- echo "=> Running tests on VSAN"
- echo "=>" `date`
- echo "=> Running tests on VSAN ESX_6.0" `date`
- echo
- export VM1=`govc vm.ip photon.ga.vsan`
- export VM2=`govc vm.ip Ubuntu.1404.vsan`
- export VM1=`$GOVC_GET_IP photon.ga.vsan`
- export VM2=`$GOVC_GET_IP Ubuntu.1404.vsan`
- ./misc/drone-scripts/deploy-and-test-wrapper.sh $GOVC_URL $VM1 $VM2 $$BUILD_NUMBER < /dev/null
when:
event: [push]
Expand All @@ -124,47 +125,16 @@ build:
test:
image: cnastorage/vibauthor-and-go:0.9
privileged: true
environment:
- GOVC_USERNAME=$$CI_VMWARE_ESX_USER
- GOVC_PASSWORD=$$CI_VMWARE_ESX_PASS
- GOVC_INSECURE=1
- GOVC_URL=$$CI_ESX_IP
- SSH_KEY_OPT=-i /drone/src/github.com/vmware/docker-volume-vsphere/key
commands:
- export VM1=`govc vm.ip photon.ga.vmfs`
- export VM2=`govc vm.ip Ubuntu.1404.vmfs`
- ./misc/drone-scripts/deploy-and-test-wrapper.sh $GOVC_URL $VM1 $VM2 $$BUILD_NUMBER < /dev/null
- echo
- echo "=> Running tests on VSAN"
- echo "=>" `date`
- echo
- export VM1=`govc vm.ip photon.ga.vsan`
- export VM2=`govc vm.ip Ubuntu.1404.vsan`
- ./misc/drone-scripts/deploy-and-test-wrapper.sh $GOVC_URL $VM1 $VM2 $$BUILD_NUMBER < /dev/null
environment: *setup_env
commands: *test_cmd
when:
event: [pull_request]

test_tag:
image: cnastorage/vibauthor-and-go:0.9
privileged: true
environment:
- GOVC_USERNAME=$$CI_VMWARE_ESX_USER
- GOVC_PASSWORD=$$CI_VMWARE_ESX_PASS
- GOVC_INSECURE=1
- GOVC_URL=$$CI_ESX_IP
- SSH_KEY_OPT=-i /drone/src/github.com/vmware/docker-volume-vsphere/key
commands:
- export PKG_VERSION=$$TAG
- export VM1=`govc vm.ip photon.ga.vmfs`
- export VM2=`govc vm.ip Ubuntu.1404.vmfs`
- ./misc/drone-scripts/deploy-and-test-wrapper.sh $GOVC_URL $VM1 $VM2 $$BUILD_NUMBER < /dev/null
- echo
- echo "=> Running tests on VSAN"
- echo "=>" `date`
- echo
- export VM1=`govc vm.ip photon.ga.vsan`
- export VM2=`govc vm.ip Ubuntu.1404.vsan`
- ./misc/drone-scripts/deploy-and-test-wrapper.sh $GOVC_URL $VM1 $VM2 $$BUILD_NUMBER < /dev/null
environment: *setup_env
commands: *test_cmd
when:
event: [tag]

Expand Down
1 change: 0 additions & 1 deletion misc/drone-scripts/deploy-and-test-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ INCLUDE_HOSTD="false"

if make -s deploy-esx deploy-vm testasroot testremote TEST_VOL_NAME=vol.build$BUILD_NUMBER;
then
dump_logs
stop_build $VM1 $BUILD_NUMBER
else
log "Build + Test not successful"
Expand Down
14 changes: 12 additions & 2 deletions misc/drone-scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,20 @@
# limitations under the License.

echo "Resetting testbed"
govc snapshot.revert -vm $TEST_ESX init
govc snapshot.revert -vm $ESX_6_0 init
govc snapshot.revert -vm $ESX_6_5 init

echo "Waiting for revert to complete";
until govc vm.ip $TEST_ESX

echo ESX 6.0
until govc vm.ip $ESX_6_0
do
echo "Waiting for revert to complete";
sleep 1;
done

echo ESX 6.5
until govc vm.ip $ESX_6_5
do
echo "Waiting for revert to complete";
sleep 1;
Expand Down
7 changes: 4 additions & 3 deletions misc/scripts/commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ VIB_LIST="localcli software vib list"
VMDK_OPSD="/etc/init.d/vmdk-opsd"

function log {
echo
echo "=> $1"
echo "=>" `date`
echo
echo
echo "=> $1" `date`
echo
echo
}
3 changes: 1 addition & 2 deletions vmdk_plugin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ SRC = plugin.go main.go log_formatter.go refcnt.go \
# Canned recipe
define log_target
@echo
@echo "=> Running target $@"
@echo "=>" `date`
@echo "=> Running target $@" `date`
@echo
endef

Expand Down

0 comments on commit 8613173

Please # to comment.