Commit Graph

323 Commits

Author SHA1 Message Date
OpenDev Sysadmins fb6b335318 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:13 +00:00
zhouxinyong c021a204f1 Replacing the link in HACKING.rst
Change-Id: I54854bd097010d97ca38b2c46d490f9a8de6fa4d
2018-11-16 11:43:12 +08:00
Jerome Pansanel db1a78a9c8 Set correctly request parameters for the list_resources request
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
2018-03-08 09:09:48 +01:00
Jenkins 9ab7f8299b Merge "Removes listing of inaccessible subnets" 2017-08-24 08:24:52 +00:00
Enol Fernandez f29d0803a9 Add a new base mixin for Floating IP
Change-Id: I1c0f61db4e549bca6233231230c24a5c453d1a00
Closes-Bug: 1687935
2017-08-23 10:23:05 +01:00
Enol Fernandez 3647b2bbf0 Add missing location to mixins
Change-Id: I25d3a2ae81c42f24d98ed2536e3dd0acb06b96e3
Closes-Bug: 1687933
2017-08-23 07:49:09 +01:00
Luís Alves 73e744d6b1 Removes listing of inaccessible subnets
- Related-Bug: 1709249
 - WARN when subnet is inaccessible

Change-Id: I22fd07025300127d411803d4ea0351eb09c1ce64
2017-08-11 09:55:25 +01:00
Jenkins 8f3a0de485 Merge "Add occi.compute.ephemeral_storage.size attribute" 2017-08-03 11:45:09 +00:00
Enol Fernandez f936ed3c78 Render default values that are not None
Allow rendering 0, False and other default values that would be
considered as false by python.

Change-Id: I0108b4430e831a7aa14bfd8d6deb4accb759d578
2017-08-03 11:33:50 +00:00
Enol Fernandez 54d97ffcda Add occi.compute.ephemeral_storage.size attribute
Implemented as an alias of org.openstack.flavor.ephemeral so both can be
used.

Change-Id: I8764af5778d73b3a9e112cfff97be7efdda6af33
Related-Bug: 1687943
2017-08-03 11:33:47 +00:00
Enol Fernandez 8500d14450 Add default values to resource templates
Change-Id: I55e5b66cdc1d861651658d8e3bad204618ad2e35
Closes-Bug: 1687943
2017-08-03 11:33:21 +00:00
Enol Fernandez 9a98331c7f Add applies to compute mixins
Change-Id: I2a7b9403063fa42806751a37fb9e8ec8a082a7cd
Closes-Bug: 1687938
2017-08-03 10:42:47 +00:00
Enol Fernandez 8f669d9225 Add VM resize support
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
2017-08-01 07:18:13 +00:00
Jenkins 65bd940498 Merge "Remove unused logging import" 2017-07-11 08:34:32 +00:00
Kiran_totad 51a1d47ec4 Remove unused logging import
Change-Id: I897c47758f38c935572d19440eb7f54840a13f81
2017-07-11 06:04:25 +00:00
Jenkins ca4f137ae9 Merge "Drop MANIFEST.in - it's not needed by pbr" 2017-07-10 08:44:44 +00:00
Jenkins db29af8c96 Merge "Removed the older version of python and added 3.5" 2017-07-10 08:44:11 +00:00
Jenkins aea176223f Merge "Fixed order of arguments in assertEqual" 2017-07-10 08:41:17 +00:00
sudhir_agarwal 70942f44ea Fixed order of arguments in assertEqual
Some tests used incorrect order of arguments in
assertEqual(observed, expected). The correct order expected
by testtool is assertEqual(expected, observed).

Change-Id: I9ef01d5aef1610830a4d89ecea3c5b128c9fa6ed
2017-07-06 18:20:39 +05:30
kavithahr 4c72f8233c Replace six.iteritems() with .items()
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
2017-07-06 11:41:20 +05:30
Arundhati Surpur c4bd5a88aa Removed the older version of python and added 3.5
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
2017-07-05 14:47:45 +05:30
Arundhati Surpur 64c3b5b7c2 Drop MANIFEST.in - it's not needed by pbr
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
2017-07-05 14:37:53 +05:30
Alvaro Lopez Garcia 4923182db3 Use same environment for Neutron calls
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
2017-06-27 11:18:23 +02:00
Alvaro Lopez Garcia b3d479729a Publish and accept OCCI/1.1 as a valid version
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
2017-04-17 13:34:53 +02:00
Jenkins 5032dbdf08 Merge "Fix block_device_mapping on compute creation" 2017-04-12 10:30:12 +00:00
Jenkins f6b3c5a5a6 Merge "Use the correct OCCI version" 2017-04-12 10:29:37 +00:00
Alvaro Lopez Garcia d5ad90a7c6 Use the correct OCCI version
We were still publishing OCCI 1.1 as the version, instead of OCCI 1.2

