Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all 6251 articles
Browse latest View live

Need to Powercli scrip to call VRO api to initiate VM deletion workflow.

$
0
0

Hi,

 

Can some one help me with powercli script to call API to initiate VM deletion workflow in VRO, it has to take list of VM's input from CSV file.

 

Thanks in advance.


Get Workflow Data into vROPS

$
0
0

We're getting started with Orchestrator and have identified a need to track our last SQL backups. We've got the query to pull the info and have a test workflow created that is executing successfully and retrieving several rows of data. How do we import the data from the the workflow to create a dashboard or report in vROPS?

 

We're currently using VRA 8 and vROPS 8. VMware vRealize Orchestrator Mgmt pack 3.1.14 is also installed.

 

Thanks.

Need to update Configuration Element using API

$
0
0

Hi,

 

I have a need for a scheduled task/cron job on the vRO server to reach out to an external system using cURL, retrieve a value and write it to a configuration element.

 

I know you can update resource elements in this manner. Does anyone know if it can be done for configuration elements?

 

Many thanks,

 

 

-Mark

VRO SECURE MAIL CODE

$
0
0

Has anybody written the code for secure mail in order to send password to users over mail ??

 

is there any plugin or workflows available for the same ?

Best practices with 'idAccessor'?

$
0
0

Hi,

I am working with scripting objects in vRO. 

In a presentation to prefill objects -> I call a scripting object -> which calls a VSO method in a VSO object. 

Now inside my VSO method, I use REST to fetch some details and wrap them in a Scripting object. With each of these Objects I associate a unique idAccessor. 

 

Now, my problem is, VRO is making huge number of calls to PluginFactory to fetch these scripting objects. Every time I need to make a corresponding REST API call as well to return the same instance of the object.

 

Say, I have a predefined list of 1000 Scripting objects, this transforms in 1000 x 2 (atleast, at times even more) calls to PluginFactory!! == 2000 API calls in 1 field of a workflow!!!

 

Is there any way we can eliminate this or I could get away with the REST API call? What are the best practices with idAccessor? 

Thanks

VRO: What was the result / exit code of last action?

$
0
0

I am wondering if there is a way to tell in a VRO Scriptable task whether the previous item had an error, or if it was a success.

 

I have an extremely complex workflow.  I also have 2 VRO clusters set up, which I keep in sync through packages, or just the built in synchronize functionality.  With this particularly complex workflow, it has gotten to the point where I can no longer synchronize.  I'm currently using 7.5, and so its the Java client.  In order to synchronize this workflow, today I had to use the jnlp instead of the installed client, and I had to edit the jnlp file to adjust the heap size from the default 1024m (I could only go as high as 1332m, otherwise the client would never launch fully).

 

One problem I have that I think would help this issue to some extent, is that I try to keep track of errors encountered during the workflow, and update a checklist with the success/failure of the various steps.  In order to facilitate this right now, after each action/sub workflow I have a branch: I go to a "System + Server error" step if the step ended in error, and a scriptable task if it ended in success, I log everything appropriately, and then converge back to the next step

 

I could get rid of a lot of workflow elements if I could just have a scriptable task that knows the exit status of the previous element.  One idea for this is to write the errors to a variable, which I would then process, and null out during the scriptable task; but I was hoping there was something more native that could tell me the exit status/which path the previous step came down.

 

Anyone have any ideas?

Waiting Timer isn't resuming (perhaps after restart)

$
0
0
I have a VRO workflow that does a VM decommission.  It powers the VM off, disables snapshots, suspends alerting, and then sits on a wait timer for 2 weeks, and then deletes the VM from inventory, removes protection entirely, removes alerting entirely, removes DNS, etc.

I just got a notification that a VM which had been requested for decom 2 weeks ago received an alert.  This is because the 2 week alert suspension expired, and the alerting came back on - but the VM is still powered down.  The decom process was intended to resume at 10:44 EST (3:44PM GMT), which has now past.  I confirmed the variable that is being passed into the waiting timer (decomDate) is set to 10:44 local time.  I confirmed this is the appropriate variable being passed in, and everything looks good.  However, the WF is not resuming.  There are also 9 more decoms that look like they have the date to resume the timer set in the past (5 for yesterday, and then 4 older ones).

I believe the VRO services may have been restarted since these tokens were set to a waiting state, but uptime is older than the oldest submission (114 days), and the Server Restart Behavior for this workflow is set to resume workflow run.  I haven't had issues with this in the past.  I currently have 47 workflow tokens in this waiting state.  This appears to only be an issue on one cluster ( I have two 3-node clusters in production).  Restarted the vro-service and no change.

