How to manually create a Karaf kar file from features.xml and jars - apache-karaf

I wish to manually create a Karaf kar file.
Since I have a feature.xml file which works and jar files referenced by the feature.xml file I thought if I create a jar of this, rename it to filename.kar then it should work.
However Karaf says:
2017-02-09 14:21:50,171 | INFO | raf-4.0.8/deploy | KarArtifactInstaller | 27 - org.apache.karaf.deployer.kar - 4.0.8 | Found a .kar file to deploy.
2017-02-09 14:21:50,172 | INFO | raf-4.0.8/deploy | KarArtifactInstaller | 27 - org.apache.karaf.deployer.kar - 4.0.8 | Installing KAR file C:\home\software\apache-karaf-4.0.8\apache-karaf-4.0.8\deploy\JMScalaJS.kar
But - it does not do anything else, the feature does not become available when I do feature:list.
My JMScalaJS.kar file contains:
feature.xml
jmscalajs_2.11-0.1-SNAPSHOT.jar
neo4j-java-driver-1.0.5.jar
neo4j-ogm-osgi_2.11.jar
scaldi_2.11-0.5.8.jar
Then my feature.xml contains
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features name="JMScalaJS" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
<repository>mvn:org.apache.camel.karaf/apache-camel/2.18.2/xml/features</repository>
<feature description="JMScalaJS" version="0.1.0" name="JMScalaJS">
<feature prerequisite="true" dependency="false">wrap</feature>
<feature>camel-scala</feature>
<feature>camel-core</feature>
<feature>camel-ftp</feature>
<feature>camel-exec</feature>
<feature>camel-stream</feature>
<feature>camel</feature>
<bundle>wrap:mvn:com.jcraft/jzlib/1.1.3</bundle>
<bundle>wrap:mvn:com.github.kxbmap/configs_2.11/0.4.4</bundle>
<bundle>mvn:com.chuusai/shapeless_2.11/2.3.2</bundle>
<bundle>mvn:commons-lang/commons-lang/2.6</bundle>
<bundle>mvn:org.apache.commons/commons-exec/1.3</bundle>
<bundle>mvn:commons-net/commons-net/3.3</bundle>
<bundle>wrap:mvn:com.jcraft/jsch/0.1.54</bundle>
<bundle>mvn:com.typesafe/config/1.3.1</bundle>
<bundle>mvn:com.typesafe.scala-logging/scala-logging_2.11/3.5.0</bundle>
<bundle>mvn:org.apache.commons/commons-collections4/4.1</bundle>
<bundle>mvn:commons-codec/commons-codec/1.10</bundle>
<bundle>mvn:ch.qos.logback/logback-classic/1.1.7</bundle>
<bundle>mvn:ch.qos.logback/logback-core/1.1.7</bundle>
<bundle>mvn:commons-logging/commons-logging/1.2</bundle>
<bundle>wrap:mvn:commons-httpclient/commons-httpclient/3.1</bundle>
<bundle>wrap:mvn:org.apache.lucene/lucene-sandbox/6.2.0</bundle>
<bundle>wrap:mvn:org.apache.lucene/lucene-queries/6.2.0</bundle>
<bundle>wrap:mvn:org.apache.lucene/lucene-core/6.2.0</bundle>
<bundle>wrap:mvn:com.typesafe.akka/akka-http_2.11/10.0.3</bundle>
<bundle>wrap:mvn:com.typesafe.akka/akka-http-core_2.11/10.0.3</bundle>
<bundle>mvn:com.typesafe.akka/akka-stream_2.11/2.4.16</bundle>
<bundle>mvn:com.typesafe/ssl-config-core_2.11/0.2.1</bundle>
<bundle>mvn:org.reactivestreams/reactive-streams/1.0.0</bundle>
<bundle>wrap:mvn:com.typesafe.akka/akka-parsing_2.11/10.0.3</bundle>
<bundle>mvn:com.typesafe.akka/akka-osgi_2.11/2.4.16</bundle>
<bundle>mvn:com.typesafe.akka/akka-camel_2.11/2.4.16</bundle>
<bundle>mvn:com.typesafe.akka/akka-slf4j_2.11/2.4.16</bundle>
<bundle>mvn:com.typesafe.akka/akka-actor_2.11/2.4.16</bundle>
<bundle>mvn:org.scala-lang.modules/scala-java8-compat_2.11/0.7.0</bundle>
<bundle>mvn:org.apache.commons/commons-lang3/3.4</bundle>
<bundle>mvn:commons-io/commons-io/2.4</bundle>
<bundle>wrap:mvn:io.monix/monix-cats_2.11/2.2.1</bundle>
<bundle>wrap:mvn:org.typelevel/cats-core_2.11/0.9.0</bundle>
<bundle>wrap:mvn:org.typelevel/cats-kernel_2.11/0.9.0</bundle>
<bundle>wrap:mvn:org.typelevel/cats-macros_2.11/0.9.0</bundle>
<bundle>wrap:mvn:org.typelevel/machinist_2.11/0.6.1</bundle>
<bundle>wrap:mvn:com.github.mpilquist/simulacrum_2.11/0.10.0</bundle>
<bundle>wrap:mvn:io.monix/monix-types_2.11/2.2.1</bundle>
<bundle>wrap:mvn:org.typelevel/macro-compat_2.11/1.1.1</bundle>
<bundle>mvn:org.apache.camel/camel-core-osgi/2.18.2</bundle>
<bundle>mvn:com.sun.xml.bind/jaxb-impl/2.2.11</bundle>
<bundle>mvn:com.sun.xml.bind/jaxb-core/2.2.11</bundle>
<bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.8.3</bundle>
<bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.8.3</bundle>
<bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.8.0</bundle>
<bundle>mvn:com.github.domino-osgi/domino_2.11/1.1.1</bundle>
<bundle>mvn:org.apache.felix/org.apache.felix.scr/2.0.6</bundle>
<bundle>wrap:mvn:org.codehaus.mojo/animal-sniffer-annotations/1.9</bundle>
<bundle>mvn:org.osgi/osgi.core/6.0.0</bundle>
<bundle>mvn:org.slf4j/log4j-over-slf4j/1.7.22</bundle>
<bundle>mvn:org.slf4j/jcl-over-slf4j/1.7.22</bundle>
<bundle>mvn:org.slf4j/slf4j-simple/1.7.22</bundle>
<bundle>mvn:org.slf4j/slf4j-api/1.7.22</bundle>
<bundle>wrap:mvn:com.lihaoyi/scalatags_2.11/0.6.1</bundle>
<bundle>wrap:mvn:com.lihaoyi/sourcecode_2.11/0.1.1</bundle>
<bundle>mvn:org.scala-lang/scala-compiler/2.11.8</bundle>
<bundle>mvn:org.scala-lang.modules/scala-parser-combinators_2.11/1.0.4</bundle>
<bundle>mvn:org.scala-lang.modules/scala-xml_2.11/1.0.4</bundle>
<bundle>mvn:org.scala-lang/scala-reflect/2.11.8</bundle>
<bundle>file:scaldi_2.11-0.5.8.jar</bundle>
<bundle>file:neo4j-ogm-osgi_2.11.jar</bundle>
<bundle>file:neo4j-java-driver-1.0.5.jar</bundle>
<bundle>file:jmscalajs_2.11-0.1-SNAPSHOT.jar</bundle>
</feature>
</features>
If you can tell me the minimum set of changes I need to make to make this work then that would satisfy this question as it would explain how to manually create a Karaf file from a features file and jars.

