Release Notes section was returning empty for nova-dpm in RTD.
This patch fixes the same.
Closes-Bug: 1718103
Change-Id: Iac1832331b50f1b971c686be77d83a60f1bd53cd
Signed-off-by: Sreeram Vancheeswaran <sreeram.vancheeswaran@in.ibm.com>
It seems nova removed 'instance.instance_type_id'
by which we were getting flavor.
Now instance has 'instance.flavor'.
Direct access of flavor.
Closes-Bug: #1707628
Change-Id: I128d8adb0754c5b5313fc3e5ed7c521afa0df508
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
With the current local.conf it is not possible to use floating-ips
to access an instance.
This patch extends and refactors the local.conf, that devstack creates
2 networks. A public network (used for floating ip) - public, and a
private network where the instances get attached to - provider.
In addition the ovs is configured to be able to deal with both networks.
However one manual step is required. The bridge br-provider needs to be
created manually before stack.sh is run.
Change-Id: I776552c41161d53d33ad9c6c750f47ef6d5ccce6
When we do inband shutdown of partition using
command 'shutdown -P now'
Then partition is not going to 'stopped' state.
It is going to 'PAUSED' state.
In DPM there is no such implementation so that we
can start partition from PAUSED state. So workaround
is we need to stop the partition then start.
This patch also includes the cases when partition is
in "starting/stopping" state.
Closes-Bug: #1678002
Change-Id: I1898b85a8441c3175db0a6de6d620bca19af69ec
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
After new version of os-dpm-1.1.0 cpc_object_id
is breaking in unit test
Change-Id: Ic17ff50549756728c1213a946d98b0fe2203e813
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
This is in connection with the minimum value assigned to the max-memory
parameter in local.conf under dpm section.The default value of
reserve_host_memory is 512Mb by which it blocks 512Mb of memory on the
host this means to launch an instance on a host 1024 is the minimum
memory that is needed as 512Mb is being reserved inorder to mitigate
this issue the reserved memory is made 0.
Change-Id: I05ee4275cd5d80b1edb614d94fe0b038551bc3cc
If HMC is up and CPC is down then the 'ifl-processor' and
'storage-customer' values are 0.
Closes-Bug: #1684102
Change-Id: If7c10ca66c4e47c873cc9c7277a715dee3040ad5
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
Instance delete always stops partition even if partition ia already stoped.
Work around is when it try to stop the partition which
is already stopped, then catch exception and pass it.
Closes-Bug: #1701506
Change-Id: I8ddb84de307bc58fa68136c503408a2d65ef629a
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
There is a NumInstancesFilter which can be used to filter the number of
instances that are supposed to be launched on the host this replaces the
work that is planned for max_instances config parameter to perform.
It is removed as the main functionality of this parameter is not yet
implemented in the code.
Change-Id: Ie545a5f74f7b63ea56812577c201fcb443014998
512mb is the minimum memory that is required to launch a partition and
rounding off starts only from value greater that 512mb this decides the
min value needs to be set to the config parameter max_memory.
closes-Bug: 1689267
Change-Id: I493fec40b412feb5303ab7ca9ee2f78c9b9220db
Some of tests use different method of assertTrue(isinstance(A, B)) or
assertEqual(type(A), B). The correct way is to use assertIsInstance(A,
B) provided by testtools.
Change-Id: I3e3917db4f62cc713e0edcef81f2d4d8bb867067
Closes-Bug: #1268480
Oslo.config deprecated parameter enforce_type and change its default
value to True in Ifa552de0a994e40388cbc9f7dbaa55700ca276b0. Remove the
usage of it to avoid DeprecationWarning: "Using the 'enforce_type'
argument is deprecated in version '4.0' and will be removed in version
'5.0': The argument enforce_type has changed its default value to True
and then will be removed completely."
Change-Id: I807ee7b4cc622d8833802c7812f4ee03fc2d40a7
Closes-Bug: #1694616
The default value is set to -1, which means that there is no artificial
upper bound for the number of instances on this CPC. The number of
instances is only limited by the number of (free) partitions on this
CPC.
closes-Bug: 1683318
Change-Id: I80f8b36fa21cef313e0b5a821a26877afd1af980
Created a place holder for release notes files in the right location
in the source tree and include them in the documentation build with
a history file.
Related-Bug: #1661319
Change-Id: I451ee6d0876bc987d2d066fdd95efca2bda9261e
The initator-target map, we're not necessarily picking
the entry for our boot adapter, but just the first one
that is returned by get_partition_wwpns. But in fact
we must not take the first one, but we must take the
wwpn of our selected boot adapter as initiator wwpns
(and then lookup the target wwpns for it).
Closes-Bug: #1662511
Change-Id: Ib5890c9e696e6bfae5d2915f87b4baf151b2ed9a
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
This code writes an error log in the nova log
if the CPC is not found in the init_host() method
of the DPMDriver. This will help to debug problems.
The error message contains information about the
HMC host, HMC userid and CPC UUID that were used.
Closes-Bug: #1659037
Change-Id: I4606cefc9943c0a1a3a0db0c496dcce5c468407f
Signed-off-by: Juergen Leopold <leopoldj@de.ibm.com>
Remove requests.packages.urllib3.disable_warnings() from
unit testcase because it is not affacting unit testcase.
Means no warning log without
requests.packages.urllib3.disable_warnings().
But keep as it is in main code because we are using
it at one place only.
https://github.com/openstack/nova-dpm/blob/stable/ocata/nova_dpm/virt/dpm/client_proxy.py#L41
Closes-Bug: #1669299
Change-Id: I2eefc01743c2549ebe8cdc32eb95d03a05f7bc0f
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
See 3bb1595d1f/nova_dpm/virt/dpm/utils.py (L38-L44)
Especially the line: config_mem=CONF.dpm.max_processors,
That should be "max_memory".
Closes-Bug: #1687051
Change-Id: I3e631550b29647234404638e201f40f362311d89
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
Our file name convention for unit test is as follow
Add prefix "test_" to the name of the file in
nova_dpm.virt.dpm
we have utils.py file in nova_dpm.virt.dpm and we have
file test_utils.py in unit test also. But test_utils.py
does not contain any unit testcase of utils.py. It contains
something else. Basically it contains some comman data for
other testcase.
Change-Id: I99b9927848a62a6737692aa64e2796b3b766f915
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
Change fake session for
nova_dpm.tests.unit.virt.test_driver.dpmDPMdriverInitHostTestCase
It is very confusing when we use comman fake session available
in test_utils.py. So use individual fake session in each file.
Change-Id: I578362ff1cbfdd2f0207270fa84c40cb06bea3ea
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
Booting an instance form image fails somewhere with
a magic error message.But as we do not support the boot
from image case. We should check that at first
when the spawn method is entered or even the
pre_for_spawn method is entered and abort with
an appropriate error message!
Closes-Bug: #1663550
Change-Id: I577b28d034322b109b81c978cb50a299be140510
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
The guest image tools do not properly configure a network interface
in the image for layer2. When hipersockets is used, setting the MAC
fails with "Operation not supported". No communication with the
dhcp on the network is possible.
OSA was not affected as layer2 is the default for OSA if nothing is
provided (for hipersockets it's layer3).
Change-Id: I203a8d4e62afb10666e9b131164e77ab4f85d890
Closes-Bug: #1685737
On instance spawn we only indirectly check
if the requested volume is a FC volume via [1].
This will either fail with an "KeyError" or a
"NoneType Error" depending on how the
block_device_info object looks like for non
FC volumes.
[1] https://github.com/openstack/nova-dpm/blob/1.0.0/nova_dpm/virt/dpm/driver.py#L374
Closes-Bug: #1668343
Change-Id: I6eefda4127402d43ad9407190626220722ddee58
Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>