Any ideas what might be going on?

Need vRO workflow for identifying old snapshots in a NAS datastore and listing them

$
0
0

Hi All,

 

I am new to developing workflows, I have a requirement to create a workflow to list all the snapshot files which are older than a month residing in a NAS datastore. Could someone kindly let me know how which components to use in coding part


List of PowerOff VMs

$
0
0

Hi,

 

I have a workflow to find out how many VM's are in poweredOff state. VC has more than 7000 VM's and the workflow takes lot of time to produce the result as it has to loop through each of these 7000 VM's to find those VM's which are in powered off state.

 

So just wondering if there is any other way to achieve the result much quicker.

 

 

var vms = VcPlugin.getAllVirtualMachines()
var poffvms = 0
for each (vm in vms){
if (vm.runtime.powerState.value == "poweredOff"){
poffvms = poffvms + 1
}
}
System.log(poffvms);

mismatch been what vro api returns and what vcenter mob browser shows

$
0
0

I was using the vcenter MOB browser to help me find what I needed for host networking and whenI tried to use it it vro, the values I got didn't match what the MOB browser showed.

 

For a VcHostSystem called host I found what I wanted here:

 

host.configManager.networkSystem.networkInfo.proxySwitch

 

I had 3 items in the MOB browser but when I ran a for each loop against it I was only getting two items. When I did a .length against it I was getting a value of 2 instead of 3.

 

I found the same proxySwitch via this path:

 

host.config.network.proxySwitch

 

This network section seems to be about the same as the one above but using this version of proxySwitch I was getting my 3 objects and .length returned 3.

 

I thought that maybe I needed to trigger the refreshNetworkSystem() method to get the right info but that didn't help.

 

In the end I just changed to the config.network.proxySwitch path but why would I see the correct info in the MOB but vro returns only partial info? Is there a timer where I need to wait x number of minutes before I get the correct data?

vRO 8.0.1 - Type "Date" in GMT instead of CET (as configured)

$
0
0

Hello Community,

 

I have a "little problem" with time configuration in vRO 8.0.1.

 

I configured the Appliance as follows:

root@vrotest [ / ]# vracli ntp status

vrotest.test.dom:

----------------------------------

systemd configuration:

      Local time: Tue 2020-03-10 13:59:59 CET

  Universal time: Tue 2020-03-10 12:59:59 UTC

        RTC time: Tue 2020-03-10 12:59:59

       Time zone: Europe/Berlin (CET, +0100)

Network time on: yes

NTP synchronized: yes

RTC in local TZ: no

 

----------------------------------

eSXi NTP configuration: disabled

----------------------------------

 

I test with a tiny workflow to check the date/time:

 

Input:

Input.PNG

so far so good. 03/10/2020 2:07 PM

 

Variables in the workflow run:

variables.PNG

still okay, seems to be CET ;D

 

Logs:

 

System.log("Input Time: " + time);

 

log.PNG

 

Time is now in GMT?!

 

Do you have any idea whats going wrong here?

 

many thanks in advance!

vRO REST request failing with 406 error

$
0
0

I am recieving a 406 error when executing a GET against the vRA 8 REST API.

When executing in POSTman I get a response in JSON and I have set the default content type.

I am passing the bearer token in the headers string array variable and it seems to be accepted.

The 406 error suggests a not acceptable from the sever - what format should the header be in with the bearer token?

Declare Variable

$
0
0

Hi,

 

How do we declare/create Array of Virtual machines parameter in javascript code (instead of creating it as input or output paramater in VRO).

 

Please help.

How can I configure vRO 8.0.1 to use a dns alias?

$
0
0

Hi Community,

 

actually I am validating vRO 8.0.1 for a test environment.

 

I imported and configured the appliance and can access the client and the Control Center as expected.

 

So far, so good. When using the configured DNS Alias, I get a 404 page not found

Is there any additional configuration to do?

 

Many thanks in advance!

Kind regards,

Dex

Issue with installing vRO 8.0.1

$
0
0

Hello all,

has anyone had similar issues/knows how to fix the issue ? I want to try out the new orchestrator, i have a tiny lab 2 hosts + 1 vcenter 6.7.

I am deploying vRO via ova, answered all the questions, used fqdn, right ip/dns/mask etc, i can login to vRO machine, it can resolve via name/ip vc/esx/vro.

If i open the vRO website i get: 'bad gateway', when i login to the vro box itself i see that vco container is not running, any idea how to go from here?

Installed from O11N_VA-8.0.1.7355-15296158_OVF10.ova  i  installed it from extracted ova as well, same result.

 

