Adds support for SSL verification when ``OPENSTACK_SSL_CACERT`` is set.
Explicitly skips verification if ``OPENSTACK_SSL_NO_VERIFY`` is set.
This also switches to Session-based instantiation for the Blazar client,
away from the deprecated url+token method.
Closes-Bug: #2045281
Change-Id: I94aad7590b1e42ddfa1a20fdb184ca4d73587cd6
The red error box will now show why a lease failed to be created or
updated, for example if not enough resources are available.
Also remove "Please try again" which is not a helpful message.
Change-Id: Id0b39fd151956ae6b08ab503a7ae0c5dc09af7f6
This adds a calendar view where users can see a timeline of resources,
showing when each resource is reserved.
Implements: blueprint calendar-view
Change-Id: I4f2649d6c9538037dff4747ef4a8210da3666354
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .
Change-Id: Ia9b66536afe2c0122b652c58d9e11235f962a71c
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Update hacking to version 3.0; remove hacking and friends
from requirements, they are not needed; fix warnings found
- Use unittest.mock
Change-Id: I379c086a15477da4b0223fddd48035c829992c88
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3, convert six usage to Python
3 code.
Change-Id: I48967b4e792dccade818389bf43707cde2e15c2b
Blazar supports True and None for the affinity key in the instance
reservation from Stein release. This patch follows the change in
the blazar dashboard.
Closes-Bug: #1821168
Change-Id: Ibceef87ee717cd978e38765bde80e8294a69833d
This code doesn't match the new lease status introduced in Queens and is
not used anywhere anyway.
Change-Id: I1189f149aff4407f00dbb890c3f0e02a0aa79a14
Now that mox has been removed we can remove the create_stubs
helper function as well.
Change-Id: Ie240357a4ff6346a4acfa6efcbb1c8d2f16f3c5a
Signed-off-by: Chuck Short <chucks@redhat.com>
Replace django.core.urlresolves with django.urls
(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3
Add py35dj20 job to test Django 2.0 integration.
Also drops older Django unit tests from tox.ini
as horizon dropped Django <=1.10 support in Rocky.
Change-Id: I099c7b019c930307d3aae64b1729d6f532fc1653
This patch changes the reservation view in the detailed view of a lease.
General reservation parameters are shown first and resource specific
parameters are shown after them.
Change-Id: I6b3d91370c26332bba5452a28be3020653fd11fd
Closes-Bug: #1711554
The action and the status_reason fields are not used in the latest
state-machine. This patch stops showing these unused fields.
Partially Implements: blueprint state-machine
Change-Id: I14e7e2c545c37f215c0303d6906748f4d5a120ab
This patch updates documents for aligning with OpenStack documentation
standards which include using the openstackdocstheme.
This patch also replaces Nova host-list API calls with hypervisor-list
API calls because the former was superseded by the latter [1].
These changes are not related but squashed into one patch for passing
gate tests.
[1] https://docs.openstack.org/releasenotes/python-novaclient/queens.html#id4
Change-Id: I1fe652c17983f2b4505be50d01a26678bf50ef29
Partial-Bug: #1721489
"Cancel" appears large and grey, styled like the X to close the form. It
also needs to appear before the "Update" element in the source,
otherwise there is no spacing between the two buttons.
Change-Id: Idd03e1a178523b07d644b54e5e48a40b5f3f8c60
If a Blazar host was created with an empty cpu_info value, displaying
host details would fail with the error:
SyntaxError: unexpected EOF while parsing (<string>, line 0)
This is because calling eval() on an empty string raises a SyntaxError.
This patch ensures that if cpu_info is empty, it is set to an empty
dictionary instead.
Change-Id: I38d9f92fd7937de4ec1492d06ddea834b6c423ef
This patch adds an update host form to the blazar-dashboard.
Partially Implements: blueprint host-operation-with-dashboard
Change-Id: Ib8eec00ba652bd27c0ab9d9d28267d2cc23055e5
This patch adds a create host workflow to the blazar-dashboard.
Partially Implements: blueprint host-operation-with-dashboard
Change-Id: Idaf142a947963d3cccaf94e3e611fe7c9bcebf94
This patch adds a host delete support to the blazar-dashboard.
Push the Delete button in the list view and you can delete a host.
Partially Implements: blueprint host-operation-with-dashboard
Change-Id: Id3faf448c8afbde379780884f7cbbad442b55115
This patch adds a detailed view of host information. Click a host name
in the list view and you can see the detailed view.
Partially Implements: blueprint host-operation-with-dashboard
Change-Id: I6ee0286f1f79f151b9908d4952d54f5ba748b7ad
This patch adds a new 'Hosts' panel to the admin dashboard. This panel
is grouped in the 'Reservation' group. Only a list view of hosts is
currently supported.
Partially Implements: blueprint host-operation-with-dashboard
Change-Id: I691fa53de4de1e3fbf367eba2f997cd6cafba875
This patch changes the template of detail view to show more detailed
information of reservations.
Partially Implements: blueprint climate-dashboard
Change-Id: Iae34757bb870e84fb6a58eebe6b04da470d22688
This patch adds a lease creation feature to the Blazar dashboard.
Change-Id: Id078c570122e3de4d4569023f85a94af7ccaa05b
Partially Implements: blueprint climate-dashboard