vRA 7.0.1 ask a the vRO Workflow 400 BAD_REQUEST catalog item

Has anyone got this working?

When I try to send the workflow IaaS plan which has a single machine vSphere element the following entries cause an error BAD_REQUEST 400:

  • provider - VirtualMachine.Memory.Size
  • provider - VirtualMachine.CPU.Count

I tried to fill in the values of these properties in several ways, all lead them into the same error BAD_REQUEST 400:


inputs.put("provider-VirtualMachine.Memory.Size", "1024"); //STRING
inputs.put("provider-VirtualMachine.Memory.Size", 1024); //NUMBER
inputs.put("provider-VirtualMachine.Memory.Size", new vCACCAFEIntegerLiteral(1024).getValue()); //INT
inputs.put("provider-VirtualMachine.Memory.Size", new vCACCAFEDecimalLiteral(1024).getValue()); //DEC

If I let these two properties on the process works and obtain just created with 1 vCPU and 1024 MB of memory.

This process works fine in my 6.2 environments.

Genius pointed out to me the workflow 'Request an article of catalogue with commissioning request' in the 7.0.1 plugin vRA. You need to duplicate the workflow, uncomment the "customize the request data" section of the workflow and add your custom property. Its JSON all if you just want to add just like you see in the result of the variable jsonData.

I've traveled in two steps:

1.

////Uncomment to customize request data
var jsonData = vCACCAFERequestsHelper.getProvisioningRequestData(provisioningRequest);
System.log(jsonData);

This will save the full property defined in a JSON format. You can after that in a JSON as Viewer of JSON online Viewer and go through it.

In my test case, I had a model with a single machine in vSphere, named "vSphere_Machine_1". In this case, I want to set the number of CPU 2 and memory to 2048.

2.

////Uncomment to customize request data
var jsonData = vCACCAFERequestsHelper.getProvisioningRequestData(provisioningRequest);
//System.log(jsonData);
var json = JSON.parse(jsonData);

////Change cpu example
json.vSphere_Machine_1.data.cpu = 2;
json.vSphere_Machine_1.data.memory = 2;
//System.log(JSON.stringify(json));

vCACCAFERequestsHelper.setProvisioningRequestData(provisioningRequest, JSON.stringify(json));

Tags: VMware