x1.png

appliance console look:

x2.png

dns

x3.png

x4.png

containers:

root@vro [ ~ ]# kubectl get pods --all-namespaces

NAMESPACE     NAME                                         READY   STATUS                  RESTARTS   AGE

ingress       ingress-ctl-traefik-67cc495d5c-rkhnj         1/1     Running                 1          16h

kube-system   coredns-6922m                                1/1     Running                 1          16h

kube-system   endpoints-weight-dddmx                       1/1     Running                 1          16h

kube-system   etcd-vro.infralab.local                      1/1     Running                 1          16h

kube-system   health-reporting-app-7hg2m                   1/1     Running                 1          16h

kube-system   kube-apiserver-vro.infralab.local            1/1     Running                 1          16h

kube-system   kube-controller-manager-vro.infralab.local   1/1     Running                 1          16h

kube-system   kube-flannel-ds-f2957                        2/2     Running                 2          16h

kube-system   kube-proxy-gbbmg                             1/1     Running                 1          16h

kube-system   kube-scheduler-vro.infralab.local            1/1     Running                 1          16h

kube-system   kubelet-rubber-stamp-z9sh6                   1/1     Running                 1          16h

kube-system   metrics-server-cms97                         1/1     Running                 1          16h

kube-system   predictable-pod-scheduler-lz9k5              1/1     Running                 1          16h

kube-system   prelude-noop-extnet-ds-mkm6s                 1/1     Running                 1          16h

kube-system   prelude-noop-intnet-ds-zdnn4                 2/2     Running                 2          16h

kube-system   state-enforcement-cron-1584085320-wkf2k      0/1     Completed               0          3m24s

kube-system   state-enforcement-cron-1584085440-22zbr      0/1     Error                   0          51s

kube-system   state-enforcement-cron-1584085440-crqws      0/1     Error                   0          81s

kube-system   state-enforcement-cron-1584085440-hxr2v      0/1     Error                   0          11s

kube-system   state-enforcement-cron-1584085440-llmjt      0/1     Error                   0          84s

kube-system   state-enforcement-cron-1584085440-wjq8p      0/1     Error                   0          71s

kube-system   tiller-deploy-89fdbcb48-m7kl7                1/1     Running                 1          16h

prelude       orchestration-ui-app-86947f69d-vk9x8         1/1     Running                 1          16h

prelude       pgpool-5f5c55b9bd-7qwgt                      1/1     Running                 2          16h

prelude       postgres-0                                   1/1     Running                 1          16h

prelude       proxy-service-dlxcx                          1/1     Running                 1          16h

prelude       symphony-logging-daemonset-s75l5             1/1     Running                 1          16h

prelude       vco-app-778f85f7bc-qttcx                     0/2     Init:CrashLoopBackOff   4          15h

 

vro website

x5.png

All i did is just deploy from ova nothing more. i also did the same thing at different environment but i deployed it to VC 6.0 and it worked there, i don't see any reason why it should not work deployed to 6.7 build 10244857

 

i have completely now i idea how to troubleshoot it, i found /var/log/containers and i can correlate those logs to containers name

the containers that are in failed state last lines of logs

tail -n 50 vco-app-778f85f7bc-qttcx_prelude_install-rpms-511f56c3931d4fdd22b1a7bb32ec0b4241899e70a720e873cce0c3c4a4227904.log

 

{"log":"vco-cfg-cli-8.0.1.1576058314-15282010 ########################################\n","stream":"stdout","time":"2020-03-13T07:49:51.433780448Z"}

{"log":"warning: user vco does not exist - using root\n","stream":"stderr","time":"2020-03-13T07:49:51.434921086Z"}

{"log":"warning: group vco does not exist - using root\n","stream":"stderr","time":"2020-03-13T07:49:51.434955111Z"}

{"log":"warning: user vco does not exist - using root\n","stream":"stderr","time":"2020-03-13T07:49:51.436257558Z"}

{"log":"warning: group vco does not exist - using root\n","stream":"stderr","time":"2020-03-13T07:49:51.436284833Z"}

{"log":"warning: user vco does not exist - using root\n","stream":"stderr","time":"2020-03-13T07:49:51.436759513Z"}

{"log":"warning: group vco does not exist - using root\n","stream":"stderr","time":"2020-03-13T07:49:51.436801222Z"}

{"log":"warning: user vco does not exist - using root\n","stream":"stderr","time":"2020-03-13T07:49:51.437533823Z"}

{"log":"warning: group vco does not exist - using root\n","stream":"stderr","time":"2020-03-13T07:49:51.437580895Z"}

