c2139a7db2
Since we moved to containerized UC, TLS Everywhere deployments are broken. Namely we miss two things: A. The NAT iptables rule for the nova metadata service to be reachable B. The setting 'service_metadata_proxy=false' needs to be set for nova metadata otherwise the curl calls to setup ipa will fail with the following: [root@overcloud-controller-0 log]# curl http://169.254.169.254/openstack/2016-10-06 <html> <head> <title>400 Bad Request</title> </head> <body> <h1>400 Bad Request</h1> X-Instance-ID header is missing from request.<br /><br /> </body> </html> A. Is fixed by adding a conditional iptables rule that is only triggered when deploying an undercloud (where we set MetadataNATRule to true) B. Is fixed by setting NeutronMetadataProxySharedSecret to '' on the undercloud and then setting the corresponding hiera keys only when the parameter != ''. We tried alternative simpler approaches like setting NeutronMetadataProxySharedSecret to null but that will break heat as the parameter is required and setting it to null breaks heat validation (we also tried to make the parameter optional with a default: '', but that broke as well) While we're at it we also remove the neutron metadata service from the undercloud as it is not needed. Tested by deploying an undercloud with this change and observing: A. Chain PREROUTING (policy ACCEPT 106 packets, 6698 bytes) pkts bytes target prot opt in out source destination 0 0 REDIRECT tcp -- br-ctlplane * 0.0.0.0/0 169.254.169.254 multiport dports 80 state NEW /* 999 undercloud nat ipv4 */ redir ports 8775 B. grep -ir ^service_metadata_proxy /var/lib/config-data/puppet-generated/nova/etc/nova/nova.conf service_metadata_proxy=False Also a deployment of a TLS overcloud was successful. Change-Id: Id48df6db012fb433f9a0e618d0269196f4cfc2c6 Co-Authored-By: Martin Schuppert <mschuppe@redhat.com> Closes-Bug: #1795722
94 lines
3.8 KiB
YAML
94 lines
3.8 KiB
YAML
###############################################################################
|
|
# Role: Undercloud #
|
|
###############################################################################
|
|
- name: Undercloud
|
|
description: |
|
|
A role to deploy the undercloud via heat using the 'openstack undercloud
|
|
deploy' command.
|
|
CountDefault: 1
|
|
disable_constraints: True
|
|
tags:
|
|
- primary
|
|
- controller
|
|
ServicesDefault:
|
|
- OS::TripleO::Services::Aide
|
|
- OS::TripleO::Services::AodhApi
|
|
- OS::TripleO::Services::AodhEvaluator
|
|
- OS::TripleO::Services::AodhListener
|
|
- OS::TripleO::Services::AodhNotifier
|
|
- OS::TripleO::Services::Apache
|
|
- OS::TripleO::Services::BarbicanApi
|
|
- OS::TripleO::Services::BarbicanBackendDogtag
|
|
- OS::TripleO::Services::BarbicanBackendKmip
|
|
- OS::TripleO::Services::BarbicanBackendPkcs11Crypto
|
|
- OS::TripleO::Services::BarbicanBackendSimpleCrypto
|
|
- OS::TripleO::Services::CACerts
|
|
- OS::TripleO::Services::CeilometerAgentCentral
|
|
- OS::TripleO::Services::CeilometerAgentIpmi
|
|
- OS::TripleO::Services::CeilometerAgentNotification
|
|
- OS::TripleO::Services::CertmongerUser
|
|
- OS::TripleO::Services::CinderApi
|
|
- OS::TripleO::Services::CinderScheduler
|
|
- OS::TripleO::Services::CinderVolume
|
|
- OS::TripleO::Services::ContainerImagePrepare
|
|
- OS::TripleO::Services::ContainersLogrotateCrond
|
|
- OS::TripleO::Services::Docker
|
|
- OS::TripleO::Services::DockerRegistry
|
|
- OS::TripleO::Services::GlanceApi
|
|
- OS::TripleO::Services::GnocchiApi
|
|
- OS::TripleO::Services::GnocchiMetricd
|
|
- OS::TripleO::Services::GnocchiStatsd
|
|
- OS::TripleO::Services::HAproxy
|
|
- OS::TripleO::Services::HeatApi
|
|
- OS::TripleO::Services::HeatApiCfn
|
|
- OS::TripleO::Services::HeatEngine
|
|
- OS::TripleO::Services::IronicApi
|
|
- OS::TripleO::Services::IronicConductor
|
|
- OS::TripleO::Services::IronicInspector
|
|
- OS::TripleO::Services::IronicNeutronAgent
|
|
- OS::TripleO::Services::IronicPxe
|
|
- OS::TripleO::Services::Iscsid
|
|
- OS::TripleO::Services::Keepalived
|
|
- OS::TripleO::Services::Kernel
|
|
- OS::TripleO::Services::Keystone
|
|
- OS::TripleO::Services::LoginDefs
|
|
- OS::TripleO::Services::MasqueradeNetworks
|
|
- OS::TripleO::Services::Memcached
|
|
- OS::TripleO::Services::MistralApi
|
|
- OS::TripleO::Services::MistralEngine
|
|
- OS::TripleO::Services::MistralEventEngine
|
|
- OS::TripleO::Services::MistralExecutor
|
|
- OS::TripleO::Services::MySQL
|
|
- OS::TripleO::Services::NeutronApi
|
|
- OS::TripleO::Services::NeutronCorePlugin
|
|
- OS::TripleO::Services::NeutronDhcpAgent
|
|
- OS::TripleO::Services::NeutronL3Agent
|
|
- OS::TripleO::Services::NeutronOvsAgent
|
|
- OS::TripleO::Services::NovaApi
|
|
- OS::TripleO::Services::NovaConductor
|
|
- OS::TripleO::Services::NovaIronic
|
|
- OS::TripleO::Services::NovaMetadata
|
|
- OS::TripleO::Services::NovaPlacement
|
|
- OS::TripleO::Services::NovaScheduler
|
|
- OS::TripleO::Services::Novajoin
|
|
- OS::TripleO::Services::OsloMessagingNotify
|
|
- OS::TripleO::Services::OsloMessagingRpc
|
|
- OS::TripleO::Services::PankoApi
|
|
- OS::TripleO::Services::Podman
|
|
- OS::TripleO::Services::Redis
|
|
- OS::TripleO::Services::Rhsm
|
|
- OS::TripleO::Services::SELinux
|
|
- OS::TripleO::Services::Sshd
|
|
- OS::TripleO::Services::SwiftProxy
|
|
- OS::TripleO::Services::SwiftRingBuilder
|
|
- OS::TripleO::Services::SwiftStorage
|
|
- OS::TripleO::Services::Tempest
|
|
- OS::TripleO::Services::Timesync
|
|
- OS::TripleO::Services::TripleoFirewall
|
|
- OS::TripleO::Services::TripleoUI
|
|
- OS::TripleO::Services::Tuned
|
|
- OS::TripleO::Services::UndercloudUpgrade
|
|
- OS::TripleO::Services::TripleoValidations
|
|
- OS::TripleO::Services::Zaqar
|
|
- OS::TripleO::Services::Xinetd
|