This patch serves to correct the problem presented in UFCG OneView CI,
in which the node was being created and changed the state to manageable,
and only validate the memory_mb after that.
Change-Id: Id0ef20b320a622da6990f6ffaf26256059582743
This patch serves to correct the problem presented in UFCG OneView CI,
in which the node was being created and changed the state to manageable,
and only creating the port after that.
This breaking one of its validations and with this new verification,
this problem can be solved.
Change-Id: I5be89d54c886b24553a6c7f9d836e9ba28211b9b
Before, the python-oneviewclient was getting the mac for
the first device and physical port in the Server Hardware.
This patch ensures that the mac its from a physical ethernet
port and port function 'a'.
Change-Id: Ia45053cd9d30cd0496c2b497dc71edd067976e72
Remove self from the method calling when using
_is_node_port_mac_compatible_with_server_hardware and
_validate_server_profile_template_mac_type
Change-Id: I60467a61c28c9ccab35c83f16659d8697023fb39
Co-Authored-By: Saulo-Aislan <sauloa@lsd.ufcg.edu.br>
The OpenStack doesnt check tests with python34
anymore, this patch bumps oneviewclient python
version to python35 when running tests with tox.
Change-Id: I5fd374e72335832a504955d50ed31df45068ffe9
This patch its about to add all connections validation
for flat and neutron network interface and if the user
its using the OneView ml2 Driver.
Change-Id: I6c47f6b09d22b530da8eeac189ff54f603850723
This patch adds a new validation to OneView Server Profile
Template to ensure OneView drivers can manage the boot order of
the Server Profile and validates the connections to have at least
one primary boot priority.
Change-Id: Ie65731a38061171627e7a0786efc083a5518085a
This commit inteds to add the attribute macType to the Server Profile
Template (SPT) model and to create the method
validate_server_profile_template_mac_type within the class
oneview_client.client.Client to verify if the SPT has a physical MAC.
This will be used at the Ironic's driver to ensure that the SPT has a
physical MAC when dynamic allocation is being used.
Change-Id: I21a1ebfc14ec33c661a1e7c7c1dbdcdcab04f119
Partial-Bug: 1627818
Co-Authored-By: Charlle Daniel <charlledaniel@lsd.ufcg.edu.br>
This patch removes the validation for cpus due inconsistency of the
value returned by the inspection process when processor supports
hyper-threading technology.
Change-Id: I0e389e9e8699749dd8a2267891c6649222e6e2e8
When the OneView resource is not found in the driver validation,
the exception message just says "resource not found in oneview".
This patch adds the URL of the resource not found to the OneView
exception message.
Change-Id: Iaab4d50d42a361719f11a968b2423456eb1ad728
This patch address the case of validating resources like memory_mb
and cpus that have same values but doesn't have same type, for
example, in case of node's memory_mb and cpus registered as unicode
after an inspection process. In this patch we convert the data into
to string, making possible the values pass in the validation when
correct.
Change-Id: I014ace14cb315444643c7e2c8d5b43b01cc7ef86
This change is about adding the ability of python-oneviewclient to
register time, parameters values and return values for methods
calls that do requests to OneView appliance. The instrumentation
implemented by this patch provides the necessary support that will
be needed to measure the performance of the OneView driver for
ironic and other tools.
Change-Id: Iae7fe8ec559ccb2cbf8f93486eb4a1a674d7053a
Co-Authored-By: Hugo Nicodemos <nicodemos@lsd.ufcg.edu.br>
To set the ground for singleton oneview_client and re-use the session token,
first, it needs to re-authenticate when the session token becomes invalid. This
will ensure that a singleton instance of oneview_client won't break the service
when the object is alive further than the token expiration time.
Change-Id: Ia01435faf5f4bf84d896dc20ad07eed75280df3e
requests==2.11.0 is now checking header parameters for string or buffer types.
We were passing SUPPORTED_ONEVIEW_VERSION as int, but now it's not allowed.
This patch str's SUPPORTED_ONEVIEW_VERSION before passing it to requests.
This patch also fixes a transient error occuring due to simultaneous access to
constants in 'fixtures.py'.
Change-Id: I188914c0f1c6a1c8496da59857e99ff03a2b83e6
Since the OneView API for get a list of resources using count=-1 doesn't
work properly, this patch set a high value to workaround that case.
Change-Id: I5867556578072442c8fdafa5bcdd4338d38840a1
Currently it logs IncompatibleOneViewAPIVersion which confuses
users to assume it is version issue. It can be wrong request
call.
Change-Id: I0bd69a9173d7318bb9e06a38ba54c043f9198b30
Closes-Bug: 1603928
By default, OneView doesn't provide on its API a facility to set one-time boot
on managed ServerHardware. This patch aims to allow it through bypassing OneView
and using iLO's REST interface directly. Also, some optimization is made to not
try to set again the boot device if the selected one is already the primary.
Change-Id: I1163048b6edf8778c3a84414804b73eef2c0fd5f
The `validate_spt_boot_connections` were throwing exception when encoutered a
NotBootable connection even when the Primary is present. This patch solves that
and adds tests to ensure the behavior expected from this validation.
Change-Id: Ic00205bfc69818e68c61aab207a6900a55b493be
This change is a subset of patch 294559 to help the reviews and
decouple code.
Added _is_uuid_valid to check is a uuid is valid.
Added get_uri_from_uuid to translate a given resource UUID to a
resource URI.
Change-Id: Ida83b476e722f0e3c6f987cd5b893f8a8127c3b4
This patch adds server profile application and removal operations.
Relates to the dynamic allocation series of patches.
Co-Authored-By: Lilia Sampaio <liliars@lsd.ufcg.edu.br>
Co-Authored-By: Xavier <marcusrafael@lsd.ufcg.edu.br>
Co-Authored-By: Caio Oliveira <caiobo@lsd.ufcg.edu.br>
Co-Authored-By: Hugo Nicodemos <nicodemos@lsd.ufcg.edu.br>
Change-Id: I4aed1109226fd998c48913a022f39c7fe293f489
This change turns the Python Requests library warning messages hidden
when connecting to oneview without HTTPS, with the option
allow_insecure_connection as True.
Change-Id: I1c5790d93fd490114211a7245f84793d027c045a
A bug has been introduced on the code along with ClientV2.
`get_server_profile_template` was calling the manager of server_profile instead
of server_profile_template. This wasn't seen because functional tests for
Client(v1) were wrong and useless. Tests fixed for the case above and I changed
.testr.conf to run funcional tests on py34 and py27 gates since they're mocked
at the limits of the system anyway.
Change-Id: Iea97095dbf34267a053dafbee0ebcd56ec55db13
In recent run of devstack, I found that python-oneviewclient was installing a
version of pbr that wasn't the most up to date version used by openstack
services. In consequence of that, services restarted after the build of devstack
were failing. To solve that, a couple of commits were proposed on
openstack-infra/project-config and openstack/requirements so as the "Openstack
Proposal Bot" proposes changes in python-oneviewclient when the
global-requirements changes. But until the patches are approved,
I'm proposing this patch on emergency basis to update the requirements file and
keep the integration Ironic/OneView working.
Change-Id: I2a034117ad902774a613bc3c8088ac72413242e9
The previous commit left a __getattribute__ definition in models.OneViewObject
that would enter an infinite loop when called with an argument that isn't on the
attribute_map of the instance. I'm removing it since it was legacy of a test and
shoudn't have remained on the code. This also refactors duplicate code on
*_from_json methods.
Change-Id: Ib080d58d666e39865cc7c03121d0341361c9617c
This patch implements object managers for OneView objects and uses it for the
new ClientV2 class. This will make the UX of python-oneview client much simpler
than having a ton of specific methods directly on the Client object.
Change-Id: I7502212fa340e3a142b5aaa5b590dd4d4254e022
OneView doesn't introspect connections for the DL class servers. This commit
adds facilities to get a token for the iLO REST API through OneView and get
the iLO address of a given interface (by index) from it.
Change-Id: I3912a2562928ca798deca99b96380d961bb8da81
As defined on the planning of sprint 2016-2, we'll maintain unit and functional
tests in separate directories and have a tox environment to run functional
tests. This patch re-configures the environment of tox and re-arrange the
testing modules.
Change-Id: I8ad43e73fb627c2881e50bef426e34eb989b3858
This patch fixes the problem related to the URL of the server
profile template, that was not the same as used in REST API of
OneView. Also, some refactoring in the client.py module,
methods *by_uuid, that could be simplified.
Change-Id: I943d1444c9a0315ff1061f20432d7255df75e468
Closes-Bug: #1549994