Similar Questions

  • vRA 6.2 - error loading of a presentation of the ASD workflow user

    Hello

    I have a vRO workflow which I joined in vRA as a workflow of ASD. The workflow stops for user interaction. Some of the values in the presentation are nto loadedi presentation and predefined values, which are generated once the workflow is started.

    When I try to respond to the intervention of the user, the GUI of vRA starts to load the fields, but shortly after the start, I get the error:

    The vRO workflow validation shows no errors, I can run very well with the customer to vRO. When I completely remove predefined values, the GUI presentation load fields summary and description of the Interaction of the user manual, however this end with an error as well after a short time.

    2015-12-11 13:40:39, 436 vcac: [component = "coffee: shell" priority = "ERROR" thread = "http tomcat - 1278" tenant = ""] com.vmware.vcac.shell.ErrorManagerImpl.logToApacheCommons:59 - < 92df07b1 > unexpected value

    We took

    com.vmware.vcac.platform.framework.error.ErrorCodeException: 504

    at Unknown.gk (unknown Source)

    at Unknown.pk (unknown Source)

    at Unknown.Xpc (unknown Source)

    at Unknown.v2h (unknown Source)

    at Unknown.LCe (unknown Source)

    at Unknown.JCe (unknown Source)

    at Unknown.jzi (unknown Source)

    at Unknown.mzi (unknown Source)

    at Unknown.dBi (unknown Source)

    at Unknown.hBi (unknown Source)

    to Unknown.aBi / <(Unknown Source)

    at Unknown.p (unknown Source)

    at Unknown.gadgets.util.makeClosure/ <(Unknown Source)

    at Unknown.anonymous (unknown Source)

    Any ideas? It has to do with a timeout when the presentation is loaded?

    OK, so observe the screenshots and the workflow in this post with a lot of attention.  The speed cannot be denied and no matter what VMware comes with compared to obtaining objects (as the platform is currently written), I think that this method will be faster in the presentation.

    What you will see in this workflow:

    Get owned VMs an applicant is quick and easy through the IaaS objects (of which the OWNER is held): ~ 5 seconds per 140 total of machines / machines belonging to 10

    variable user is [email protected] format... for example the format of an applicant VRA

    var entities = Server.findAllForType("VCAC:VirtualMachine");
    //If you are dealing with one vcacHost... otherwise you have to bake this into the loop per ent instance
    var vcacHost = Server.findForType("vCAC:VCACHost", entities[0].getEntity().hostId);
    for each (ent in entities){
     if (ent.isManaged == true && ent.getEntity().getLink(vcacHost,"Owner")[0].getProperty("UserName") == user){
      virtualMachineNames.push(ent.displayName);
      catalogResources.push(vCACCAFEEntitiesFinder.findCatalogResources(cafeHost,ent.displayName)[0]);
     }
    }
    

    Once all the machines are in the table, getting a dedupliquee list of business groups that support the machines is fast:.02 seconds for 10 machines

    for each (catalogResource in catalogResources){
     try{
      tempLabel = catalogResource.getOrganization().getSubtenantLabel();
      } catch (err) {
       tempLabel = null;
      }
     if ( tempLabel != null && businessGroupNames.indexOf(tempLabel) == -1 ){
      businessGroupNames.push(tempLabel);
      bgcount++;
     }
    }
    

    The massive time differences by working with the methods of EntitiesFinder for BusinessGroups between FIND and GET: ~ vs 24seconds ~ 2seconds to get the same BG.

    //This is slow... but that is okay.  It ISN'T slow when the user is selecting things.
    // It is slow in post-user workflow.  If we carry the ID through for the business group
    // we can increase the speed of this through the GET section of the entities finder or via REST
    var start, finish;
    start = Date.now();
    selectedBusinessGroup = vCACCAFEEntitiesFinder.findBusinessGroups(cafeHost,mySelectedBusinessGroup)[0];
    finish = Date.now();
    System.log(selectedBusinessGroup.getName() + " Cafe Business Group was selected and found.");
    System.log("Total time to find that one BG: " + (finish-start)/1000 + " seconds ");
    
    // How fast is it with the ID?
    var tempId = selectedBusinessGroup.getId(); // let's get the id
    start = Date.now();
    var getProof = vCACCAFEEntitiesFinder.getBusinessGroup(cafeHost,tempId); // get the object again with the ID
    finish = Date.now();
    System.log ("Using Get method with ID it took " + (finish-start)/1000 + " seconds to get the BG");
    

    Keep in mind here... the form you see below came upward in 5 seconds after the start of workflow with data.

    He has a list of virtual computers and a list of groups of companies.  It is not exactly what you want to do, but provides some faster methods that you are currently using.

    For the workflow, you need to edit and link your host of coffee to the attribute.

  • Passing the Description field in workflows "request a catalog article.

    I use the workflow 'Request a catalog article' to request a catalog article that deploys a virtual machine. When I manually request here, I can fill the number of vCPUs, memory, disk, * and * a Description that will appear in the list of items vCAC that helps me identify what serves as the virtual machine.

    When you use the vRO workflow to make the request, I can pass the variables VM - i.e. supplier - VirtualMachine.CPU.Count, etc. - but I can't understand how to move in the Description. I tried the stuff to look at the variables available, but all I get is this list.

    [11:44:44.775 2015-09-30] [I] provider - Cafe.Shim.VirtualMachine.NumberOfInstances

    [11:44:44.776 2015-09-30] [I] provider - Cafe.Shim.VirtualMachine.TotalStorageSize

    [11:44:44.776 2015-09-30] [I] provider - ExternalWFStubs.MachineDisposing

    [11:44:44.776 2015-09-30] [I] provider - ExternalWFStubs.MachineDisposing.vCACHost

    [11:44:44.776 2015-09-30] [I] provider - ExternalWFStubs.MachineDisposing.vCACVm

    [11:44:44.776 2015-09-30] [I] provider - ExternalWFStubs.MachineProvisioned

    [11:44:44.776 2015-09-30] [I] provider - ExternalWFStubs.MachineProvisioned.vCACHost

    [11:44:44.776 2015-09-30] [I] provider - ExternalWFStubs.MachineProvisioned.vCACVm

    [11:44:44.776 2015-09-30] [I] provider - VirtualMachine.CPU.Count

    [11:44:44.776 2015-09-30] [I] provider - VirtualMachine.Disk0.IsClone

    [11:44:44.776 2015-09-30] [I] provider - VirtualMachine.Disk0.Size

    [11:44:44.776 2015-09-30] [I] provider - VirtualMachine.Disk0.StorageReservationPolicy

    [11:44:44.776 2015-09-30] [I] provider - VirtualMachine.LeaseDays

    [11:44:44.776 2015-09-30] [I] provider - VirtualMachine.Memory.Size

    [11:44:44.776 2015-09-30] [I] provider-blueprintId

    [11:44:44.776 2015-09-30] [I] provider-provisioningGroupId

    Any ideas on how I can refer and set the Description?

    Thank you

    Hello

    There are some special/magical/hidden properties, you can use 'always'

    See also request a catalog through ASD and Description article

    Maybe of the properties of interest to you:

    description - Description text mode application form (details)

    Cafe.Shim.VirtualMachine.Reason - reason for the request in the form of request for Information

    __Notes - description in the request for information form and vCenter Annotations, default "implemented by VMware vCAC.

    Greetz

  • Combine the vRO and vRO device Windows in a cluster

    Hi all

    After some problems with one of our 2 servers in Windwos vRO, we want to replace by vRO device.

    Is it possible to combine Windows vRO and vRO apparatus a vRO (under program F5 load balancer) cluster?

    And also, what are the disadvantages to the use of the device instead of the windows one?

    Thank you!

    Hello

    There should be no problem to combine vRO device and Windows vRO in a cluster.

    View functional-wise, camera and Windows distributions are roughly equivalent. They share the same files binary platform; the differences are mainly in the specific configuration/components (Linux vs Windows) OS.

    BTW, vRO 6.x is the latest version of the vRO server to ship with Windows Setup. From vRO 7.0, your only option to deploy the vRO server is to use the standalone vRO device or vRO grouped inside of vRA.

  • Failed to install a certificate (.p12 file). Thunderbird keeps asking me the password.

    Hello

    I'm running Thunderbird 31.5.0 on Windows 8.1. Trying to install a certificate (Options-> advanced-> Certificates-> view certificates-> import), the Certificate Manager brings me a master password (as expected), who is never accepted. No matter what I'm typing, the password prompt will appear again and so will never install the certificate. This product for .p12 as .pfx files.

    Any help would be greatly appreciated.

    Problem solved. If someone stumbles across this post, I couldn't make it work because it was not sufficiently clear that Thunderbird has been asked for the password master and not the password to import the certificate.

    If you have set a master password (recommended), you will need to enter (if you have not already in the same session) before you can import a certificate.

  • Download firefox 10, Setup asked for the user account, enter the type of w/admin myPC, firefox exit installtion (Toshiba A665/I7/windoe 7)

    My computer is Toshiba A665 w/Intel core I7 and Windows 7 installed. When I run the installer of firefox 10, he asked for the user account ID and password. I entered the name of the computer that is mine with admin enter the account and a correct password. Installation of Firefox to quit smoking. No screen / another reply?

    Hello

    Please try a right click on the downloaded file and select run as administrator.

  • HP stream 11-d010wm: I have a hard time to start the system it asks me the password for administrator password or power

    I have a hard time to start the system he asks me the password for administrator or power password which I don't have

    This is the code that I get when I entered the wrong password 3 times-(56448130) I would be grateful help

    Thank you!

    @dj_infiel95

    Enter 49520116

    Kind regards

    DP - K

  • problem with my laptop asking for the administrator password or power on password

    I have the same problem with my laptop asking for the administrator password or power on password. It is a compaq presario cq61. It happened when my hard drive failed and was not used for a long time. With the password, any help would be much appreciated. It says system turn off after a few trials with the key: 55427586

    Hello

    Try to enter: 40585508

    Kind regards

    DP - K

  • HP dv5 first recovery disc loaded, but never asked for the second

    HP Pavilion dv5t-1000, p/n KQ574AV Windows Vista 32-bit, I have a set of recovery disks that I made before I started using the machine.

    Yesterday, my laptop froze during the download of reader photos.  System rebooted to a black screen with cursor flashing at the top left.  Removed the battery & power cord; power button down for 15 seconds; restarted the computer to another black screen.  Repeated several times.

    A disk failure hard while slot guaranteed 2 years, including fixed hp.  On the keyboard Panel, the three before white lights: power light, lightening bolt not away and hard drive/array turned on & strong flashing.

    The recovering of the disks and rebooted the computer.  "Windows is loading files...". ' First disc ends, but computer never asks for the second recovery disk.  Screen changes from black to blue.

    New message: PC it is not supported by the system recovery discs.

    You will not be able to continue to recover this system with disks.

    Can someone help me please!

    Hello

    Ok.

    If you get a disc error, then it would seem more likely to be a hard drive failure.

    View the results you get on the test drive.  If your drive is failed then try to restore or recover simply will not work. A replacement hard drive will be necessary.

    You may be able to recover your data on the disk by putting it in an external enclosure and connect to another Windows PC.

  • I'm trying to get my laptop to go wireless and when they ask me the key code to my internet source, that it keeps an incompatibility

    I'm trying to get my laptop to go wireless and when they ask me the key to my internet source code it keeps incompatibility is my question were can I find the key code

    Hello

    The password is set in your router. Check with the router manufacturer as most have excellent
    online help to set a password as well as connection to the router. Also check in
    their forums (if any).

    Windows wireless and wired network connection problems
    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How can I configure my Internet XP connection so that it will automatically connect to my WiFi (wireless) without asking me the password whenever I connect?

    How can I configure my Internet XP connection so that it will automatically connect to my WiFi (wireless) without asking me the password whenever I connect?

    original title: automatic Wifi connection

    Hello

    By default, Windows XP attempts to connect to networks without wires in the following order:

    1. Available networks that are in the list of network preferred (by order of registration)
    2. Preferred networks in the list proposed (by order of registration)
    3. Other networks according to selected advanced settings

    Check out these articles and check if that helps:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/wireless_networking_overview.mspx?mfr=true

    To connect to an available wireless network

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/wlan_client_connect.mspx?mfr=true

    To set up automatic wireless network configuration

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/wlan_client_configure.mspx?mfr=true

     

    5 steps: how to set up your network wireless home

    http://www.Microsoft.com/athome/organization/wirelesssetup.aspx

  • When I open Windows live mail do not ask me the password.

    WLM does not request the password

    When I open Windows live mail do not ask me the password. Thank you

    Hello
    You can be saved the password for your direct mail. Then the opening, you will get an option to save what you were doing.
    Please open this link to clear the password:

    http://www.BU.edu/tech/desktop/support/software/troubleshooting/removing-password-from-browsers-saved-

    Kind regards
    Chauvet J.
  • Want to ask if the second pc with ssd may be authorized by the same key as magnetic

    HI.i have a desk with two internal disks.one magnetic and I a ssd.in the first 10 of an update of windows windows 7 .i want to ask if the second pc with ssd may be authorized by the same key as magnetic

    Hello

    Thanks for the reply.

    It is good to know that you have obtained the required information.

    Please do not hesitate to answer, if you have any other questions about Windows.

    Thank you

  • Problems with the installation of Windows 7 Home Premium: ask load the driver during installation

    I am currently using Windows XP Professional Version 2002 SP3 with specification of my computer as below:

    Intel Pentium D 3.40 GHz 3.39 GHz

    3.5 GB RAM

    I tried to upgrade to Windows 7 by restarting my computer and boot from the CD. Setup goes as usual, initially, he asked for the language installation during installation, and after I clicked OK, the window titled "Load driver" had appeared with his message as below;

    "To install the device driver required to access your hard drive, insert the installation media containing the driver files and then click OK."

    What are the problems really? Because I think I have all the necessary drivers and before that everything works fine. Where can I get the drivers? And how to solve this?

    Help, please. Thank you. :)

    • Disable the general USB peripherals (for example - smart card reader).
    • If you are using a SCSI drive, make sure you have the drivers available for your storage on a thumdrive device and it is connected. During the installation of Windows 10, click on the advanced custom Option and use the command load driver to load the driver for the SCSI drive. If this does not work and the installer still fails, consider switching to an IDE based hard drive.
    • If you have an external equipment, attached to the machine, unplug them (example, game controllers, USB sticks, external hard drive, printers, peripherals not essential).
  • Walking from Vista to Windows 7 system keeps asking for the product key that key is not correct.

    walking from Vista to 7 system keeps asking for the product key

    Related topics

Maybe you are looking for