Commit a059b890 authored by Spiros Koulouzis's avatar Spiros Koulouzis

fixed outputs to add values for all nodes

parent e34bbc8d
......@@ -30,3 +30,4 @@
/winery_service/src/winery/__pycache__/
/tosca_service/nbproject/private/
/tosca_service/src/winery/__pycache__/
/drip-deployer/venv/
\ No newline at end of file
......@@ -20,7 +20,7 @@ RUN pip install tosca-parser
RUN pip install pika
RUN export LC_ALL="en_US.UTF-8"
RUN pip install paramiko
RUN pip install ansible
RUN pip install ansible==2.7.0
......
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 130023424 bytes for committing reserved memory.
# Possible reasons:
# The system is out of physical RAM or swap space
# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# JVM is running with Unscaled Compressed Oops mode in which the Java heap is
# placed in the first 4GB address space. The Java Heap base address is the
# maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
# to set the Java Heap base and to place the Java Heap above 4GB virtual address.
# This output file may be truncated or incomplete.
#
# Out of Memory Error (os_linux.cpp:2749), pid=26067, tid=0x00007f93fa986700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_201-b09) (build 1.8.0_201-b09)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
--------------- T H R E A D ---------------
Current thread (0x00007f9430082000): VMThread [stack: 0x00007f93fa887000,0x00007f93fa987000] [id=26093]
Stack: [0x00007f93fa887000,0x00007f93fa987000], sp=0x00007f93fa9853f0, free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xad3525] VMError::report_and_die()+0x2e5
V [libjvm.so+0x4e0457] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x67
V [libjvm.so+0x9102f0] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x100
V [libjvm.so+0x90791f] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x1f
V [libjvm.so+0x98c806] PSVirtualSpace::expand_by(unsigned long)+0x56
V [libjvm.so+0x98da98] PSYoungGen::resize(unsigned long, unsigned long)+0xd8
V [libjvm.so+0x98a236] PSScavenge::invoke_no_policy()+0x1376
V [libjvm.so+0x98a5cc] PSScavenge::invoke()+0x4c
V [libjvm.so+0x93a318] ParallelScavengeHeap::failed_mem_allocate(unsigned long)+0x68
V [libjvm.so+0xad5073] VM_ParallelGCFailedAllocation::doit()+0x93
V [libjvm.so+0xada296] VM_Operation::evaluate()+0x46
V [libjvm.so+0xad85cd] VMThread::evaluate_operation(VM_Operation*) [clone .constprop.44]+0xcd
V [libjvm.so+0xad8bb3] VMThread::loop()+0x3a3
V [libjvm.so+0xad8f88] VMThread::run()+0x78
V [libjvm.so+0x90d922] java_start(Thread*)+0x102
VM_Operation (0x00007f943801a800): ParallelGCFailedAllocation, mode: safepoint, requested by thread 0x00007f943000b800
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00007f94300cd800 JavaThread "Service Thread" daemon [_thread_blocked, id=26101, stack(0x00007f93f96ac000,0x00007f93f97ad000)]
0x00007f94300ca800 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=26100, stack(0x00007f93f97ae000,0x00007f93f98ae000)]
0x00007f94300c8800 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=26099, stack(0x00007f93f98af000,0x00007f93f99af000)]
0x00007f94300c6800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=26098, stack(0x00007f93f99b0000,0x00007f93f9ab0000)]
0x00007f94300c3800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=26097, stack(0x00007f93f9ab1000,0x00007f93f9bb1000)]
0x00007f94300c2000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=26096, stack(0x00007f93f9bb1000,0x00007f93f9cb2000)]
0x00007f943008e000 JavaThread "Finalizer" daemon [_thread_blocked, id=26095, stack(0x00007f93fa684000,0x00007f93fa785000)]
0x00007f943008b800 JavaThread "Reference Handler" daemon [_thread_blocked, id=26094, stack(0x00007f93fa785000,0x00007f93fa886000)]
0x00007f943000b800 JavaThread "main" [_thread_blocked, id=26084, stack(0x00007f9437f1e000,0x00007f943801e000)]
Other Threads:
=>0x00007f9430082000 VMThread [stack: 0x00007f93fa887000,0x00007f93fa987000] [id=26093]
0x00007f94300d0000 WatcherThread [stack: 0x00007f93f95ac000,0x00007f93f96ac000] [id=26102]
VM state:at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x00007f9430007f90] Threads_lock - owner thread: 0x00007f9430082000
[0x00007f9430008490] Heap_lock - owner thread: 0x00007f943000b800
heap address: 0x000000008c000000, size: 1856 MB, Compressed Oops mode: 32-bit
Narrow klass base: 0x0000000000000000, Narrow klass shift: 3
Compressed class space size: 1073741824 Address: 0x0000000100000000
Heap:
PSYoungGen total 130560K, used 9712K [0x00000000d9580000, 0x00000000e1e80000, 0x0000000100000000)
eden space 120832K, 0% used [0x00000000d9580000,0x00000000d9580000,0x00000000e0b80000)
from space 9728K, 99% used [0x00000000e0b80000,0x00000000e14fc010,0x00000000e1500000)
to space 9728K, 0% used [0x00000000e1500000,0x00000000e1500000,0x00000000e1e80000)
ParOldGen total 79360K, used 14130K [0x000000008c000000, 0x0000000090d80000, 0x00000000d9580000)
object space 79360K, 17% used [0x000000008c000000,0x000000008cdccba0,0x0000000090d80000)
Metaspace used 20063K, capacity 20870K, committed 21120K, reserved 1067008K
class space used 2362K, capacity 2591K, committed 2688K, reserved 1048576K
Card table byte_map: [0x00007f943487c000,0x00007f9434c1d000] byte_map_base: 0x00007f943441c000
Marking Bits: (ParMarkBitMap*) 0x00007f94373ead80
Begin Bits: [0x00007f9400600000, 0x00007f9402300000)
End Bits: [0x00007f9402300000, 0x00007f9404000000)
Polling page: 0x00007f9438058000
CodeCache: size=245760Kb used=14337Kb max_used=14382Kb free=231422Kb
bounds [0x00007f9421000000, 0x00007f9421e20000, 0x00007f9430000000]
total_blobs=4365 nmethods=4014 adapters=263
compilation: enabled
Compilation events (10 events):
Event: 10,778 Thread 0x00007f94300ca800 nmethod 4028 0x00007f9421dd7050 code [0x00007f9421dd71a0, 0x00007f9421dd72b0]
Event: 10,796 Thread 0x00007f94300ca800 4030 3 sun.reflect.generics.visitor.Reifier::reifyTypeArguments (38 bytes)
Event: 11,490 Thread 0x00007f94300ca800 nmethod 4030 0x00007f9421dd6810 code [0x00007f9421dd69a0, 0x00007f9421dd6e88]
Event: 11,654 Thread 0x00007f94300ca800 4035 3 java.util.WeakHashMap::<init> (9 bytes)
Event: 12,523 Thread 0x00007f94300ca800 nmethod 4035 0x00007f9421ddefd0 code [0x00007f9421ddf160, 0x00007f9421ddf308]
Event: 12,592 Thread 0x00007f94300ca800 4029 1 com.google.common.base.Suppliers$SupplierOfInstance::get (5 bytes)
Event: 13,202 Thread 0x00007f94300c6800 nmethod 4034 0x00007f9421dde7d0 code [0x00007f9421dde920, 0x00007f9421ddedd8]
Event: 13,332 Thread 0x00007f94300ca800 nmethod 4029 0x00007f9421dde510 code [0x00007f9421dde660, 0x00007f9421dde770]
Event: 22,781 Thread 0x00007f94300ca800 4036 3 java.util.jar.JarFile::match (116 bytes)
Event: 24,479 Thread 0x00007f94300ca800 nmethod 4036 0x00007f9421df4890 code [0x00007f9421df4a40, 0x00007f9421df4f10]
GC Heap History (10 events):
Event: 0,918 GC heap after
Heap after GC invocations=2 (full 0):
PSYoungGen total 34816K, used 4600K [0x00000000d9580000, 0x00000000dd980000, 0x0000000100000000)
eden space 30208K, 0% used [0x00000000d9580000,0x00000000d9580000,0x00000000db300000)
from space 4608K, 99% used [0x00000000db780000,0x00000000dbbfe260,0x00000000dbc00000)
to space 4608K, 0% used [0x00000000db300000,0x00000000db300000,0x00000000db780000)
ParOldGen total 79360K, used 1855K [0x000000008c000000, 0x0000000090d80000, 0x00000000d9580000)
object space 79360K, 2% used [0x000000008c000000,0x000000008c1cff98,0x0000000090d80000)
Metaspace used 11015K, capacity 11180K, committed 11520K, reserved 1058816K
class space used 1377K, capacity 1445K, committed 1536K, reserved 1048576K
}
Event: 1,257 GC heap before
{Heap before GC invocations=3 (full 0):
PSYoungGen total 34816K, used 34808K [0x00000000d9580000, 0x00000000dd980000, 0x0000000100000000)
eden space 30208K, 100% used [0x00000000d9580000,0x00000000db300000,0x00000000db300000)
from space 4608K, 99% used [0x00000000db780000,0x00000000dbbfe260,0x00000000dbc00000)
to space 4608K, 0% used [0x00000000db300000,0x00000000db300000,0x00000000db780000)
ParOldGen total 79360K, used 1855K [0x000000008c000000, 0x0000000090d80000, 0x00000000d9580000)
object space 79360K, 2% used [0x000000008c000000,0x000000008c1cff98,0x0000000090d80000)
Metaspace used 13811K, capacity 14030K, committed 14208K, reserved 1060864K
class space used 1745K, capacity 1835K, committed 1920K, reserved 1048576K
Event: 1,263 GC heap after
Heap after GC invocations=3 (full 0):
PSYoungGen total 34816K, used 4580K [0x00000000d9580000, 0x00000000dd980000, 0x0000000100000000)
eden space 30208K, 0% used [0x00000000d9580000,0x00000000d9580000,0x00000000db300000)
from space 4608K, 99% used [0x00000000db300000,0x00000000db779060,0x00000000db780000)
to space 4608K, 0% used [0x00000000dd500000,0x00000000dd500000,0x00000000dd980000)
ParOldGen total 79360K, used 2959K [0x000000008c000000, 0x0000000090d80000, 0x00000000d9580000)
object space 79360K, 3% used [0x000000008c000000,0x000000008c2e3e00,0x0000000090d80000)
Metaspace used 13811K, capacity 14030K, committed 14208K, reserved 1060864K
class space used 1745K, capacity 1835K, committed 1920K, reserved 1048576K
}
Event: 1,631 GC heap before
{Heap before GC invocations=4 (full 0):
PSYoungGen total 34816K, used 34788K [0x00000000d9580000, 0x00000000dd980000, 0x0000000100000000)
eden space 30208K, 100% used [0x00000000d9580000,0x00000000db300000,0x00000000db300000)
from space 4608K, 99% used [0x00000000db300000,0x00000000db779060,0x00000000db780000)
to space 4608K, 0% used [0x00000000dd500000,0x00000000dd500000,0x00000000dd980000)
ParOldGen total 79360K, used 2959K [0x000000008c000000, 0x0000000090d80000, 0x00000000d9580000)
object space 79360K, 3% used [0x000000008c000000,0x000000008c2e3e00,0x0000000090d80000)
Metaspace used 16370K, capacity 16636K, committed 17024K, reserved 1064960K
class space used 2002K, capacity 2077K, committed 2176K, reserved 1048576K
Event: 1,643 GC heap after
Heap after GC invocations=4 (full 0):
PSYoungGen total 65024K, used 4600K [0x00000000d9580000, 0x00000000dd980000, 0x0000000100000000)
eden space 60416K, 0% used [0x00000000d9580000,0x00000000d9580000,0x00000000dd080000)
from space 4608K, 99% used [0x00000000dd500000,0x00000000dd97e0a0,0x00000000dd980000)
to space 4608K, 0% used [0x00000000dd080000,0x00000000dd080000,0x00000000dd500000)
ParOldGen total 79360K, used 5316K [0x000000008c000000, 0x0000000090d80000, 0x00000000d9580000)
object space 79360K, 6% used [0x000000008c000000,0x000000008c531360,0x0000000090d80000)
Metaspace used 16370K, capacity 16636K, committed 17024K, reserved 1064960K
class space used 2002K, capacity 2077K, committed 2176K, reserved 1048576K
}
Event: 2,237 GC heap before
{Heap before GC invocations=5 (full 0):
PSYoungGen total 65024K, used 65016K [0x00000000d9580000, 0x00000000dd980000, 0x0000000100000000)
eden space 60416K, 100% used [0x00000000d9580000,0x00000000dd080000,0x00000000dd080000)
from space 4608K, 99% used [0x00000000dd500000,0x00000000dd97e0a0,0x00000000dd980000)
to space 4608K, 0% used [0x00000000dd080000,0x00000000dd080000,0x00000000dd500000)
ParOldGen total 79360K, used 5316K [0x000000008c000000, 0x0000000090d80000, 0x00000000d9580000)
object space 79360K, 6% used [0x000000008c000000,0x000000008c531360,0x0000000090d80000)
Metaspace used 16943K, capacity 17310K, committed 17536K, reserved 1064960K
class space used 2031K, capacity 2120K, committed 2176K, reserved 1048576K
Event: 2,250 GC heap after
Heap after GC invocations=5 (full 0):
PSYoungGen total 65024K, used 4592K [0x00000000d9580000, 0x00000000e1e80000, 0x0000000100000000)
eden space 60416K, 0% used [0x00000000d9580000,0x00000000d9580000,0x00000000dd080000)
from space 4608K, 99% used [0x00000000dd080000,0x00000000dd4fc010,0x00000000dd500000)
to space 9728K, 0% used [0x00000000e1500000,0x00000000e1500000,0x00000000e1e80000)
ParOldGen total 79360K, used 9849K [0x000000008c000000, 0x0000000090d80000, 0x00000000d9580000)
object space 79360K, 12% used [0x000000008c000000,0x000000008c99e768,0x0000000090d80000)
Metaspace used 16943K, capacity 17310K, committed 17536K, reserved 1064960K
class space used 2031K, capacity 2120K, committed 2176K, reserved 1048576K
}
Event: 2,639 GC heap before
{Heap before GC invocations=6 (full 0):
PSYoungGen total 65024K, used 65008K [0x00000000d9580000, 0x00000000e1e80000, 0x0000000100000000)
eden space 60416K, 100% used [0x00000000d9580000,0x00000000dd080000,0x00000000dd080000)
from space 4608K, 99% used [0x00000000dd080000,0x00000000dd4fc010,0x00000000dd500000)
to space 9728K, 0% used [0x00000000e1500000,0x00000000e1500000,0x00000000e1e80000)
ParOldGen total 79360K, used 9849K [0x000000008c000000, 0x0000000090d80000, 0x00000000d9580000)
object space 79360K, 12% used [0x000000008c000000,0x000000008c99e768,0x0000000090d80000)
Metaspace used 17217K, capacity 17502K, committed 17792K, reserved 1064960K
class space used 2031K, capacity 2120K, committed 2176K, reserved 1048576K
Event: 2,656 GC heap after
Heap after GC invocations=6 (full 0):
PSYoungGen total 130560K, used 7296K [0x00000000d9580000, 0x00000000e1e80000, 0x0000000100000000)
eden space 120832K, 0% used [0x00000000d9580000,0x00000000d9580000,0x00000000e0b80000)
from space 9728K, 75% used [0x00000000e1500000,0x00000000e1c20000,0x00000000e1e80000)
to space 9728K, 0% used [0x00000000e0b80000,0x00000000e0b80000,0x00000000e1500000)
ParOldGen total 79360K, used 9857K [0x000000008c000000, 0x0000000090d80000, 0x00000000d9580000)
object space 79360K, 12% used [0x000000008c000000,0x000000008c9a0768,0x0000000090d80000)
Metaspace used 17217K, capacity 17502K, committed 17792K, reserved 1064960K
class space used 2031K, capacity 2120K, committed 2176K, reserved 1048576K
}
Event: 24,889 GC heap before
{Heap before GC invocations=7 (full 0):
PSYoungGen total 130560K, used 128128K [0x00000000d9580000, 0x00000000e1e80000, 0x0000000100000000)
eden space 120832K, 100% used [0x00000000d9580000,0x00000000e0b80000,0x00000000e0b80000)
from space 9728K, 75% used [0x00000000e1500000,0x00000000e1c20000,0x00000000e1e80000)
to space 9728K, 0% used [0x00000000e0b80000,0x00000000e0b80000,0x00000000e1500000)
ParOldGen total 79360K, used 9857K [0x000000008c000000, 0x0000000090d80000, 0x00000000d9580000)
object space 79360K, 12% used [0x000000008c000000,0x000000008c9a0768,0x0000000090d80000)
Metaspace used 20063K, capacity 20870K, committed 21120K, reserved 1067008K
class space used 2362K, capacity 2591K, committed 2688K, reserved 1048576K
Deoptimization events (10 events):
Event: 3,379 Thread 0x00007f943000b800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f9421b9bc34 method=com.google.inject.internal.InjectorImpl.callInContext(Lcom/google/inject/internal/ContextualCallable;)Ljava/lang/Object; @ 161
Event: 3,505 Thread 0x00007f943000b800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00007f9421afcc88 method=org.eclipse.sisu.wire.EntryListAdapter$ValueIterator.hasNext()Z @ 4
Event: 3,506 Thread 0x00007f943000b800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f9421ad4678 method=org.eclipse.sisu.plexus.RealmFilteredBeans$FilteredItr.hasNext()Z @ 57
Event: 3,506 Thread 0x00007f943000b800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f9421afb2b8 method=org.eclipse.sisu.plexus.RealmFilteredBeans$FilteredItr.hasNext()Z @ 57
Event: 3,517 Thread 0x00007f943000b800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f9421c2e054 method=sun.net.www.protocol.jar.Handler.parseURL(Ljava/net/URL;Ljava/lang/String;II)V @ 94
Event: 3,593 Thread 0x00007f943000b800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00007f9421afcc88 method=org.eclipse.sisu.wire.EntryListAdapter$ValueIterator.hasNext()Z @ 4
Event: 3,594 Thread 0x00007f943000b800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f9421991c94 method=org.eclipse.sisu.plexus.RealmFilteredBeans$FilteredItr.hasNext()Z @ 57
Event: 3,623 Thread 0x00007f943000b800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f9421c52f84 method=com.google.inject.internal.InjectorImpl.callInContext(Lcom/google/inject/internal/ContextualCallable;)Ljava/lang/Object; @ 161
Event: 3,967 Thread 0x00007f943000b800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f9421a5bf0c method=org.eclipse.aether.util.graph.transformer.ConflictResolver$State.deriveScope(Lorg/eclipse/aether/graph/DependencyNode;Ljava/lang/Object;)Ljava/lang/String; @ 8
Event: 4,418 Thread 0x00007f943000b800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00007f9421afcc88 method=org.eclipse.sisu.wire.EntryListAdapter$ValueIterator.hasNext()Z @ 4
Classes redefined (0 events):
No events
Internal exceptions (10 events):
Event: 1,374 Thread 0x00007f943000b800 Exception <a 'java/lang/NullPointerException'> (0x00000000d9fd71b0) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u201/12317/hotspot/src/share/vm/interpreter/linkResolver.cpp, line 1185]
Event: 1,375 Thread 0x00007f943000b800 Exception <a 'java/lang/NullPointerException'> (0x00000000d9fde448) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u201/12317/hotspot/src/share/vm/interpreter/linkResolver.cpp, line 1185]
Event: 1,375 Thread 0x00007f943000b800 Exception <a 'java/lang/NullPointerException'> (0x00000000d9fde660) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u201/12317/hotspot/src/share/vm/interpreter/linkResolver.cpp, line 1185]
Event: 1,375 Thread 0x00007f943000b800 Exception <a 'java/lang/NullPointerException'> (0x00000000d9fde878) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u201/12317/hotspot/src/share/vm/interpreter/linkResolver.cpp, line 1185]
Event: 1,547 Thread 0x00007f943000b800 Implicit null exception at 0x00007f94213bc975 to 0x00007f94213bcb7d
Event: 1,547 Thread 0x00007f943000b800 Implicit null exception at 0x00007f942160e1af to 0x00007f942160e219
Event: 2,741 Thread 0x00007f943000b800 Implicit null exception at 0x00007f9421a0ee1b to 0x00007f9421a0f771
Event: 3,370 Thread 0x00007f943000b800 Implicit null exception at 0x00007f9421b661e6 to 0x00007f9421b683d1
Event: 3,379 Thread 0x00007f943000b800 Implicit null exception at 0x00007f9421b998a6 to 0x00007f9421b9bc1d
Event: 3,623 Thread 0x00007f943000b800 Implicit null exception at 0x00007f9421c527fc to 0x00007f9421c52f73
Events (10 events):
Event: 15,519 loading class org/codehaus/plexus/components/interactivity/InputHandler done
Event: 24,384 loading class org/codehaus/plexus/components/interactivity/OutputHandler
Event: 24,427 loading class org/codehaus/plexus/components/interactivity/OutputHandler done
Event: 24,431 loading class org/codehaus/plexus/components/interactivity/OutputHandler
Event: 24,431 loading class org/codehaus/plexus/components/interactivity/OutputHandler done
Event: 24,481 loading class org/codehaus/plexus/components/interactivity/Prompter
Event: 24,481 loading class org/codehaus/plexus/components/interactivity/Prompter done
Event: 24,481 loading class org/codehaus/plexus/components/interactivity/Prompter
Event: 24,481 loading class org/codehaus/plexus/components/interactivity/Prompter done
Event: 24,861 Executing VM operation: ParallelGCFailedAllocation
Dynamic libraries:
00400000-00401000 r-xp 00000000 fd:01 803156 /usr/lib/jvm/java-8-oracle/bin/java
00600000-00601000 r--p 00000000 fd:01 803156 /usr/lib/jvm/java-8-oracle/bin/java
00601000-00602000 rw-p 00001000 fd:01 803156 /usr/lib/jvm/java-8-oracle/bin/java
00648000-00669000 rw-p 00000000 00:00 0 [heap]
8c000000-90d80000 rw-p 00000000 00:00 0
90d80000-d9580000 ---p 00000000 00:00 0
d9580000-e1e80000 rw-p 00000000 00:00 0
e9a80000-100000000 ---p 00000000 00:00 0
100000000-1002a0000 rw-p 00000000 00:00 0
1002a0000-140000000 ---p 00000000 00:00 0
7f93cc000000-7f93cc021000 rw-p 00000000 00:00 0
7f93cc021000-7f93d0000000 ---p 00000000 00:00 0
7f93d0fff000-7f93d4000000 rw-p 00000000 00:00 0
7f93d4000000-7f93d5226000 rw-p 00000000 00:00 0
7f93d5226000-7f93d8000000 ---p 00000000 00:00 0
7f93d8000000-7f93d8021000 rw-p 00000000 00:00 0
7f93d8021000-7f93dc000000 ---p 00000000 00:00 0
7f93dc000000-7f93dddb2000 rw-p 00000000 00:00 0
7f93dddb2000-7f93e0000000 ---p 00000000 00:00 0
7f93e0000000-7f93e1929000 rw-p 00000000 00:00 0
7f93e1929000-7f93e4000000 ---p 00000000 00:00 0
7f93e4000000-7f93e4021000 rw-p 00000000 00:00 0
7f93e4021000-7f93e8000000 ---p 00000000 00:00 0
7f93e8000000-7f93e9b14000 rw-p 00000000 00:00 0
7f93e9b14000-7f93ec000000 ---p 00000000 00:00 0
7f93ec000000-7f93ec021000 rw-p 00000000 00:00 0
7f93ec021000-7f93f0000000 ---p 00000000 00:00 0
7f93f0000000-7f93f0021000 rw-p 00000000 00:00 0
7f93f0021000-7f93f4000000 ---p 00000000 00:00 0
7f93f4000000-7f93f429c000 rw-p 00000000 00:00 0
7f93f429c000-7f93f8000000 ---p 00000000 00:00 0
7f93f8645000-7f93f8649000 r--s 00029000 fd:01 12457270 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-archiver/1.2/plexus-archiver-1.2.jar
7f93f8649000-7f93f864a000 r--s 00004000 fd:01 14292576 /home/alogo/.m2/repository/org/apache/maven/maven-archiver/2.4.1/maven-archiver-2.4.1.jar
7f93f864a000-7f93f864c000 r--s 00011000 fd:01 13504118 /home/alogo/.m2/repository/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.jar
7f93f864c000-7f93f864e000 r--s 00002000 fd:01 526647 /home/alogo/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.jar
7f93f864e000-7f93f864f000 r--s 00002000 fd:01 12329854 /home/alogo/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-api-2.0.9.jar
7f93f864f000-7f93f8653000 r--s 00035000 fd:01 12329856 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.8/plexus-utils-3.0.8.jar
7f93f8653000-7f93f8655000 r--s 00006000 fd:01 12979994 /home/alogo/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.3/maven-common-artifact-filters-1.3.jar
7f93f8655000-7f93f865b000 r--s 00048000 fd:01 12329605 /home/alogo/.m2/repository/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar
7f93f865b000-7f93f8660000 r--s 0003c000 fd:01 526633 /home/alogo/.m2/repository/org/apache/maven/surefire/maven-surefire-common/2.12.4/maven-surefire-common-2.12.4.jar
7f93f8660000-7f93f8664000 r--s 00019000 fd:01 526621 /home/alogo/.m2/repository/org/apache/maven/surefire/surefire-api/2.12.4/surefire-api-2.12.4.jar
7f93f8664000-7f93f8666000 r--s 00007000 fd:01 526620 /home/alogo/.m2/repository/org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.jar
7f93f8666000-7f93f8667000 r--s 00007000 fd:01 12718591 /home/alogo/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/maven-surefire-plugin-2.12.4.jar
7f93f8667000-7f93f8669000 r--s 00002000 fd:01 12849647 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/1.8.1/plexus-compiler-javac-1.8.1.jar
7f93f8669000-7f93f866b000 r--s 00000000 fd:01 12718326 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler-manager-1.8.1.jar
7f93f866b000-7f93f866c000 r--s 00004000 fd:01 12329889 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-compiler-api/1.8.1/plexus-compiler-api-1.8.1.jar
7f93f866c000-7f93f866e000 r--s 00006000 fd:01 11936589 /home/alogo/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.jar
7f93f866e000-7f93f8670000 r--s 0000d000 fd:01 12328573 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar
7f93f8670000-7f93f8671000 r--s 00001000 fd:01 12328575 /home/alogo/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar
7f93f8671000-7f93f8673000 r--s 00009000 fd:01 12323927 /home/alogo/.m2/repository/org/apache/maven/shared/maven-filtering/1.1/maven-filtering-1.1.jar
7f93f8673000-7f93f8677000 r--s 00033000 fd:01 12328571 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
7f93f8677000-7f93f8679000 r--s 00006000 fd:01 12321402 /home/alogo/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.jar
7f93f8679000-7f93f8879000 rw-p 00000000 00:00 0
7f93f8879000-7f93f887b000 r--s 00008000 fd:01 12980593 /home/alogo/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0-alpha-7/doxia-decoration-model-1.0-alpha-7.jar
7f93f887b000-7f93f8886000 r--s 00074000 fd:01 12457261 /home/alogo/.m2/repository/velocity/velocity-dep/1.4/velocity-dep-1.4.jar
7f93f8886000-7f93f888e000 r--s 00051000 fd:01 12457259 /home/alogo/.m2/repository/velocity/velocity/1.4/velocity-1.4.jar
7f93f888e000-7f93f8890000 r--s 00005000 fd:01 12457256 /home/alogo/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar
7f93f8890000-7f93f8893000 r--s 00025000 fd:01 12457249 /home/alogo/.m2/repository/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar
7f93f8893000-7f93f8894000 r--s 00001000 fd:01 12980600 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar
7f93f8894000-7f93f8895000 r--s 00002000 fd:01 12980599 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar
7f93f8895000-7f93f8897000 r--s 00002000 fd:01 12980594 /home/alogo/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-7/doxia-site-renderer-1.0-alpha-7.jar
7f93f8897000-7f93f8899000 r--s 0000e000 fd:01 12980592 /home/alogo/.m2/repository/oro/oro/2.0.7/oro-2.0.7.jar
7f93f8899000-7f93f889f000 r--s 00033000 fd:01 12980590 /home/alogo/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-7/doxia-core-1.0-alpha-7.jar
7f93f889f000-7f93f88a4000 r--s 00016000 fd:01 12979522 /home/alogo/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
7f93f88a4000-7f93f88a6000 r--s 00008000 fd:01 12979519 /home/alogo/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
7f93f88a6000-7f93f88ac000 r--s 00023000 fd:01 12980589 /home/alogo/.m2/repository/commons-collections/commons-collections/2.1/commons-collections-2.1.jar
7f93f88ac000-7f93f88b0000 r--s 00026000 fd:01 12979516 /home/alogo/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
7f93f88b0000-7f93f88b5000 r--s 0002a000 fd:01 12979513 /home/alogo/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
7f93f88b5000-7f93f88b8000 r--s 00014000 fd:01 12979511 /home/alogo/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar
7f93f88b8000-7f93f88ba000 r--s 00002000 fd:01 12457252 /home/alogo/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.4/maven-reporting-impl-2.0.4.jar
7f93f88ba000-7f93f88bb000 r--s 00001000 fd:01 12323919 /home/alogo/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar
7f93f88bb000-7f93f88bc000 r--s 00002000 fd:01 12323918 /home/alogo/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
7f93f88bc000-7f93f88bd000 r--s 00002000 fd:01 12457250 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar
7f93f88bd000-7f93f88be000 r--s 00007000 fd:01 530489 /home/alogo/.m2/repository/org/apache/maven/shared/maven-plugin-testing-harness/1.1/maven-plugin-testing-harness-1.1.jar
7f93f88be000-7f93f88c0000 r--s 00005000 fd:01 12457248 /home/alogo/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.0/maven-common-artifact-filters-1.0.jar
7f93f88c0000-7f93f88c2000 r--s 00007000 fd:01 12980587 /home/alogo/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
7f93f88c2000-7f93f88c4000 r--s 00009000 fd:01 12980583 /home/alogo/.m2/repository/asm/asm/3.0/asm-3.0.jar
7f93f88c4000-7f93f88c6000 r--s 00005000 fd:01 12980581 /home/alogo/.m2/repository/org/apache/maven/shared/maven-dependency-analyzer/1.1/maven-dependency-analyzer-1.1.jar
7f93f88c6000-7f93f88c9000 r--s 0001b000 fd:01 12323921 /home/alogo/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
7f93f88c9000-7f93f88cb000 r--s 00007000 fd:01 13107218 /home/alogo/.m2/repository/org/apache/maven/shared/maven-shared-io/1.0/maven-shared-io-1.0.jar
7f93f88cb000-7f93f88cd000 r--s 00006000 fd:01 12981681 /home/alogo/.m2/repository/org/apache/maven/shared/file-management/1.1/file-management-1.1.jar
7f93f88cd000-7f93f88d0000 r--s 0002f000 fd:01 12980579 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.6/plexus-utils-1.4.6.jar
7f93f88d0000-7f93f88d4000 r--s 00023000 fd:01 12457246 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar
7f93f88d4000-7f93f88d6000 r--s 00002000 fd:01 12323920 /home/alogo/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
7f93f88d6000-7f93f88d8000 r--s 00006000 fd:01 12323917 /home/alogo/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
7f93f88d8000-7f93f88da000 r--s 00018000 fd:01 13108739 /home/alogo/.m2/repository/org/apache/maven/plugins/maven-dependency-plugin/2.1/maven-dependency-plugin-2.1.jar
7f93f88da000-7f93f8ada000 rw-p 00000000 00:00 0
7f93f8ada000-7f93f8aeb000 r-xp 00000000 fd:01 929539 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnio.so
7f93f8aeb000-7f93f8cea000 ---p 00011000 fd:01 929539 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnio.so
7f93f8cea000-7f93f8ceb000 r--p 00010000 fd:01 929539 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnio.so
7f93f8ceb000-7f93f8cec000 rw-p 00011000 fd:01 929539 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnio.so
7f93f8cec000-7f93f8d02000 r-xp 00000000 fd:01 929536 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnet.so
7f93f8d02000-7f93f8f02000 ---p 00016000 fd:01 929536 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnet.so
7f93f8f02000-7f93f8f03000 r--p 00016000 fd:01 929536 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnet.so
7f93f8f03000-7f93f8f04000 rw-p 00017000 fd:01 929536 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnet.so
7f93f8f04000-7f93f8f08000 r--s 000a1000 fd:01 929376 /usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar
7f93f8f08000-7f93f9108000 rw-p 00000000 00:00 0
7f93f9108000-7f93f9308000 rw-p 00000000 00:00 0
7f93f9308000-7f93f9508000 rw-p 00000000 00:00 0
7f93f9508000-7f93f950a000 r--s 0000d000 fd:01 11801645 /home/alogo/netbeans-8.2/java/maven-nblib/netbeans-eventspy.jar
7f93f950a000-7f93f950d000 r--s 00011000 fd:01 14554196 /usr/share/java/plexus-interpolation.jar
7f93f950d000-7f93f950e000 r--s 00002000 fd:01 14554133 /usr/share/java/geronimo-annotation-1.3-spec.jar
7f93f950e000-7f93f9515000 r--s 00054000 fd:01 14554220 /usr/share/java/sisu-inject.jar
7f93f9515000-7f93f9517000 r--s 00006000 fd:01 14553634 /usr/share/java/maven-resolver-spi.jar
7f93f9517000-7f93f9524000 r--s 0008b000 fd:01 14554171 /usr/share/java/maven3-core.jar
7f93f9524000-7f93f9529000 r--s 00030000 fd:01 14554129 /usr/share/java/commons-io.jar
7f93f9529000-7f93f952a000 r--s 0000a000 fd:01 14554179 /usr/share/java/maven3-settings.jar
7f93f952a000-7f93f952b000 r--s 00003000 fd:01 14554189 /usr/share/java/plexus-cipher.jar
7f93f952b000-7f93f952d000 r--s 00005000 fd:01 14553638 /usr/share/java/maven-resolver-transport-wagon.jar
7f93f952d000-7f93f9532000 r--s 00025000 fd:01 14554173 /usr/share/java/maven3-model-builder.jar
7f93f9532000-7f93f9536000 r--s 0003b000 fd:01 14554165 /usr/share/java/plexus-utils2.jar
7f93f9536000-7f93f953c000 r--s 0002d000 fd:01 14554222 /usr/share/java/sisu-plexus.jar
7f93f953c000-7f93f953d000 r--s 00001000 fd:01 14554123 /usr/share/java/geronimo-interceptor-3.0-spec.jar
7f93f953d000-7f93f953f000 r--s 0000d000 fd:01 14553463 /usr/share/java/el-api.jar
7f93f953f000-7f93f9540000 r--s 00000000 fd:01 14554121 /usr/share/java/atinject-jsr330-api-1.0.jar
7f93f9540000-7f93f9543000 r--s 0000e000 fd:01 14554125 /usr/share/java/cdi-api.jar
7f93f9543000-7f93f9545000 r--s 00001000 fd:01 14554169 /usr/share/java/maven3-builder-support.jar
7f93f9545000-7f93f9571000 r--s 00208000 fd:01 14554137 /usr/share/java/guava.jar
7f93f9571000-7f93f9573000 r--s 00003000 fd:01 14554200 /usr/share/java/jcl-over-slf4j.jar
7f93f9573000-7f93f95a0000 r--s 001ce000 fd:01 14554274 /usr/share/java/wagon-http-shaded-3.0.0.jar
7f93f95a0000-7f93f95a2000 r--s 00000000 fd:01 14554193 /usr/share/java/plexus-component-annotations.jar
7f93f95a2000-7f93f95a7000 r--s 00021000 fd:01 14553639 /usr/share/java/maven-resolver-util.jar
7f93f95a7000-7f93f95ab000 r--s 00027000 fd:01 14553504 /usr/share/java/maven-resolver-impl.jar
7f93f95ab000-7f93f95ac000 ---p 00000000 00:00 0
7f93f95ac000-7f93f96ac000 rw-p 00000000 00:00 0
7f93f96ac000-7f93f96af000 ---p 00000000 00:00 0
7f93f96af000-7f93f97ad000 rw-p 00000000 00:00 0
7f93f97ad000-7f93f97ae000 ---p 00000000 00:00 0
7f93f97ae000-7f93f97b1000 ---p 00000000 00:00 0
7f93f97b1000-7f93f98ae000 rw-p 00000000 00:00 0
7f93f98ae000-7f93f98af000 ---p 00000000 00:00 0
7f93f98af000-7f93f98b2000 ---p 00000000 00:00 0
7f93f98b2000-7f93f99af000 rw-p 00000000 00:00 0
7f93f99af000-7f93f99b0000 ---p 00000000 00:00 0
7f93f99b0000-7f93f99b3000 ---p 00000000 00:00 0
7f93f99b3000-7f93f9ab0000 rw-p 00000000 00:00 0
7f93f9ab0000-7f93f9ab1000 ---p 00000000 00:00 0
7f93f9ab1000-7f93f9ab4000 ---p 00000000 00:00 0
7f93f9ab4000-7f93f9bb1000 rw-p 00000000 00:00 0
7f93f9bb1000-7f93f9bb4000 ---p 00000000 00:00 0
7f93f9bb4000-7f93f9cb2000 rw-p 00000000 00:00 0
7f93f9cb2000-7f93fa684000 r--p 00000000 fd:01 14162550 /usr/lib/locale/locale-archive
7f93fa684000-7f93fa687000 ---p 00000000 00:00 0
7f93fa687000-7f93fa785000 rw-p 00000000 00:00 0
7f93fa785000-7f93fa788000 ---p 00000000 00:00 0
7f93fa788000-7f93fa886000 rw-p 00000000 00:00 0
7f93fa886000-7f93fa887000 ---p 00000000 00:00 0
7f93fa887000-7f93fc000000 rw-p 00000000 00:00 0
7f93fc000000-7f93fc021000 rw-p 00000000 00:00 0
7f93fc021000-7f9400000000 ---p 00000000 00:00 0
7f9400000000-7f9400007000 r--s 00041000 fd:01 14554170 /usr/share/java/maven3-compat.jar
7f9400007000-7f9404000000 rw-p 00000000 00:00 0
7f9404000000-7f9404021000 rw-p 00000000 00:00 0
7f9404021000-7f9408000000 ---p 00000000 00:00 0
7f9408000000-7f9408021000 rw-p 00000000 00:00 0
7f9408021000-7f940c000000 ---p 00000000 00:00 0
7f940c000000-7f940c021000 rw-p 00000000 00:00 0
7f940c021000-7f9410000000 ---p 00000000 00:00 0
7f9410000000-7f9410021000 rw-p 00000000 00:00 0
7f9410021000-7f9414000000 ---p 00000000 00:00 0
7f9414000000-7f9414021000 rw-p 00000000 00:00 0
7f9414021000-7f9418000000 ---p 00000000 00:00 0
7f9418000000-7f9418021000 rw-p 00000000 00:00 0
7f9418021000-7f941c000000 ---p 00000000 00:00 0
7f941c000000-7f941c021000 rw-p 00000000 00:00 0
7f941c021000-7f9420000000 ---p 00000000 00:00 0
7f9420000000-7f9420001000 r--s 00006000 fd:01 14554176 /usr/share/java/maven3-repository-metadata.jar
7f9420001000-7f9420002000 r--s 00000000 fd:01 14554121 /usr/share/java/atinject-jsr330-api-1.0.jar
7f9420002000-7f9420004000 r--s 0000a000 fd:01 14554175 /usr/share/java/maven3-plugin-api.jar
7f9420004000-7f9420007000 r--s 00027000 fd:01 14554174 /usr/share/java/maven3-model.jar
7f9420007000-7f9420009000 r--s 00009000 fd:01 14554203 /usr/share/java/slf4j-api.jar
7f9420009000-7f942000c000 r--s 0000a000 fd:01 14554132 /usr/share/java/maven3-artifact.jar
7f942000c000-7f942000e000 r--s 0000a000 fd:01 14554127 /usr/share/java/commons-cli.jar
7f942000e000-7f94201e8000 r--s 03d6f000 fd:01 929319 /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar
7f94201e8000-7f9420dfe000 rw-p 00000000 00:00 0
7f9420dfe000-7f9420dff000 ---p 00000000 00:00 0
7f9420dff000-7f9420eff000 rw-p 00000000 00:00 0
7f9420eff000-7f9420f00000 ---p 00000000 00:00 0
7f9420f00000-7f9421000000 rw-p 00000000 00:00 0
7f9421000000-7f9421e20000 rwxp 00000000 00:00 0
7f9421e20000-7f9430000000 ---p 00000000 00:00 0
7f9430000000-7f9430f81000 rw-p 00000000 00:00 0
7f9430f81000-7f9434000000 ---p 00000000 00:00 0
7f9434000000-7f9434001000 r--s 00004000 fd:01 14554180 /usr/share/java/maven3-slf4j-provider.jar
7f9434001000-7f9434003000 r--s 00006000 fd:01 14554198 /usr/share/java/plexus-sec-dispatcher.jar
7f9434003000-7f9434006000 r--s 00015000 fd:01 14554172 /usr/share/java/maven3-embedder.jar
7f9434006000-7f9434009000 r--s 00024000 fd:01 14553673 /usr/share/java/maven-shared-utils.jar
7f9434009000-7f943400b000 r--s 0000b000 fd:01 14554167 /usr/share/java/wagon-provider-api.jar
7f943400b000-7f943400c000 ---p 00000000 00:00 0
7f943400c000-7f943410c000 rw-p 00000000 00:00 0
7f943410c000-7f943410d000 ---p 00000000 00:00 0
7f943410d000-7f943420d000 rw-p 00000000 00:00 0
7f943420d000-7f943420e000 ---p 00000000 00:00 0
7f943420e000-7f943430e000 rw-p 00000000 00:00 0
7f943430e000-7f943430f000 ---p 00000000 00:00 0
7f943430f000-7f943440f000 rw-p 00000000 00:00 0
7f943440f000-7f9434410000 ---p 00000000 00:00 0
7f9434410000-7f9434510000 rw-p 00000000 00:00 0
7f9434510000-7f9434511000 ---p 00000000 00:00 0
7f9434511000-7f9434638000 rw-p 00000000 00:00 0
7f9434638000-7f943487c000 ---p 00000000 00:00 0
7f943487c000-7f94348a3000 rw-p 00000000 00:00 0
7f94348a3000-7f9434ae6000 ---p 00000000 00:00 0
7f9434ae6000-7f9434b2c000 rw-p 00000000 00:00 0
7f9434b2c000-7f9434c1c000 ---p 00000000 00:00 0
7f9434c1c000-7f9434c56000 rw-p 00000000 00:00 0
7f9434c56000-7f9434fdd000 ---p 00000000 00:00 0
7f9434fdd000-7f9434ff8000 r-xp 00000000 fd:01 929532 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
7f9434ff8000-7f94351f7000 ---p 0001b000 fd:01 929532 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
7f94351f7000-7f94351f8000 r--p 0001a000 fd:01 929532 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
7f94351f8000-7f94351f9000 rw-p 0001b000 fd:01 929532 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
7f94351f9000-7f9435204000 r-xp 00000000 fd:01 10228471 /lib/x86_64-linux-gnu/libnss_files-2.27.so
7f9435204000-7f9435403000 ---p 0000b000 fd:01 10228471 /lib/x86_64-linux-gnu/libnss_files-2.27.so
7f9435403000-7f9435404000 r--p 0000a000 fd:01 10228471 /lib/x86_64-linux-gnu/libnss_files-2.27.so
7f9435404000-7f9435405000 rw-p 0000b000 fd:01 10228471 /lib/x86_64-linux-gnu/libnss_files-2.27.so
7f9435405000-7f943540b000 rw-p 00000000 00:00 0
7f943540b000-7f9435422000 r-xp 00000000 fd:01 10228465 /lib/x86_64-linux-gnu/libnsl-2.27.so
7f9435422000-7f9435621000 ---p 00017000 fd:01 10228465 /lib/x86_64-linux-gnu/libnsl-2.27.so
7f9435621000-7f9435622000 r--p 00016000 fd:01 10228465 /lib/x86_64-linux-gnu/libnsl-2.27.so
7f9435622000-7f9435623000 rw-p 00017000 fd:01 10228465 /lib/x86_64-linux-gnu/libnsl-2.27.so
7f9435623000-7f9435625000 rw-p 00000000 00:00 0
7f9435625000-7f9435630000 r-xp 00000000 fd:01 10228482 /lib/x86_64-linux-gnu/libnss_nis-2.27.so
7f9435630000-7f943582f000 ---p 0000b000 fd:01 10228482 /lib/x86_64-linux-gnu/libnss_nis-2.27.so
7f943582f000-7f9435830000 r--p 0000a000 fd:01 10228482 /lib/x86_64-linux-gnu/libnss_nis-2.27.so
7f9435830000-7f9435831000 rw-p 0000b000 fd:01 10228482 /lib/x86_64-linux-gnu/libnss_nis-2.27.so
7f9435831000-7f9435839000 r-xp 00000000 fd:01 10228467 /lib/x86_64-linux-gnu/libnss_compat-2.27.so
7f9435839000-7f9435a39000 ---p 00008000 fd:01 10228467 /lib/x86_64-linux-gnu/libnss_compat-2.27.so
7f9435a39000-7f9435a3a000 r--p 00008000 fd:01 10228467 /lib/x86_64-linux-gnu/libnss_compat-2.27.so
7f9435a3a000-7f9435a3b000 rw-p 00009000 fd:01 10228467 /lib/x86_64-linux-gnu/libnss_compat-2.27.so
7f9435a3b000-7f9435a67000 r-xp 00000000 fd:01 929526 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
7f9435a67000-7f9435c67000 ---p 0002c000 fd:01 929526 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
7f9435c67000-7f9435c68000 r--p 0002c000 fd:01 929526 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
7f9435c68000-7f9435c6a000 rw-p 0002d000 fd:01 929526 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
7f9435c6a000-7f9435c77000 r-xp 00000000 fd:01 929531 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
7f9435c77000-7f9435e76000 ---p 0000d000 fd:01 929531 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
7f9435e76000-7f9435e78000 r--p 0000c000 fd:01 929531 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
7f9435e78000-7f9435e79000 rw-p 0000e000 fd:01 929531 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
7f9435e79000-7f9435e80000 r-xp 00000000 fd:01 10228522 /lib/x86_64-linux-gnu/librt-2.27.so
7f9435e80000-7f943607f000 ---p 00007000 fd:01 10228522 /lib/x86_64-linux-gnu/librt-2.27.so
7f943607f000-7f9436080000 r--p 00006000 fd:01 10228522 /lib/x86_64-linux-gnu/librt-2.27.so
7f9436080000-7f9436081000 rw-p 00007000 fd:01 10228522 /lib/x86_64-linux-gnu/librt-2.27.so
7f9436081000-7f943621e000 r-xp 00000000 fd:01 10228444 /lib/x86_64-linux-gnu/libm-2.27.so
7f943621e000-7f943641d000 ---p 0019d000 fd:01 10228444 /lib/x86_64-linux-gnu/libm-2.27.so
7f943641d000-7f943641e000 r--p 0019c000 fd:01 10228444 /lib/x86_64-linux-gnu/libm-2.27.so
7f943641e000-7f943641f000 rw-p 0019d000 fd:01 10228444 /lib/x86_64-linux-gnu/libm-2.27.so
7f943641f000-7f9437107000 r-xp 00000000 fd:01 929508 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
7f9437107000-7f9437306000 ---p 00ce8000 fd:01 929508 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
7f9437306000-7f943739c000 r--p 00ce7000 fd:01 929508 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
7f943739c000-7f94373cd000 rw-p 00d7d000 fd:01 929508 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
7f94373cd000-7f9437408000 rw-p 00000000 00:00 0
7f9437408000-7f94375ef000 r-xp 00000000 fd:01 10228381 /lib/x86_64-linux-gnu/libc-2.27.so
7f94375ef000-7f94377ef000 ---p 001e7000 fd:01 10228381 /lib/x86_64-linux-gnu/libc-2.27.so
7f94377ef000-7f94377f3000 r--p 001e7000 fd:01 10228381 /lib/x86_64-linux-gnu/libc-2.27.so
7f94377f3000-7f94377f5000 rw-p 001eb000 fd:01 10228381 /lib/x86_64-linux-gnu/libc-2.27.so
7f94377f5000-7f94377f9000 rw-p 00000000 00:00 0
7f94377f9000-7f94377fc000 r-xp 00000000 fd:01 10228404 /lib/x86_64-linux-gnu/libdl-2.27.so
7f94377fc000-7f94379fb000 ---p 00003000 fd:01 10228404 /lib/x86_64-linux-gnu/libdl-2.27.so
7f94379fb000-7f94379fc000 r--p 00002000 fd:01 10228404 /lib/x86_64-linux-gnu/libdl-2.27.so
7f94379fc000-7f94379fd000 rw-p 00003000 fd:01 10228404 /lib/x86_64-linux-gnu/libdl-2.27.so
7f94379fd000-7f9437a14000 r-xp 00000000 fd:01 929196 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so
7f9437a14000-7f9437c13000 ---p 00017000 fd:01 929196 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so
7f9437c13000-7f9437c14000 r--p 00016000 fd:01 929196 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so
7f9437c14000-7f9437c15000 rw-p 00017000 fd:01 929196 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so
7f9437c15000-7f9437c2f000 r-xp 00000000 fd:01 10228514 /lib/x86_64-linux-gnu/libpthread-2.27.so
7f9437c2f000-7f9437e2e000 ---p 0001a000 fd:01 10228514 /lib/x86_64-linux-gnu/libpthread-2.27.so
7f9437e2e000-7f9437e2f000 r--p 00019000 fd:01 10228514 /lib/x86_64-linux-gnu/libpthread-2.27.so
7f9437e2f000-7f9437e30000 rw-p 0001a000 fd:01 10228514 /lib/x86_64-linux-gnu/libpthread-2.27.so
7f9437e30000-7f9437e34000 rw-p 00000000 00:00 0
7f9437e34000-7f9437e5b000 r-xp 00000000 fd:01 10228353 /lib/x86_64-linux-gnu/ld-2.27.so
7f9437e5b000-7f9437e5c000 r--s 00001000 fd:01 14554272 /usr/share/java/wagon-file.jar
7f9437e5c000-7f9437e5e000 r--s 00001000 fd:01 14554139 /usr/share/java/aopalliance-1.0.jar
7f9437e5e000-7f9437e60000 r--s 0000d000 fd:01 14554177 /usr/share/java/maven3-resolver-provider.jar
7f9437e60000-7f9437e62000 r--s 00008000 fd:01 14553503 /usr/share/java/maven-resolver-connector-basic.jar
7f9437e62000-7f9437e66000 r--s 0001f000 fd:01 14553502 /usr/share/java/maven-resolver-api.jar
7f9437e66000-7f9437e68000 r--s 00007000 fd:01 14554163 /usr/share/java/jansi.jar
7f9437e68000-7f9437e6b000 r--s 00007000 fd:01 14554178 /usr/share/java/maven3-settings-builder.jar
7f9437e6b000-7f9437e79000 r--s 0009a000 fd:01 14554149 /usr/share/java/guice.jar
7f9437e79000-7f9437f1d000 rw-p 00000000 00:00 0
7f9437f1d000-7f9437f1e000 ---p 00000000 00:00 0
7f9437f1e000-7f9437f21000 ---p 00000000 00:00 0
7f9437f21000-7f9438020000 rw-p 00000000 00:00 0
7f9438020000-7f9438028000 r--s 00072000 fd:01 14553438 /usr/share/java/commons-lang3.jar
7f9438028000-7f943802a000 r--s 0000b000 fd:01 14554191 /usr/share/java/plexus-classworlds.jar
7f943802a000-7f943804f000 rw-p 00000000 00:00 0
7f943804f000-7f9438057000 rw-s 00000000 fd:01 2099834 /tmp/hsperfdata_alogo/26067
7f9438057000-7f9438058000 rw-p 00000000 00:00 0
7f9438058000-7f9438059000 ---p 00000000 00:00 0
7f9438059000-7f943805b000 rw-p 00000000 00:00 0
7f943805b000-7f943805c000 r--p 00027000 fd:01 10228353 /lib/x86_64-linux-gnu/ld-2.27.so
7f943805c000-7f943805d000 rw-p 00028000 fd:01 10228353 /lib/x86_64-linux-gnu/ld-2.27.so
7f943805d000-7f943805e000 rw-p 00000000 00:00 0
7fffa3290000-7fffa32b1000 rw-p 00000000 00:00 0 [stack]
7fffa3347000-7fffa334a000 r--p 00000000 00:00 0 [vvar]
7fffa334a000-7fffa334c000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
VM Arguments:
jvm_args: -Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dmaven.home=/usr/share/maven -Dlibrary.jansi.path=/usr/share/maven/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/alogo/workspace/DRIP/drip-api
java_command: org.codehaus.plexus.classworlds.launcher.Launcher -Dnetbeans.deploy=true -Dmaven.ext.class.path=/home/alogo/netbeans-8.2/java/maven-nblib/netbeans-eventspy.jar package
java_class_path (initial): /usr/share/maven/boot/plexus-classworlds-2.x.jar
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=/usr/lib/jvm/java-8-oracle
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-11-oracle/bin:/usr/lib/jvm/java-11-oracle/db/bin
USERNAME=alogo
LD_LIBRARY_PATH=/usr/lib/jvm/java-8-oracle/jre/lib/amd64:/usr/lib/jvm/java-8-oracle/jre/lib/i386:
SHELL=/bin/bash
DISPLAY=:0
Signal Handlers:
SIGSEGV: [libjvm.so+0xad3e60], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0xad3e60], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.so+0x90b750], sa_mask[0]=00100000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: [libjvm.so+0x90bd70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGINT: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGTERM: [libjvm.so+0x90bd70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGQUIT: [libjvm.so+0x90bd70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
--------------- S Y S T E M ---------------
OS:DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
uname:Linux 4.15.0-62-generic #69-Ubuntu SMP Wed Sep 4 20:55:53 UTC 2019 x86_64
libc:glibc 2.27 NPTL 2.27
rlimit: STACK 8192k, CORE 0k, NPROC 29424, NOFILE 1048576, AS infinity
load average:66,17 24,85 13,76
/proc/meminfo:
MemTotal: 7597460 kB
MemFree: 599620 kB
MemAvailable: 531752 kB
Buffers: 2060 kB
Cached: 1697560 kB
SwapCached: 19552 kB
Active: 5151028 kB
Inactive: 1351092 kB
Active(anon): 5145488 kB
Inactive(anon): 1305464 kB
Active(file): 5540 kB
Inactive(file): 45628 kB
Unevictable: 48 kB
Mlocked: 48 kB
SwapTotal: 1003516 kB
SwapFree: 16 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 4782592 kB
Mapped: 684388 kB
Shmem: 1646564 kB
Slab: 282324 kB
SReclaimable: 100980 kB
SUnreclaim: 181344 kB
KernelStack: 25888 kB
PageTables: 82148 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 4802244 kB
Committed_AS: 17213688 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 369588 kB
DirectMap2M: 7442432 kB
DirectMap1G: 0 kB
container (cgroup) information:
container_type: cgroupv1
cpu_cpuset_cpus: 0-7
cpu_memory_nodes: 0
active_processor_count: 8
cpu_quota: -1
cpu_period: 100000
cpu_shares: -1
memory_limit_in_bytes: -1
memory_and_swap_limit_in_bytes: -2
memory_soft_limit_in_bytes: -1
memory_usage_in_bytes: 6556381184
memory_max_usage_in_bytes: 7113416704
CPU:total 8 (initial active 8) (4 cores per cpu, 2 threads per core) family 6 model 142 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx
/proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
stepping : 10
microcode : 0xb4
cpu MHz : 2399.998
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips : 3984.00
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
stepping : 10
microcode : 0xb4
cpu MHz : 2400.000
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 1
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips : 3984.00
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
stepping : 10
microcode : 0xb4
cpu MHz : 2400.004
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 2
cpu cores : 4
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips : 3984.00
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
stepping : 10
microcode : 0xb4
cpu MHz : 2400.001
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 3
cpu cores : 4
apicid : 6
initial apicid : 6
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips : 3984.00
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 4
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
stepping : 10
microcode : 0xb4
cpu MHz : 2400.002
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips : 3984.00
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 5
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
stepping : 10
microcode : 0xb4
cpu MHz : 2400.000
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 1
cpu cores : 4
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips : 3984.00
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 6
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
stepping : 10
microcode : 0xb4
cpu MHz : 2399.999
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 2
cpu cores : 4
apicid : 5
initial apicid : 5
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips : 3984.00
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
stepping : 10
microcode : 0xb4
cpu MHz : 2400.001
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 3
cpu cores : 4
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips : 3984.00
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
Memory: 4k page, physical 7597460k(848604k free), swap 1003516k(0k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (25.201-b09) for linux-amd64 JRE (1.8.0_201-b09), built on Dec 15 2018 11:35:59 by "java_re" with gcc 7.3.0
time: Tue Sep 17 11:27:51 2019
timezone: CEST
elapsed time: 88 seconds (0d 0h 1m 28s)
......@@ -14,7 +14,7 @@ That way multiple projects can share the same settings (useful for formatting ru
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>1.6-web</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>Tomcat</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
<netbeans.hint.licensePath>${project.basedir}/../licenseheader.txt</netbeans.hint.licensePath>
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>Tomcat</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
</properties>
</project-shared-configuration>
......@@ -52,6 +52,7 @@ import nl.uva.sne.drip.api.exception.BadRequestException;
import nl.uva.sne.drip.api.exception.KeyException;
import nl.uva.sne.drip.commons.utils.Converter;
import nl.uva.sne.drip.commons.utils.DRIPLogHandler;
import nl.uva.sne.drip.commons.utils.TOSCAUtils;
import nl.uva.sne.drip.drip.commons.data.v1.external.ConfigurationRepresentation;
import nl.uva.sne.drip.drip.commons.data.v1.external.KeyPair;
import nl.uva.sne.drip.drip.commons.data.v1.external.PlanResponse;
......@@ -156,8 +157,8 @@ public class DeployService {
List<MessageParameter> params = response.getParameters();
DeployResponse deploy = handleResponse(params, deployInfo);
deploy.setProvisionID(deployInfo.getProvisionID());
deploy.setConfigurationID(deployInfo.getConfigurationID());
deploy.setManagerType(deployInfo.getManagerType().toLowerCase());
// deploy.setConfigurationID(deployInfo.getConfigurationID());
// deploy.setManagerType(deployInfo.getManagerType().toLowerCase());
logger.info("Deployment saved");
save(deploy);
return deploy;
......@@ -171,7 +172,7 @@ public class DeployService {
}
public Map<String, Object> getSwarmInfo(DeployResponse deployResp) throws JSONException, IOException, TimeoutException, InterruptedException {
deployResp.setManagerType("swarm_info");
// deployResp.setManagerType("swarm_info");
Message deployerInvokationMessage = buildDeployerMessages(
deployResp,
null,
......@@ -193,8 +194,7 @@ public class DeployService {
String serviceName,
Integer numOfContainers) throws JSONException {
String provisionID = deployInfo.getProvisionID();
String managerType = deployInfo.getManagerType();
String configurationID = deployInfo.getConfigurationID();
ProvisionResponse pro = provisionService.findOne(provisionID);
if (pro == null) {
......@@ -203,43 +203,26 @@ public class DeployService {
// List<String> loginKeysIDs = pro.getDeployerKeyPairIDs();
List<Message> messages = new ArrayList<>();
List<KeyPair> loginKeys = new ArrayList<>();
// for (String keyID : loginKeysIDs) {
// KeyPair key = keyDao.findOne(keyID);
// loginKeys.add(key);
// }
// List<DeployParameter> deployParams = pro.getDeployParameters();
List<MessageParameter> parameters = new ArrayList<>();
// for (DeployParameter dp : deployParams) {
// MessageParameter messageParameter = createCredentialPartameter(dp, loginKeys);
// parameters.add(messageParameter);
// }
MessageParameter managerTypeParameter = createManagerTypeParameter(managerType);
parameters.add(managerTypeParameter);
if (managerType.toLowerCase().equals("ansible") && configurationID != null) {
MessageParameter ansibleParameter = createAnsibleParameter(configurationID);
parameters.add(ansibleParameter);
}
if (managerType.toLowerCase().equals("swarm") && configurationID != null) {
Map<String, String> dockerLogin = getDockerLogin(pro);
MessageParameter composerParameter = createComposerParameter(configurationID, dockerLogin);
parameters.add(composerParameter);
Map<String, Object> toscaProvisonMap = pro.getKeyValue();
List<String> vmNames = TOSCAUtils.getVMsNodeNamesFromTopology(toscaProvisonMap);
for (String name : vmNames) {
Map<String, Object> outputs = TOSCAUtils.getOutputsForNode(toscaProvisonMap, name);
MessageParameter messageParameter = createCredentialPartameter(outputs);
parameters.add(messageParameter);
}
if (managerType.toLowerCase().equals("scale") && configurationID != null) {
MessageParameter scaleParameter = createScaleParameter(configurationID, serviceName, numOfContainers);
parameters.add(scaleParameter);
}
if (managerType.toLowerCase().equals("swarm_info") && configurationID != null) {
MessageParameter swarmInfo = createSwarmInforparameter(configurationID, serviceName);
parameters.add(swarmInfo);
}
MessageParameter managerTypeParameter = createManagerTypeParameter("kubernetes");
parameters.add(managerTypeParameter);
// if (action.toLowerCase().equals("scale")) {
// MessageParameter scaleParameter = createScaleParameter(null, serviceName, numOfContainers);
// parameters.add(scaleParameter);
// }
// if (action.toLowerCase().equals("swarm_info") ) {
// MessageParameter swarmInfo = createSwarmInforparameter(null, serviceName);
// parameters.add(swarmInfo);
// }
Message deployInvokationMessage = new Message();
deployInvokationMessage.setParameters(parameters);
deployInvokationMessage.setCreationDate(System.currentTimeMillis());
......@@ -252,19 +235,20 @@ public class DeployService {
deployDao.deleteAll();
}
private MessageParameter createCredentialPartameter(DeployParameter dp, List<KeyPair> loginKeys) {
private MessageParameter createCredentialPartameter(Map<String, Object> outputs) {
MessageParameter messageParameter = new MessageParameter();
messageParameter.setName("credential");
messageParameter.setEncoding("UTF-8");
String key = null;
for (KeyPair lk : loginKeys) {
key = lk.getPrivateKey().getKey();
}
String key = TOSCAUtils.getOutputPair(outputs, "private_deployer_key").get(1);
messageParameter.setValue(key);
Map<String, String> attributes = new HashMap<>();
attributes.put("IP", dp.getIP());
attributes.put("role", dp.getRole());
attributes.put("user", dp.getUser());
String ip = TOSCAUtils.getOutputPair(outputs, "ip").get(1);
attributes.put("IP", ip);
String role = TOSCAUtils.getOutputPair(outputs, "role").get(1);
attributes.put("role", role);
String user = TOSCAUtils.getOutputPair(outputs, "user_name").get(1);
attributes.put("user", user);
messageParameter.setAttributes(attributes);
return messageParameter;
}
......@@ -295,8 +279,7 @@ public class DeployService {
return configurationParameter;
}
private MessageParameter createConfigurationParameter(String configurationID, String confType) throws JSONException {
String configuration = configurationService.get(configurationID, "yml");
private MessageParameter createConfigurationParameter(String configuration, String confType) throws JSONException {
MessageParameter configurationParameter = new MessageParameter();
if (confType.equals("ansible")) {
configurationParameter.setName("playbook");
......@@ -333,34 +316,34 @@ public class DeployService {
}
public DeployResponse scale(ScaleRequest scaleReq) throws IOException, TimeoutException, InterruptedException, JSONException, Exception {
//Deployer needs configurationID -> name_of_deployment
String deployId = scaleReq.getScaleTargetID();
DeployResponse deployment = this.findOne(deployId);
String confID = deployment.getConfigurationID();
ConfigurationRepresentation configuration = configurationService.findOne(confID);
Map<String, Object> map = configuration.getKeyValue();
Map<String, Object> services = (Map<String, Object>) map.get("services");
if (!services.containsKey(scaleReq.getScaleTargetName())) {
throw new BadRequestException("Service name does not exist in this deployment");
}
deployment.setManagerType("scale");
Message message = buildDeployerMessages(deployment,
scaleReq.getScaleTargetName(),
scaleReq.getNumOfInstances()).get(0);
message.setOwner(((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getUsername());
try (DRIPCaller deployer = new DeployerCaller(messageBrokerHost);) {
logger.info("Calling deployer");
Message response = (deployer.call(message));
logger.info("Got response from deployer");
List<MessageParameter> params = response.getParameters();
handleResponse(params, null);
}
deployment.setScale(scaleReq);
deployment.setManagerType("swarm");
save(deployment);
return deployment;
// //Deployer needs configurationID -> name_of_deployment
// String deployId = scaleReq.getScaleTargetID();
// DeployResponse deployment = this.findOne(deployId);
// String confID = deployment.getConfigurationID();
// ConfigurationRepresentation configuration = configurationService.findOne(confID);
// Map<String, Object> map = configuration.getKeyValue();
// Map<String, Object> services = (Map<String, Object>) map.get("services");
// if (!services.containsKey(scaleReq.getScaleTargetName())) {
// throw new BadRequestException("Service name does not exist in this deployment");
// }
//
// deployment.setManagerType("scale");
// Message message = buildDeployerMessages(deployment,
// scaleReq.getScaleTargetName(),
// scaleReq.getNumOfInstances()).get(0);
//
// message.setOwner(((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getUsername());
// try (DRIPCaller deployer = new DeployerCaller(messageBrokerHost);) {
// logger.info("Calling deployer");
// Message response = (deployer.call(message));
// logger.info("Got response from deployer");
// List<MessageParameter> params = response.getParameters();
// handleResponse(params, null);
// }
// deployment.setScale(scaleReq);
// deployment.setManagerType("swarm");
// save(deployment);
return null;
}
private DeployResponse handleResponse(List<MessageParameter> params, DeployRequest deployInfo) throws KeyException, IOException, Exception {
......@@ -532,48 +515,48 @@ public class DeployService {
public List<String> getServiceNames(String id) throws JSONException, IOException, TimeoutException, InterruptedException {
DeployResponse resp = findOne(id);
if (resp.getManagerType().equals("swarm")) {
Map<String, Object> swarmInfo = getSwarmInfo(resp);
List< Map<String, Object>> stackInfo = (List) swarmInfo.get("stack_info");
List<String> serviceNames = new ArrayList<>();
for (Map<String, Object> map : stackInfo) {
if (map.containsKey("name")) {
serviceNames.add(((String) map.get("name")));
}
}
return serviceNames;
}
// if (resp.getManagerType().equals("swarm")) {
// Map<String, Object> swarmInfo = getSwarmInfo(resp);
//
// List< Map<String, Object>> stackInfo = (List) swarmInfo.get("stack_info");
// List<String> serviceNames = new ArrayList<>();
// for (Map<String, Object> map : stackInfo) {
// if (map.containsKey("name")) {
// serviceNames.add(((String) map.get("name")));
// }
// }
// return serviceNames;
// }
return null;
}
public DeployResponse getContainersStatus(String id, String serviceName) throws JSONException, IOException, TimeoutException, InterruptedException {
DeployResponse resp = findOne(id);
Map<String, Object> result = new HashMap<>();
if (resp.getManagerType().equals("swarm")) {
Map<String, Object> swarmInfo = getSwarmInfo(resp);
List< Map<String, Object>> servicesInfo = (List) swarmInfo.get("services_info");
List<String> taskIDs = new ArrayList<>();
for (Map<String, Object> map : servicesInfo) {
if (map.containsKey("name") && ((String) map.get("name")).startsWith(serviceName)) {
taskIDs.add(((String) map.get("ID")));
}
}
List< Map<String, Object>> inspecInfo = (List) swarmInfo.get("inspect_info");
List< Map<String, Object>> inspecInfoResult = new ArrayList<>();
for (String taskID : taskIDs) {
for (Map<String, Object> map : inspecInfo) {
if (map.containsKey("ID") && ((String) map.get("ID")).startsWith(taskID)) {
inspecInfoResult.add((Map<String, Object>) map.get("Status"));
}
}
}
result.put("inspect_info", inspecInfoResult);
resp.setManagerInfo(result);
resp.setKey(null);
resp.setScale(null);
}
// if (resp.getManagerType().equals("swarm")) {
// Map<String, Object> swarmInfo = getSwarmInfo(resp);
//
// List< Map<String, Object>> servicesInfo = (List) swarmInfo.get("services_info");
// List<String> taskIDs = new ArrayList<>();
// for (Map<String, Object> map : servicesInfo) {
// if (map.containsKey("name") && ((String) map.get("name")).startsWith(serviceName)) {
// taskIDs.add(((String) map.get("ID")));
// }
// }
// List< Map<String, Object>> inspecInfo = (List) swarmInfo.get("inspect_info");
// List< Map<String, Object>> inspecInfoResult = new ArrayList<>();
// for (String taskID : taskIDs) {
// for (Map<String, Object> map : inspecInfo) {
// if (map.containsKey("ID") && ((String) map.get("ID")).startsWith(taskID)) {
// inspecInfoResult.add((Map<String, Object>) map.get("Status"));
// }
// }
// }
// result.put("inspect_info", inspecInfoResult);
// resp.setManagerInfo(result);
// resp.setKey(null);
// resp.setScale(null);
// }
return resp;
}
......
......@@ -399,32 +399,12 @@ public class ProvisionService {
return null;
}
// private List<MessageParameter> buildDeployKeysParams(String keyID) {
// KeyPair key = keyPairService.findOne(keyID);
// if (key == null) {
// throw new BadRequestException("User key: " + keyID + " was not found");
// }
// List<MessageParameter> parameters = new ArrayList();
// MessageParameter keyParameter = new MessageParameter();
//
// keyParameter.setName("deployer_ssh_key");
//
// keyParameter.setValue(key.getPublicKey().getKey());
// keyParameter.setEncoding("UTF-8");
// parameters.add(keyParameter);
// return parameters;
// }
private ProvisionResponse parseCreateResourcesResponse(List<MessageParameter> parameters,
ProvisionRequest provisionRequest, ProvisionResponse provisionResponse, boolean saveUserKeys, boolean saveDeployerKeyI) throws Exception {
if (provisionResponse == null) {
provisionResponse = new ProvisionResponse();
}
// Map<String, Object> kvMap = null;
// KeyPair userKey = new KeyPair();
// KeyPair deployerKey = new KeyPair();
// Map<String, Key> privateCloudKeys = new HashMap<>();
// Map<String, Key> publicCloudKeys = new HashMap<>();
PlanResponse plan = addCloudCredentialsOnTOSCAPlan(provisionRequest);
Map<String, Object> toscaPlan = plan.getKeyValue();
Map<String, Object> topologyTemplate = (Map<String, Object>) ((Map<String, Object>) toscaPlan.get("topology_template"));
......@@ -456,19 +436,17 @@ public class ProvisionService {
String nodeName = nodeNames.get(i);
Map<String, Object> ipOutput = TOSCAUtils.buildTOSCAOutput(nodeName, deployIP);
Map<String, Object> roleOutput = TOSCAUtils.buildTOSCAOutput(nodeName, deployRole);
outputs.put("ip", ipOutput);
outputs.put("role", roleOutput);
Map<String, Object> properties = (Map<String, Object>) vmList.get(i).get("properties");
properties.put("user_name", deployUser);
outputs = TOSCAUtils.buildTOSCAOutput(outputs, nodeName, deployIP, "ip", false);
outputs = TOSCAUtils.buildTOSCAOutput(outputs, nodeName, deployUser, "user_name", false);
outputs = TOSCAUtils.buildTOSCAOutput(outputs, nodeName, deployRole, "role", false);
}
}
if (name.contains("_key")) {
for (String nodeName : nodeNames) {
Map<String, Object> keyOutput = TOSCAUtils.buildTOSCAOutput(nodeName, p.getValue());
outputs.put(name, keyOutput);
outputs = TOSCAUtils.buildTOSCAOutput(outputs, nodeName, p.getValue(), name, true);
}
}
}
......
......@@ -70,7 +70,6 @@ public class DeployController {
@RequestMapping(value = "/deploy", method = RequestMethod.POST)
@RolesAllowed({UserService.USER, UserService.ADMIN})
@StatusCodes({
@ResponseCode(code = 400, condition = "Empty manager type. Aveliable: ansible, swarm ,kubernetes"),
@ResponseCode(code = 400, condition = "Empty provision ID"),
@ResponseCode(code = 500, condition = "Deploymet failed"),
@ResponseCode(code = 200, condition = "Successful deploymet")
......@@ -78,9 +77,6 @@ public class DeployController {
public @ResponseBody
String deploy(@RequestBody DeployRequest deployRequest) {
try {
if (deployRequest.getManagerType() == null) {
throw new BadRequestException("Must provide manager type. Aveliable: ansible, swarm ,kubernetes");
}
if (deployRequest.getProvisionID() == null) {
throw new BadRequestException("Must provide provision ID");
}
......@@ -115,16 +111,6 @@ public class DeployController {
return null;
}
@RequestMapping(value = "/sample", method = RequestMethod.GET)
@RolesAllowed({UserService.USER, UserService.ADMIN})
public @ResponseBody
DeployRequest sample() {
DeployRequest req = new DeployRequest();
req.setManagerType("ansible");
req.setConfigurationID("58e2681ba9961baa096c8541");
req.setProvisionID("58f8dd3a2af41387c32ff602");
return req;
}
/**
* Returns a deployment description
......@@ -144,10 +130,10 @@ public class DeployController {
try {
resp = deployService.findOne(id);
if (resp.getManagerType().equals("swarm")) {
Map<String, Object> swarmInfo = deployService.getSwarmInfo(resp);
resp.setManagerInfo(swarmInfo);
}
// if (resp.getManagerType().equals("swarm")) {
// Map<String, Object> swarmInfo = deployService.getSwarmInfo(resp);
// resp.setManagerInfo(swarmInfo);
// }
} catch (JSONException | IOException | TimeoutException | InterruptedException ex) {
Logger.getLogger(DeployController.class.getName()).log(Level.SEVERE, null, ex);
......
/*
* Copyright 2017 S. Koulouzis, Wang Junchao, Huan Zhou, Yang Hu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package nl.uva.sne.drip.api.v1.rest;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.Enumeration;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.xml.namespace.QName;
import org.jvnet.ws.wadl.Application;
import org.jvnet.ws.wadl.Doc;
import org.jvnet.ws.wadl.Param;
import org.jvnet.ws.wadl.ParamStyle;
import org.jvnet.ws.wadl.Representation;
import org.jvnet.ws.wadl.Request;
import org.jvnet.ws.wadl.Resource;
import org.jvnet.ws.wadl.Resources;
import org.jvnet.ws.wadl.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.mvc.condition.ProducesRequestCondition;
import org.springframework.web.servlet.mvc.method.RequestMappingInfo;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
/**
*
* @author S. Koulouzis
*/
@Controller
@RequestMapping("/")
public class RootController {
String xs_namespace = "http://www.w3.org/2001/XMLSchema";
@Autowired
private RequestMappingHandlerMapping handlerMapping;
@Autowired
private WebApplicationContext webApplicationContext;
@RequestMapping(method = RequestMethod.GET,
// consumes = MediaType.APPLICATION_XML_VALUE,
produces = MediaType.APPLICATION_XML_VALUE)
public @ResponseBody
Application generateWadl(HttpServletRequest request, @RequestParam("wadl") String wadl) {
Enumeration headerNames = request.getHeaderNames();
while (headerNames.hasMoreElements()) {
String key = (String) headerNames.nextElement();
String value = request.getHeader(key);
}
Application result = new Application();
Doc doc = new Doc();
doc.setTitle("Spring REST Service WADL");
result.getDoc().add(doc);
Resources wadResources = new Resources();
wadResources.setBase(getBaseUrl(request));
Map<RequestMappingInfo, HandlerMethod> handletMethods = handlerMapping.getHandlerMethods();
for (Map.Entry<RequestMappingInfo, HandlerMethod> entry : handletMethods.entrySet()) {
HandlerMethod handlerMethod = entry.getValue();
Object object = handlerMethod.getBean();
Object bean = webApplicationContext.getBean(object.toString());
boolean isRestContoller = bean.getClass().isAnnotationPresent(RestController.class);
if (bean.getClass().getName().contains("nl.uva.sne.drip.api.v1.rest")) {
isRestContoller = true;
}
if (!isRestContoller) {
continue;
}
RequestMappingInfo mappingInfo = entry.getKey();
Set<String> pattern = mappingInfo.getPatternsCondition().getPatterns();
Set<RequestMethod> httpMethods = mappingInfo.getMethodsCondition().getMethods();
ProducesRequestCondition producesRequestCondition = mappingInfo.getProducesCondition();
Set<MediaType> mediaTypes = producesRequestCondition.getProducibleMediaTypes();
Resource wadlResource = null;
for (RequestMethod httpMethod : httpMethods) {
org.jvnet.ws.wadl.Method wadlMethod = new org.jvnet.ws.wadl.Method();
for (String uri : pattern) {
wadlResource = createOrFind(uri, wadResources);
wadlResource.setPath(uri);
}
wadlMethod.setName(httpMethod.name());
Method javaMethod = handlerMethod.getMethod();
wadlMethod.setId(javaMethod.getName());
Doc wadlDocMethod = new Doc();
wadlDocMethod.setTitle(javaMethod.getDeclaringClass().getSimpleName() + "." + javaMethod.getName());
wadlMethod.getDoc().add(wadlDocMethod);
// Request
Request wadlRequest = new Request();
Annotation[][] annotations = javaMethod.getParameterAnnotations();
Class<?>[] paramTypes = javaMethod.getParameterTypes();
int i = 0;
for (Annotation[] annotation : annotations) {
Class<?> paramType = paramTypes[i];
i++;
for (Annotation annotation2 : annotation) {
if (annotation2 instanceof RequestParam) {
RequestParam param2 = (RequestParam) annotation2;
Param waldParam = new Param();
QName nm = convertJavaToXMLType(paramType);
waldParam.setName(param2.value());
waldParam.setStyle(ParamStyle.QUERY);
waldParam.setRequired(param2.required());
String defaultValue = cleanDefault(param2.defaultValue());
if (!defaultValue.equals("")) {
waldParam.setDefault(defaultValue);
}
waldParam.setType(nm);
wadlRequest.getParam().add(waldParam);
} else if (annotation2 instanceof PathVariable) {
PathVariable param2 = (PathVariable) annotation2;
QName nm = convertJavaToXMLType(paramType);
Param waldParam = new Param();
waldParam.setName(param2.value());
waldParam.setStyle(ParamStyle.TEMPLATE);
waldParam.setRequired(true);
wadlRequest.getParam().add(waldParam);
waldParam.setType(nm);
}
}
}
if (!wadlRequest.getParam().isEmpty()) {
wadlMethod.setRequest(wadlRequest);
}
// Response
if (!mediaTypes.isEmpty()) {
Response wadlResponse = new Response();
Class methodReturn = handlerMethod.getReturnType().getClass();
ResponseStatus status = handlerMethod.getMethodAnnotation(ResponseStatus.class);
if (status == null) {
wadlResponse.getStatus().add((long) (HttpStatus.OK.value()));
} else {
HttpStatus httpcode = status.value();
wadlResponse.getStatus().add((long) httpcode.value());
}
for (MediaType mediaType : mediaTypes) {
Representation wadlRepresentation = new Representation();
wadlRepresentation.setMediaType(mediaType.toString());
wadlResponse.getRepresentation().add(wadlRepresentation);
}
wadlMethod.getResponse().add(wadlResponse);
}
wadlResource.getMethodOrResource().add(wadlMethod);
}
}
result.getResources().add(wadResources);
return result;
}
private QName convertJavaToXMLType(Class<?> type) {
QName nm = new QName("");
String classname = type.toString();
if (classname.indexOf("String") >= 0) {
nm = new QName(xs_namespace, "string", "xs");
} else if (classname.indexOf("Integer") >= 0) {
nm = new QName(xs_namespace, "int", "xs");
}
return nm;
}
private Resource createOrFind(String uri, Resources wadResources) {
List<Resource> current = wadResources.getResource();
for (Resource resource : current) {
if (resource.getPath().equalsIgnoreCase(uri)) {
return resource;
}
}
Resource wadlResource = new Resource();
current.add(wadlResource);
return wadlResource;
}
//
private String getBaseUrl(HttpServletRequest request) {
String requestUri = request.getRequestURI();
return request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + requestUri;
}
private String cleanDefault(String value) {
value = value.replaceAll("\t", "");
value = value.replaceAll("\n", "");
return value;
}
}
......@@ -16,6 +16,7 @@
package nl.uva.sne.drip.commons.utils;
import java.util.ArrayList;
import java.util.Base64;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
......@@ -60,14 +61,42 @@ public class TOSCAUtils {
return vmNames;
}
public static Map<String, Object> buildTOSCAOutput(String nodeName, String value) {
Map<String, Object> output = new HashMap();
Map<String, Object> outputValue = new HashMap();
List<String> att = new ArrayList<>();
att.add(nodeName);
att.add(value);
outputValue.put("get_attribute", att);
output.put("value", outputValue);
return output;
public static Map<String, Object> buildTOSCAOutput(Map<String, Object> outputs, String nodeName, String value, String key, boolean encodeValueToBas64) {
List<Map<String, String>> values;
if (outputs.containsKey(key)) {
values = (List<Map<String, String>>) outputs.get(key);
} else {
values = new ArrayList<>();
}
if (encodeValueToBas64) {
value = Base64.getEncoder().encodeToString(value.getBytes());
}
Map<String, String> map = new HashMap<>();
map.put(nodeName, value);
values.add(map);
outputs.put(key, values);
return outputs;
}
public static Map<String, Object> getOutputsForNode(Map<String, Object> toscaProvisonMap, String nodeName) {
Map<String, Object> topologyTemplate = (Map<String, Object>) ((Map<String, Object>) toscaProvisonMap.get("topology_template"));
Map<String, Object> outputs = (Map<String, Object>) topologyTemplate.get("outputs");
Map<String, Object> matchedOutputs = new HashMap<>();
Iterator it = outputs.entrySet().iterator();
while (it.hasNext()) {
Map.Entry output = (Map.Entry) it.next();
Map<String, Object> outputValue = (Map<String, Object>) output.getValue();
Map<String, Object> val = (Map<String, Object>) outputValue.get("value");
List<String> attribute = (List<String>) val.get("get_attribute");
if (attribute.get(0).equals(nodeName)) {
matchedOutputs.put((String) output.getKey(), outputValue);
}
}
return matchedOutputs;
}
public static List<String> getOutputPair(Map<String, Object> outputs, String key) {
List<String> outputPair = (List<String>) ((Map<String, Object>) ((Map<String, Object>) outputs.get(key)).get("value")).get("get_attribute");
return outputPair;
}
}
......@@ -36,23 +36,6 @@ public class DeployParameter {
private String user;
private String role;
// /**
// * The file name of the certificate used to log in as root to the
// * provisioned VM.
// * @return the cloudCertificateName
// */
// @DocumentationExample("Virginia")
// public String getCloudCertificateName() {
// return cloudCertificateName;
// }
//
// /**
// * @param cloudCertificateName the cloudCertificateName to set
// */
// public void setCloudCertificateName(String cloudCertificateName) {
// this.cloudCertificateName = cloudCertificateName;
// }
/**
* The public IP of the provisioned VM
* @return the IP
......
......@@ -28,8 +28,8 @@ import com.webcohesion.enunciate.metadata.DocumentationExample;
public class DeployRequest extends OwnedObject {
private String provisionID;
private String managerType;
private String configurationID;
// private String managerType;
// private String configurationID;
/**
* The ID of the provision resources description <code>ProvisionResponse</code>
......@@ -46,39 +46,4 @@ public class DeployRequest extends OwnedObject {
public void setProvisionID(String provisionID) {
this.provisionID = provisionID;
}
/**
* The type of deployment manager to be used (swarm, ansile, kubernetes)
* @return the managerType
*/
@DocumentationExample("ansible")
public String getManagerType() {
return managerType;
}
/**
* @param managerType the managerType to set
*/
public void setManagerType(String managerType) {
this.managerType = managerType;
}
/**
* The ID of the configuration POJO that contains information used the
* chosen deployment manager (for now only ansible)
* <code>PlaybookRepresentation</code>
* @return the configurationID
*/
@DocumentationExample("58e3946e0fb4f562d84ba1ad")
public String getConfigurationID() {
return configurationID;
}
/**
* @param configurationID the configurationID to set
*/
public void setConfigurationID(String configurationID) {
this.configurationID = configurationID;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="jdk" jdkName="Python 2.7 (drip-deployer)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 2.7 (drip-deployer)" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
......@@ -19,7 +19,7 @@ __author__ = 'Yang Hu'
import paramiko, os
import logging
from drip_logging.drip_logging_handler import *
# from drip_logging.drip_logging_handler import *
logger = logging.getLogger(__name__)
......
......@@ -25,7 +25,7 @@ import linecache
import sys
import ast
import re
from drip_logging.drip_logging_handler import *
# from drip_logging.drip_logging_handler import *
logger = logging.getLogger(__name__)
if not getattr(logger, 'handler_set', None):
......
......@@ -20,7 +20,7 @@ __author__ = 'Yang Hu'
import paramiko, os
from vm_info import VmInfo
import logging
from drip_logging.drip_logging_handler import *
# from drip_logging.drip_logging_handler import *
logger = logging.getLogger(__name__)
......
......@@ -20,7 +20,7 @@ __author__ = 'Yang Hu'
import paramiko, os
import threading
import logging
from drip_logging.drip_logging_handler import *
# from drip_logging.drip_logging_handler import *
import multiprocessing
logger = logging.getLogger(__name__)
......
......@@ -21,7 +21,7 @@ from vm_info import VmInfo
import linecache
import sys
import logging
from drip_logging.drip_logging_handler import *
# from drip_logging.drip_logging_handler import *
logger = logging.getLogger(__name__)
......@@ -123,8 +123,8 @@ def install_worker(join_cmd, vm):
return "SUCCESS"
def run(vm_list,rabbitmq_host,owner):
rabbit = DRIPLoggingHandler(host=rabbitmq_host, port=5672,user=owner)
logger.addHandler(rabbit)
# rabbit = DRIPLoggingHandler(host=rabbitmq_host, port=5672,user=owner)
# logger.addHandler(rabbit)
for i in vm_list:
if i.role == "master":
join_cmd = install_manager(i)
......
......@@ -20,7 +20,7 @@ __author__ = 'Yang Hu'
import paramiko, os
from vm_info import VmInfo
import logging
from drip_logging.drip_logging_handler import *
# from drip_logging.drip_logging_handler import *
import multiprocessing
logger = logging.getLogger(__name__)
......
......@@ -20,7 +20,7 @@ __author__ = 'Yang Hu'
import paramiko, os
from vm_info import VmInfo
import logging
from drip_logging.drip_logging_handler import *
# from drip_logging.drip_logging_handler import *
import multiprocessing
......
......@@ -11,7 +11,7 @@ import docker_compose
import docker_service
import docker_check
import control_agent
import ansible_playbook
# import ansible_playbook
import sys, argparse
from threading import Thread
from time import sleep
......
......@@ -269,19 +269,19 @@ public class Consumer extends DefaultConsumer {
File clusterDir = new File(tempInputDirPath + File.separator + "clusterKeyPair");
clusterDir.mkdir();
List<File> public_deployer_key = MessageParsing.getSSHKeys(parameters, clusterDir.getAbsolutePath(), "id_rsa.pub", "public_deployer_key");
List<File> private_deployer_key = MessageParsing.getSSHKeys(parameters, clusterDir.getAbsolutePath(), "id_rsa", "private_deployer_key");
// List<File> public_deployer_key = MessageParsing.getSSHKeys(parameters, clusterDir.getAbsolutePath(), "id_rsa.pub", "public_deployer_key");
// List<File> private_deployer_key = MessageParsing.getSSHKeys(parameters, clusterDir.getAbsolutePath(), "id_rsa", "private_deployer_key");
Map<String, Object> map = MessageParsing.ymlStream2Map(new FileInputStream(topTopologyLoadingPath));
String userPublicKeyName = ((String) map.get("publicKeyPath")).split("@")[1].replaceAll("\"", "");
String userPrivateName = FilenameUtils.removeExtension(userPublicKeyName);
List<File> public_user_key = MessageParsing.getSSHKeys(parameters, tempInputDirPath + File.separator, userPublicKeyName, "public_user_key");
// List<File> public_user_key = MessageParsing.getSSHKeys(parameters, tempInputDirPath + File.separator, userPublicKeyName, "public_user_key");
List<File> private_user_key = MessageParsing.getSSHKeys(parameters, tempInputDirPath + File.separator, "id_rsa", "private_user_key");
FileUtils.moveFile(private_user_key.get(0), new File(private_user_key.get(0).getParent() + File.separator + userPrivateName));
List<File> public_cloud_key = MessageParsing.getSSHKeys(parameters, tempInputDirPath + File.separator, "name.pub", "public_cloud_key");
List<File> private_cloud_key = MessageParsing.getSSHKeys(parameters, tempInputDirPath + File.separator, "id_rsa", "private_cloud_key");
// List<File> public_cloud_key = MessageParsing.getSSHKeys(parameters, tempInputDirPath + File.separator, "name.pub", "public_cloud_key");
// List<File> private_cloud_key = MessageParsing.getSSHKeys(parameters, tempInputDirPath + File.separator, "id_rsa", "private_cloud_key");
UserCredential userCredential = getUserCredential(parameters, tempInputDirPath);
UserDatabase userDatabase = getUserDB();
......
......@@ -2,8 +2,28 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="462ede19-adfe-472b-975e-fefefa973fe0" name="Default Changelist" comment="slolved cap error">
<change beforePath="$PROJECT_DIR$/../Dockerfiles/deployer/Dockerfile" beforeDir="false" afterPath="$PROJECT_DIR$/../Dockerfiles/deployer/Dockerfile" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-api/nb-configuration.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-api/nb-configuration.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-api/src/main/java/nl/uva/sne/drip/api/service/DeployService.java" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-api/src/main/java/nl/uva/sne/drip/api/service/DeployService.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-api/src/main/java/nl/uva/sne/drip/api/service/ProvisionService.java" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-api/src/main/java/nl/uva/sne/drip/api/service/ProvisionService.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-api/src/main/java/nl/uva/sne/drip/api/v1/rest/DeployController.java" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-api/src/main/java/nl/uva/sne/drip/api/v1/rest/DeployController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-api/src/main/java/nl/uva/sne/drip/api/v1/rest/RootController.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-commons/src/main/java/nl/uva/sne/drip/commons/utils/TOSCAUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-commons/src/main/java/nl/uva/sne/drip/commons/utils/TOSCAUtils.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-commons/src/main/java/nl/uva/sne/drip/drip/commons/data/v1/external/DeployParameter.java" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-commons/src/main/java/nl/uva/sne/drip/drip/commons/data/v1/external/DeployParameter.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-commons/src/main/java/nl/uva/sne/drip/drip/commons/data/v1/external/DeployRequest.java" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-commons/src/main/java/nl/uva/sne/drip/drip/commons/data/v1/external/DeployRequest.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-deployer/.idea/drip-deployer.iml" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-deployer/.idea/drip-deployer.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-deployer/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-deployer/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-deployer/control_agent.py" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-deployer/control_agent.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-deployer/docker_check.py" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-deployer/docker_check.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-deployer/docker_compose.py" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-deployer/docker_compose.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-deployer/docker_engine.py" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-deployer/docker_engine.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-deployer/docker_kubernetes.py" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-deployer/docker_kubernetes.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-deployer/docker_service.py" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-deployer/docker_service.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-deployer/docker_swarm.py" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-deployer/docker_swarm.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-deployer/rpc_server.py" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-deployer/rpc_server.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-provisioner/src/main/java/nl/uva/sne/drip/drip/provisioner/v1/Consumer.java" beforeDir="false" afterPath="$PROJECT_DIR$/../drip-provisioner/src/main/java/nl/uva/sne/drip/drip/provisioner/v1/Consumer.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/planner/basic_planner.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/planner/basic_planner.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/venv/lib/python3.6/site-packages/easy-install.pth" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/venv/lib/python3.6/site-packages/prettytable.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/venv/lib/python3.6/site-packages/pyparsing.py" beforeDir="false" />
......@@ -153,11 +173,6 @@
<line>64</line>
<option name="timeStamp" value="1" />
</line-breakpoint>
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
<url>file://$PROJECT_DIR$/src/planner/basic_planner.py</url>
<line>103</line>
<option name="timeStamp" value="2" />
</line-breakpoint>
</breakpoints>
<default-breakpoints>
<breakpoint type="python-exception">
......
......@@ -74,6 +74,13 @@ def fill_in_properties(nodetemplate_dict):
nodetemplate_dict = set_VM_properties(nodetemplate_dict)
return nodetemplate_dict
def fix_occurrences(node_templates):
# Replace 'occurrences': [1, 'UNBOUNDED'] with 'occurrences': 1
for node in node_templates:
for req in node.requirements:
if 'occurrences' in req[next(iter(req))]:
req[next(iter(req))].pop('occurrences')
return node_templates
def node_type_2_node_template(node_type):
nodetemplate_dict = {}
......@@ -97,6 +104,40 @@ def node_type_2_node_template(node_type):
return NodeTemplate(name, nodetemplate_dict, node_type)
def contains_node_type(capable_node_types_list, node_type):
if capable_node_types_list == None:
return False
for capable_node_type in capable_node_types_list:
if isinstance(capable_node_type, NodeTemplate):
type_name = capable_node_type.type
elif isinstance(capable_node_type, dict):
type_name = next(iter(capable_node_type))
if type_name == node_type:
return True
return False
def get_requirement_occurrences(req):
if 'occurrences' in req:
return req['occurrences']
return None
def fix_duplicate_vm_names(yaml_str):
topology_dict = yaml.load(yaml_str)
node_templates = topology_dict['tosca_template']['node_templates']
vm_names = []
for node_name in node_templates:
if node_templates[node_name]['type'] == 'tosca.nodes.ARTICONF.VM.Compute':
vm_names.append(node_name)
for node_name in node_templates:
if node_templates[node_name]['type'] == 'tosca.nodes.ARTICONF.VM.topology':
i=0
for req in node_templates[node_name]['requirements']:
req['vm']['node'] = vm_names[i]
i+=1
return yaml.dump(topology_dict)
class BasicPlanner:
def __init__(self, path):
......@@ -112,17 +153,13 @@ class BasicPlanner:
node_templates = self.add_reqired_nods(node, None)
if node_templates:
# Replace 'occurrences': [1, 'UNBOUNDED'] with 'occurrences': 1
for node in node_templates:
for req in node.requirements:
if 'occurrences' in req[next(iter(req))]:
req[next(iter(req))].pop('occurrences')
node_templates = fix_occurrences(node_templates)
self.template.nodetemplates = node_templates
else:
logging.info('The TOSCA template in: ' + path + ' has no requirements')
tp = TOSCAParser()
yaml_str = tp.tosca_template2_yaml(self.template)
yaml_str = fix_duplicate_vm_names(yaml_str)
yaml_str = yaml_str.replace('tosca_definitions_version: tosca_simple_yaml_1_0', '')
yaml_str = yaml_str.replace('description: TOSCA example', '')
yaml_str = yaml_str.replace('tosca_template', 'topology_template')
......@@ -187,8 +224,7 @@ class BasicPlanner:
# Only return the nodes that have interfaces. This means that they are not "abstract"
for candidate_node_name in candidate_nodes:
if 'interfaces' in candidate_nodes[
candidate_node_name].keys() and 'tosca.nodes.Root' != candidate_node_name:
if 'interfaces' in candidate_nodes[candidate_node_name].keys() and 'tosca.nodes.Root' != candidate_node_name:
capable_nodes[candidate_node_name] = candidate_nodes[candidate_node_name]
return capable_nodes
......@@ -211,23 +247,6 @@ class BasicPlanner:
else:
return False
def contains_node_type(self, capable_node_types_list, node_type):
if capable_node_types_list == None:
return False
for capable_node_type in capable_node_types_list:
if isinstance(capable_node_type, NodeTemplate):
type_name = capable_node_type.type
elif isinstance(capable_node_type, dict):
type_name = next(iter(capable_node_type))
if type_name == node_type:
return True
return False
def get_requirement_occurrences(self, req):
if 'occurrences' in req:
return req['occurrences']
return None
def get_optimal_num_of_occurrences(self, node_type, min_max_occurrences):
max_occurrences = -1
min_occurrences = -1
......@@ -255,7 +274,7 @@ class BasicPlanner:
min_max_occurrences = []
for req in missing_requirements:
for key in req:
min_max_occurrences = self.get_requirement_occurrences(req[key])
min_max_occurrences = get_requirement_occurrences(req[key])
logging.info('Looking for capability: ' + req[key]['capability'] + ' for node: ' + node.name)
capable_node = self.get_node_types_by_capability(req[key]['capability'])
if capable_node:
......@@ -265,7 +284,7 @@ class BasicPlanner:
logging.error('Did not find node with reuired capability: ' + str(req[key]['capability']))
occurrences = self.get_optimal_num_of_occurrences(capable_node_type, min_max_occurrences)
if not self.contains_node_type(node_templates, capable_node_type) and occurrences == 1:
if not contains_node_type(node_templates, capable_node_type) and occurrences == 1:
capable_node_template = node_type_2_node_template(capable_node)
capable_node_name = capable_node_template.name
node_templates.append(capable_node_template)
......@@ -285,7 +304,7 @@ class BasicPlanner:
req[next(iter(req))]['node'] = capable_node_name
node.requirements.append(req)
if not self.contains_node_type(node_templates, node):
if not contains_node_type(node_templates, node):
node_templates.append(node)
return node_templates
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment