Prevent raising of KeyError when one or more fields are missing in
the form data.
Change-Id: Icf795651773289ecc3b4ef5f22626947bdb5ccd2
Closes-bug: #1688577
Previously _get_tenant_(compute|network|volume)_usage are callled
regardless of resources are listed in enabled_quotas.
This commit retrives usage information only for resources listed
in eanbled_quotas.
floating_ips and security_groups were returned even when
they are included in disabled_quotas. They are not needed
and they are cleanup in this commit.
All (*_)QUOTA_FILEDS were previously a list but it is always used
after converting into a set, so this commit changes (*_)QUOTA_FIELDS
into a set in the initial definitions.
This is a preparation for fix of bug 1675504
Partial-Bug: #1675504
Change-Id: I41cdabde477d87aa8b35d1c908e18a69454286c3
The floating IPs tab on access and security panel was moved to
its own panel in Ocata.
Replaced the example of disabling floating IPs tab with an example
to disable the orchestration services tab.
Change-Id: Ibba5834b17a116f16b761c495732928b103b7324
Closes-bug: #1688147
Ref£º http://docs.openstack.org/developer/hacking/#real-world-import-order-examples
[H203] Use assertIs(Not)None to check for None (off by default) Unit test assertions
tend to give better messages for more specific assertions. As a result,
assertIsNone(...) is preferred over assertEqual(None, ...) and assertIs(None, ...),
and assertIsNotNone(...) is preferred over assertNotEqual(None, ...)
and assertIsNot(None, ...).
Change-Id: I84b3304cae4284bdbad7d093cb6fa1d3d303ee52
novaclient deprecated 'bypass_url' argument in Ocata and
the use of 'endpoint_override' is recommended.
Change-Id: I88bb974fa11452d1262779b75444ba6d7ad44ebb
Since the commit c219a3efc6622c6e5857577d94633efc7d139860
removed js file 'horizon.instances.js' in the template file
' _scripts.html', If enable the legacy experience launch instance
(Set 'LAUNCH_INSTANCE_LEGACY_ENABLED = True' and
'LAUNCH_INSTANCE_NG_ENABLED = False' in the local_settings.py) and
click launch instance, we can not open launch instance dialog and
also see the following in console.log.
VM22778:3 Uncaught TypeError: Cannot read property 'workflow_init'
of undefined
Change-Id: Ia9e22df5129527e4b021599bbdec9a668a04ee4b
Closes-Bug: #1686431
If a member role user login and use admin to get keystoneclient,
but he is not a super user, then a notAuthorized exceptions will be raised,
it seems to be unreasonable.
The following actions will throw unauthorized exception.
Go to Users panel, Click user name , Click Change Password,
Submit Change Password form.
Change-Id: I4f6486b92f023ad0daecfff51e3a1ed16b0e78c0
Closes-Bug: #1684475
novaclient 8.0.0 dropped python bindings for security group and
floating IP. This commit drops security group and floating IP logics
from the nova API wrapper.
The following changes are made accordingly.
* Update unit tests to consume neutron test data
* Drop API unit tests for nova security group and floating IP
Partially implement blueprint drop-nova-network
Change-Id: I946c508d7a82162fc8434213e006513867b79350
Previously security group and floating IP tests covered
both nova and neutron APIs. This commit drops Nova security
group and floating IP unit tests. All these unit tests now
consumes neutron API wrapper and neutron test data.
Partially implement blueprint drop-nova-network
Change-Id: I1e3ad42cbeb90c00be29784869108d3d0db83162
This commit drops Nova security group dependency from
the dashboard implementation.
security group support in the nova API wrapper will be dropped
in a separate patch.
Also removes api.network.security_group_backend()
as it is no longer needed.
Partially implement blueprint drop-nova-network
Change-Id: I224010eb59068a7cc4f97c2453d499adde7644b4
This commit drops Nova floating IP dependency from
the dashboard implementation.
* Use neutron policy for floating IP operations.
* SimpleAssociateIP is supported only by Nova API,
so the action was removed in this patch.
Floating IP support in the nova API wrapper will be dropped
in a separate patch.
Partially implement blueprint drop-nova-network
Change-Id: I1610fb9aa2212b3f34814fdb9894b715a5211d9c