Standard ZIP file can be used for that (which JAR is with MANIFEST.MF file as the first file in ZIP).
The following layout have to be used - which is same as Maven repositor layout. The reasin is Karaf uses Aether to resolve bundles, which is the engine of newer versions of maven. (As I remember later than 3.3):
/repository - which is standard maven layout. So the bunldes have to be stored as groupId parts as directory / version / artifactId-version.jar.
In the repository you have to store the feature repository xml file too, to be able to resolve features. Have to store same as it is on local maven repository.
Examample of kar structure (its a fragment):
.
|____repository
| |____com
| | |____carrotsearch
| | | |____java-sizeof
| | | | |____0.0.4
| | | | | |____java-sizeof-0.0.4.jar
| | |____fasterxml
| | | |____classmate
| | | | |____1.2.0
| | | | | |____classmate-1.2.0.jar
| | | |____jackson
| | | | |____core
| | | | | |____jackson-annotations
| | | | | | |____2.6.6
| | | | | | | |____jackson-annotations-2.6.6.jar
| | | | | |____jackson-core
| | | | | | |____2.6.6
| | | | | | | |____jackson-core-2.6.6.jar
| | | | | |____jackson-databind
| | | | | | |____2.6.6
| | | | | | | |____jackson-databind-2.6.6.jar
| | | | |____dataformat
| | | | | |____jackson-dataformat-yaml
| | | | | | |____2.6.6
| | | | | | | |____jackson-dataformat-yaml-2.6.6.jar
| | | | |____jaxrs
| | | | | |____jackson-jaxrs-base
| | | | | | |____2.6.6
| | | | | | | |____jackson-jaxrs-base-2.6.6.jar
| | | | | |____jackson-jaxrs-json-provider
| | | | | | |____2.6.6
| | | | | | | |____jackson-jaxrs-json-provider-2.6.6.jar
| | | | |____module
| | | | | |____jackson-module-jaxb-annotations
| | | | | | |____2.6.6
| | | | | | | |____jackson-module-jaxb-annotations-2.6.6.jar
| | |____google
| | | |____guava
| | | | |____guava
| | | | | |____18.0
| | | | | | |____guava-18.0.jar
| | | | |____example
| | | | | |____car
| | | | | | |____car-bo
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-bo-1.1.0-SNAPSHOT.jar
| | | | | | |____car-dao
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-dao-1.1.0-SNAPSHOT.jar
| | | | | | |____car-dao-minimal
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-dao-minimal-1.1.0-SNAPSHOT.jar
| | | | | | |____car-dao-minimal-querydsl
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-dao-minimal-querydsl-1.1.0-SNAPSHOT.jar
| | | | | | |____car-dao-querydsl
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-dao-querydsl-1.1.0-SNAPSHOT.jar
| | | | | | |____car-doc
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-doc-1.1.0-SNAPSHOT.jar
| | | | | | |____car-dto
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-dto-1.1.0-SNAPSHOT.jar
| | | | | | |____car-features
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-features-1.1.0-SNAPSHOT-default.cfg
| | | | | | |____car-kar
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-kar-1.1.0-SNAPSHOT-features.xml
| | | | | | |____car-operation
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-operation-1.1.0-SNAPSHOT.jar
| | | | | | |____car-operation-regular
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-operation-regular-1.1.0-SNAPSHOT.jar
| | | | | | |____car-po
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-po-1.1.0-SNAPSHOT.jar
| | | | | | |____car-rest
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-rest-1.1.0-SNAPSHOT.jar
| | | | | | |____car-rest-regular
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-rest-regular-1.1.0-SNAPSHOT.jar
| | | | | | |____car-service
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-service-1.1.0-SNAPSHOT.jar
| | | | | | |____car-service-regular
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-service-regular-1.1.0-SNAPSHOT.jar
| | | | | | |____car-service-regular-minimal
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-service-regular-minimal-1.1.0-SNAPSHOT.jar
| | | | | | |____car-ui-model
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-ui-model-1.1.0-SNAPSHOT.jar
| | | | | | |____car-ui-resource
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-ui-resource-1.1.0-SNAPSHOT.jar
| | | | |____external
| | | | | |____external-apache-poi
| | | | | | |____3.13.1
| | | | | | | |____external-apache-poi-3.13.1.jar
| | | | |____integration
and my feature definition is:
| | | | | | |____car-kar
| | | | | | | |____1.1.0-SNAPSHOT
| | | | | | | | |____car-kar-1.1.0-SNAPSHOT-features.xml
Which is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" name="car-kar">
<feature name="blackbelt-car" description="Car application" version="1.1.0.SNAPSHOT">
<configfile finalname="/deploy/hu.blackbelt.judo-car.cfg">mvn:hu.blackbelt.judo.example.car/car-features/1.1.0-SNAPSHOT/cfg/default</configfile>
<configfile finalname="/sample-configurations/hu.blackbelt.judo-car.cfg" override="true">mvn:hu.blackbelt.judo.example.car/car-features/1.1.0-SNAPSHOT/cfg/default</configfile>
<feature prerequisite="false" dependency="false">blackbelt-judo-repo</feature>
<feature prerequisite="false" dependency="false">blackbelt-judo-common</feature>
<feature prerequisite="false" dependency="false">blackbelt-judo-business</feature>
<feature prerequisite="false" dependency="false">blackbelt-judo-rdbms</feature>
<feature prerequisite="false" dependency="false">blackbelt-judo-integration</feature>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-bo/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-po/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-dao/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-dao-querydsl/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-dao-minimal/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-dao-minimal-querydsl/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-doc/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-dto/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-operation/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-operation-regular/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-rest/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-rest-regular/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-service/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-service-regular/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-service-regular-minimal/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-ui-model/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt.judo.example.car/car-ui-resource/1.1.0-SNAPSHOT</bundle>
<bundle start-level="95">mvn:hu.blackbelt/judo-web/1.0-SNAPSHOT</bundle>
</feature>
<feature name="blackbelt-judo-repo" description="BlackBelt Judo: Repo" version="1.1.0.SNAPSHOT">
<feature prerequisite="false" dependency="false">wrap</feature>
<feature version="1.0.0" prerequisite="false" dependency="false">repo-spifly</feature>
<feature prerequisite="false" dependency="false">pax-cdi</feature>
<feature prerequisite="false" dependency="false">jndi</feature>
<feature prerequisite="false" dependency="false">transaction</feature>
<feature prerequisite="false" dependency="false">jasypt-encryption</feature>
<feature prerequisite="false" dependency="false">eventadmin</feature>
<feature prerequisite="false" dependency="false">scr</feature>
<feature prerequisite="false" dependency="false">http</feature>
<feature prerequisite="false" dependency="false">http-whiteboard</feature>
<feature prerequisite="false" dependency="false">repo-cxf-jaxrs</feature>
<feature prerequisite="false" dependency="false">repo-cxf-jaxws</feature>
<feature prerequisite="false" dependency="false">repo-cxf-rs-security-cors</feature>
<feature prerequisite="false" dependency="false">repo-cxf-rs-description-swagger2</feature>
<feature prerequisite="false" dependency="false">repo-javassist</feature>
<feature prerequisite="false" dependency="false">repo-jackson</feature>
<feature prerequisite="false" dependency="false">repo-functionaljava</feature>
<feature prerequisite="false" dependency="false">repo-commons-osgi</feature>
<feature prerequisite="false" dependency="false">repo-commons-mime</feature>
<feature prerequisite="false" dependency="false">repo-paranamer</feature>
<feature prerequisite="false" dependency="false">repo-querydsl</feature>
<feature prerequisite="false" dependency="false">repo-h2</feature>
<feature prerequisite="false" dependency="false">repo-hsqldb</feature>
<feature prerequisite="false" dependency="false">repo-postgresql</feature>
<feature prerequisite="false" dependency="false">repo-oracle</feature>
<feature prerequisite="false" dependency="false">repo-guava</feature>
<feature prerequisite="false" dependency="false">repo-joda-time</feature>
<feature prerequisite="false" dependency="false">repo-markup</feature>
<feature prerequisite="false" dependency="false">repo-reflections</feature>
<feature prerequisite="false" dependency="false">repo-javax-validation</feature>
<feature prerequisite="false" dependency="false">repo-hibernate-validator</feature>
<feature prerequisite="false" dependency="false">repo-concurrentlinkedhashmap-lru</feature>
<feature prerequisite="false" dependency="false">repo-java-sizeof</feature>
<feature prerequisite="false" dependency="false">repo-orika-core</feature>
<feature prerequisite="false" dependency="false">repo-management</feature>
<feature prerequisite="false" dependency="false">repo-paxjdbc</feature>
<feature prerequisite="false" dependency="false">repo-apache-poi</feature>
<feature prerequisite="false" dependency="false">repo-antlr4</feature>
<feature prerequisite="false" dependency="false">repo-sling-healthcheck</feature>
<feature prerequisite="false" dependency="false">repo-dom4j</feature>
<feature prerequisite="false" dependency="false">repo-pdfbox</feature>
<feature prerequisite="false" dependency="false">repo-freemarker</feature>
<feature prerequisite="false" dependency="false">shiro-web</feature>
<feature prerequisite="false" dependency="false">nimbus-jose-jwt</feature>
<feature prerequisite="false" dependency="false">groovy-all</feature>
<feature prerequisite="false" dependency="false">javax-el</feature>
<feature prerequisite="false" dependency="false">unboundid-ldapsdk</feature>
<feature prerequisite="false" dependency="false">javax.mail</feature>
<feature prerequisite="false" dependency="false">org.passay</feature>
</feature>
<feature name="repo-apache-poi" version="3.13.0">
<feature prerequisite="false" dependency="false">repo-bouncycastle</feature>
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlbeans/2.6.0_2</bundle>
<bundle>mvn:hu.blackbelt.judo.external/external-apache-poi/3.13.1</bundle>
</feature>
<feature name="repo-bouncycastle" version="1.55.0">
<bundle>mvn:org.bouncycastle/bcprov-jdk15on/1.55</bundle>
<bundle>mvn:org.bouncycastle/bcmail-jdk15on/1.55</bundle>
<bundle>mvn:org.bouncycastle/bcpkix-jdk15on/1.55</bundle>
</feature>
<feature name="repo-javassist" version="3.19.0.GA">
<bundle>mvn:org.javassist/javassist/3.19.0-GA</bundle>
</feature>
<feature name="repo-spifly" version="1.0.0">
<bundle>mvn:org.ow2.asm/asm-all/4.2</bundle>
<bundle>mvn:org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle/1.0.0</bundle>
</feature>
</features>
This feature file is an effective feature file which contains all feature repositories which are manifested in KAR file, which mean if there is more features on maven-karaf-plugin as feature dependency defined, all of them are aggregated here. The KAR feature bundle groupId and artifactId is the maven project of the assembly. (Which in you case can be any name)

