Container Infrastructure Management Service for OpenStack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
4.9KB

  1. #!/bin/bash -x
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  4. # not use this file except in compliance with the License. You may obtain
  5. # a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. # License for the specific language governing permissions and limitations
  13. # under the License.
  14. #
  15. # This script is executed inside gate_hook function in devstack gate.
  16. coe=$1
  17. special=$2
  18. export PROJECTS="openstack/barbican $PROJECTS"
  19. export DEVSTACK_LOCAL_CONFIG="enable_plugin heat https://git.openstack.org/openstack/heat"
  20. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon"
  21. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account"
  22. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container"
  23. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object"
  24. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy"
  25. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral"
  26. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute"
  27. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator"
  28. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier"
  29. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api"
  30. export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector"
  31. if egrep --quiet '(vmx|svm)' /proc/cpuinfo; then
  32. export DEVSTACK_GATE_LIBVIRT_TYPE=kvm
  33. fi
  34. if [[ -e /etc/ci/mirror_info.sh ]]; then
  35. source /etc/ci/mirror_info.sh
  36. fi
  37. NODEPOOL_ATOMIC_MIRROR=${NODEPOOL_FEDORA_MIRROR:-https://download.fedoraproject.org/pub/alt}
  38. if [ "$coe" = "mesos" ]; then
  39. export DEVSTACK_LOCAL_CONFIG+=$'\n'"MAGNUM_GUEST_IMAGE_URL=https://fedorapeople.org/groups/magnum/ubuntu-mesos-ocata.qcow2"
  40. elif [ "$coe" = "k8s-coreos" ]; then
  41. export DEVSTACK_LOCAL_CONFIG+=$'\n'"MAGNUM_GUEST_IMAGE_URL=http://beta.release.core-os.net/amd64-usr/current/coreos_production_openstack_image.img.bz2"
  42. elif [ "${coe}${special}" = "k8s-ironic" ]; then
  43. export DEVSTACK_LOCAL_CONFIG+=$'\n'"MAGNUM_GUEST_IMAGE_URL='https://fedorapeople.org/groups/magnum/fedora-kubernetes-ironic-latest.tar.gz'"
  44. export DEVSTACK_LOCAL_CONFIG+=$'\n'"MAGNUM_IMAGE_NAME='fedora-kubernetes-ironic-latest'"
  45. export DEVSTACK_GATE_VIRT_DRIVER="ironic"
  46. # NOTE(strigazi) keep cinder
  47. # export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service cinder c-sch c-api c-vol"
  48. export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic https://git.openstack.org/openstack/ironic"
  49. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER=pxe_ipmitool"
  50. # NOTE(ykarel) Ironic to work with magnum, requires devstack to be configured with IP_VERSION=4
  51. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IP_VERSION=4"
  52. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BAREMETAL_BASIC_OPS=True"
  53. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_LOG_DIR=/opt/stack/new/ironic-bm-logs"
  54. export DEVSTACK_LOCAL_CONFIG+=$'\n'"DEFAULT_INSTANCE_TYPE=baremetal"
  55. export DEVSTACK_LOCAL_CONFIG+=$'\n'"BUILD_TIMEOUT=600"
  56. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_CALLBACK_TIMEOUT=600"
  57. export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_AGENT=openvswitch"
  58. export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_ML2_TENANT_NETWORK_TYPE=vxlan"
  59. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BUILD_DEPLOY_RAMDISK=False"
  60. # We don't enable swift in Gate Jobs so not required
  61. # export DEVSTACK_LOCAL_CONFIG+=$'\n'"SWIFT_ENABLE_TEMPURLS=True"
  62. # export DEVSTACK_LOCAL_CONFIG+=$'\n'"SWIFT_TEMPURL_KEY=password"
  63. # export DEVSTACK_LOCAL_CONFIG+=$'\n'"SWIFT_HASH=password"
  64. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,agent_ipmitool,pxe_ipmitool"
  65. export DEVSTACK_LOCAL_CONFIG+=$'\n'"VOLUME_BACKING_FILE_SIZE=24G"
  66. export DEVSTACK_LOCAL_CONFIG+=$'\n'"FORCE_CONFIG_DRIVE=True"
  67. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa"
  68. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_IPXE_ENABLED=False"
  69. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=2"
  70. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SSH_PORT=22"
  71. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1024"
  72. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_DISK=10"
  73. export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=5"
  74. else
  75. export DEVSTACK_LOCAL_CONFIG+=$'\n'"MAGNUM_GUEST_IMAGE_URL='${NODEPOOL_ATOMIC_MIRROR}/atomic/stable/Fedora-29-updates-20190820.0/AtomicHost/x86_64/images/Fedora-AtomicHost-29-20190820.0.x86_64.qcow2'"
  76. export DEVSTACK_LOCAL_CONFIG+=$'\n'"MAGNUM_IMAGE_NAME='Fedora-AtomicHost-29-20190820.0.x86_64'"
  77. fi
  78. # Enable magnum plugin in the last step
  79. export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum"
  80. $BASE/new/devstack-gate/devstack-vm-gate.sh