[Openstack] Customize app for Murano

Reza Bakhshayeshi reza.b2008 at gmail.com
Mon Aug 8 16:09:03 UTC 2016


Hi,

I'm going to write a Murano app for MariaDB Server.
Unfortunately, I'm receiving the following log error from Murano engine,
although MariaDB is actually installed on the server.
































*{"packages": [{"class_definitions": ["io.murano.apps.databases.MariaDB"],
"description": "MariaDB is a community-developed fork of the MySQL
relational \r\ndatabase management system intended to remain free under the
GNU GPL.\r\nIt is notable for being led by the original developers of
MySQL, who\r\nforked it due to concerns over its acquisition by Oracle.
Contributors\r\nare required to share their copyright with the MariaDB
Foundation.\r\n", "tags": ["HTTP", "Server", "WebServer", "HTML",
"MariaDB"], "updated": "2016-08-08T13:34:10", "is_public": true,
"categories": ["Databases"], "name": "Maria Database Server", "author":
"Zaeim, Ind", "created": "2016-08-08T13:34:04", "enabled": true, "id":
"02907dab1bad4b2a8bebb59978fb7907", "supplier": {}, "fully_qualified_name":
"io.murano.apps.databases.MariaDB", "type": "Application", "owner_id":
"1d08396d7697497a80f6ea40029530f3"}]} log_http_response
/usr/lib/python2.7/site-packages/muranoclient/common/http.py:1242016-08-08
18:06:49.905 10935 DEBUG murano.dsl.executor [-]
2d9de20d2542444b80c2af5fa803aaf4: Begin execution:
io.murano.system.Resources.yaml (-24369133454107209) called from File
"/tmp/murano-packages-cache/b60832a4-197e-4269-9b02-53945f672416/io.murano/Classes/Environment.yaml",
line 70:9 in method deploy of class io.murano.Environment
$.applications.pselect($.deploy()) _invoke_method_implementation
/usr/lib/python2.7/site-packages/murano/dsl/executor.py:1422016-08-08
18:06:49.909 10935 DEBUG murano.dsl.executor [-]
2d9de20d2542444b80c2af5fa803aaf4: End execution:
io.murano.system.Resources.yaml (-24369133454107209)
_invoke_method_implementation
/usr/lib/python2.7/site-packages/murano/dsl/executor.py:1612016-08-08
18:06:49.913 10935 DEBUG murano.dsl.executor [-]
2d9de20d2542444b80c2af5fa803aaf4: Begin execution:
io.murano.system.StatusReporter.report (-5881409530865345445) called from
File
"/tmp/murano-packages-cache/b60832a4-197e-4269-9b02-53945f672416/io.murano/Classes/Environment.yaml",
line 70:9 in method deploy of class io.murano.Environment
$.applications.pselect($.deploy()) _invoke_method_implementation
/usr/lib/python2.7/site-packages/murano/dsl/executor.py:1422016-08-08
18:06:49.915 10935 DEBUG oslo_messaging._drivers.amqp [-] UNIQUE_ID is
77e7e9f926c84649a9ee059b528ef137. _add_unique_id
/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqp.py:2582016-08-08
18:06:49.930 10935 DEBUG murano.dsl.executor [-]
2d9de20d2542444b80c2af5fa803aaf4: End execution:
io.murano.system.StatusReporter.report (-5881409530865345445)
_invoke_method_implementation
/usr/lib/python2.7/site-packages/murano/dsl/executor.py:1612016-08-08
18:06:49.935 10935 DEBUG murano.dsl.executor [-]
2d9de20d2542444b80c2af5fa803aaf4: Begin execution:
io.murano.system.Agent.call (6292510272563704764) called from File
"/tmp/murano-packages-cache/b60832a4-197e-4269-9b02-53945f672416/io.murano/Classes/Environment.yaml",
line 70:9 in method deploy of class io.murano.Environment
$.applications.pselect($.deploy()) _invoke_method_implementation
/usr/lib/python2.7/site-packages/murano/dsl/executor.py:1422016-08-08
18:09:17.701 10935 DEBUG murano.engine.system.agent_listener [-] Got
execution result: id 'bd82719ede0a4fb989fdd4d2ddb4ef02' body '{u'Body':
{u'AdditionalInfo': None, u'Message': u"'utf8' codec can't decode byte 0xda
in position 7456: invalid continuation byte"}, u'SourceID':
u'bd82719ede0a4fb989fdd4d2ddb4ef02', u'ErrorCode': 1, u'FormatVersion':
u'2.0.0', u'Time': u'2016-08-08 13:39:16.982738', u'Action':
u'Execution:Result', u'ID': u'f4608828cb524e4fbe34eacab6b2a9d8'}' _receive
/usr/lib/python2.7/site-packages/murano/engine/system/agent_listener.py:1082016-08-08
18:09:17.708 10935 DEBUG murano.dsl.executor [-]
2d9de20d2542444b80c2af5fa803aaf4: End execution:
io.murano.system.Agent.call (6292510272563704764) with exception
[murano.engine.system.agent.AgentException]: {'errorCode': 1, 'message':
u"'utf8' codec can't decode byte 0xda in position 7456: invalid
continuation byte", 'extra': None, 'details': None, 'time': u'2016-08-08
13:39:16.982738'} _invoke_method_implementation
/usr/lib/python2.7/site-packages/murano/dsl/executor.py:1562016-08-08
18:09:17.709 10935 DEBUG murano.dsl.executor [-]
2d9de20d2542444b80c2af5fa803aaf4: End execution:
io.murano.apps.databases.MariaDB.deploy (-6973977050694221440) with
exception [murano.engine.system.agent.AgentException]: {'errorCode': 1,
'message': u"'utf8' codec can't decode byte 0xda in position 7456: invalid
continuation byte", 'extra': None, 'details': None, 'time': u'2016-08-08
13:39:16.982738'} _invoke_method_implementation
/usr/lib/python2.7/site-packages/murano/dsl/executor.py:1562016-08-08
18:09:17.709 10935 DEBUG murano.dsl.executor [-]
e5f8e765d4d14501a53d4b05769758ef: End execution:
io.murano.Environment.deploy (-217907875541687911) with exception
[murano.engine.system.agent.AgentException]: {'errorCode': 1, 'message':
u"'utf8' codec can't decode byte 0xda in position 7456: invalid
continuation byte", 'extra': None, 'details': None, 'time': u'2016-08-08
13:39:16.982738'} _invoke_method_implementation
/usr/lib/python2.7/site-packages/murano/dsl/executor.py:1562016-08-08
18:09:17.710 10935 ERROR murano.common.engine [-]
murano.engine.system.agent.AgentException: {'errorCode': 1, 'message':
u"'utf8' codec can't decode byte 0xda in position 7456: invalid
continuation byte", 'extra': None, 'details': None, 'time': u'2016-08-08
13:39:16.982738'}  Traceback (most recent call last):    File
"/tmp/murano-packages-cache/b60832a4-197e-4269-9b02-53945f672416/io.murano/Classes/Environment.yaml",
line 70:9 in method deploy of class io.murano.Environment
$.applications.pselect($.deploy())    File
"/tmp/murano-packages-cache/b60832a4-197e-4269-9b02-53945f672416/io.murano.apps.databases.MariaDB/Classes/MariaDBHttpServer.yaml",
line 51:13 in method deploy of class
io.murano.apps.databases.MariaDB        $.instance.agent.call($template,
$resources)    File
"/usr/lib/python2.7/site-packages/murano/engine/system/agent.py", line 131
in method call        return self._send(plan, True, timeout, _context)
File "/usr/lib/python2.7/site-packages/murano/engine/system/agent.py", line
121 in method _send        return self._process_v2_result(result)    File
"/usr/lib/python2.7/site-packages/murano/engine/system/agent.py", line 192
in method _process_v2_result        raise AgentException(err)2016-08-08
18:09:17.714 10935 DEBUG oslo_messaging._drivers.amqp [-] UNIQUE_ID is
c4a26a1e8a94485d94e80028bca16a2b. _add_unique_id
/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqp.py:2582016-08-08
18:09:17.747 10935 INFO murano.common.engine [-] Invoking post-execution
hooks2016-08-08 18:09:17.760 10935 DEBUG oslo_messaging._drivers.amqpdriver
[-] MSG_ID is 5898b028a27246609bfa4ce9747bdbad _send
/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py:3112016-08-08
18:09:17.760 10935 DEBUG oslo_messaging._drivers.amqp [-] UNIQUE_ID is
789583e3a6584b6b9862a94a2defe1be. _add_unique_id
/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqp.py:258*


*and here is MariaDB.yaml file content:*














































*Namespaces:  =: io.murano.apps.databases  std: io.murano  res:
io.murano.resources  sys: io.murano.systemName: MariaDBExtends:
std:ApplicationProperties:  name:    Contract: $.string().notNull()
instance:    Contract: $.class(res:Instance).notNull()Methods:
initialize:    Body:      - $._environment:
$.find(std:Environment).require()  deploy:    Body:      - If: not
$.getAttr(deployed, false)        Then:          -
$._environment.reporter.report($this, 'Creating VM for MariaDB
Server.')          - $securityGroupIngress:            - ToPort:
3306              FromPort: 3306              IpProtocol: tcp
External: true          -
$._environment.securityGroupManager.addGroupIngress($securityGroupIngress)
- $.instance.deploy()          - $resources: new(sys:Resources)          -
$template: $resources.yaml('DeployMariaDB.template')          -
$._environment.reporter.report($this, 'Instance is created. Deploying
MariaDB')          - $.instance.agent.call($template, $resources)
- $._environment.reporter.report($this, 'MariaDB is installed.')          -
If: $.instance.assignFloatingIp            Then:              - $host:
$.instance.floatingIpAddress            Else:              - $host:
$.instance.ipAddresses[0]          - $._environment.reporter.report($this,
''Done!)          - $.setAttr(deployed, true)*


Do you have any idea why I'm receiving the encoding error?

Regards,
Reza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160808/5c7c2195/attachment.html>


More information about the Openstack mailing list