Related

Openstack Neutron Linux Bridge MTU 1500 issue

We have configured Neutron and ml2 agent to use MTU 1500 using linux bridge agent but the VM's cannot run apt update but if we set the MTU to 1450 in the VM network interface works well.
Here is my neutron.conf value and ml2_conf.ini.
neutron.conf:
global_physnet_mtu = 1550
ml2_conf.ini:
[DEFAULT]
path_mtu = 1550
physical_network_mtus = physnet1:1550
Vxlan:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | nova |
| created_at | 2021-03-30T17:40:59Z |
| description | |
| dns_domain | None |
| id | 4ddce1ef-8151-4c67-b3ca-7519f2ab54c3 |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| is_vlan_transparent | None |
| mtu | 1500 |
| name | gfgfggf |
| port_security_enabled | True |
| project_id | 2467cb8a053d40f0a0a8af43d89d1c32 |
| provider:network_type | vxlan |
| provider:physical_network | None |
| provider:segmentation_id | 2 |
| qos_policy_id | None |
| revision_number | 4 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | 9a312e58-e830-4dc5-bd6e-ad903230f6b4 |
| tags | |
| updated_at | 2021-03-30T17:57:31Z |
+---------------------------+--------------------------------------+
Anyone can help?
UPDATE: The issue was solved restarting the controller and all hypervisors.
Thanks.
The settings in ml2_conf.ini should be under the heading [ml2]. [DEFAULT] is used in neutron.conf.

