Provisioning and Orchestration Across Multicloud
Most replies
Or, “How does the ‘Check Login’ step actually work?”I consistently get a TLS error on any attempt to connect to the new VM from CALM. Every time. This is a blocker for me, as I can’t do much to the VMs during provisioning without this connectivity, and I can’t/shouldn’t do everything in the cloud-init step. I am able to ssh into the new VMs successfully using the same credentials, so I know that the credential is correct, but I don’t think the credential is the issue - the error is happening before the system tries to use it. The screenshots below are from two different blueprint deployments.Script execution has failed with error: tls: first record does not look like a tls handshake.Could not connect to the service running at 1.2.3.4.From a higher level, how does CALM initiate the connection to the new VM when starting the “check login” step? The TLS handshake issue implies a mismatch of HTTP/S protocols, and/or mismatched TLS 1.1/1.2/etc versions. But this is supposed to be an SSH co
Hi, I was successful on setting up prism central on the community edition all working good. Further i extended the cluster capability by enabling Calm. I am able to access the calm UI and see all the functions available. As a next step i tried to deploy hycu blueprint from market place also tried to deploy one VM from my on disk image. Both get failed with below error. Please help. HTTPConnectionPool(host='172.16.xx.xx', port=4120): Max retries exceeded with url: /api/1/entities/get_by_name?name=Application-hycu--74b677a5-5cd9-4c49-9cb4-196e2d5e3be4 (Caused by ProtocolError('Connection aborted.', BadStatusLine("''",))) Regards, Aravind
I am looking for a way to protect the VMs that I’ve stood in as Applications in Calm/Self Service from accidental deletion (mostly by me). I don’t see a way to do this in any areas of Prism or Calm, and I don’t see anything in the Policy Manager docs that would address it, either. Is there any kind of pattern or feature for this? Thanks
Hi all!This might not be a Nutanix Calm specific problem, but since I’m experiencing the problem within Calm I’m posting a question here (as well). :)I'm grabbing a VM definition using GET https://${PCHostAddress}:9440/api/nutanix/v3/vms/$VMUUID. I convert the payload to an object using ConvertFrom-Json, manipulate it using .Remove() to remove the Status section (among other things), and convert it back to JSON with ConvertTo-Json.When I send the modified payload back using PUT https://${PCHostAddress}:9440/api/nutanix/v3/vms/$VMUUID, I get a "(400) Bad Request." Thinking I screwed something up when modifying the payload, I removed the part of the code that changes the object but still got the same error, even though I'm "just" converting the unmodified payload from and to JSON.Sending back the payload without converting from and to JSON results in a "(422) UNPROCESSABLE ENTITY”, as it should.In this case the -Depth parameter isn't the culprit as far as I can tell (I've added -Depth 10
In my blueprint, I need to execute a command on Prism Central VM. The command will be a script on Prism Central VM. My blueprint uses the existing Prism Central VM as the substrate. I tried different ways to execute the command but none of them worked. Could you please advise how I could do it? The script I need to run doesn’t have an API counterpart. I can run PC API from the blueprint without problems. Here are the different ways I tried and how they failed.# SSH EndpointPCSSHEndpoint = Endpoint.Linux.ip( ["@@{calm_pc_ip}@@"], name="PC_SSH_Endpoint", port=22, cred=SSHCredential,)# ============================================================================# METHOD 1: SSH Endpoint with Target Reference# ============================================================================class Method1_SSHEndpointService(Service): """ Method 1: Using SSH endpoint with explicit target reference Pros: Proper SSH connection setup Cons: Failed with "Machine and credential
I would like to create variables that are reusable in blueprints - things like package store URI, proxy URL, etc. I don’t think it makes sense to define these in every blueprint, as they’re identical; we want to keep that kind of thing DRY.The docs state that Variable Types defined in the Library are reusable across blueprints. But if I define MY_VAR as a new Variable Type with a value, it has no value when expanded in a blueprint script as @@{MY_VAR}@@. What is the trick to defining these vars at the Library level and using them in Blueprints? Thanks!
Hi all!In an attempt to solve a problem with “round-tripping” JSON I’ve concluded that the only fix is to use PowerShell 7 since the ConvertTo-Json cmdlet in version 7 allows me to escape the troublesome characters.This solution might just be me robbing Peter to pay Paul though as I now face the issue of getting Calm to use PowerShell 7 instead of the default 5.1 (a.k.a. Windows PowerShell).I’ve gone so far to set the default PowerShell remote endpoint (windows.powershell) to point to PSH 7, which works if I do a traditional Enter-PSSession but not if I execute a PowerShell script in a Calm runbook.Which leads up to the title of this topic, how does Calm execute PowerShell on an endpoint?Since it’s using port 5985 it should be WinRM/WSMAN/remote PowerShell, but it completely ignores the fact that the default PSH remote endpoint is pointing to PSH 7.Is it using another endpoint? Or is it not using WinRM after all?
Hello, I'm curious if anyone else has had issue getting Windows authentication with WS-man setup within CALM for the Login Check and remote execution of scripts. I have followed the docs and redone the setup a few times for validation, but the login check still fails with a vague error that just says to check out WINRM troubleshooting help. What's odd is that after I provision the Windows image, I can manually invoke commands for remote execution and login with the following command against the newly provisioned IP: PS C:\Users\Administrator> Invoke-Command -ComputerName 10.32.4.246 -ScriptBlock { $PSVersionTable.PSversion } -Credential administrator@domain.com My Karan service is installed and configured with a domain administrator, all PS commands in the document have been run as "administrator" on the Karan server and the target base Windows image as required. CredSSP has been run on the Karan server to allow all hosts as Trusted Hosts and the command to enable Cre
Hi everyone, I am trying to figure out a way to import projects into Prism. I got stuck when I read there is a limit for projects number based on the environment, with a maximum of 500 projects. Is there a way to have more than 500, specifically almost a 1000 and will probably be growing? Any advice here will be appreciated!
I need to define a NIC for my windows substrate as a variable.current workflow:User selects subnet string from predefined variable >Pre-Create Parses and sets the subnet variable to the json from previous step. The NIC can be connected toone of n(x) subnets that are defined in the following escript:subnet1 = { "name": "name", "uuid": "redacted_uuid" }subnet2 = { "name": "name", "uuid": "redacted_uuid" }subnet3 = { "name": "name", "uuid": "redacted_uuid" }subnets = { "Preprod": subnet1, "Preprod": subnet2, "Prod-IaaS": subnet3 }print("{}".format(json.dumps(subnets.get("@@{appSubnet}@@"))))Output: @@{setSubnet}@@Profile Configuration: This is where it breaks:
I know in Calm you can create variables in the service, and then use those variables throughout the config using @@{service.variable}@@. However, it doesn't seem like you can use those in cloud-init scripts. I'd like to be able to pass a variable that the user sets at the time of deployment (the IP address), which would then be used in the cloud-init script. I've tried something like this, to no avail: code:#cloud-confighostname: HAProxy1fqdn: HAProxy1.domain.comssh_pwauth: yeswrite_files: - path: /etc/sysconfig/network-scripts/ifcfg-eth0 content: | DEVICE=eth0 BOOTPROTO="none" IPADDR="@@{HAProxy1.IP_Address}@@" PREFIX="24" GATEWAY="172.25.51.254" DOMAIN="VIPCUSTOMERS.COM VTINFO.COM" DEFROUTE="yes" ONBOOT="yes" DNS1="172.25.51.10" DNS2="172.25.51.2" IPV4_FAILURE_FATAL="yes" IPV6INIT="no"runcmd: - [ifdown, eth0] - [ifup, eth0] Where HAProxy1.IP_Address is a user defined variable. Any thoughts on how I might a
I want to build a blueprint that provisions a CentOS8 VM. I have added a CentOS8 disk to the Catalog Items list in Prism Central. When I go to build/edit my blueprints in Calm/Self Service, the disk does not show up as an option in the Disks configuration field. How do i enable a disk image from the Catalog Items to be available in Calm blueprints?Thanks!
I have been relatively successful using a blueprint to define all the tasks and installations to create a solid VM. I now want to bake this VM into an image, so it has all those tasks already performed on it. I tried creating a VM template, but when i launch an instance from it, it has no Dynamic IP assigned. What is, or can someone point me to, the best practice/standard pattern for building a catalog of images with various apps and tasks pre-baked-in, so we don’t have to apply their installation every time?thanks!
I deployed a Nutanix Cluster (AOS version 5.8) with ESXi 6.5. And I deployed a Prism Central 5.8 on it. There're some articles on internet, saying App Management supports ESXi, starting from PrismCentral version 5.7. Is it true? In my case, I can't find Self Service & Apps from the pull-down list, when I click question mark icon in the main menu on PrismCentral 5.8. I did see "PC Scale out", "Enable app management" and "Microsegmentation", but not "Self Service & Apps". When I click "Enable app management", I see the following error. Precheck failures: Host Cluster Registered Please check that the cluster on which this Prism Central is hosted is registered to it. I had already registered my Nutanix cluster into this PrismCentral. It looks to me that App management or self service doesn't support ESXi, correct? Or is there anything I missed?
Hi.I’ve verified with this post and this post that I’m sending the parameters correctly and that the variables in my runbook are set to Runtime. I’m also doing a POST call but I still get an internal server error with the message "'NoneType' object has no attribute 'get'".Here’s the body of my call:{ "spec": { "args": [ { "name": "email", "value": "mema@tlke.se" }, { "name": "displayName", "value": "Mom MEmem" }, { "name": "userName", "value": "momemom" }, { "name": "accountName", "value": "MAM, MSM 1" }, { "name": "ticketID", "value": "794" } ] } } } }The runbook has multiple tasks, does that change how I send arguments to it?Thanks.
Hi all.I’ve been searching all over the Internet, and the Nutanix documentation, to figure out how to pass variables from one task in a runbook to the next. I know that I need to print it to the console in the format “statusMessage = ‘This is the status message’” but so far I’ve tried with Write-Host, Write-Output, and Write without any luck.I’ve also tried using both @@{statusMessage}@@ and @@{Task1.statusMessage}@@ in the next step without any difference.How am I supposed to do this, and why isn’t it properly documented?Thanks.
HiA customer has asked me to deploy nutanix secure snapshots. So to deploy that feature I have to use “approval policies” wich at the same time requests calm or self-service…This customer only has this licensing:NCI Pro + Advanced Replication add-on (he is using metro-sync) NUS ProIm not able to find if he has enought licensing level to deploy calm or self-service. Can you please help me?thanks
Hi, I have a Blueprint with two VM (Names: APACHE and MYSQL) and would like to put on both servers an entry into /etc/hosts as "ip - hostname" I put on every package the following commands: echo "@@{APACHE.address}@@ @@{APACHE.name}@@ @@{APACHE.name}@@.localdomain" >> /etc/hosts echo "@@{MYSQL.address}@@ @@{MYSQL.name}@@ @@{MYSQL.name}@@.localdomain" >> /etc/hosts But I get the following errors: Application Profile Default > Action Create Found cycles in tasks Application Profile Default > Action Delete Found cycles in tasks Application Profile Default > Action Soft Delete Found cycles in tasks Deployment 6b297d3c_deployment > Action Create Found cycles in tasks Deployment 6b297d3c_deployment > Action Delete Found cycles in tasks Deployment 6b297d3c_deployment > Action Soft Delete Found cycles in tasks How can I assign variables between servers? thanks!
HeyIn Calm (Script that I have in old lab, AOS v6.5) My script (part in blueprint) use REST API and ip is used as localhost: Now, In self-Service not accepted localhost (security reasoning).In Self-Service Administration and Operations Guide I see some script that use @@{pc_ip}@@ but this is not real variable.Is there any alternative to get the Prism Central IP and use it in my script? since I use the same script in many PC, It not good practice to hard coded the IP..alternatively: is there a way to get the cluster list (instead use API)? Thanks
What are the design considerations when deciding between Default and Self-service storage containers for database workloads in Nutanix? for Nutanix Database Management and Automation
Hi.I’m the first to admit that I read the documentation for Calm a bit too quickly and didn’t really reflect on the meaning of “The Prism Central in which Nutanix Calm is running is registered with the same cluster.” and “Nutanix Calm is supported only on AHV and ESXi hypervisors on a Nutanix cluster.”After trying and failing to run this on an existing VMware cluster, that the Prism Central/Calm installation doesn’t own, I re-read the documentation and realized that I’d glossed over the actual requirements.I mention this to clarify that this isn’t a post about unclear documentation or incorrect requirements. I goofed, as simple as that. :)What I do want to know though is why these requirements exist. I have talked to my contacts at Nutanix and I so far I haven’t got a proper answer to this question.Can anyone please explain, in detail, why I can’t run Calm on an arbitrary VM?
Hi,My challenge is to verify a user’s input before she clicks ‘execute’ For example: I’ve created a variable named MyNumber with Data type = integerI want to verify that the provided value should not be higher than 3Using input type as Escript, I’ve tried:if @@{MyNumber}@@ > 3: print(3)But when executing the runbook I get the warning that I have a cyclic dependency and the input is not available.Is there a way to achieve this input verification?Thanks
Hi!I need help wrapping my head around how the while loop in Calm works. The documentation is unfortunately not helpful at all. :/The first thing I can’t understand is why a while loop has a fixed number of iterations. This to me is a for loop. A while loop runs while a condition isn’t met.The second thing that’s confusing is the exit condition that I can set to Success, Failure, or Don’t Care. I guess that Don’t Care turns the while loop into an actual for loop?The Success or Failure condition is as far as I can tell completely out of my hands as this is based on the result of the execution of the task(s) within the loop and not a parameter I control. Do I have to fail a task on purpose to keep the loop going if I choose Success as my exit condition?What happens if I have multiple tasks in the loop, do all tasks need to fail or succeed for the exit condition to trigger?Is it possible at all to set a parameter in one of my scripts and then use that as an exit condition?Thanks.
Hi,I used calm vm 3.7.2.2, it worked fine for a couple of days but now I receive error when deploy a blueprint and also when I tried to delete or soft delete the existing one.Nothing logged.
Hi everyone,I’m currently working on a use case in Nutanix Prism Central and would appreciate your guidance.**Requirements:*** Assign a dedicated VM to each user.* When a user logs into Prism Central via an IAM Windows Server link (SSO), the VM assigned to that user should automatically power on.* When the user logs out, the VM should automatically power off (or shut down gracefully).**Questions:**1. Is there any built-in feature in Prism Central or Nutanix IAM that supports this kind of user-to-VM assignment with automatic power control?2. Can this be achieved using Nutanix Calm, Runbooks, or automation policies?3. What is the recommended way to trigger actions based on user login/logout events (e.g., via audit logs, webhooks, or IAM integration)?4. Are there any best practices for mapping users to VMs (e.g., using categories or tags)?If anyone has implemented a similar solution or can suggest an approach, I'd really appreciate your input.Thanks in advance!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.