mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
With a recent virtualbox update, we're getting failures in CI with:
> The IP address configured for the host-only network is not within the
> allowed ranges. Please update the address used to be within the allowed
> ranges and run the command again.
This updates the IP range used to be compatible.
(cherry picked from commit ab109db73f
)
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
This commit is contained in:
parent
aa699fa30f
commit
d9f632d615
5 changed files with 15 additions and 15 deletions
|
@ -10,13 +10,13 @@ mkdir -p target
|
|||
cd target
|
||||
if [[ "$TEST_PACKAGE" == "deb" ]]; then
|
||||
buildkite-agent artifact download 'kibana-*.deb' . --build "${KIBANA_BUILD_ID:-$BUILDKITE_BUILD_ID}"
|
||||
KIBANA_IP_ADDRESS="192.168.50.5"
|
||||
KIBANA_IP_ADDRESS="192.168.56.5"
|
||||
elif [[ "$TEST_PACKAGE" == "rpm" ]]; then
|
||||
buildkite-agent artifact download 'kibana-*.rpm' . --build "${KIBANA_BUILD_ID:-$BUILDKITE_BUILD_ID}"
|
||||
KIBANA_IP_ADDRESS="192.168.50.6"
|
||||
KIBANA_IP_ADDRESS="192.168.56.6"
|
||||
elif [[ "$TEST_PACKAGE" == "docker" ]]; then
|
||||
buildkite-agent artifact download "kibana-$KIBANA_PKG_VERSION-SNAPSHOT-docker-image.tar.gz" . --build "${KIBANA_BUILD_ID:-$BUILDKITE_BUILD_ID}"
|
||||
KIBANA_IP_ADDRESS="192.168.50.7"
|
||||
KIBANA_IP_ADDRESS="192.168.56.7"
|
||||
fi
|
||||
cd ..
|
||||
|
||||
|
@ -24,7 +24,7 @@ export VAGRANT_CWD=test/package
|
|||
vagrant up "$TEST_PACKAGE" --no-provision
|
||||
|
||||
node scripts/es snapshot \
|
||||
-E network.bind_host=127.0.0.1,192.168.50.1 \
|
||||
-E network.bind_host=127.0.0.1,192.168.56.1 \
|
||||
-E discovery.type=single-node \
|
||||
--license=trial &
|
||||
while ! timeout 1 bash -c "echo > /dev/tcp/localhost/9200"; do sleep 30; done
|
||||
|
@ -33,7 +33,7 @@ vagrant provision "$TEST_PACKAGE"
|
|||
|
||||
export TEST_BROWSER_HEADLESS=1
|
||||
export TEST_KIBANA_URL="http://elastic:changeme@$KIBANA_IP_ADDRESS:5601"
|
||||
export TEST_ES_URL=http://elastic:changeme@192.168.50.1:9200
|
||||
export TEST_ES_URL=http://elastic:changeme@192.168.56.1:9200
|
||||
|
||||
cd x-pack
|
||||
node scripts/functional_test_runner.js --include-tag=smoke
|
||||
|
|
|
@ -27,9 +27,9 @@ pip3 install --user ansible
|
|||
[cols=",,",options="header",]
|
||||
|===
|
||||
|Hostname |IP |Description
|
||||
|deb |192.168.50.5 |Installation of Kibana’s deb package
|
||||
|rpm |192.168.50.6 |Installation of Kibana’s rpm package
|
||||
|docker |192.168.50.7 |Installation of Kibana’s docker image
|
||||
|deb |192.168.56.5 |Installation of Kibana’s deb package
|
||||
|rpm |192.168.56.6 |Installation of Kibana’s rpm package
|
||||
|docker |192.168.56.7 |Installation of Kibana’s docker image
|
||||
|===
|
||||
|
||||
=== Running
|
||||
|
@ -49,11 +49,11 @@ vagrant provision <hostname>
|
|||
|
||||
# Running functional tests
|
||||
node scripts/es snapshot \
|
||||
-E network.bind_host=127.0.0.1,192.168.50.1 \
|
||||
-E network.bind_host=127.0.0.1,192.168.56.1 \
|
||||
-E discovery.type=single-node \
|
||||
--license=trial
|
||||
TEST_KIBANA_URL=http://elastic:changeme@<ip>:5601 \
|
||||
TEST_ES_URL=http://elastic:changeme@192.168.50.1:9200 \
|
||||
TEST_ES_URL=http://elastic:changeme@192.168.56.1:9200 \
|
||||
node scripts/functional_test_runner.js --include-tag=smoke
|
||||
```
|
||||
|
||||
|
|
6
test/package/Vagrantfile
vendored
6
test/package/Vagrantfile
vendored
|
@ -6,7 +6,7 @@ Vagrant.configure("2") do |config|
|
|||
deb.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "deb.yml"
|
||||
end
|
||||
deb.vm.network "private_network", ip: "192.168.50.5"
|
||||
deb.vm.network "private_network", ip: "192.168.56.5"
|
||||
end
|
||||
|
||||
config.vm.define "rpm" do |rpm|
|
||||
|
@ -14,7 +14,7 @@ Vagrant.configure("2") do |config|
|
|||
rpm.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "rpm.yml"
|
||||
end
|
||||
rpm.vm.network "private_network", ip: "192.168.50.6"
|
||||
rpm.vm.network "private_network", ip: "192.168.56.6"
|
||||
end
|
||||
|
||||
config.vm.define "docker" do |docker|
|
||||
|
@ -22,6 +22,6 @@ Vagrant.configure("2") do |config|
|
|||
docker.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "docker.yml"
|
||||
end
|
||||
docker.vm.network "private_network", ip: "192.168.50.7"
|
||||
docker.vm.network "private_network", ip: "192.168.56.7"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -21,6 +21,6 @@
|
|||
network_mode: host
|
||||
env:
|
||||
SERVER_HOST: 0.0.0.0
|
||||
ELASTICSEARCH_HOSTS: http://192.168.50.1:9200
|
||||
ELASTICSEARCH_HOSTS: http://192.168.56.1:9200
|
||||
ELASTICSEARCH_USERNAME: '{{ elasticsearch_username }}'
|
||||
ELASTICSEARCH_PASSWORD: '{{ elasticsearch_password }}'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
server.host: 0.0.0.0
|
||||
|
||||
elasticsearch.hosts: http://192.168.50.1:9200
|
||||
elasticsearch.hosts: http://192.168.56.1:9200
|
||||
elasticsearch.username: "{{ elasticsearch_username }}"
|
||||
elasticsearch.password: "{{ elasticsearch_password }}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue