Installing DevStack

Download DevStack from git

git clone https://git.openstack.org/openstack-dev/devstack
cd devstack

Copy and edit local.conf

mv samples/local.conf local.conf
nano local.conf

Add 4 passwords preset at the root of devstack repository.

[[local|localrc]]
ADMIN_PASSWORD=admin
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

 

Using ifconfig command, you can know your IP adress as shown in Figure. You need it later to set up IP_Host in local.config.

ifconfig_LI

IP_HOST= 10.0.2.15

Then, set back, grap a cup of coffee and run

./stack.sh

 

Frequent Installation Issues

Sometimes, git protocal may have problem downloading resources. You need to add in local.conf

GIT_BASE=${GIT_BASE:-https://git.openstack.org}

Keystone did not start: well, you have a problem with your IP adress, most of all you may set a wrong one.

 

ECSA Example [In Progress]

Application EFM

AppEFM

Valid Configurations

#1: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Cloud
#2: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG SVGGR LiveStreaming [ Server = 1 Built-In Cloud
#3: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG FaceRecognition LiveStreaming [ Server = 1 Built-In Cloud
#4: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG LiveStreaming [ Server = 1 Built-In Cloud
#5: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 StandAlone Cloud
#6: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Cloud
#7: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR LiveStreaming [ Server = 1 StandAlone Cloud
#8: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR LiveStreaming [ Server = 1 Built-In Cloud
#9: SecurityApp MotionDetection FlowDecoding Recording IntervalBasedRecord Flow MPEG FaceRecognition LiveStreaming [ Server = 1 Built-In Cloud
#10: SecurityApp MotionDetection FlowDecoding Recording IntervalBasedRecord Flow MPEG LiveStreaming [ Server = 1 Built-In Cloud
#11: SecurityApp MotionDetection FlowDecoding Flow MPEG SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Cloud
#12: SecurityApp MotionDetection FlowDecoding Flow MPEG SVGGR LiveStreaming [ Server = 1 Built-In Cloud
#13: SecurityApp MotionDetection FlowDecoding Flow MPEG FaceRecognition LiveStreaming [ Server = 1 Built-In Cloud
#14: SecurityApp MotionDetection FlowDecoding Flow MPEG LiveStreaming [ Server = 1 Built-In Cloud
#15: SecurityApp MotionDetection FlowDecoding Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 StandAlone Cloud
#16: SecurityApp MotionDetection FlowDecoding Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Cloud
#17: SecurityApp MotionDetection FlowDecoding Flow SVGGR LiveStreaming [ Server = 1 StandAlone Cloud
#18: SecurityApp MotionDetection FlowDecoding Flow SVGGR LiveStreaming [ Server = 1 Built-In Cloud
#19: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#20: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG SVGGR LiveStreaming [ Server = 1 Built-In Storage Cloud
#21: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#22: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG LiveStreaming [ Server = 1 Built-In Storage Cloud
#23: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 StandAlone Storage Cloud
#24: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#25: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR LiveStreaming [ Server = 1 StandAlone Storage Cloud
#26: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR LiveStreaming [ Server = 1 Built-In Storage Cloud
#27: SecurityApp MotionDetection FlowDecoding Recording IntervalBasedRecord Flow MPEG FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#28: SecurityApp MotionDetection FlowDecoding Recording IntervalBasedRecord Flow MPEG LiveStreaming [ Server = 1 Built-In Storage Cloud
#29: SecurityApp MotionDetection FlowDecoding Flow MPEG SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#30: SecurityApp MotionDetection FlowDecoding Flow MPEG SVGGR LiveStreaming [ Server = 1 Built-In Storage Cloud
#31: SecurityApp MotionDetection FlowDecoding Flow MPEG FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#32: SecurityApp MotionDetection FlowDecoding Flow MPEG LiveStreaming [ Server = 1 Built-In Storage Cloud
#33: SecurityApp MotionDetection FlowDecoding Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 StandAlone Storage Cloud
#34: SecurityApp MotionDetection FlowDecoding Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#35: SecurityApp MotionDetection FlowDecoding Flow SVGGR LiveStreaming [ Server = 1 StandAlone Storage Cloud
#36: SecurityApp MotionDetection FlowDecoding Flow SVGGR LiveStreaming [ Server = 1 Built-In Storage Cloud
#37: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#38: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG SVGGR LiveStreaming [ Server = 1 Built-In Storage Cloud
#39: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#40: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow MPEG LiveStreaming [ Server = 1 Built-In Storage Cloud
#41: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 StandAlone Storage Cloud
#42: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#43: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR LiveStreaming [ Server = 1 StandAlone Storage Cloud
#44: SecurityApp MotionDetection FlowDecoding Recording LiveRecord Flow SVGGR LiveStreaming [ Server = 1 Built-In Storage Cloud
#45: SecurityApp MotionDetection FlowDecoding Recording IntervalBasedRecord Flow MPEG FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#46: SecurityApp MotionDetection FlowDecoding Recording IntervalBasedRecord Flow MPEG LiveStreaming [ Server = 1 Built-In Storage Cloud
#47: SecurityApp MotionDetection FlowDecoding Flow MPEG SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#48: SecurityApp MotionDetection FlowDecoding Flow MPEG SVGGR LiveStreaming [ Server = 1 Built-In Storage Cloud
#49: SecurityApp MotionDetection FlowDecoding Flow MPEG FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#50: SecurityApp MotionDetection FlowDecoding Flow MPEG LiveStreaming [ Server = 1 Built-In Storage Cloud
#51: SecurityApp MotionDetection FlowDecoding Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 StandAlone Storage Cloud
#52: SecurityApp MotionDetection FlowDecoding Flow SVGGR FaceRecognition LiveStreaming [ Server = 1 Built-In Storage Cloud
#53: SecurityApp MotionDetection FlowDecoding Flow SVGGR LiveStreaming [ Server = 1 StandAlone Storage Cloud
#54: SecurityApp MotionDetection FlowDecoding Flow SVGGR LiveStreaming [ Server = 1 Built-In Storage Cloud
54

Total time: 623ms

nb Constraints 26

 

Cloud EFM

CloudME

Valid Configuration Cloud

#1: Cloud [ CPU = 20000 LoadBalancer Server Apache Language Java DataBase MongoBD
#2: Cloud [ CPU = 20000 LoadBalancer Server Apache Language Java DataBase MySQL
#3: Cloud [ CPU = 20000 Server Apache Language Java DataBase MongoBD
#4: Cloud [ CPU = 20000 Server Apache Language Java DataBase MySQL
#5: Cloud [ CPU = 20000 Server Jonas Language Java DataBase MongoBD
#6: Cloud [ CPU = 20000 LoadBalancer Server Jonas Language Java DataBase MongoBD
#7: Cloud [ CPU = 20000 Server Jonas Language Java DataBase MySQL
#8: Cloud [ CPU = 20000 LoadBalancer Server Jonas Language Java DataBase MySQL
#9: Cloud [ CPU = 20000 Server Apache Language Python DataBase MongoBD
#10: Cloud [ CPU = 20000 Server Apache Language Java Python DataBase MongoBD
#11: Cloud [ CPU = 20000 LoadBalancer Server Apache Language Java Python DataBase MongoBD
#12: Cloud [ CPU = 20000 LoadBalancer Server Apache Language Python DataBase MongoBD
#13: Cloud [ CPU = 20000 Server Apache Language Python DataBase MySQL
#14: Cloud [ CPU = 20000 LoadBalancer Server Apache Language Python DataBase MySQL
#15: Cloud [ CPU = 20000 Server Apache Language Java Python DataBase MySQL
#16: Cloud [ CPU = 20000 LoadBalancer Server Apache Language Java Python DataBase MySQL
#17: Cloud [ CPU = 20000 Server Jonas Language Python DataBase MongoBD
#18: Cloud [ CPU = 20000 Server Jonas Language Java Python DataBase MongoBD
#19: Cloud [ CPU = 20000 LoadBalancer Server Jonas Language Python DataBase MongoBD
#20: Cloud [ CPU = 20000 LoadBalancer Server Jonas Language Java Python DataBase MongoBD
#21: Cloud [ CPU = 20000 Server Jonas Language Python DataBase MySQL
#22: Cloud [ CPU = 20000 Server Jonas Language Java Python DataBase MySQL
#23: Cloud [ CPU = 20000 LoadBalancer Server Jonas Language Java Python DataBase MySQL
#24: Cloud [ CPU = 20000 LoadBalancer Server Jonas Language Python DataBase MySQL
24

Nb Constraints : 20
Total time: 1.375s

 

HAB EFM

HABME

 

Valid Configurations HAB

#1: HAB [ OS = CPU = 1  RAM = 1] Apache VAMPWrappers VAMPConfig Library PIL VLI JDK7
#2: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 Apache VAMPWrappers VAMPConfig Library VLI JDK7
#3: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 Apache VAMPWrappers VAMPConfig Library PIL JDK7
#4: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 Apache VAMPWrappers VAMPConfig Library JDK7
#5: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 VAMPWrappers VAMPConfig Library PIL VLI JDK7
#6: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 VAMPWrappers VAMPConfig Library PIL JDK7
#7: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 VAMPWrappers VAMPConfig Library JDK7
#8: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 VAMPWrappers VAMPConfig Library VLI JDK7
#9: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 VAMPWrappers VAMPConfig
#10: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 Apache VAMPWrappers VAMPConfig
#11: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 Apache VAMPWrappers VAMPConfig Library PIL
#12: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 VAMPWrappers VAMPConfig Library PIL
#13: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 VAMPWrappers VAMPConfig Library PIL VLI
#14: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 VAMPWrappers VAMPConfig Library VLI
#15: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 Apache VAMPWrappers VAMPConfig Library PIL VLI
#16: HAB [ OS = 1 [ CPU = 1 [ RAM = 1 Apache VAMPWrappers VAMPConfig Library VLI
16
Total time: 1.194s
nb constraint14

Matching Algorithm

 

Reuse ECore models in other Ecore models?

To reference one Ecore model from another:

  1. Open the model needing the added reference in the Ecore model editor. In your example, open the file C.ecore.
  2. Right click on the top item in the editor. In the below example, you would click on theplatform:/resource/..../SHEA-F.ecore item.ecore
  3. Select « Load Resource », then browse the workspace to find the Ecore file you want to include.

Bug Karma: Remote Naming throws CommunicationExpection with Wildfly 10

Along with having the bug karma, i have the opportunity to learn a lot !

This section discusses the change of the RMI connection port from JBoss AS 1.7 and WildFly 10.0.

Let’s take for example the JNDI properties file set in the client of an EJB

java.naming.factory.url.pkgs=org.jboss.ejb.client.naming
 java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory
 java.naming.provider.url=http-remoting://localhost:4447
 jboss.naming.client.ejb.context=true
jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT
=false

You can also have the same declaration by extending the configuration via ClientContext.

When running the client, this error shows up.

Exception in thread "main" javax.naming.CommunicationException: 
Failed to connect to any server. Servers tried: 
[remote://localhost:4447 (java.net.ConnectException: Connection refused
......
Actually, the resulotion is simple. Just change the provider URL, in our case,

 java.naming.provider.url=http-remoting://localhost:4447 

with
java.naming.provider.url=http-remoting://localhost:8080

For more reading about the bug fixes in JBoss, refer to
changes in this release.
For more reading about the Bug Karma, please refer to Bug Karma.

Bug Karma: JBoss AS 7.1 incompatility with Java 1.8

Along with having the bug karma, i have the opportunity to learn a lot !

In this section, we discuss the incompatibility of the JBoss AS 1.7 with Java 8.

When trying to start JBoss AS 1.7 on an Eclipse JEE Mars 1,i got this erro in the figure below.

JBoss 1

This Issue comes when Java jdk1.8.0_40 is installed in your system and the same is mapped in JAVA_HOME system variable . This issue can be sorted out by  2 solutions:

  1. Installing Java 7 with its jdk jdk1.7.0_79 and mapping the same in JAVA_HOME as C:\Progra~1\Java\jdk1.7.0_79 . The JBOSS server will start successfully .
  2. Upgrade from JBoss AS 1.7 to Wildfy 10, it works very well.

Maven unable to locate Javac Compiler

When, i try to run maven install on a project i get this error:


Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre1.8.0_77\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.

The problem is in the Eclipse setup: Eclipse does not recognize the actual java home variable. Therefore,  it is recommanded to update the JDK Eclipse is using, as follows:

Add and set the JRE in Window->Preferences…->Java->Installed JREs, and modify it by adding the path of the java home variable.

 

JDK

 

Setting TexStudio

Aller à Options–>Compilation dans le menu à gauche et remplir les champs dans cet ordre.

texstudio

latex.exe -src -interaction=nonstopmode –shell-escape %
pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex
xelatex.exe -synctex=1 -interaction=nonstopmode %.tex
lualatex.exe -synctex=1 -interaction=nonstopmode %.tex

Pour les 3 champs des afficheurs DVI, PS et PDF remplir le path de votre ordinateur ou vous avez installer MikTeX, Notepad et Adobe, ou l’équivalent de ces logiciels.
« C:\Program Files\MiKTeX 2.9\miktex\bin\x64\yap.exe » -1 -s @? »c:ame « ?am.dvi »
« C:\Program Files (x86)\Notepad++\notepad++.exe » « ?am.ps »
« C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe » « ?am.pdf »
dvips.exe -o %.ps %.dvi
dvips.exe -o %.ps %.dvi
ps2pdf.exe %.ps
dvipdfm.exe %.dvi
bibtex.exe %
bibtex8.exe %
<introuvable>
makeindex.exe %.idx
<introuvable>
makeglossaries.exe %
mpost.exe -interaction=nonstopmode ?me)
<introuvable>
mgs.exe « ?am.ps »
latexmk -pdf -silent -pdflatex= »pdflatex -synctex=1 %%O %%S » %
<introuvable>
<introuvable>