orientdb cluster / console

I have installed orientdb with docker.
All objects appear normal in the studio interface. But I can't list the clusters correctly. Only the id appears:
orientdb {db=GratefulDeadConcerts}> list clusters
CLUSTERS (collections)
+----+-----+-----+
|# |NAME |COUNT|
+----+-----+-----+
|0 | | |
|1 | | |
|2 | | |
|3 | | |
|4 | | |
|5 | | |
|6 | | |
|7 | | |
|8 | | |
|9 | | |
|10 | | |
|11 | | |
|12 | | |
|13 | | |
|14 | | |
|15 | | |
|16 | | |
|17 | | |
|18 | | |
|19 | | |
|20 | | |
|21 | | |
|22 | | |
|23 | | |
|24 | | |
|25 | | |
|26 | | |
|27 | | |
|28 | | |
|29 | | |
|30 | | |
|31 | | |
|32 | | |
|33 | | |
|34 | | |
|35 | | |
|36 | | |
|37 | | |
|38 | | |
|39 | | |
|40 | | |
|41 | | |
|42 | | |
|43 | | |
|44 | | |
|45 | | |
|46 | | |
|47 | | |
|48 | | |
|49 | | |
|50 | | |
|51 | | |
|52 | | |
+----+-----+-----+
| |TOTAL| 0|
+----+-----+-----+
Cluster names appear correctly on the Studio interface
Why is there a difference between the console and the interface/studio ?

