Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create LAMP CSAR #211

Merged
merged 53 commits into from
Nov 28, 2017
Merged

Create LAMP CSAR #211

merged 53 commits into from
Nov 28, 2017

Conversation

c-mueller
Copy link
Collaborator

@c-mueller c-mueller commented Nov 15, 2017

Resolves #208

@codecov-io
Copy link

codecov-io commented Nov 15, 2017

Codecov Report

Merging #211 into master will decrease coverage by 7.68%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #211      +/-   ##
============================================
- Coverage     63.14%   55.46%   -7.69%     
- Complexity      616      618       +2     
============================================
  Files           192      200       +8     
  Lines          3077     3514     +437     
  Branches        231      256      +25     
============================================
+ Hits           1943     1949       +6     
- Misses         1032     1463     +431     
  Partials        102      102
Impacted Files Coverage Δ Complexity Δ
...ava/org/opentosca/toscana/model/node/RootNode.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
...ca/toscana/model/capability/StorageCapability.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
.../java/org/opentosca/toscana/model/node/Apache.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
...org/opentosca/toscana/model/relation/HostedOn.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
...va/org/opentosca/toscana/model/node/WebServer.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
...g/opentosca/toscana/model/relation/AttachesTo.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
...va/org/opentosca/toscana/model/node/MysqlDbms.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
...a/toscana/plugins/lifecycle/AbstractLifecycle.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
...tosca/toscana/model/relation/RootRelationship.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
...toscana/model/capability/AttachmentCapability.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
... and 38 more

Copy link
Collaborator

@nfode nfode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some feedback to the php app. Since I am the author of this piece of beautiful code you can contact me if you got any questions.

@@ -0,0 +1,82 @@
<?php
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A php app is no script. I would rename it to myphpapp.php. And move it to another folder.

// include the credentials to connect to the db
//include_once "mysql-credentials.php";

$db_host = "127.0.0.1";
Copy link
Collaborator

@nfode nfode Nov 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you put everything into one file? Two files were better?
How do you plan to integrate the inputs? Sorry if it still work in progress.

@@ -0,0 +1,4 @@
#!/bin/bash
# install php on a linux machine with php-mysql
sudo apt-get install php -Y
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -Y has to be lowercase else it does not work.

@JensMueller2709
Copy link
Contributor

JensMueller2709 commented Nov 16, 2017

Edit: Solved. It was a missing apache-php package.

I tested the scripts on an EC2 Machine. For this I put a password in the scripts for the mysql-database.
But now I get this:

grafik
And I cant insert values in the database. Maybe somebody see the bug.

@@ -0,0 +1,82 @@
<?php
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move the file out of the scripts folder.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already done

@@ -0,0 +1,2 @@
#!/bin/bash
sudo mv myphpapp.php /var/www/html/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more a create_myphpapp.sh script.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but with this action you start the php application. However i think in the test-csar it doesnt matter

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't start it with moving it but nvm

db_port: { get_property: [ SELF, database_endpoint, port ] }

apache_web_server:
type: tosca.nodes.WebServer
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you not use the WebServer.Apache type?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for me and @mmunozba there was a reason, but unfortunately i cant remember it.
it should work with this normative type as well but you are right there is a non-normative type webserver.apache. @mmunozba, do you remember why we used the normative type?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CSAR uses the WebServer.Apache type now.

@hnicke hnicke changed the title Create LAMP CSAR [WIP] Create LAMP CSAR Nov 24, 2017
@koppor
Copy link
Contributor

koppor commented Nov 24, 2017 via email

@hnicke
Copy link
Contributor

hnicke commented Nov 24, 2017

For sure we will add this document, don't worry. But to be honest it makes no sense to create one right now. Current state is that we don't support anything 'cause nothing is working yet. If you want I can spend my time writing docs tough. But I'd prefer writing some code to get things going.

@koppor
Copy link
Contributor

koppor commented Nov 24, 2017 via email

@hnicke
Copy link
Contributor

hnicke commented Nov 24, 2017

Added issue #253

@mklopp mklopp changed the title [WIP] Create LAMP CSAR Create LAMP CSAR Nov 26, 2017
@mmunozba
Copy link
Collaborator

From my point of view, the requested changes by @nfode and @hnicke have been implemented.
If not, please reiterated what I've missed.

Also, could somebody with PHP experience take a look a the complaints from codacy?

@c-mueller
Copy link
Collaborator Author

Also, could somebody with PHP experience take a look a the complaints from codacy?

Just ignore them. Fixing them would be good idea if the application would be a "production" type application. This is just a demo to show that the SQL Connection has been established. Putting more time into that is just completely wasted.

@c-mueller
Copy link
Collaborator Author

The transformer is rejecting your CSAR (no input) with the following Stack trace

