diff --git a/test/assets/ipv6-network.xml b/test/assets/ipv6-network.xml index bce8224ef1..6de995e742 100644 --- a/test/assets/ipv6-network.xml +++ b/test/assets/ipv6-network.xml @@ -1,6 +1,10 @@ ${VM_IPV6_NETWORK} - + + + + + diff --git a/test/bin/scenario.sh b/test/bin/scenario.sh index 9e2fe9c59a..684b657062 100755 --- a/test/bin/scenario.sh +++ b/test/bin/scenario.sh @@ -257,6 +257,7 @@ prepare_kickstart() { -e "s|REPLACE_FIPS_ENABLED|${fips_enabled}|g" \ -e "s|REPLACE_ENABLE_MIRROR|${ENABLE_REGISTRY_MIRROR}|g" \ -e "s|REPLACE_MIRROR_HOSTNAME|${hostname}|g" \ + -e "s|REPLACE_VM_BRIDGE_IP|${VM_BRIDGE_IP}|g" \ "${ifile}" > "${output_file}" done record_junit "${vmname}" "prepare_kickstart" "OK" diff --git a/test/kickstart-templates/includes/post-containers.cfg b/test/kickstart-templates/includes/post-containers.cfg index 7b20a7538c..80e582529e 100644 --- a/test/kickstart-templates/includes/post-containers.cfg +++ b/test/kickstart-templates/includes/post-containers.cfg @@ -8,6 +8,8 @@ chmod 600 /etc/crio/openshift-pull-secret if REPLACE_ENABLE_MIRROR; then # Setup mirror registries configuration here, as the hostname is dynamic and the file is verbose. + # Use hostnames as IP addresses are not allowed. Since ec2 hostnames do not resolve to IPv6 addresses + # the /etc/hosts file will contain the hostname with the bridge IP from the host. mkdir -p /etc/containers/registries.conf.d cat > /etc/containers/registries.conf.d/999-microshift-mirror.conf <> /etc/hosts < namespace." Fail if not. + ${match_string}= Catenate No resources found in ${NAMESPACE} namespace. + ${match_string}= Remove String ${match_string} " + ${response}= Run With Kubeconfig oc get svc,ep -l app\=hello-microshift -n ${NAMESPACE} + Should Be Equal As Strings ${match_string} ${response} strip_spaces=True + +DNS Entry For Route Should Resolve + [Documentation] Resolve hello-microshift route via mDNS from the hypervisor/RF runner. + ... Expects RF runner host has opened port 5353 for libvirt zone. + + ${result}= Run Process + ... avahi-resolve-host-name ${HOSTNAME} + ... shell=True + ... timeout=15s + Should Be Equal As Integers 0 ${result.rc} + Log Many ${result.stdout} ${result.stderr} + @{words}= Split String ${result.stdout} + Must Be Ipv6 ${words}[1] + +Restart Router + [Documentation] Restart the router and wait for readiness again. The router is sensitive to apiserver + ... downtime and might need a restart (after the apiserver is ready) to resync all the routes. + Run With Kubeconfig oc rollout restart deployment router-default -n openshift-ingress + Named Deployment Should Be Available router-default openshift-ingress 5m + +All Services Are Ipv6 + [Documentation] Retrieve all services and check none of them have an IPv4 family + ${response}= Run With Kubeconfig oc get svc -A -o jsonpath='{.items[*].spec.ipFamilies[*]}' + Should Not Contain ${response} IPv4