{"log":"/init_run.sh: line 126: /usr/lib/vco/app-server/bin/vco-reset-keystore-password.sh: No such file or directory\n","stream":"stderr","time":"2020-03-13T07:49:52.318109806Z"}

{"log":"Missing /usr/lib/vco/keystore.password file. Falling back to default value for keystore password...\n","stream":"stdout","time":"2020-03-13T07:49:52.375283518Z"}

{"log":"Orchestrator's root folder: /usr/lib/vco\n","stream":"stdout","time":"2020-03-13T07:49:52.797000465Z"}

{"log":"Orchestrator Configuration Tool. Version: 8.0.1.15282010 Build: 15282010\n","stream":"stdout","time":"2020-03-13T07:49:52.799879067Z"}

{"log":"\n","stream":"stdout","time":"2020-03-13T07:49:52.799898621Z"}

{"log":"Can not read the Orchestrator pid from /usr/lib/vco/app-server/logs/tomcat.pid\n","stream":"stderr","time":"2020-03-13T07:49:52.833717508Z"}

{"log":"Start configuring database settings.\n","stream":"stdout","time":"2020-03-13T07:49:53.405862003Z"}

{"log":"2020-03-13 07:49:53,507 [INFO] File not found: /usr/lib/vco/app-server/conf/vmo.properties. Return empty byte array.\n","stream":"stdout","time":"2020-03-13T07:49:53.508271318Z"}

{"log":"2020-03-13 07:49:53,524 [INFO] File not found: /usr/lib/vco/app-server/conf/security/passwordencryptor.key. Return empty byte array.\n","stream":"stdout","time":"2020-03-13T07:49:53.524189158Z"}

{"log":"Property source file is missing and failed to create it. File: '/usr/lib/vco/app-server/conf/vmo.properties'\n","stream":"stdout","time":"2020-03-13T07:49:53.53281343Z"}

{"log":"java.lang.RuntimeException: Property source file is missing and failed to create it. File: '/usr/lib/vco/app-server/conf/vmo.properties'\n","stream":"stdout","time":"2020-03-13T07:49:53.532829392Z"}

{"log":"\u0009at com.vmware.o11n.settings.impl.PropFileSettingsSource.assureSourceExist(PropFileSettingsSource.java:291) ~[o11n-settings-8.0.1.jar:?]\n","stream":"stdout","time":"2020-03-13T07:49:53.532832378Z"}

{"log":"\u0009at com.vmware.o11n.settings.impl.PropFileSettingsSource.save(PropFileSettingsSource.java:270) ~[o11n-settings-8.0.1.jar:?]\n","stream":"stdout","time":"2020-03-13T07:49:53.532834827Z"}

{"log":"\u0009at com.vmware.o11n.settings.impl.PropFileSettingsSource.put(PropFileSettingsSource.java:108) ~[o11n-settings-8.0.1.jar:?]\n","stream":"stdout","time":"2020-03-13T07:49:53.532837Z"}

{"log":"\u0009at com.vmware.o11n.settings.proxies.SettingsInvocationHandler.invoke(SettingsInvocationHandler.java:107) ~[o11n-app-settings-8.0.1.jar:?]\n","stream":"stdout","time":"2020-03-13T07:49:53.53283928Z"}

{"log":"\u0009at com.sun.proxy.$Proxy28.setDriverClassname(Unknown Source) ~[?:?]\n","stream":"stdout","time":"2020-03-13T07:49:53.532841536Z"}

{"log":"\u0009at com.vmware.o11n.cli.configuration.commands.db.DbCommand.persistSettings(DbCommand.java:119) ~[o11n-commandline-configuration-8.0.1.jar:?]\n","stream":"stdout","time":"2020-03-13T07:49:53.532843651Z"}

{"log":"\u0009at com.vmware.o11n.cli.configuration.commands.db.DbCommand.execute(DbCommand.java:91) ~[o11n-commandline-configuration-8.0.1.jar:?]\n","stream":"stdout","time":"2020-03-13T07:49:53.5328458Z"}

{"log":"\u0009at com.vmware.o11n.cli.configuration.commands.ConfigurationCommand.executeCmd(ConfigurationCommand.java:120) ~[o11n-commandline-configuration-8.0.1.jar:?]\n","stream":"stdout","time":"2020-03-13T07:49:53.532848058Z"}

{"log":"\u0009at com.vmware.o11n.cli.configuration.ConfigurationCli.executeCommand(ConfigurationCli.java:122) [o11n-commandline-configuration-8.0.1.jar:?]\n","stream":"stdout","time":"2020-03-13T07:49:53.532864747Z"}

