@astrugatch you can put it into the same files like the cert itβs called a chain cert then
Posts made by vmpr
-
RE: Intermediate cert xen orchestra
-
RE: action rolling_update fails with strange error
@julien-f thanks! I have tested it and its working now! cheers Ringo
-
RE: action rolling_update fails with strange error
@julien-f happy to help let me know when you fixed it and I will test it. cheers Ringo
-
action rolling_update fails with strange error
hi everyone,
I am on the last version of XO and wanted to play around with the REST-AP. scheduling a rolling pool update but I got an error I can't figure out:
curl -X POST -b authenticationToken=XXX https://xo.xxx/rest/v0/pools/5222b44b-e25b-a14d-4da2-c7a0dd8cf59f/actions/rolling_update /rest/v0/tasks/0m1agafzh
the log says:
curl -b authenticationToken=XXX https://xo.xxx/rest/v0/tasks/0m1agafzh { "id": "0m1agafzh", "properties": { "name": "REST: rolling_update pool", "objectId": "5222b44b-e25b-a14d-4da2-c7a0dd8cf59f" }, "start": 1726820415341, "status": "failure", "updatedAt": 1726820415449, "end": 1726820415449, "result": { "message": "Cannot read properties of undefined (reading 'user')", "name": "TypeError", "stack": "TypeError: Cannot read properties of undefined (reading 'user')\n at file:///opt/xo/xo-builds/xen-orchestra-202409201003/packages/xo-server/src/xo-mixins/xen-servers.mjs:704:82\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202409201003/@vates/task/index.js:169:41)\n at Task.run (/opt/xo/xo-builds/xen-orchestra-202409201003/@vates/task/index.js:153:31)\n at XenServers.rollingPoolUpdate (file:///opt/xo/xo-builds/xen-orchestra-202409201003/packages/xo-server/src/xo-mixins/xen-servers.mjs:703:16)\n at rolling_update (file:///opt/xo/xo-builds/xen-orchestra-202409201003/packages/xo-server/src/xo-mixins/rest-api.mjs:634:11)\n at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202409201003/@vates/task/index.js:169:22)\n at Task.run (/opt/xo/xo-builds/xen-orchestra-202409201003/@vates/task/index.js:153:20)" } }
Do you have any idea what the problem is here?
If I start the update via XO everything works without errors.
thanks and have a great day!
cheers Ringo -
RE: VM Graceful shutdown using apc network shutdown
@Studmuffn1134 No we shutdown virtual machines first and xcp-ng servers last.
Puppet is a config-mgmt tool so you don't have to install apcupsd on every machine manually, it can automates stuff like that.
what do you use as nfs storage? normally you can configure to a shared network storage device that it talks to the smart-ups and shuts it self down before its running out of powercheers Ringo
-
RE: VM Graceful shutdown using apc network shutdown
We installed apcupsd in every virtual machine with puppet and shut down test/dev systems early and important systems later. XCP-ng servers also got it installed and shutdown last.
-
xoa api SR space usage
hi team,
we were wondering, is it possible to get the usage of the SRs of a pool from the xoa API so we could monitor it?
also is there a list somewhere online of what information we can get from the xoa API at the moment? I don't want to bother you with my questions all the time, easier to check what's possiblecheers, Ringo
-
RE: XOA REST API create snapshot
@julien-f @olivierlambert thanks guys I will wait until the end of the month you rock!
-
XOA REST API create snapshot
hi team, thanks for your excellent work! we love xcp-ng and xoa
I've written an ansible playbook to update our virtual machines and I would like to trigger a snapshot of the VM bevor I start the automatic update. is there a way to trigger that snapshot through the rest API? I've searched a bit in documentation and the forum but couldn't find something
cheers Ringo -
RE: xoa token expire date - how can i set it to an later date?
Thanks guys! Absolut Legends
-
RE: xoa token expire date - how can i set it to an later date?
@julien-f thanks for the answer! this will get overwritten with every xo source update right? how about a licensed xoa? cheers Ringo
-
xoa token expire date - how can i set it to an later date?
Hi Team,
i want to use the xoa api to monitor if i have old or too many snapshots connected to an VM, thank you for implementing the feature to your API that it is possible now. I check it via icinga and need an token which expires in 5 years or something and not after a month. when I try to create a user in the webfrontend admin user with a date 5 years or 11 month from now, it logs an error with:too high expiresIn duration: 1956120152841
I also tried to create the user via cli:
#create timestamp for 5 years from now: date +%s -d "5 year" 1831359954 #create user token xo-cli --createToken --allowUnauthorized --expiresIn 1831359954 localhost admin@admin.net Authentication token created 7kkiyVwzgISlOTO2LozsjtVTDPHG71lvqHEtYeSRQf0
but the expiration date of the token is only 30 days from now.
I dont want to create a new token every 30 days and reconfigure our icinga monitoring system to work with a new token, so can you please tell me how I can create a tekoen with higher age and maybe put it into the documentation, i was able to find the "--expiresIn" parameter but no info what you should put in there
cheers guys! Ringo
-
RE: search for snapshots sorted by creation date
@Steve_Sibilia hey, what icinga check are you using for snapshots? do you have any xcp-ng related icinga checks running?
-
RE: XO reports wrong number of backups
@julien-f that also fixed my issue, cheers!
-
search for snapshots sorted by creation date
Hi everyone, I am looking for a way to find snapshots in my pool that are pretty old so I can remove them. finding the "type" snapshot is not complicated but seeing the creation date and sorting them by that is my actual problem, is there a way for that?
cheers Ringo -
RE: Hub Template Debian 11 cloud init network configuration
@fohdeesha thanks for the information, I've added the following to my cloud-init template:
runcmd: # disable dhcp for eth0 - [ sh, -c, sed -e '/iface eth0 inet dhcp/s/^/#/g' -i /etc/network/interfaces ]
at the end of the installation I have a reboot of the machine anyway so I don't restart the network in between:
power_state: delay: "+2" # minutes mode: reboot message: rebooting system after cloud-init configurations are finished timeout: 120 # seconds
cheers and keep up the good work!
Ringo -
Hub Template Debian 11 cloud init network configuration
Hi Team! thanks for your great work
I have a question regarding the debian11 hub cloud-init template. maybe @fohdeesha is the right person?I am using this network configuration for deployment:
network: version: 1 config: - type: physical name: eth0 subnets: - type: static address: 172.16.232.93/26 gateway: 172.16.232.65 dns_nameservers: - 172.16.232.65 dns_search: - xx.xxxxxx.xx
The Machine boots and gets an IP from DHCP and installs how it should, but it never changes to the configured IP address until I reboot the machine, but then it comes up with two IP-addresses:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether aa:90:ca:c4:15:c2 brd ff:ff:ff:ff:ff:ff inet 172.16.232.93/26 brd 172.16.232.127 scope global eth0 valid_lft forever preferred_lft forever inet 172.16.232.121/26 brd 172.16.232.127 scope global secondary dynamic eth0 valid_lft 541041sec preferred_lft 541041sec inet6 fe80::a890:caff:fec4:15c2/64 scope link valid_lft forever preferred_lft forever
the one I configured with the YAML and also the DHCP IP address from the first boot.
I can see these configurations:
cloud-init network configuration file from YAML configroot@XXX:~ cat /etc/network/interfaces.d/50-cloud-init # This file is generated from information provided by the datasource. Changes # to it will not persist across an instance reboot. To disable cloud-init's # network configuration capabilities, write a file # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: # network: {config: disabled} auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 172.16.232.93/26 dns-nameservers 172.16.232.65 dns-search qa.oneserv.de gateway 172.16.232.65
Debian standard network config file with DHCP enabled:
root@XXX:~ cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet dhcp
Does anyone know what I have to do to get rid off the DHCP assigned IP address and how I can apply the configured network config instantly without having the DHCP assigned one or without rebooting after the installation?
And what is the default user password for the debian or root user? i deploy keys so I can access the machine normally but if I have problems with network or sshd then I would like to login via xoa-console but don't have a pw
cheers, Ringo
-
RE: New Smart Backup failure
great job guys on a saturday! I am just updating my xo but your response times are great, keep up the good work!
-
RE: New Smart Backup failure
I've got the same error for a delta job since the 11th of March. cheers Ringo