Closes-bug: #1679049
Change-Id: I7b76ef24b7a296f19980a63c6472b47ded96b4eb
2017-04-12 12:07:31 +02:00
Jenkins 03ca1e68f1 Merge "Include OCCI1.2 save action" 2017-04-12 09:32:49 +00:00
Enol Fernandez 571cca3752 Fix block_device_mapping on compute creation
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
2017-04-05 11:50:04 +01:00
Jenkins 2e6c6b22c0 Merge "Included OCCI IPReservation support" 2017-04-03 07:07:34 +00:00
Jorge Sevilla 7566dce6af Included OCCI IPReservation support
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
2017-04-03 08:59:52 +02:00
Alvaro Lopez Garcia 0549ee16cb Check if project id is None from headers
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
2017-04-03 08:38:50 +02:00
Alvaro Lopez Garcia ddbe190568 doc: Add upgrade instructions and references to OCCI 1.2
Change-Id: I337a764538e78df057de7955327ad43c100d2acd
2017-04-03 06:00:01 +00:00
Enol Fernandez f6fdeaf0b7 Include OCCI1.2 save action
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
2017-03-31 14:13:14 +02:00
Jenkins 98af646b0c Merge "Security Group support for Nova and Neutron" 2017-03-31 12:06:23 +00:00
Jenkins d01e7b04fb Merge "Include OCCI Security Group infrastructure" 2017-03-31 11:52:57 +00:00
Enol Fernandez 0073c37e62 Documentation for ooi_secure_proxy_ssl_header
Change-Id: I62c26b4103495e88b83f8d73f5d7adfce5668a82
2017-03-30 09:35:23 +01:00
Alvaro Lopez Garcia b0ac957fc0 Change Python 3.3 support to 3.4
Change-Id: I02813ef34265e9100d10f9d51506f3af237604bc
2017-03-30 08:57:34 +02:00
Alvaro Lopez Garcia 59e75c3f5d docs: fix network.py docstring
Change-Id: If527afa733f4ad8ac54f695330a4a08aa0ae2b7e
2017-03-29 10:29:40 +00:00
Alvaro Lopez Garcia 79c830bfdb docs: fix underline for section
Change-Id: I66db77940e87f0b02e16c8bf371c348ed97bfed7
2017-03-29 10:29:24 +00:00
Jenkins 9952ec8bdd Merge "docs: update pipelines for Mitaka and Newton" 2017-03-29 10:17:28 +00:00
Alvaro Lopez Garcia 6ead85fdb1 docs: update pipelines for Mitaka and Newton
Change-Id: Ia6febb510273e3b417e2ed5d61c9f7a4d64e4e52
2017-03-29 11:48:43 +02:00
Jenkins 4cfa69d21c Merge "docs: clean up environment before building" 2017-03-29 08:27:44 +00:00
Enol Fernandez d1da7a1dfe Add option to handle SSL termination proxies
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
2017-03-28 13:16:25 +01:00
Jorge Sevilla ecf29929d7 Security Group support for Nova and Neutron
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
2017-02-24 17:59:57 +01:00
Jorge Sevilla 647740eb9c Include OCCI Security Group infrastructure
This change add the OCCI Security Group infrastructure following
the features provided by CESNET.

Change-Id: Ic573210399bbcd30e699d0d4f6446b932230d4ae
2017-02-24 16:49:21 +01:00
Enol Fernandez a8cfcb58e8 Do not crash on volume attachments without device
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
2017-02-13 07:09:55 +00:00
Alvaro Lopez Garcia 37d7dbfe64 docs: clean up environment before building
Change-Id: I6f51a27271a75efe57228b74abdbb589151212d8
2017-01-30 17:43:20 +01:00
Enol Fernandez bb194c3e8e Add categories to resource links
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
2017-01-16 18:03:54 +00:00
jorgesece e2207d7c12 Check if router exists on network creation
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
2017-01-16 08:22:31 +00:00