{"log":"\u0009at com.vmware.o11n.cli.configuration.ConfigurationCli.main(ConfigurationCli.java:98) [o11n-commandline-configuration-8.0.1.jar:?]\n","stream":"stdout","time":"2020-03-13T07:49:53.532867321Z"}

{"log":"Caused by: java.io.IOException: No such file or directory\n","stream":"stdout","time":"2020-03-13T07:49:53.532869554Z"}

{"log":"\u0009at java.io.UnixFileSystem.createFileExclusively(Native Method) ~[?:1.8.0-internal]\n","stream":"stdout","time":"2020-03-13T07:49:53.532871663Z"}

{"log":"\u0009at java.io.File.createNewFile(File.java:1012) ~[?:1.8.0-internal]\n","stream":"stdout","time":"2020-03-13T07:49:53.532873766Z"}

{"log":"\u0009at com.vmware.o11n.settings.impl.PropFileSettingsSource.assureSourceExist(PropFileSettingsSource.java:289) ~[o11n-settings-8.0.1.jar:?]\n","stream":"stdout","time":"2020-03-13T07:49:53.532875827Z"}

{"log":"\u0009... 9 more\n","stream":"stdout","time":"2020-03-13T07:49:53.532878036Z"}

{"log":"ERROR: Unable to configure database.\n","stream":"stdout","time":"2020-03-13T07:49:53.537741992Z"}

 

 

 

root@vro [ /var/log/containers ]# tail -n 50 vco-app-778f85f7bc-qttcx_prelude_vco-dependencies-48347f5b45ead243fa473ccab44c786ec184ccb191a4640b9434fdba29c1dad8.log

{"log":"2020/03/13 07:37:32 Loading dependencies from /dependencies/init-dependencies.yaml\n","stream":"stderr","time":"2020-03-13T07:37:32.029703426Z"}

{"log":"2020/03/13 07:37:32 Loading k8s config\n","stream":"stderr","time":"2020-03-13T07:37:32.029768005Z"}

{"log":"2020/03/13 07:37:32 Creading k8s clientset\n","stream":"stderr","time":"2020-03-13T07:37:32.029893689Z"}

{"log":"2020/03/13 07:37:32 Reading current namespace\n","stream":"stderr","time":"2020-03-13T07:37:32.030813647Z"}

{"log":"2020/03/13 07:37:32 Running in namespace prelude\n","stream":"stderr","time":"2020-03-13T07:37:32.030834968Z"}

{"log":"2020/03/13 07:37:32 Running checks\n","stream":"stderr","time":"2020-03-13T07:37:32.030839661Z"}

 

root@vro [ /var/log/containers ]# kubectl get ingress -A

NAMESPACE   NAME                HOSTS                ADDRESS   PORTS   AGE

prelude     orchestration-ui    vro.infralab.local             80      16h

prelude     vco                 vro.infralab.local             80      16h

prelude     vco-controlcenter   vro.infralab.local             80      16h

 

 

 

root@vro [ /var/log/containers ]# kubectl get deploy vco-app -n prelude

NAME      READY   UP-TO-DATE   AVAILABLE   AGE

vco-app   0/1     1            0           16h

root@vro [ /var/log/containers ]# kubectl describe deploy vco-app -n prelude

Name:               vco-app

Namespace:          prelude

CreationTimestamp:  Thu, 12 Mar 2020 16:01:30 +0000

Labels:             <none>

Annotations:        deployment.kubernetes.io/revision: 1

Selector:           app=vco-app,environment=new,product=prelude

Replicas:           1 desired | 1 updated | 1 total | 0 available | 1 unavailable

StrategyType:       Recreate

MinReadySeconds:    0

