httpd won't start when upgrading from OSP 8 to OSP 9 with redefined ServiceNetMap in Red Hat OpenStack Platform
Issue
Templates will work with the following section added to network-environment.yaml
in OSP 8. The same templates fail in OSP 9.
ServiceNetMap:
NeutronTenantNetwork: tenant
CeilometerApiNetwork: internal_api
MongoDbNetwork: external
CinderApiNetwork: external
CinderIscsiNetwork: storage
GlanceApiNetwork: external
GlanceRegistryNetwork: external
KeystoneAdminApiNetwork: external
KeystonePublicApiNetwork: external
NeutronApiNetwork: external
HeatApiNetwork: external
NovaApiNetwork: external
NovaMetadataNetwork: external
NovaVncProxyNetwork: external
SwiftMgmtNetwork: storage_mgmt
SwiftProxyNetwork: storage
HorizonNetwork: external
MemcachedNetwork: external
RabbitMqNetwork: external
RedisNetwork: external
MysqlNetwork: external
CephClusterNetwork: storage_mgmt
CephPublicNetwork: storage
# Define which network will be used for hostname resolution
ControllerHostnameResolveNetwork: external
ComputeHostnameResolveNetwork: external
BlockStorageHostnameResolveNetwork: internal_api
ObjectStorageHostnameResolveNetwork: internal_api
CephStorageHostnameResolveNetwork: storage
Using that same config to deploy to OSP 9 it fails and it cannot start httpd.
Output from the overcloud controller for OSP 9.
systemctl status httpd -l
(...)
Nov 02 21:50:24 overcloud-controller-0.localdomain python[17948]: /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_conf.html
Nov 02 21:50:24 overcloud-controller-0.localdomain python[17948]: /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html
Nov 02 21:50:24 overcloud-controller-0.localdomain python[17948]: /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_scripts.html
Nov 02 21:50:24 overcloud-controller-0.localdomain python[17948]: Compressing... done
Nov 02 21:50:24 overcloud-controller-0.localdomain python[17948]: Compressed 4 block(s) from 3 template(s) for 1 context(s).
Nov 02 21:50:25 overcloud-controller-0.localdomain httpd[18136]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8041
Nov 02 21:50:25 overcloud-controller-0.localdomain httpd[18136]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8041
Nov 02 21:50:25 overcloud-controller-0.localdomain httpd[18136]: no listening sockets available, shutting down
Nov 02 21:50:25 overcloud-controller-0.localdomain httpd[18136]: AH00015: Unable to open logs
Nov 02 21:50:25 overcloud-controller-0.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Nov 02 21:50:25 overcloud-controller-0.localdomain kill[18139]: kill: cannot find process ""
Nov 02 21:50:25 overcloud-controller-0.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
Nov 02 21:50:25 overcloud-controller-0.localdomain systemd[1]: Failed to start Cluster Controlled httpd.
Nov 02 21:50:25 overcloud-controller-0.localdomain systemd[1]: Unit httpd.service entered failed state.
Nov 02 21:50:25 overcloud-controller-0.localdomain systemd[1]: httpd.service failed.
Nov 02 21:50:27 overcloud-controller-0.localdomain systemd[1]: Stopped The Apache HTTP Server.
(...)
/etc/httpd/conf/ports.conf
has the following for OSP 9, it has extra lines for "Listen" versus the OSP 8 overcloud controller.
cat ports.conf
# ************************************
# Listen & NameVirtualHost resources in module puppetlabs-apache
# Managed by Puppet
# ************************************
Listen 10.0.0.150:35357
Listen 10.0.0.150:5000
Listen 10.0.0.150:80
Listen 8041
Listen 8042
cat /etc/httpd/conf/ports.conf
# ************************************
# Listen & NameVirtualHost resources in module puppetlabs-apache
# Managed by Puppet
# ************************************
Listen 10.0.0.121:80
Environment
Red Hat OpenStack Platform 9.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.