This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
howto-hyperv-ci [2015/08/10 14:53] gsamfira |
howto-hyperv-ci [2015/09/25 16:03] (current) ibalutoiu |
||
---|---|---|---|
Line 137: | Line 137: | ||
- | Using that file we will now deploy our charms. Take note, charms will be configured to use the information you provide. | + | Using that file we will now deploy our charms. Take note, charms will be configured to use the information you provide: |
+ | |||
+ | juju-deployer -L -S -c filename.yaml | ||
At the end you should have something like this: | At the end you should have something like this: | ||
Line 182: | Line 184: | ||
git clone https:// | git clone https:// | ||
cd common-ci && git checkout redmondridge | cd common-ci && git checkout redmondridge | ||
+ | | ||
+ | mkdir -p ~/ | ||
+ | git clone https:// | ||
+ | | ||
+ | mkdir -p ~/ | ||
+ | git clone git@bitbucket.org: | ||
+ | cd active-directory | ||
+ | ./ | ||
+ | | ||
+ | mkdir -p ~/ | ||
+ | git clone https:// | ||
+ | | ||
exit | exit | ||
sudo ln -s / | sudo ln -s / | ||
Line 190: | Line 204: | ||
<code bash> | <code bash> | ||
ADDRESS=$(juju run --unit jenkins/0 " | ADDRESS=$(juju run --unit jenkins/0 " | ||
- | scp -i ~/ | + | scp -i ~/ |
juju ssh jenkins/0 "sudo cp -a / | juju ssh jenkins/0 "sudo cp -a / | ||
juju ssh jenkins/0 "sudo chown jenkins: | juju ssh jenkins/0 "sudo chown jenkins: | ||
Line 286: | 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: | ||
+ | zuul-branch: | ||
+ | zuul-change: | ||
+ | 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:// | ||
+ | charm: local: | ||
+ | num_units: 1 | ||
+ | options: | ||
+ | domain-name: | ||
+ | password: Passw0rd | ||
+ | devstack-$UUID: | ||
+ | branch: https:// | ||
+ | charm: local: | ||
+ | num_units: 1 | ||
+ | options: | ||
+ | disabled-services: | ||
+ | enable-plugin: | ||
+ | enabled-services: | ||
+ | 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: | ||
+ | python3.4-dev g++ g++-4.8 pkg-config libvirt-dev | ||
+ | extra-python-packages: | ||
+ | heat-image-url: | ||
+ | test-image-url: | ||
+ | vlan-range: 2500:2550 | ||
+ | hyper-v-ci-$UUID: | ||
+ | branch: https:// | ||
+ | charm: local: | ||
+ | num_units: 2 | ||
+ | options: | ||
+ | download-mirror: | ||
+ | extra-python-packages: | ||
+ | git-user-email: | ||
+ | git-user-name: | ||
+ | pypi-mirror: | ||
+ | EOF | ||
+ | |||
export JUJU_REPOSITORY=$HOME/ | export JUJU_REPOSITORY=$HOME/ | ||
- | ci-deployer deploy --zuul-uuid | + | ci-deployer deploy --template |
build_exit_code=$? | build_exit_code=$? | ||
Line 310: | 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 |
cleanup_exit_code=$? | cleanup_exit_code=$? | ||
Line 394: | Line 464: | ||
restart zuul-server | restart zuul-server | ||
</ | </ | ||
+ | |||
+ | You should be all done (If I have not forgotten anything). Make sure you check zuul logs for patch update status. This will be the likely place to look if you get no jobs in jenkins at all. |