Pod Template:

  Labels:  app=vco-app

           environment=new

           product=prelude

  Init Containers:

   vco-dependencies:

    Image:      vco_private:latest

    Port:       <none>

    Host Port:  <none>

    Command:

      /dependencies/depcheck

      -depconfig

      /dependencies/init-dependencies.yaml

      -backoff

      5s

      -runcount

      0

    Environment:  <none>

    Mounts:

      /dependencies/depcheck from depcheck (ro)

      /dependencies/init-dependencies.yaml from dependencies (ro,path="init-dependencies.yaml")

   install-rpms:

    Image:      vco_private:latest

    Port:       <none>

    Host Port:  <none>

    Command:

      /bin/bash

      -c

      /init_run.sh

    Environment:

      JAVA_PROXY_SCHEME:     <set to the key 'internet.proxy.scheme' in secret 'internet.proxy.scheme'>                          Optional: false

      JAVA_PROXY_HOST:       <set to the key 'internet.proxy.host' in secret 'internet.proxy.host'>                              Optional: false

      JAVA_PROXY_PORT:       <set to the key 'internet.proxy.port' in secret 'internet.proxy.port'>                              Optional: false

      JAVA_PROXY_NON_PROXY:  <set to the key 'internet.proxy.java-proxy-exclude' in secret 'internet.proxy.java-proxy-exclude'>  Optional: false

      SAAS_ENABLED:          false

      VCO_INSTALL_DIR:       /usr/lib/vco

      PG_HOST:               pgpool

      PG_PORT:               5432

      PG_USER:               vco-db

      PG_PASSWORD:           <set to the key 'vco-db' in secret 'db-credentials'>  Optional: false

      PG_DATABASE:           vco-db

      KS_PASSWORD:           dunesdunes

      AUTH_PROVIDER:         basic

      HOST_URL:              https://vro.infralab.local

    Mounts:

      /run/external-certs from extcert-secret (ro)

      /usr/lib/vco from vco-vol (rw)

  Containers:

   vco-server-app:

    Image:      vco_private:latest

    Port:       8280/TCP

    Host Port:  0/TCP

    Command:

      /bin/bash

      -c

      ./create_server_symlinks && /var/opt/apache-tomcat/bin/catalina.sh run

    Limits:

      memory:  4G

    Requests:

      memory:   3G

    Liveness:   exec [/usr/bin/bash -c if [[ -f /usr/lib/vco/app-server/conf/restart_required ]]; then rm /usr/lib/vco/app-server/conf/restart_required; kill `pgrep java`; exit 0; fi; /usr/bin/bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/8280';] delay=180s timeout=10s period=30s #success=1 #failure=10

    Readiness:  http-get http://:8280/vco/api/healthstatus delay=20s timeout=10s period=5s #success=1 #failure=10

    Environment:

      JAVA_PROXY_SCHEME:     <set to the key 'internet.proxy.scheme' in secret 'internet.proxy.scheme'>                          Optional: false

      JAVA_PROXY_HOST:       <set to the key 'internet.proxy.host' in secret 'internet.proxy.host'>                              Optional: false

      JAVA_PROXY_PORT:       <set to the key 'internet.proxy.port' in secret 'internet.proxy.port'>                              Optional: false

      JAVA_PROXY_NON_PROXY:  <set to the key 'internet.proxy.java-proxy-exclude' in secret 'internet.proxy.java-proxy-exclude'>  Optional: false

      CATALINA_BASE:         /usr/lib/vco/app-server

      KS_PASSWORD:           dunesdunes

      JVM_OPTS:               -Dvco.db.max-keep-alive-time=0 -Dvco.app.hostname=vro.infralab.local -Dhttps.proxyHost=$JAVA_PROXY_HOST -Dhttp.proxyHost=$JAVA_PROXY_HOST -Dhttps.proxyPort=$JAVA_PROXY_PORT -Dhttp.proxyPort=$JAVA_PROXY_PORT -Dhttp.nonProxyHosts=$JAVA_PROXY_NON_PROXY -Dvco.app.server.internal.port=8280 -Djava.security.krb5.conf=/usr/lib/vco/app-server/conf/krb5.conf

      http_proxy:            $JAVA_PROXY_SCHEME://$JAVA_PROXY_HOST:$JAVA_PROXY_PORT

    Mounts:

      /usr/lib/vco from vco-vol (rw)

      /var/run/vco from vco-scripting (rw)

   vco-controlcenter-app:

    Image:      vco_private:latest

    Port:       8282/TCP

    Host Port:  0/TCP

    Command:

      /bin/bash

      -c

      ./create_controlcenter_symlinks && /var/opt/apache-tomcat/bin/catalina.sh run

    Liveness:   http-get http://:8282/vco-controlcenter/api/server/about delay=90s timeout=5s period=10s #success=1 #failure=5

    Readiness:  http-get http://:8282/vco-controlcenter/api/server/about delay=20s timeout=5s period=10s #success=1 #failure=3

    Environment:

      JAVA_PROXY_SCHEME:       <set to the key 'internet.proxy.scheme' in secret 'internet.proxy.scheme'>                          Optional: false

      JAVA_PROXY_HOST:         <set to the key 'internet.proxy.host' in secret 'internet.proxy.host'>                              Optional: false

      JAVA_PROXY_PORT:         <set to the key 'internet.proxy.port' in secret 'internet.proxy.port'>                              Optional: false

      JAVA_PROXY_NON_PROXY:    <set to the key 'internet.proxy.java-proxy-exclude' in secret 'internet.proxy.java-proxy-exclude'>  Optional: false

      TELEMETRY_ENDPOINT_ENV:  <set to the key 'endpointEnv' of config map 'telemetry-config'>                                     Optional: false

      ENABLE_TELEMETRY:        false

      CATALINA_BASE:           /usr/lib/vco/configuration

      KS_PASSWORD:             dunesdunes

      JVM_OPTS:                 -Dhttps.proxyHost=$JAVA_PROXY_HOST -Dhttp.proxyHost=$JAVA_PROXY_HOST -Dhttps.proxyPort=$JAVA_PROXY_PORT -Dhttp.proxyPort=$JAVA_PROXY_PORT -Dhttp.nonProxyHosts=$JAVA_PROXY_NON_PROXY -Dvco.db.max-keep-alive-time=0 -Dvco.app.hostname=vro.infralab.local -Dvco.app.controlcenter.internal.port=8282 -Dvco.app.server.internal.port=8280

    Mounts:

      /usr/lib/vco from vco-vol (rw)

      /usr/lib/vco/configuration/conf/users.properties from vco-controlcenter-user-vol (rw,path="users.properties")

  Volumes:

   vco-vol:

    Type:          HostPath (bare host directory volume)

    Path:          /data/vco/usr/lib/vco

    HostPathType:  DirectoryOrCreate

   vco-scripting:

    Type:          HostPath (bare host directory volume)

    Path:          /data/vco/var/run/vco

    HostPathType:  DirectoryOrCreate

   extcert-secret:

    Type:        Secret (a volume populated by a Secret)

    SecretName:  cert-ext

    Optional:    false

   dependencies:

    Type:      ConfigMap (a volume populated by a ConfigMap)

    Name:      vco-dependencies

    Optional:  false

   depcheck:

    Type:          HostPath (bare host directory volume)

    Path:          /usr/local/bin/depcheck

    HostPathType:  File

   vco-controlcenter-user-vol:

    Type:        Secret (a volume populated by a Secret)

    SecretName:  vco-controlcenter-user-secret

    Optional:    false

Conditions:

  Type           Status  Reason

  ----           ------  ------

  Available      False   MinimumReplicasUnavailable

  Progressing    False   ProgressDeadlineExceeded

OldReplicaSets:  vco-app-778f85f7bc (1/1 replicas created)

NewReplicaSet:   <none>

Events:

  Type    Reason             Age   From                   Message

  ----    ------             ----  ----                   -------

  Normal  ScalingReplicaSet  16h   deployment-controller  Scaled up replica set vco-app-778f85f7bc to 1

 

I have another 8.0.1 running in different environment and it looks like there is something wrong with tou /data/vco mount

Left is working 8.0.1 installation (1-2 days old, also fresh) and right one is the one that is failing.

x7.png

 

 

Wiadomość była edytowana przez: Grzegorz


vRO 8.0.1 and vCenter WebClient on VC 6.0(windows) // VCSA 6.7 appliance

$
0
0

Hello,

is this supposed to work, to have Orchestrator plugin running on webclint in VC 6.0 having vRO 8.0.1 ? I did as per documentation:

 

Configure vRealize Orchestrator Plugin for vSphere Web Client

Uploded the plugin into 8.0.1 appliance

root@vrz-p-vro001 [ /data/vco/usr/lib/vco/downloads ]# ls -l

total 15580

-rw-r--r-- 1 kube docker 8891510 Dec 11 11:03 migration-tool.zip

-rw-r--r-- 1 root root   7025307 Mar 13 09:35 vco-plugin.zip

drwxr-xr-x 6 kube docker    4096 Mar  9 16:03 vco-repo

 

I did run the workflow to register it

x9.png

I have rebooted the VC 6.0, and the plugin is not working in webclient Flex/Html.

I checked interoperability matrix, it says that is is supported to have 8.0.1 and vc 6.0

 

Any idea what i am doing wrong?

 

I also gave it a try on VCSA 6.7 appliance (psc+vc simple installation).

 

What i dont understand is why this is getting inside the plugin urlo 10.244.0.xxx , in field  when running register webclient workflow External address to advertise this Orchestrator.

 

 

x14.png

This 10.244.0.XXX is the container ip .

I tried now with https://FQDN  no ports etc. just fqdn

x15.png

Now the when i login with flex client i see a change, i see the orchestrator icon but nothing is inside

x11.png

x12.png

 

So i am stuck again, And this is on 6.7 VCSA appliance, not 6.0 windows.

while on VC console i can execute

wget https://vro.infralab.local/vco/vsphere-web-client/vco-plugin.zip --no-check-certificate

and plugin zip is being downloaded

 

Is this supposed to work with flex client  ? The plugin is not visible in html5 client at all (anyone else has it there?)

Type name problem

$
0
0

Hi,

 

When creating the workflow, it adds an "action element". It gives it actions, e.g. createAdminOrgParams, thanks to which I have some input data that I can use. I create a variable for the name from this level.

 

The variable that is created in the previous step appears where type is an upper letter.

 

 

In Input form, it is not possible to enter text after adding a field.

 

 

 

 

When you change the variable type from upper case to lower case, the variable disappears from configuration „action element”

 

 

In case the variable type is a capital letter, the workflow does not work. In case the variable type is lowercase, it is not visible in the element configuration.

 

 

Somebody has known where is the problem?

vRO 8.0.1 snmp , receiving a trap

$
0
0

Hello,

can anyone check what i am doing wrong ? I want to test if my newly installed vro can receive snmp traps. Steps i have taken:

1. Install vro 8.0.1

2. Auth via vc sso

3.Added a device (192.168.1.97) - my laptop

4.Ran workflow - Wait for a trap on all devices , wait for a trap on a snmp device(pointing to my laptop , port 4000).

When reunning wait for a trap o nall devices i am assuming that is awaiting for a trap on port 4000 as this is the default, when running via a snamp device i have sent snmp device port 4000, public.

i run from my laptop:

C:\SnmpTrapGen>SnmpTrapGen.exe -r:192.168.1.150 -t:10 -c:"public" -to:.1.3.6.1.2.1.1.4.0 -p:4000 -v:2c

SnmpTrapGen v1.1 - Copyright (C) 2009 SnmpSoft Company

[ More useful network tools on http://www.snmpsoft.com ]

OK

 

The workflow is still waiting.

I have also ran a python script directly from the vRO 8.0.1 appliance itself

root@vro [ ~ ]# cat sendsnmptolocalvro4000.py

from pysnmp.hlapi import *

from pysnmp import debug

 

 

debug.setLogger(debug.Debug('msgproc'))

 

 

next(sendNotification(SnmpEngine(),

     CommunityData('public'),

     UdpTransportTarget(('192.168.1.150', 4000)),

     ContextData(),

     'trap',

     # sequence of custom OID-value pairs

     [ObjectType(ObjectIdentity('1.3.6.1.2.1.1.1.0'), OctetString('my string')),

      ObjectType(ObjectIdentity('1.3.6.1.2.1.1.3.0'), Integer32(42))]))

 

Also nothing happens. The workflow is not being interrupted in anyway, indicating that he has received the trap.

I have set up a trap receiver on other node in the network and those 2 script are sending it ok. from vRO appliance the python script can trigger the trap on my windows machine running snmpb.

 

Any idea if i have missed anything ? I checked 2 books, few tutorials and i think i am doing exactly what others but its just not working. Firewall is not the case since the python is even running locally from the vRO + its flat home network , no fw/gw.

 

y1.png

y2.png

 

I can send snmp trap from vRO to my laptop snmpb

y3.png

 

I have also configured vcenter vc01.greg.labs to send snmp traps to the VRO + my laptop with snmpb

y4.png

VC alarm is triggered when VM is created. IT sents 1 trap to my laptop +1 trap to vRO. And VRO is not handling it .

y5.png

vRO trap host configured with port 4000 and is listening

Trap Host (Online)

port4000
display nameTrap Host (online)
@fullType

SNMP:TrapHost

 

 

Edit: I have also deployed vRO 7.6, same config, everything 1:1 as in 8.0.1 case , and here it worked all as expected, waiting for traps on 4000 port, and i have generated one from my laptop using snmptrapgen and workflow has triggered (listen for snmp trap on all devices). So is there something i should know about 8.0.1 ? Some extra steps in order to configure it ? Are we supposed to use 8.0.1 ?

Export content fails

vRO 8.X - Server.getConfigurationElementCategoryWithPath()

$
0
0

I've just started looking at vRO v8.0.1, specifically at the tagging of workflows.

 

How does this affect the working of Server.getConfigurationElementCategoryWithPath?

 

In our workflows we've made extensive use of this in the package we've developed, for example, we instruct a user to duplicate a configuration element then run a workflow to configure the element's attributes (they select the target element from a drop-down), this no longer works.

 

I'm guessing this will simply no longer work with v8 (or is my issue that a web-root tag is also created)? What's the alternative?

Viewing all 6251 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>