From 6fec3a34db2c69e1b2d58d133bc9316dee78be32 Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Fri, 23 Jan 2015 16:23:16 +0000 Subject: FIXME: Replace localhost by 127.0.0.1 due some errors in some machines - this should be temporary --- clusters/openstack-cluster.morph | 46 +++++++++++----------- openstack/etc/cinder/cinder.conf | 10 ++--- openstack/etc/glance/glance-api.conf | 10 ++--- openstack/etc/glance/glance-cache.conf | 2 +- openstack/etc/glance/logging.conf | 2 +- openstack/etc/keystone/keystone.conf | 4 +- openstack/etc/keystone/logging.conf | 2 +- openstack/etc/neutron/metadata_agent.ini | 2 +- openstack/etc/neutron/neutron.conf | 4 +- .../etc/neutron/plugins/bigswitch/restproxy.ini | 2 +- openstack/etc/neutron/plugins/midonet/midonet.ini | 2 +- .../usr/share/openstack/openstack-cinder-setup | 2 +- .../usr/share/openstack/openstack-glance-setup | 2 +- .../usr/share/openstack/openstack-keystone-setup | 2 +- .../usr/share/openstack/openstack-neutron-setup | 2 +- openstack/usr/share/openstack/openstack-nova-setup | 2 +- 16 files changed, 48 insertions(+), 48 deletions(-) diff --git a/clusters/openstack-cluster.morph b/clusters/openstack-cluster.morph index e05e54d0..2d0e02ee 100644 --- a/clusters/openstack-cluster.morph +++ b/clusters/openstack-cluster.morph @@ -13,53 +13,53 @@ systems: VCPUS: 1 INSTALL_FILES: openstack/manifest HOSTNAME: Br-Openstack - RABBITMQ_HOST: localhost + RABBITMQ_HOST: 127.0.0.1 RABBITMQ_PORT: 5672 RABBITMQ_USER: rabbitmq RABBITMQ_PASSWORD: veryinsecure KEYSTONE_TEMPORARY_ADMIN_TOKEN: 22f3aa1cf538e3f6d5e8 KEYSTONE_TEMPORARY_ADMIN_PASSWORD: veryinsecure - KEYSTONE_PUBLIC_URL: http:\/\/localhost:5000\/v2.0 - KEYSTONE_INTERNAL_URL: http:\/\/localhost:5000\/v2.0 - KEYSTONE_ADMIN_URL: http:\/\/localhost:35357\/v2.0 + KEYSTONE_PUBLIC_URL: http:\/\/127.0.0.1:5000\/v2.0 + KEYSTONE_INTERNAL_URL: http:\/\/127.0.0.1:5000\/v2.0 + KEYSTONE_ADMIN_URL: http:\/\/127.0.0.1:35357\/v2.0 KEYSTONE_DB_USER: keystoneDB KEYSTONE_DB_PASSWORD: veryinsecure - IDENTITY_URI: http:\/\/localhost:35357 - OPENSTACK_AUTH_HOST: localhost + IDENTITY_URI: http:\/\/127.0.0.1:35357 + OPENSTACK_AUTH_HOST: 127.0.0.1 OPENSTACK_AUTH_PORT: 35357 GLANCE_SERVICE_USER: glance GLANCE_SERVICE_PASSWORD: veryinsecure - GLANCE_PUBLIC_URL: http:\/\/localhost:9292 - GLANCE_INTERNAL_URL: http:\/\/localhost:9292 - GLANCE_ADMIN_URL: http:\/\/localhost:9292 - GLANCE_HOST: localhost + GLANCE_PUBLIC_URL: http:\/\/127.0.0.1:9292 + GLANCE_INTERNAL_URL: http:\/\/127.0.0.1:9292 + GLANCE_ADMIN_URL: http:\/\/127.0.0.1:9292 + GLANCE_HOST: 127.0.0.1 GLANCE_DB_USER: glanceDB GLANCE_DB_PASSWORD: veryinsecure NOVA_HOST: 127.0.0.1 NOVA_SERVICE_USER: nova NOVA_SERVICE_PASSWORD: veryinsecure - NOVA_PUBLIC_URL: \"http:\/\/localhost:8774\/v2\/\%\(tenant_id\)s\" - NOVA_INTERNAL_URL: \"http:\/\/localhost:8774\/v2\/\%\(tenant_id\)s\" - NOVA_ADMIN_URL: \"http:\/\/localhost:8774\/v2\/\%\(tenant_id\)s\" - NOVA_NOVNCPROXY_BASE_URL: http:\/\/localhost:6080\/vnc_auto.html + NOVA_PUBLIC_URL: \"http:\/\/127.0.0.1:8774\/v2\/\%\(tenant_id\)s\" + NOVA_INTERNAL_URL: \"http:\/\/127.0.0.1:8774\/v2\/\%\(tenant_id\)s\" + NOVA_ADMIN_URL: \"http:\/\/127.0.0.1:8774\/v2\/\%\(tenant_id\)s\" + NOVA_NOVNCPROXY_BASE_URL: http:\/\/127.0.0.1:6080\/vnc_auto.html NOVA_REGION: regionOne NOVA_DB_USER: novaDB NOVA_DB_PASSWORD: veryinsecure CINDER_USER: cinder CINDER_PASSWORD: veryinsecure - CINDER_PUBLIC_URL: \"http:\/\/localhost:8776\/v1\/\%\(tenant_id\)s\" - CINDER_INTERNAL_URL: \"http:\/\/localhost:8776\/v1\/\%\(tenant_id\)s\" - CINDER_ADMIN_URL: \"http:\/\/localhost:8776\/v1\/\%\(tenant_id\)s\" + CINDER_PUBLIC_URL: \"http:\/\/127.0.0.1:8776\/v1\/\%\(tenant_id\)s\" + CINDER_INTERNAL_URL: \"http:\/\/127.0.0.1:8776\/v1\/\%\(tenant_id\)s\" + CINDER_ADMIN_URL: \"http:\/\/127.0.0.1:8776\/v1\/\%\(tenant_id\)s\" CINDER_USER_V2: cinderv2 - CINDER_PUBLIC_URL_V2: \"http:\/\/localhost:8776\/v2\/\%\(tenant_id\)s\" - CINDER_INTERNAL_URL_V2: \"http:\/\/localhost:8776\/v2\/\%\(tenant_id\)s\" - CINDER_ADMIN_URL_V2: \"http:\/\/localhost:8776\/v2\/\%\(tenant_id\)s\" + CINDER_PUBLIC_URL_V2: \"http:\/\/127.0.0.1:8776\/v2\/\%\(tenant_id\)s\" + CINDER_INTERNAL_URL_V2: \"http:\/\/127.0.0.1:8776\/v2\/\%\(tenant_id\)s\" + CINDER_ADMIN_URL_V2: \"http:\/\/127.0.0.1:8776\/v2\/\%\(tenant_id\)s\" CINDER_DB_USER: cinderDB CINDER_DB_PASSWORD: veryinsecure NEUTRON_SERVICE_USER: neutron NEUTRON_SERVICE_PASSWORD: veryinsecure NEUTRON_DB_USER: neutronDB NEUTRON_DB_PASSWORD: veryinsecure - NEUTRON_PUBLIC_URL: \"http:\/\/localhost:9696" - NEUTRON_INTERNAL_URL: \"http:\/\/localhost:9696" - NEUTRON_ADMIN_URL: \"http:\/\/localhost:9696" + NEUTRON_PUBLIC_URL: \"http:\/\/127.0.0.1:9696" + NEUTRON_INTERNAL_URL: \"http:\/\/127.0.0.1:9696" + NEUTRON_ADMIN_URL: \"http:\/\/127.0.0.1:9696" diff --git a/openstack/etc/cinder/cinder.conf b/openstack/etc/cinder/cinder.conf index e849d42e..0d713d88 100644 --- a/openstack/etc/cinder/cinder.conf +++ b/openstack/etc/cinder/cinder.conf @@ -16,7 +16,7 @@ state_path = /var/lib/cinder #rpc_conn_pool_size=30 # Qpid broker hostname. (string value) -#qpid_hostname=localhost +#qpid_hostname=127.0.0.1 # Qpid broker port. (integer value) #qpid_port=5672 @@ -661,7 +661,7 @@ auth_strategy=keystone #nova_catalog_admin_info=compute:nova:adminURL # Override service catalog lookup with template for nova -# endpoint e.g. http://localhost:8774/v2/%(project_id)s +# endpoint e.g. http://127.0.0.1:8774/v2/%(project_id)s # (string value) #nova_endpoint_template= @@ -2523,10 +2523,10 @@ connection=postgresql://##CINDER_DB_USER##:##CINDER_DB_PASSWORD##@127.0.0.1/cind # # Authentication url for encryption service. (string value) -#encryption_auth_url=http://localhost:5000/v2.0 +#encryption_auth_url=http://127.0.0.1:5000/v2.0 # Url for encryption service. (string value) -#encryption_api_url=http://localhost:9311/v1 +#encryption_api_url=http://127.0.0.1:9311/v1 [keystone_authtoken] @@ -2555,7 +2555,7 @@ auth_protocol=http auth_uri=$auth_protocol://$auth_host:$auth_port # Complete admin Identity API endpoint. This should specify -# the unversioned root endpoint e.g. https://localhost:35357/ +# the unversioned root endpoint e.g. https://127.0.0.1:35357/ # (string value) #identity_uri= diff --git a/openstack/etc/glance/glance-api.conf b/openstack/etc/glance/glance-api.conf index 709c9280..f53b1bb8 100644 --- a/openstack/etc/glance/glance-api.conf +++ b/openstack/etc/glance/glance-api.conf @@ -231,14 +231,14 @@ registry_client_protocol = http # notification_driver = noop # Default publisher_id for outgoing notifications. -# default_publisher_id = image.localhost +# default_publisher_id = image.127.0.0.1 # Messaging driver used for 'messaging' notifications driver # rpc_backend = 'rabbit' # Configuration options if sending notifications via rabbitmq (these are # the defaults) -rabbit_host = localhost +rabbit_host = 127.0.0.1 rabbit_port = 5672 rabbit_use_ssl = false rabbit_userid = guest @@ -252,7 +252,7 @@ rabbit_durable_queues = False # the defaults) qpid_notification_exchange = glance qpid_notification_topic = notifications -qpid_hostname = localhost +qpid_hostname = 127.0.0.1 qpid_port = 5672 qpid_username = qpid_password = @@ -454,7 +454,7 @@ s3_store_create_bucket_on_put = False # ============ Sheepdog Store Options ============================= -sheepdog_store_address = localhost +sheepdog_store_address = 127.0.0.1 sheepdog_store_port = 7000 @@ -470,7 +470,7 @@ sheepdog_store_chunk_size = 64 #cinder_catalog_info = volume:cinder:publicURL # Override service catalog lookup with template for cinder endpoint -# e.g. http://localhost:8776/v1/%(project_id)s (string value) +# e.g. http://127.0.0.1:8776/v1/%(project_id)s (string value) #cinder_endpoint_template = # Region name of this node (string value) diff --git a/openstack/etc/glance/glance-cache.conf b/openstack/etc/glance/glance-cache.conf index 0246b672..0a57d96f 100644 --- a/openstack/etc/glance/glance-cache.conf +++ b/openstack/etc/glance/glance-cache.conf @@ -140,7 +140,7 @@ s3_store_create_bucket_on_put = False #cinder_catalog_info = volume:cinder:publicURL # Override service catalog lookup with template for cinder endpoint -# e.g. http://localhost:8776/v1/%(project_id)s (string value) +# e.g. http://127.0.0.1:8776/v1/%(project_id)s (string value) #cinder_endpoint_template = # Region name of this node (string value) diff --git a/openstack/etc/glance/logging.conf b/openstack/etc/glance/logging.conf index 7e7f31f0..8de2ffd1 100644 --- a/openstack/etc/glance/logging.conf +++ b/openstack/etc/glance/logging.conf @@ -30,7 +30,7 @@ qualname=glance-combined class=handlers.SysLogHandler level=ERROR formatter=normal_with_name -args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER) +args=(('127.0.0.1', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER) [handler_file] class=FileHandler diff --git a/openstack/etc/keystone/keystone.conf b/openstack/etc/keystone/keystone.conf index ba837fd9..d9a60263 100644 --- a/openstack/etc/keystone/keystone.conf +++ b/openstack/etc/keystone/keystone.conf @@ -332,7 +332,7 @@ rpc_backend=rabbit # # URL to get token from ec2 request. (string value) -#keystone_ec2_url=http://localhost:5000/v2.0/ec2tokens +#keystone_ec2_url=http://127.0.0.1:5000/v2.0/ec2tokens # Required if EC2 server requires client certificate. (string # value) @@ -1137,7 +1137,7 @@ connection=postgresql://##KEYSTONE_DB_USER##:##KEYSTONE_DB_PASSWORD##@127.0.0.1/ # # Memcache servers in the format of "host:port". (list value) -#servers=localhost:11211 +#servers=127.0.0.1:11211 # Number of compare-and-set attempts to make when using # compare-and-set in the token memcache back end. (integer diff --git a/openstack/etc/keystone/logging.conf b/openstack/etc/keystone/logging.conf index 7a538ae8..21d43c8d 100644 --- a/openstack/etc/keystone/logging.conf +++ b/openstack/etc/keystone/logging.conf @@ -15,7 +15,7 @@ handlers=file class=handlers.SysLogHandler level=ERROR formatter=normal_with_name -args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER) +args=(('127.0.0.1', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER) [handler_file] class=FileHandler diff --git a/openstack/etc/neutron/metadata_agent.ini b/openstack/etc/neutron/metadata_agent.ini index 55bb891f..fb5ebffb 100644 --- a/openstack/etc/neutron/metadata_agent.ini +++ b/openstack/etc/neutron/metadata_agent.ini @@ -3,7 +3,7 @@ # debug = True # The Neutron user information for accessing the Neutron API. -auth_url = http://localhost:5000/v2.0 +auth_url = http://127.0.0.1:5000/v2.0 auth_region = RegionOne # Turn off verification of the certificate for ssl # auth_insecure = False diff --git a/openstack/etc/neutron/neutron.conf b/openstack/etc/neutron/neutron.conf index a3290144..1c66e080 100644 --- a/openstack/etc/neutron/neutron.conf +++ b/openstack/etc/neutron/neutron.conf @@ -243,7 +243,7 @@ notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True # URL for connection to nova (Only supports one nova region currently). -nova_url = http://localhost:8774/v2 +nova_url = http://127.0.0.1:8774/v2 # Name of nova region to use. Useful if keystone manages more than one region # nova_region_name = @@ -286,7 +286,7 @@ nova_admin_auth_url = ##KEYSTONE_ADMIN_URL## #rpc_conn_pool_size=30 # Qpid broker hostname. (string value) -#qpid_hostname=localhost +#qpid_hostname=127.0.0.1 # Qpid broker port. (integer value) #qpid_port=5672 diff --git a/openstack/etc/neutron/plugins/bigswitch/restproxy.ini b/openstack/etc/neutron/plugins/bigswitch/restproxy.ini index 256f7855..36e99bd7 100644 --- a/openstack/etc/neutron/plugins/bigswitch/restproxy.ini +++ b/openstack/etc/neutron/plugins/bigswitch/restproxy.ini @@ -19,7 +19,7 @@ # thread_pool_size : (default: 4) # A comma separated list of BigSwitch or Floodlight servers and port numbers. The plugin proxies the requests to the BigSwitch/Floodlight server, which performs the networking configuration. Note that only one server is needed per deployment, but you may wish to deploy multiple servers to support failover. -servers=localhost:8080 +servers=127.0.0.1:8080 # The username and password for authenticating against the BigSwitch or Floodlight controller. # server_auth=username:password diff --git a/openstack/etc/neutron/plugins/midonet/midonet.ini b/openstack/etc/neutron/plugins/midonet/midonet.ini index f2e94052..6cc02117 100644 --- a/openstack/etc/neutron/plugins/midonet/midonet.ini +++ b/openstack/etc/neutron/plugins/midonet/midonet.ini @@ -1,7 +1,7 @@ [midonet] # MidoNet API server URI -# midonet_uri = http://localhost:8080/midonet-api +# midonet_uri = http://127.0.0.1:8080/midonet-api # MidoNet admin username # username = admin diff --git a/openstack/usr/share/openstack/openstack-cinder-setup b/openstack/usr/share/openstack/openstack-cinder-setup index ade53e92..afe97111 100644 --- a/openstack/usr/share/openstack/openstack-cinder-setup +++ b/openstack/usr/share/openstack/openstack-cinder-setup @@ -27,7 +27,7 @@ getent passwd cinder >/dev/null || \ # Create the keystone user and services export OS_SERVICE_TOKEN=##KEYSTONE_TEMPORARY_ADMIN_TOKEN## -export OS_SERVICE_ENDPOINT='http://localhost:35357/v2.0' +export OS_SERVICE_ENDPOINT='http://127.0.0.1:35357/v2.0' keystone user-create --name ##CINDER_USER## --pass ##CINDER_PASSWORD## keystone user-role-add --tenant service --user ##CINDER_USER## --role admin diff --git a/openstack/usr/share/openstack/openstack-glance-setup b/openstack/usr/share/openstack/openstack-glance-setup index d9ee919e..9ae27241 100644 --- a/openstack/usr/share/openstack/openstack-glance-setup +++ b/openstack/usr/share/openstack/openstack-glance-setup @@ -25,7 +25,7 @@ getent passwd glance >/dev/null || \ # Create required keystone tenants, users and roles export OS_SERVICE_TOKEN=##KEYSTONE_TEMPORARY_ADMIN_TOKEN## -export OS_SERVICE_ENDPOINT='http://localhost:35357/v2.0' +export OS_SERVICE_ENDPOINT='http://127.0.0.1:35357/v2.0' keystone user-create --name ##GLANCE_SERVICE_USER## --pass ##GLANCE_SERVICE_PASSWORD## keystone user-role-add --tenant service --user ##GLANCE_SERVICE_USER## --role admin diff --git a/openstack/usr/share/openstack/openstack-keystone-setup b/openstack/usr/share/openstack/openstack-keystone-setup index 9623f129..3239b466 100644 --- a/openstack/usr/share/openstack/openstack-keystone-setup +++ b/openstack/usr/share/openstack/openstack-keystone-setup @@ -61,7 +61,7 @@ chown -R keystone:keystone /var/lib/keystone systemctl start openstack-keystone export OS_SERVICE_TOKEN=##KEYSTONE_TEMPORARY_ADMIN_TOKEN## -export OS_SERVICE_ENDPOINT='http://localhost:35357/v2.0' +export OS_SERVICE_ENDPOINT='http://127.0.0.1:35357/v2.0' # This script creates a TEMPORARY admin user, with a password that may # float arount on the system. Please delete this user once you have set up diff --git a/openstack/usr/share/openstack/openstack-neutron-setup b/openstack/usr/share/openstack/openstack-neutron-setup index e485bfe2..17a4e9fd 100644 --- a/openstack/usr/share/openstack/openstack-neutron-setup +++ b/openstack/usr/share/openstack/openstack-neutron-setup @@ -28,7 +28,7 @@ chown -R neutron:neutron /var/lib/neutron # Create the keystone user and services export OS_SERVICE_TOKEN=##KEYSTONE_TEMPORARY_ADMIN_TOKEN## -export OS_SERVICE_ENDPOINT='http://localhost:35357/v2.0' +export OS_SERVICE_ENDPOINT='http://127.0.0.1:35357/v2.0' keystone user-create --name ##NEUTRON_SERVICE_USER## --pass ##NEUTRON_SERVICE_PASSWORD## keystone user-role-add --tenant service --user ##NEUTRON_SERVICE_USER## --role admin diff --git a/openstack/usr/share/openstack/openstack-nova-setup b/openstack/usr/share/openstack/openstack-nova-setup index 796fbdf5..7d83b419 100644 --- a/openstack/usr/share/openstack/openstack-nova-setup +++ b/openstack/usr/share/openstack/openstack-nova-setup @@ -27,7 +27,7 @@ getent passwd nova >/dev/null || \ # Create the keystone user and services export OS_SERVICE_TOKEN=##KEYSTONE_TEMPORARY_ADMIN_TOKEN## -export OS_SERVICE_ENDPOINT='http://localhost:35357/v2.0' +export OS_SERVICE_ENDPOINT='http://127.0.0.1:35357/v2.0' keystone user-create --name ##NOVA_SERVICE_USER## --pass ##NOVA_SERVICE_PASSWORD## keystone user-role-add --tenant service --user ##NOVA_SERVICE_USER## --role admin -- cgit v1.2.1