Skip to content

Instantly share code, notes, and snippets.

View magick93's full-sized avatar
💩
Focusing

magick93

💩
Focusing
View GitHub Profile
@magick93
magick93 / Approve node certificates when bootstrapping
Created March 22, 2019 00:38
Unable to install okd 3.11 due to error with Approve node certificates when bootstrapping
Using module file /home/user/git/sourcetopia/openshift-install/openshift/ansible/roles/lib_openshift/library/oc_csr_approve.py
<k8s-ctl01.dev.mydomain.com> ESTABLISH SSH CONNECTION FOR USER: deploy
<k8s-ctl01.dev.mydomain.com> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<k8s-ctl01.dev.mydomain.com> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<k8s-ctl01.dev.mydomain.com> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=deploy)
<k8s-ctl01.dev.mydomain.com> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<k8s-ctl01.dev.mydomain.com> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/user/.ansible/cp/2ea0bd867d)
<k8s-ctl01.dev.mydomain.com> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=g
[OSEv3:children]
masters
etcd
nodes
[masters]
mydomain.com openshift_ip=xxx.xxx.xxx.xxx openshift_schedulable=true
#openshift_node_groups=[{'name': 'node-config-master', 'labels': ['node-role.kubernetes.io/master=true']}, {'name': 'node-config-infra', 'labels': ['node-role.kubernetes.io/infra=true']}, {'name': 'node-config-compute', 'labels': ['node-role.kubernetes.io/compute=false']}]
[OSEv3:children]
masters
nodes
etcd
[masters]
xxx.xxx.xxx.xxx openshift_ip=xxx.xxx.xxx.xxx openshift_schedulable=true
[etcd]
xxx.xxx.xxx.xxx openshift_ip=xxx.xxx.xxx.xxx
@magick93
magick93 / CFX error
Created May 13, 2018 05:18
Trying to deploy in karaf
ERROR org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable to start blueprint container for bundle section6.assessment.karaf2-cxf-rest/2.0.0.SNAPSHOT
org.osgi.service.blueprint.container.ComponentDefinitionException: Error setting property: PropertyDescriptor <name: serviceBeans, getter: null, setter: [class org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(interface java.util.List)]
at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:963)
at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:929)
at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:910)
at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:844)
at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)
at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.aries.blueprint.di.
@magick93
magick93 / device-information.yml
Created May 13, 2018 05:04
OpenShift template for Device Information
apiVersion: v1
kind: Template
metadata:
name: ${PROJECT_NAME}
objects:
- apiVersion: v1
kind: Project
metadata:
annotations:
openshift.io/description: ${PROJECT_DESCRIPTION}
@magick93
magick93 / remove swagger
Created May 13, 2018 01:29
Trying to solve previous CXF OSGi bug by removing dependencies, starting with swagger
java.lang.IllegalArgumentException: Alias [/cxf] was never registered
at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregister(HttpServiceStarted.java:278)[72:org.ops4j.pax.web.pax-web-runtime:4.3.0]
at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregister(HttpServiceProxy.java:77)[72:org.ops4j.pax.web.pax-web-runtime:4.3.0]
at org.apache.cxf.transport.http.osgi.ServletExporter.updated(ServletExporter.java:54)[104:org.apache.cxf.cxf-rt-transports-http:3.1.5.redhat-630187]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[105:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[105:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[105:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(Configuration
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.8:assembly (karaf-assembly) on project karaf2-cxf-rest: Unable to build assembly: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=jline-internal; type=karaf.feature; filter:="(&(osgi.identity=jline-internal)(type=karaf.feature))" -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.8:assembly (karaf-assembly) on project karaf2-cxf-rest: Unable to build assembly
2018-05-12 21:28:40,379 | INFO | FelixStartLevel | HttpServiceFactoryImpl | 72 - org.ops4j.pax.web.pax-web-runtime - 4.3.0 | Binding bundle: [org.apache.cxf.cxf-rt-transports-http [104]] to http service
2018-05-12 21:28:41,472 | ERROR | pache.cxf.osgi]) | configadmin | 105 - org.apache.felix.configadmin - 1.8.8 | [org.osgi.service.cm.ManagedService, id=111, bundle=104/reference:file:system/org/apache/cxf/cxf-rt-transports-http/3.1.5.redhat-630187/cxf-rt-transports-http-3.1.5.redhat-630187.jar]: Unexpected problem updating configuration org.apache.cxf.osgi
java.lang.IllegalArgumentException: Alias [/cxf] was never registered
at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregister(HttpServiceStarted.java:278)[72:org.ops4j.pax.web.pax-web-runtime:4.3.0]
at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregister(HttpServiceProxy.java:77)[72:org.ops4j.pax.web.pax-web-runtime:4.3.0]
at org.apache.cxf.transport.http.osgi.ServletExporter.updated(ServletExporter.j
@magick93
magick93 / grpc debug.txt
Last active November 10, 2017 23:09
grpc debug
mt4server_1 | login() starts. IsConnected() returns 1
mt4server_1 | login() return RET_OK
mt4server_1 | mServiceAddr: 0.0.0.0
mt4server_1 | mServicePort: 50051
mt4server_1 | connectionString: 0.0.0.0:50051
mt4server_1 | I1110 23:00:06.363430583 1 ev_epollsig_linux.c:71] epoll engine will be using signal: 40
mt4server_1 | D1110 23:00:06.363474930 1 ev_posix.c:111] Using polling engine: epollsig
mt4server_1 | D1110 23:00:06.364106354 1 dns_resolver.c:301] Using native dns resolver
mt4server_1 | D1110 23:00:06.364151378 1 timer_manager.c:82] Spawn timer thread
@magick93
magick93 / linkJava_pluginExecutable output.txt
Created October 25, 2017 23:06
linkJava_pluginExecutable/output.txt
See file:///home/anton/git/grpc-java/compiler/build/tmp/linkJava_pluginExecutable/output.txt for all output for linkJava_pluginExecutable.
linking protoc-gen-grpc-java failed.
/home/anton/git/grpc-java/compiler/build/objs/java_plugin/java_pluginCpp/cmkx8cb9wgxcy6i9dx7v2pqn9/java_generator.o: In function `java_grpc_generator::PrintMethodFields(google::protobuf::ServiceDescriptor const*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >*, google::protobuf::io::Printer*, java_grpc_generator::ProtoFlavor)':
java_generator.cpp:(.text+0x108c): undefined reference to `google::protobuf::MethodDescriptor::input_ty