According to the OpenStack translation policy available at
https://wiki.openstack.org/wiki/LoggingStandards debug messages
should not be translated. Like mentioned in several changes in
Nova by garyk this is to help prioritize log translation.
Change-Id: I082f925e6923613e1e8cfeb5a0533747087a5e02
Added a new package ( io.murano.lib.networks.Neutron) to handle networking via Neutron
The package introduces a class 'NewNetwork' (io.murano.lib.networks.neutron.NewNetwork)
This class is capable of the following:
- Create a new Network (L2 segment)
- Use NetworkExplorer class to allocate an available CIDR
- Create a new Subnet (L3 segment) in the created Network with the allocated CIDR
- Use NetworkExplorer class to locate an available router
- Use NetworkExplorer class to detect the default DNS nameserver
- Uplink the created subnet to the located router
Also, as this class extends io.murano.resources.Network, it implements the addHostToNetwork method
The implementation creates a Neutron Port and connects that port to a created network and intance
This commit also modifies the environment-creation logic of the API, allowing to add default networks
to the Environment object.
This is a temporary solution: in future the instantiation of this object(s) should be done in MuranoPL
This commit concludes the minimum set of functionality needed to implement AdvancedNetworking
in 0.4.x feature set.
Closes-bug: #1308921
Change-Id: I885620099995b0d402a23def3ff428fb902973d2
Added a NetworkExplorer class (maps to io.murano.system.NetworkExplorer) to explore
the Network Environment of an active tenant.
The class is able to locate the default router (if present) and allocate available
CIDR range for the selected router. The latter requires some configuration options
(for proper CIDR segmentation)
This commit adds python-neutronclient to the requirements, as NetworkExplorer has
to directly interact with Neutron
This classes is a crucial part of AdvancedNetworking implementation
Partial-Bug: #1308921
Change-Id: Ib9daa1b1521d9bc17a53d7e131be6c9f43faa013
This patch adds reporting system to engine.
It is used in two major places
a) to report error to API when exception occurs
b) report service status reports to API via workflow as
- $this.find(std:Environment).reporter.report($this, 'Creating VM.')
Change-Id: I7310931482447e174114164ed921bb3fcbfb9d66
* Added package property to MuranoClass
* Added new class loader: PackageClassLoader
* Support loading packages from API and file-system
* Extended ApplicationPackage to support getting resources from packages
* Rewritten ResourceLoader to support loading resources from packages
Co-Authored-By: Serg Melikyan <smelikyan@mirantis.com>
Change-Id: I47e70f960104f78433c285411328f315638186da
Use `muranoapi.common.utils.is_different` - simplified hand-written
replacement for deep.diff. It compares arbitrary nested objects,
handles circular references, but doesn't return first difference as
deep.diff does.
Change-Id: Iced775fa39342ed09fa31ed9ac63a5dadb9e3f84
Instance tracking information was improved to contain additional
information on instances such as type name, descriptive title
and number of VMs used by the application.
Added ability to retrieve non-aggregated statistics.
Also instance statistics API refactoring was made.
Implements blueprint app-catalog-billing
Change-Id: I8f3ea1a3947ceaf7deb2ee62b4ad41cbf230596e
Added ability to modify/remove data from structures (like Heat
templates) via jsonpatch and thus added ability to clean up Heat
resources that was obtained by deleted instances
Closes bug: #1296624
Change-Id: I4db226a5ab00ff363f8b5d44a5d690df942622e8
This is transitional API with minimum possible changes from API of Murano 0.4
Change-Id: Ic29e4cdbae13c6fdc388c005719aa4235bdccfa6
Closes-bug: #1297791
* Resolved issues with circular dependencies
* Updated objects namespaces to the new io.murano.* namespace
* Resolved a few issues related to not included code from PoC
* Renamed objects to more pythonic name (back to original actually)
Closes-bug: #1297146
Change-Id: I34641eca33c70908bd44b50f0956abda9d8dbfa7
In attempt to reduce number of Murano repositories to a sane minumum Murano
community decided to merge in murano-common repo to projects dependent on it:
* murano-api
* murano-agent
We hope that we will completely get rid of this code in Juno.
Partially-Implements: blueprint repository-reorganization
Change-Id: Ia18958c937b2c983d84b39a5a7849788ed9df6eb
Added all missing parts to complete MuranoPL implementation:
- system classes
- base classes
- integration with oslo.messaging
- package entry-point & other things to run engine
Integrated engine with API
Note: some tests are marked to be skipped,
will be enabled via separate commit.
Partially-Implements: blueprint new-metadata-dsl
Change-Id: I3c1c2326b48da57647d55ea8edfba56f1657d7d6
This patch adds a new decorator which calls a stats
collection code to collect usage information per tenant
StatisticsCollection class is added a a stats storage.
Add hostname to stats
As Murano has multi-service deployment it is
necessary to add hostname to each stats
in order to understand which API service
provides them.
Add DB model for stats
This patch adds a new DB model to keep API stats in the DB.
As it is possible to have multiple Murano API servers
we will keep stats for each Murano API instance
Fix stats update to save data to DB
Fixed issues with column names
Added logic to calculate request\sec
and errors\sec based on previous values
Change-Id: Id5c3cdc90700563aff881e5831285a1330a2c034
Partly-Implements: blueprint api-request-stats
This patch adds a new service which provides
an endless loop to update statistics information.
There is no actual code for stats themselves.
the intension is to save a collected stats to DB
on a periodic basis.
Change-Id: Ia00a5068c2f744b0318a523860ccc5eba225868e
Partly-Implements: blueprint api-request-stats
* Remove muranoapi/openstack/common/rpc
* Remove muranoapi/openstack/common/notifier
* Add ResultEndpoint for handling results from Conductor
* Add ReportNotificationEndpoint for handling reports from Conductor
* Add ConductorClient to send environments to Conductor
* Update murano-api.conf.sample with new RabbitMQ settings
* Clean-up openstack-common from rpc/notifier modules
Change-Id: I4b63f3e2b848143af99dff3c7d39080cc39516a0
This patch fixes and enables:
* F401 unused imports
* H301 one import per line
* H302 import only modules
* H306 imports not in alphabetical order
Change-Id: I6f7f92004844184dc4bbea8c3a1ddfc196310b39
* Fix leaking password in murano-api logs (resolved: MRN-861)
* Added function to clean deployment description
* Updated SQLAlchemy requirement
* Changed default values of vhost, login, password (resolved: MRN-880)
* Updated requirements for murano-common
Now murano-common is installed from pypi and has correct version requirements
Change-Id: I765808820b0ccbdb1d24c776cbe674c00822a3e4