-
Notifications
You must be signed in to change notification settings - Fork 52
add CAPO conformance test #831
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 87 additions & 2 deletions
89
playbooks/cluster-api-provider-openstack-conformance/run.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,90 @@ | ||
| - hosts: all | ||
| become: yes | ||
| pre_tasks: | ||
| - name: Enable nested virt | ||
| shell: | ||
| cmd: | | ||
| # enable nested virt | ||
| cat /sys/module/kvm_intel/parameters/nested | ||
| sudo rmmod kvm-intel | ||
| sudo sh -c "echo 'options kvm-intel nested=y' >> /etc/modprobe.d/dist.conf" | ||
| sudo modprobe kvm-intel | ||
| cat /sys/module/kvm_intel/parameters/nested | ||
| modinfo kvm_intel | grep nested | ||
| roles: | ||
| - move-k8s-repo-to-k8s-specific-dir | ||
| - config-golang | ||
| - clone-devstack-gate-to-workspace | ||
| - role: create-devstack-local-conf | ||
| enable_services: | ||
| - 'nova' | ||
| - 'neutron' | ||
| - 'cinder' | ||
| - 'keystone' | ||
| - 'glance' | ||
| - role: install-devstack | ||
| environment: | ||
| USE_PYTHON3: 'True' | ||
| DEVSTACK_GATE_LIBVIRT_TYPE: 'kvm' | ||
| OS_BRANCH: 'stable/train' | ||
| tasks: | ||
| - name: Specify numpy version | ||
| shell: echo 'hello world' | ||
| - name: Run kubernetes E2E conformance tests with ClusterAPI OpenStack | ||
| shell: | ||
| cmd: | | ||
| set -xeo pipefail | ||
|
|
||
| source /opt/stack/new/devstack/openrc admin admin | ||
|
|
||
| # Print some infos | ||
| nova hypervisor-stats | ||
| openstack host list | ||
| openstack usage list | ||
| openstack project list | ||
| openstack network list | ||
| openstack subnet list | ||
| openstack image list | ||
| openstack flavor list | ||
| openstack server list | ||
| openstack availability zone list | ||
| openstack domain list | ||
|
|
||
| openstack flavor delete m1.small | ||
| openstack flavor create --ram 4096 --disk 10 --vcpus 2 --public --id 2 m1.small --property hw_rng:allowed='True' | ||
| openstack flavor delete m1.medium | ||
| openstack flavor create --ram 6144 --disk 10 --vcpus 4 --public --id 3 m1.medium --property hw_rng:allowed='True' | ||
|
|
||
| # Switch to demo project | ||
| source /opt/stack/new/devstack/openrc admin demo | ||
|
|
||
| # Create clouds.yaml | ||
| cat << EOF >> /tmp/clouds.yaml | ||
| clouds: | ||
| capi-quickstart: | ||
| auth: | ||
| username: ${OS_USERNAME} | ||
| password: ${OS_PASSWORD} | ||
| user_domain_id: ${OS_USER_DOMAIN_NAME} | ||
| auth_url: ${OS_AUTH_URL} | ||
| domain_id: default | ||
| project_name: demo | ||
| verify: false | ||
| region_name: RegionOne | ||
| EOF | ||
| cat /tmp/clouds.yaml | ||
|
|
||
| export ARTIFACTS=/home/zuul/workspace/logs/_artifacts | ||
| export KUBERNETES_VERSION_SERIES={{ k8s_version_series }} | ||
| export OPENSTACK_CONTROLPLANE_IP="172.24.5.24" | ||
| export OPENSTACK_DNS_NAMESERVERS=8.8.8.8 | ||
| export CONTROL_PLANE_MACHINE_COUNT=1 | ||
| export WORKER_MACHINE_COUNT=1 | ||
|
|
||
| ./hack/ci/e2e-conformance.sh --install-prereqs --run-tests-parallel --delete-cluster {{ extra_args }} | ||
|
|
||
| # Print some infos | ||
| ps aux | ||
| df -h | ||
|
|
||
| executable: /bin/bash | ||
| chdir: '{{ k8s_os_capi_provider_src_dir }}' | ||
| environment: '{{ global_env }}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.