Commit 6b835c48 authored by Jan Siersch's avatar Jan Siersch
Browse files

new: ubuntu cloud images work now

fix: metadata-agent could not communicate to nova-api
fix: host aliases in endpoints caused problems for some services
parent 1907c961
......@@ -30,6 +30,10 @@ dhcpbridge_flagfile = /etc/nova/nova.conf
dhcpbridge = /usr/bin/nova-dhcpbridge
force_dhcp_release = True
# metadata service
metadata_host = ${CONTROLNODE_IP_CTRL}
metadata_listen = ${CONTROLNODE_IP_CTRL}
# VNC web console
my_ip = ${CONTROLNODE_IP_CTRL}
vnc_enabled = true
......
......@@ -6,11 +6,11 @@ use_syslog = True
syslog_log_facility = LOG_LOCAL0
# metadata
nova_metadata_ip = controlnode
nova_metadata_ip = ${CONTROLNODE_IP_CTRL}
metadata_proxy_shared_secret = ${METADATA_SECRET}
# keystone configuration deliberately placed in DEFAULT section (according to official guide)
auth_uri = http://controlnode:5000/v2.0
auth_url = http://${CONTROLNODE_IP_CTRL}:5000/v2.0
auth_region = regionOne
admin_tenant_name = service
admin_user = neutron
......
......@@ -227,9 +227,9 @@ if [[ $doInstallKeystone == true ]]; then
# When you specify an endpoint, you provide URLs for the public API, internal API, and admin API
keystone endpoint-create \
--service-id $(keystone service-list | awk '/ identity / {print $2}') \
--publicurl "http://$CONTROLNODE_DNS_NAME:5000/v2.0" \
--internalurl "http://controlnode:5000/v2.0" \
--adminurl "http://controlnode:35357/v2.0"
--publicurl "http://${CONTROLNODE_DNS_NAME}:5000/v2.0" \
--internalurl "http://${CONTROLNODE_IP_CTRL}:5000/v2.0" \
--adminurl "http://${CONTROLNODE_IP_CTRL}:35357/v2.0"
# 3.4 Verify the Identity Service installation
......@@ -287,9 +287,9 @@ if [[ $doInstallGlance == true ]]; then
keystone service-create --name "glance" --type "image" --description "OpenStack Image Service"
keystone endpoint-create \
--service-id $(keystone service-list | awk '/ image / {print $2}') \
--publicurl "http://$CONTROLNODE_DNS_NAME:9292" \
--internalurl "http://controlnode:9292" \
--adminurl "http://controlnode:9292" \
--publicurl "http://${CONTROLNODE_DNS_NAME}:9292" \
--internalurl "http://${CONTROLNODE_IP_CTRL}:9292" \
--adminurl "http://${CONTROLNODE_IP_CTRL}:9292" \
--region "regionOne"
# Install the Image Service on the controlnode:
......@@ -327,9 +327,9 @@ if [[ $doInstallNova == true ]]; then
keystone service-create --name "nova" --type "compute" --description "OpenStack Compute"
keystone endpoint-create \
--service-id $(keystone service-list | awk '/ compute / {print $2}') \
--publicurl "http://$CONTROLNODE_DNS_NAME:8774/v2/%(tenant_id)s" \
--internalurl "http://controlnode:8774/v2/%(tenant_id)s" \
--adminurl "http://controlnode:8774/v2/%(tenant_id)s" \
--publicurl "http://${CONTROLNODE_DNS_NAME}:8774/v2/%(tenant_id)s" \
--internalurl "http://${CONTROLNODE_IP_CTRL}:8774/v2/%(tenant_id)s" \
--adminurl "http://${CONTROLNODE_IP_CTRL}:8774/v2/%(tenant_id)s" \
--region "regionOne"
# Install the Compute packages necessary for the controller node.
......@@ -376,9 +376,9 @@ if [[ $doInstallNeutron == true ]]; then
keystone service-create --name "neutron" --type "network" --description "OpenStack Networking"
keystone endpoint-create \
--service-id $(keystone service-list | awk '/ network / {print $2}') \
--publicurl "http://$CONTROLNODE_DNS_NAME:9696" \
--adminurl "http://controlnode:9696" \
--internalurl "http://controlnode:9696" \
--publicurl "http://${CONTROLNODE_DNS_NAME}:9696" \
--adminurl "http://${CONTROLNODE_IP_CTRL}:9696" \
--internalurl "http://${CONTROLNODE_IP_CTRL}:9696" \
--region "regionOne"
# To install the Networking components
......@@ -448,15 +448,15 @@ if [[ $doInstallCinder == true ]]; then
keystone service-create --name "cinderv2" --type "volumev2" --description "OpenStack Block Storage v2"
keystone endpoint-create \
--service-id $(keystone service-list | awk '/ volume / {print $2}') \
--publicurl "http://$CONTROLNODE_DNS_NAME:8776/v1/%(tenant_id)s" \
--internalurl "http://controlnode:8776/v1/%(tenant_id)s" \
--adminurl "http://controlnode:8776/v1/%(tenant_id)s" \
--publicurl "http://${CONTROLNODE_DNS_NAME}:8776/v1/%(tenant_id)s" \
--internalurl "http://${CONTROLNODE_IP_CTRL}:8776/v1/%(tenant_id)s" \
--adminurl "http://${CONTROLNODE_IP_CTRL}:8776/v1/%(tenant_id)s" \
--region "regionOne"
keystone endpoint-create \
--service-id $(keystone service-list | awk '/ volumev2 / {print $2}') \
--publicurl "http://$CONTROLNODE_DNS_NAME:8776/v2/%(tenant_id)s" \
--internalurl "http://controlnode:8776/v2/%(tenant_id)s" \
--adminurl "http://controlnode:8776/v2/%(tenant_id)s" \
--publicurl "http://${CONTROLNODE_DNS_NAME}:8776/v2/%(tenant_id)s" \
--internalurl "http://${CONTROLNODE_IP_CTRL}:8776/v2/%(tenant_id)s" \
--adminurl "http://${CONTROLNODE_IP_CTRL}:8776/v2/%(tenant_id)s" \
--region "regionOne"
# Install the appropriate packages for the Block Storage service:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment