5 Essential Tips for Maximizing Your Experience at Nutanix .NEXT for Bloggers
We have an issue with backup snapshots getting stuck on our cluster, and of the many ways we use to find these, one of them is running the command:nuclei vm_recovery_point.listI was hoping to start down the path of automating the discovery of these recovery points using Ansible. However when we run the nuclei command via Ansible, we get this error: "E0724 14:10:07.661153Z 15562 jwt.go:82] ZK session is nil", "2023/07/24 10:10:07 Failed to connect to the server: websocket.Dial ws://127.0.0.1:9444/icli: bad status: 403"I think this means that nuclei calls the localhost websocket on the CVM, but Ansible interprets that as a call to the server I’m running ansible from (ie the ‘controller’ server), and not the CVM I’m remotely connected to.Does anyone have any advice on how to handle this? I’ve also looked at API calls, but can’t find any that give me the same info.
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
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.