User Tools

Site Tools


howto-hyperv-ci

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
howto-hyperv-ci [2015/09/04 19:00]
gsamfira [Install prerequisites]
howto-hyperv-ci [2015/09/23 01:41]
gsamfira
Line 300: Line 300:
 set -x set -x
 set +e set +e
 +
 +BUNDLE_LOCATION=$(mktemp)
 +UUID=$ZUUL_UUID
 +
 +cat << EOF > $BUNDLE_LOCATION
 +nova:
 +  overrides:
 +    data-port: "space delimited mac address list"
 +    external-port:​ "space delimited mac address list"
 +    zuul-branch:​ $ZUUL_BRANCH
 +    zuul-change:​ "​$ZUUL_CHANGE"​
 +    zuul-project:​ $ZUUL_PROJECT
 +    zuul-ref: $ZUUL_REF
 +    zuul-url: $ZUUL_URL
 +  relations:
 +  - - devstack-$UUID
 +    - hyper-v-ci-$UUID
 +  - - hyper-v-ci-$UUID
 +    - active-directory
 +  services:
 +    active-directory:​
 +      branch: https://​github.com/​cloudbase/​active-directory.git
 +      charm: local:​win2012r2/​active-directory
 +      num_units: 1
 +      options:
 +        domain-name:​ cloudbase.local
 +        password: Passw0rd
 +    devstack-$UUID:​
 +      branch: https://​github.com/​cloudbase/​devstack-charm.git
 +      charm: local:​trusty/​devstack
 +      num_units: 1
 +      options:
 +        disabled-services:​ horizon n-novnc n-net n-cpu ceilometer-acompute
 +        enable-plugin:​ networking-hyperv|https://​github.com/​stackforge/​networking-hyperv.git
 +        enabled-services:​ rabbit mysql key n-api n-crt n-obj n-cond n-sch n-cauth
 +          neutron q-svc q-agt q-dhcp q-l3 q-meta q-lbaas q-fwaas q-metering q-vpn
 +          g-api g-reg cinder c-api c-vol c-sch c-bak s-proxy s-object s-container
 +          s-account heat h-api h-api-cfn h-api-cw h-eng tempest
 +        extra-packages:​ build-essential libpython-all-dev python-all python-dev python3-all
 +          python3.4-dev g++ g++-4.8 pkg-config libvirt-dev
 +        extra-python-packages:​ networking-hyperv
 +        heat-image-url:​ http://​10.255.251.252/​Fedora.vhdx
 +        test-image-url:​ http://​10.255.251.252/​cirros.vhdx
 +        vlan-range: 2500:2550
 +    hyper-v-ci-$UUID:​
 +      branch: https://​github.com/​cloudbase/​hyperv-charm
 +      charm: local:​win2012hvr2/​hyper-v-ci
 +      num_units: 2
 +      options:
 +        download-mirror:​ http://​64.119.130.115/​bin
 +        extra-python-packages:​ setuptools SQLAlchemy==0.9.8 wmi oslo.i18n==1.7.0 pbr==1.2.0
 +        git-user-email:​ hyper-v_ci@microsoft.com
 +        git-user-name:​ Hyper-V CI
 +        wheel-mirror:​ http://​64.119.130.115/​wheels
 +EOF
 +
  
 export JUJU_REPOSITORY=$HOME/​charms export JUJU_REPOSITORY=$HOME/​charms
-ci-deployer deploy --zuul-uuid ​$ZUUL_UUID ​--zuul-branch ​$ZUUL_BRANCH --zuul-ref $ZUUL_REF --zuul-url $ZUUL_URL --zuul-change $ZUUL_CHANGE --zuul-project $ZUUL_PROJECT --nr-devstack-units 1 --nr-hyperv-units 2 --data-ports "<​space delimited list of MAC>"​ --external-ports "<​space delimited list of MAC>"​ --vlan-range "<​start>:<​end>"​ --hyper-v-extra-python-packages "​setuptools SQLAlchemy==0.9.8 wmi oslo.i18n==1.7.0 pbr==1.2.0"​ --devstack-extra-packages "​build-essential libpython-all-dev python-all python-dev python3-all python3.4-dev g++ g++-4.8 pkg-config libvirt-dev"​ --devstack-extra-python-packages "​networking-hyperv"​ --devstack-enabled-services "​rabbit mysql key n-api n-crt n-obj n-cond n-sch n-cauth neutron q-svc q-agt q-dhcp q-l3 q-meta q-lbaas q-fwaas q-metering q-vpn g-api g-reg cinder c-api c-vol c-sch c-bak s-proxy s-object s-container s-account heat h-api h-api-cfn h-api-cw h-eng tempest"​ --devstack-disabled-services "​horizon n-novnc n-net n-cpu ceilometer-acompute"​ --devstack-enabled-plugins "​networking-hyperv|https://​github.com/​stackforge/​networking-hyperv.git"​ --ad-domain-name cloudbase.local --ad-admin-password Passw0rd --nr-ad-units 1+ci-deployer deploy --template ​$BUNDLE_LOCATION ​--search-string ​$UUID
 build_exit_code=$?​ build_exit_code=$?​
  
Line 324: Line 380:
  
 #destroy charms, services and used nodes. #destroy charms, services and used nodes.
-ci-deployer teardown --zuul-uuid $ZUUL_UUID+ci-deployer teardown --search-string ​$ZUUL_UUID
 cleanup_exit_code=$?​ cleanup_exit_code=$?​
  
howto-hyperv-ci.txt ยท Last modified: 2015/09/25 16:03 by ibalutoiu