Use default_project_id as user project for keystone v3

This fixes the keystone api module so that it looks for the
default_project_id attribute on the user and uses that as the
primary project.

Closes-Bug: 1347840
Change-Id: If3ea4625ae50ae4561df3e566d1236b86226307b
(cherry picked from commit 03f9caa9d1e43ac4c4db4c10c16e07ca14daaf6e)
Proper port for LBaaS members

This patch set makes loadbalancer select a port on pool subnet
for new members if possible.

Conflicts:
        openstack_dashboard/dashboards/project/loadbalancers/tests.py
        openstack_dashboard/dashboards/project/loadbalancers/workflows.py

Closes-Bug: #1288859

Change-Id: I0809908ec5d15a448691dccf526b66308cf929d4
(cherry picked from commit 98bd3159d65b5d94b10403b6894002ea6de553b2)
TEMPLATE_DIRS must be a tuple

With Django 1.7, TEMPLATE_DIRS must be a tuple. The
definition in horizon/test/settings.py must therefore
have a leading comma. Note that other definitions of
TEMPLATE_DIRS are already like this in Horizon, so
this just fixes the one instance which is wrong.

Note that it is required to support Django 1.7 in
Icehouse, because we're planning to release Debian
Jessie with both Django 1.7 and Icehouse. This is to
*support* Django 1.7, not at all to *switch* to it,
which is very different.

Change-Id: I4d9aa9e716e4cf6c2b56fd25ab8fde9187fc5108
(cherry picked from commit daf9e5c772f82b783ce2255f7cd347ef397efcaf)
Not able to delete a pseudo-folder via horizon

Through horizon the user not able to delete a
pseudo-folder. it giving a error message like
'you are not allowed to delete object'

problem-1:
'subfolders' datatype is not added in the
allowed datatypes tuple, so the delete operation
is not allowed for pseudo-folder. now the 'subfolder'
is added in the tuple.

problem-2:
the object name is starting with container name and
not trailing with '/'. now the object name is modified
before sending to swift client.(removing the container
name and trailing with '/'.

Change-Id: Ifced62b24a9b6e4800b70dae2912ff16d809743d
Closes-Bug: #1317016
Co-Authored-By: Mizielski Robert <robert.mizielski@cloudwatt.com>
(cherry picked from commit a46ce9e3ffaa4ee18618ea18496a76508717c871)
Fix endpoint error when running keystone on apache

When running keystone in httpd, horizon could not generate the
right keystone endpoint url. Fixes this issue by retrieving the
whole path from the service_catalog or OPENSTACK_KEYSTONE_URL
and generating a new url.

Change-Id: Id8459947498127e47700d9f690d4ed4d5cadbba9
Closes-bug: #1295128
(cherry picked from commit 48a0d07e45bac04393978776c63b67cd7c71415d)
Merge "Fix endpoint error when running keystone on apache" into stable/icehouse
Merge "Use default_project_id as user project for keystone v3" into stable/icehouse
Merge "Proper port for LBaaS members" into stable/icehouse
Merge "Not able to delete a pseudo-folder via horizon" into stable/icehouse
Merge "TEMPLATE_DIRS must be a tuple" into stable/icehouse
Merge branch 'stable/icehouse' of https://github.com/openstack/horizon into stable/icehouse