why pywinauto with backend uia can not recognize some qt element?

with pywinauto version 0.6.5, i try to automate some qt button click. after connecting to app window, print_ctrl_ids display something irrelevant controls excluding button.
|
| TitleBar - '' (L598, T165, R1340, B184)
| [u'', u'1', u'0', 'TitleBar']
| |
| | Menu - '系统' (L580, T165, R598, B183)
| | [u'Menu', u'\u7cfb\u7edfMenu', u'\u7cfb\u7edf', u'\u7cfb\u7edf1', u'\u
b\u7edf0']
| | child_window(title="系统", auto_id="MenuBar", control_type="MenuBar")
| | |
| | | MenuItem - '系统' (L580, T165, R598, B183)
| | | [u'\u7cfb\u7edfMenuItem', u'MenuItem', u'\u7cfb\u7edf2']
| | | child_window(title="系统", control_type="MenuItem")
| |
| | Button - '关闭' (L1321, T164, R1341, B184)
| | [u'\u5173\u95edButton', 'Button', u'\u5173\u95ed']
| | child_window(title="关闭", control_type="Button")
|
| Custom - '' (L580, T184, R1340, B853)
| ['Custom', u'Custom0', u'2', u'Custom1']
| |
| | Custom - '' (L580, T184, R1340, B853)
| | ['Custom', u'Custom0', u'2', u'Custom1']
| | |
| | | Custom - '' (L580, T184, R1340, B514)
| | | [u'4', 'Custom3']
| | | |
| | | | Custom - '' (L580, T461, R1340, B514)
| | | | [u'5', 'Custom4']
| | | | |
| | | | | Custom - '' (L652, T461, R1268, B514)
| | | | | [u'6', 'Custom5']
| | |
| | | Custom - '' (L652, T550, R1098, B569)
| | | [u'7', 'Custom6']
| | |
| | | Custom - '' (L652, T589, R1098, B647)
| | | [u'8', 'Custom7']
| | |
| | | Custom - '' (L1158, T550, R1268, B660)
| | | [u'9', 'Custom8']
| | |
| | | Custom - '' (L1158, T662, R1268, B710)
| | | [u'10', 'Custom9']

No 'users' table in nova database

After successful installation of Openstack RDO in multiple hosts, the mysql database doesn't show any users in nova.
Command SHOW TABLES; in the database does not show user or users table.
MariaDB [nova]> SHOW TABLES;
+--------------------------------------------+
| Tables_in_nova |
+--------------------------------------------+
| agent_builds |
| aggregate_hosts |
| aggregate_metadata |
| aggregates |
| allocations |
| block_device_mapping |
| bw_usage_cache |
| cells |
| certificates |
| compute_nodes |
| console_pools |
| consoles |
| dns_domains |
| fixed_ips |
| floating_ips |
| instance_actions |
| instance_actions_events |
| instance_extra |
| instance_faults |
| instance_group_member |
| instance_group_policy |
| instance_groups |
| instance_id_mappings |
| instance_info_caches |
| instance_metadata |
| instance_system_metadata |
| instance_type_extra_specs |
| instance_type_projects |
| instance_types |
| instances |
| inventories |
| key_pairs |
| migrate_version |
| migrations |
| networks |
| pci_devices |
| project_user_quotas |
| provider_fw_rules |
| quota_classes |
| quota_usages |
| quotas |
| reservations |
| resource_provider_aggregates |
| resource_providers |
| s3_images |
| security_group_default_rules |
| security_group_instance_association |
| security_group_rules |
| security_groups |
| services |
| shadow_agent_builds |
| shadow_aggregate_hosts |
| shadow_aggregate_metadata |
| shadow_aggregates |
| shadow_block_device_mapping |
| shadow_bw_usage_cache |
| shadow_cells |
| shadow_certificates |
| shadow_compute_nodes |
| shadow_console_pools |
| shadow_consoles |
| shadow_dns_domains |
| shadow_fixed_ips |
| shadow_floating_ips |
| shadow_instance_actions |
| shadow_instance_actions_events |
| shadow_instance_extra |
| shadow_instance_faults |
| shadow_instance_group_member |
| shadow_instance_group_policy |
| shadow_instance_groups |
| shadow_instance_id_mappings |
| shadow_instance_info_caches |
| shadow_instance_metadata |
| shadow_instance_system_metadata |
| shadow_instance_type_extra_specs |
| shadow_instance_type_projects |
| shadow_instance_types |
| shadow_instances |
| shadow_key_pairs |
| shadow_migrate_version |
| shadow_migrations |
| shadow_networks |
| shadow_pci_devices |
| shadow_project_user_quotas |
| shadow_provider_fw_rules |
| shadow_quota_classes |
| shadow_quota_usages |
| shadow_quotas |
| shadow_reservations |
| shadow_s3_images |
| shadow_security_group_default_rules |
| shadow_security_group_instance_association |
| shadow_security_group_rules |
| shadow_security_groups |
| shadow_services |
| shadow_snapshot_id_mappings |
| shadow_snapshots |
| shadow_task_log |
| shadow_virtual_interfaces |
| shadow_volume_id_mappings |
| shadow_volume_usage_cache |
| snapshot_id_mappings |
| snapshots |
| tags |
| task_log |
| virtual_interfaces |
| volume_id_mappings |
| volume_usage_cache |
+--------------------------------------------+
109 rows in set (0.00 sec)
user table is in keystone database and not in nova database.
MariaDB [keystone]> show tables;
+------------------------+
| Tables_in_keystone |
+------------------------+
..........................
| trust |
| trust_role |
| user |
..........................

Nova list fields

Is there any way to find the possible fields for the nova show --fields command? Currently I can fill the --fields parameter with anything and it never complains, just fails silently.
The docs say use the show command, but that reports a machines characteristics.
the nova show returns may different from version to version, here is an example:
$ nova show b3cdc6c0-85a7-4904-ae85-71918f734048
+-------------------------------------+-------------------------------------+
| Property | Value |
+-------------------------------------+-------------------------------------+
| OS-EXT-STS:task_state | scheduling |
| image | cirros-0.3.2-x86_64-uec |
| OS-EXT-STS:vm_state | building |
| OS-EXT-SRV-ATTR:instance_name | instance-00000002 |
| flavor | m1.small |
| id | b3cdc6c0-85a7-4904-ae85-71918f734048|
| security_groups | [{u'name': u'default'}] |
| user_id | 376744b5910b4b4da7d8e6cb483b06a8 |
| OS-DCF:diskConfig | MANUAL |
| accessIPv4 | |
| accessIPv6 | |
| progress | 0 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-AZ:availability_zone | nova |
| config_drive | |
| status | BUILD |
| updated | 2013-07-16T16:25:34Z |
| hostId | |
| OS-EXT-SRV-ATTR:host | None |
| key_name | KeyPair01 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| name | myCirrosServer |
| adminPass | tVs5pL8HcPGw |
| tenant_id | 66265572db174a7aa66eba661f58eb9e |
| created | 2013-07-16T16:25:34Z |
| metadata | {u'KEY': u'VALUE'} |
+-------------------------------------+-------------------------------------+
The property column is all the fields available to specify to --fields

Resources