The Neutron API requires that the content_type and accept headers
are correcty set in the request. This commit permit to fix this
issue.
It has been successfully tested with Tox.
Closes-Bug: 1754096
Change-Id: I977f97cd0692a86bac1d817fa1c4de27889f2675
Implemented as an alias of org.openstack.flavor.ephemeral so both can be
used.
Change-Id: I8764af5778d73b3a9e112cfff97be7efdda6af33
Related-Bug: 1687943
Updates in compute with correct mixin will produce a VM resize. The
resize will not be confirmed automatically unless the
resize_confirm_window is configured in nova.
Change-Id: I8b868a8a4fb403e337d3fe6c08b7d3f65736e545
Some tests used incorrect order of arguments in
assertEqual(observed, expected). The correct order expected
by testtool is assertEqual(expected, observed).
Change-Id: I9ef01d5aef1610830a4d89ecea3c5b128c9fa6ed
1.As mentioned in [1], we should avoid using six.iteritems to
achieve iterators. We can use dict.items instead, as it will
return iterators in PY3 as well. And dict.items/keys will more
readable.
2.In py2, the performance about list should be negligible, see
the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June
/066391.html
Change-Id: Icfc0998c77b4d9c2112af331d21ec5b41fd7de50
In setup.cfg file the python 3.4 support is removed
and added 3.5
In tox.ini the python 3.5 is added
Change-Id: Ib08992c2f1f66b210cd9480fd260515b6355bd30
ooi already uses PBR:-
setuptools.setup(
setup_requires=['pbr>=1.8'],
pbr=True)
This patch removes `MANIFEST.in` file as pbr generates a
sensible manifest from git files and some standard files
and it removes the need for an explicit `MANIFEST.in` file.
Change-Id: I716e59a188724f46d3503b26ff0114f246a2a4ac
We need to use the same environment (with the token, etc.) for making
the neutron calls, instead of just trying to obtain the token from the
headers (whose key lookup in the dictionary, by the way, was wrong). We
need to remove some keys from the environ, so that the new request is
created properly.
Change-Id: I86bedab940449a07780e288c03d4de789b8e695a
Change d5ad90a fixed the publication of OCCI/1.1 as the supported OCCI
version, but it introduced a new bug that prevented users from passing
OCCI/1.1 in the user agent, forcing them to be OCCI/1.2. Even if the
OCCI spec says that: "The 'User-Agent' header MUST include the same
value (OCCI/X.Y) as advertised by the server" we should continue
accepting OCCI/1.1 as a valid version.
Change-Id: Iabcd8fda367876568b6f221d0ecc5ab2ffa06c90
Closes-Bug: #1683317
Use block_device_mapping instead of block_device_mapping_v2 that seems
to not attach properly volumes on creation. This legacy option is enough
to support the requested use case (attaching volumes on boot).
Change-Id: I39f17faec6a48e90740e5e4757c1278df0b9830c
Closes-bug: #1679498
This is a complete change in which we have add the OCCI IPRESERVATION
class with the features provided by CESNET. We include: the controller,
the occi class, middleware changes, and tests to control it.
In addition, we have modified networklink to support this feature,
now networklink is identified by using only compute id and ipreservation
ip. Last, we add the documentation relate to its usage.
Change-Id: I52f80a9a7a39e00d1d7487001863586a551edf5f
To check if the user was providing a scoped token we were relying on the
"HTTP_X_PROJECT_ID" environment variable, relying on a KeyError
exception when accessing the dictionary. However, the variable can be
empty, resulting in a dictionary key "HTTP_X_PROJECT_ID":None. As a
consequence, we were using None as the project ID, resulting in
misleading errors.
Closes-bug: #1678060
Change-Id: I1956fd99be5771371b1d3401e335528c5cc6455e
OCCI1.2 creates new actions on compute resources, "save" creates
an snapshot of an existing image and includes that snapshot as
a valid OS Template.
Implements: blueprint snapshot-support
Change-Id: Ic416d3c5fd9757af4f949158a0a15c83775ea801
ooi needs to return URLs of objects matching the URL scheme used
for serving the application even if ooi is behind a SSL termination
proxy.
A new configuration variable "ooi_secure_proxy_ssl_header" that
defines the HTTP header that can be used to update the wsgi.url_scheme
environment variable. Typical value for this variable is
'HTTP_X_FORWARDED_PROTO'.
Change-Id: I7ce7583f64778f667a7ea310d493390d9e19f1e2
Closes-Bug: #1676844
We have implemented the API and helpers for Nova and Neutron for
the Security Group Resource and Link. Security Group is working
just by using json requests.
Change-Id: I15ce76a42caa75f158ac1a792aa44d2da8c7e404
Sometimes OpenStack does not return any device in the attached volumes, this
change avoids a KeyError when not defined.
Change-Id: If96fa02a7d6fd93e31667b2481943c6294173f72
Closes-Bug: #1663491
Text rendering of OCCI includes the category of the link associated to a
resource. This helps clients to select the links based on their kinds.
Change-Id: Ibd803cb26566e40b5fc589cdea6d111eaec36e03
Closes-Bug: #1656844
List the routers of the tenant and use the first router with external
gateway, thus It is linked to the public network.
In case no router with those features is found, a new one is created.
Change-Id: I696ebe04426fab7e210d86f30084c4fee64cbce8
Closes-bug: #1637497