mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #7120 from jtopjian/openstack-lbaas-updates
provider/openstack: lbaas v2 updates
This commit is contained in:
commit
8d78f9c4e1
@ -19,12 +19,8 @@ export PATH=$PATH:$HOME/terraform:$HOME/go/bin
|
||||
echo 'export PATH=$PATH:$HOME/terraform:$HOME/go/bin' >> .bashrc
|
||||
source .bashrc
|
||||
|
||||
go get github.com/tools/godep
|
||||
go get github.com/hashicorp/terraform
|
||||
cd $GOPATH/src/github.com/hashicorp/terraform
|
||||
godep restore
|
||||
|
||||
cd
|
||||
git clone https://git.openstack.org/openstack-dev/devstack -b stable/mitaka
|
||||
cd devstack
|
||||
cat >local.conf <<EOF
|
||||
@ -70,10 +66,27 @@ enable_service q-agt
|
||||
enable_service q-dhcp
|
||||
enable_service q-l3
|
||||
enable_service q-meta
|
||||
enable_service q-metering
|
||||
enable_service q-lbaas
|
||||
enable_service q-flavors
|
||||
|
||||
# Disable Neutron metering
|
||||
disable_service q-metering
|
||||
|
||||
# Enable LBaaS V1
|
||||
#enable_service q-lbaas
|
||||
|
||||
# Enable FWaaS
|
||||
enable_service q-fwaas
|
||||
|
||||
# Enable LBaaS v2
|
||||
enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas stable/\$OPENSTACK_VERSION
|
||||
enable_plugin octavia https://git.openstack.org/openstack/octavia stable/\$OPENSTACK_VERSION
|
||||
enable_service q-lbaasv2
|
||||
enable_service octavia
|
||||
enable_service o-cw
|
||||
enable_service o-hk
|
||||
enable_service o-hm
|
||||
enable_service o-api
|
||||
|
||||
# Enable Trove
|
||||
enable_plugin trove git://git.openstack.org/openstack/trove.git stable/\$OPENSTACK_VERSION
|
||||
enable_service trove,tr-api,tr-tmgr,tr-cond
|
||||
@ -84,6 +97,13 @@ disable_service tempest
|
||||
# Disable Horizon
|
||||
disable_service horizon
|
||||
|
||||
# Disable Keystone v2
|
||||
#ENABLE_IDENTITY_V2=False
|
||||
|
||||
# Enable SSL/tls
|
||||
#enable_service tls-proxy
|
||||
#USE_SSL=True
|
||||
|
||||
# Enable Ceilometer
|
||||
#enable_service ceilometer-acompute
|
||||
#enable_service ceilometer-acentral
|
||||
@ -110,6 +130,17 @@ LOGDIR=/opt/stack/logs
|
||||
EOF
|
||||
./stack.sh
|
||||
|
||||
# Patch openrc
|
||||
#cat >> openrc <<EOF
|
||||
#
|
||||
# Currently, in order to use openstackclient with Identity API v3,
|
||||
# we need to set the domain which the user and project belong to.
|
||||
#if [ "$OS_IDENTITY_API_VERSION" = "3" ]; then
|
||||
# export OS_USER_DOMAIN_ID=${OS_USER_DOMAIN_ID:-"default"}
|
||||
# export OS_PROJECT_DOMAIN_ID=${OS_PROJECT_DOMAIN_ID:-"default"}
|
||||
#fi
|
||||
#EOF
|
||||
|
||||
# Prep the testing environment by creating the required testing resources and environment variables
|
||||
source openrc admin
|
||||
wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
|
||||
|
@ -110,7 +110,7 @@ func resourceLoadBalancerV2Create(d *schema.ResourceData, meta interface{}) erro
|
||||
Pending: []string{"PENDING_CREATE"},
|
||||
Target: []string{"ACTIVE"},
|
||||
Refresh: waitForLoadBalancerActive(networkingClient, lb.ID),
|
||||
Timeout: 2 * time.Minute,
|
||||
Timeout: 20 * time.Minute,
|
||||
Delay: 5 * time.Second,
|
||||
MinTimeout: 3 * time.Second,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user