2017-11-26T19:11:08,724 [ec-1] INFO  o.o.t.core.csar.CsarFilesystemDao    - Extracted csar 'lamp' into '/toscana/data/lamp/content' 
2017-11-26T19:11:08,729 [ec-1] INFO  o.o.t.c.parse.CsarParseServiceImpl   - detected entry point of csar 'lamp' is '/toscana/data/lamp/content/template.yaml' 
2017-11-26T19:11:08,729 [ec-1] DEBUG o.e.w.y.common.reader.yaml.Builder   - Read Service Template: /toscana/data/lamp/content/template.yaml 
2017-11-26T19:11:08,781 [ec-1] INFO  o.o.t.c.parse.CsarParseServiceImpl   - An error occured while parsing csar 'org.opentosca.toscana.core.csar.CsarImpl@3293e7' 
java.lang.NullPointerException: null
	at java.util.HashMap.merge(HashMap.java:1225)
	at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)
	at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
	at java.util.Iterator.forEachRemaining(Iterator.java:116)
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
	at org.eclipse.winery.yaml.common.reader.yaml.Builder.buildInterfaceDefinition(Builder.java:700)
	at org.eclipse.winery.yaml.common.reader.yaml.Builder.lambda$buildMapInterfaceDefinition$17(Builder.java:684)
	at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1321)
	at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
	at java.util.Iterator.forEachRemaining(Iterator.java:116)
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
	at org.eclipse.winery.yaml.common.reader.yaml.Builder.buildMapInterfaceDefinition(Builder.java:684)
	at org.eclipse.winery.yaml.common.reader.yaml.Builder.buildNodeTemplate(Builder.java:940)
	at org.eclipse.winery.yaml.common.reader.yaml.Builder.lambda$buildNodeTemplates$28(Builder.java:924)
	at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1321)
	at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
	at java.util.Iterator.forEachRemaining(Iterator.java:116)
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
	at org.eclipse.winery.yaml.common.reader.yaml.Builder.buildNodeTemplates(Builder.java:924)
	at org.eclipse.winery.yaml.common.reader.yaml.Builder.buildTopologyTemplate(Builder.java:173)
	at org.eclipse.winery.yaml.common.reader.yaml.Builder.buildServiceTemplate(Builder.java:160)
	at org.eclipse.winery.yaml.common.reader.yaml.Reader.buildServiceTemplate(Reader.java:75)
	at org.eclipse.winery.yaml.common.reader.yaml.Reader.readServiceTemplate(Reader.java:133)
	at org.eclipse.winery.yaml.common.reader.yaml.Reader.parse(Reader.java:44)
	at org.opentosca.toscana.core.parse.CsarParseServiceImpl.parse(CsarParseServiceImpl.java:29)
	at org.opentosca.toscana.core.csar.CsarServiceImpl.populateWithTemplate(CsarServiceImpl.java:46)
	at org.opentosca.toscana.core.csar.CsarServiceImpl.submitCsar(CsarServiceImpl.java:34)
	at org.opentosca.toscana.core.api.CsarController.uploadCSAR(CsarController.java:187)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:664)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:110)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:106)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1457)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
2017-11-26T19:11:08,783 [ec-1] WARN  o.o.toscana.core.csar.CsarService    - Failed to submit csar 
org.opentosca.toscana.core.parse.InvalidCsarException: null
	at org.opentosca.toscana.core.parse.CsarParseServiceImpl.parse(CsarParseServiceImpl.java:33)
	at org.opentosca.toscana.core.csar.CsarServiceImpl.populateWithTemplate(CsarServiceImpl.java:46)
	at org.opentosca.toscana.core.csar.CsarServiceImpl.submitCsar(CsarServiceImpl.java:34)
	at org.opentosca.toscana.core.api.CsarController.uploadCSAR(CsarController.java:187)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:664)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:110)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:106)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1457)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
2017-11-26T19:11:08,785 [ec-1] INFO  o.o.t.core.csar.CsarFilesystemDao    - Deleted csar directory '/toscana/data/lamp' 

@koppor
Copy link
Contributor

koppor commented Nov 27, 2017

I don't believe that the parser has issues with non-normative types. It might be that some additional files cannot be found. Can you please provide a minimal example and create an issue at https://github.com/opentosca/winery/issues? Then, @kleinech or @TStadelmaier can have a look.

@kleinech
Copy link

image

Non-normative types werden im Gegensatz zu normative types nicht automatisch unterstützt!

Lösung: Non-normative types (selbst) definieren und wenn benötigt ins YAML file importieren.

@mklopp
Copy link
Collaborator

mklopp commented Nov 27, 2017

Okay thanks for the info. We assumed the ones specified in Chapter 9 were also supported by the winery.
@JensMueller2709, @mmunozba we have to define the node types ourselves.

@JensMueller2709
Copy link
Contributor

See issue #260

@hnicke
Copy link
Contributor

hnicke commented Nov 28, 2017

I've provided a central zip script (csar-make) which updates all test csars.
Due to changes to the master of the winery parser I changed many templates; now, the test suite passes again.

@hnicke hnicke merged commit d1e47d4 into master Nov 28, 2017
@hnicke hnicke deleted the resources/lamp-csar branch November 28, 2017 14:13
@c-mueller c-mueller restored the resources/lamp-csar branch November 28, 2017 14:24
c-mueller added a commit that referenced this pull request Nov 28, 2017
@c-mueller c-mueller deleted the resources/lamp-csar branch November 28, 2017 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants