@rzr Great. Thank you!
Posts
-
RE: Just FYI: current update seams to break NUT dependancies
-
RE: Just FYI: current update seams to break NUT dependancies
@rzr Just for curiosity.
As far as I understand you assess the risk as low for the nut package - and only for that - to use ci-repo. I am fine with that for my personal servers. In terms of staying as close to the stable version in order to avoid potential future upgrade issues, is there a chance to say something about:
- Would you consider to integrate this into "stable" branch?
- What would be the next steps on our side to support this?
- How long would does that roughly take?
Thank again!
-
RE: Just FYI: current update seams to break NUT dependancies
Good point.
Quick install procedure for anyone interested. I use a USB connected APC Smart-UPS 750 (SMT750RMI2U) on a completely patched test "XCP-ng 8.3" server. To install ci packages run:
yum install nut --enablerepo=xcp-ng-ciMost important, check that your USV device is properly connected and found using
lsusbit should show something like:
... Bus 002 Device 002: ID 051d:0003 American Power Conversion UPS ...Grab details then by:
lsusb -s 002:002 -vwhich should give you something like
[12:53 xcp-test ~]# lsusb -s 002:002 -v Bus 002 Device 002: ID 051d:0003 American Power Conversion UPS Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x051d American Power Conversion idProduct 0x0003 UPS bcdDevice 1.06 iManufacturer 1 American Power Conversion iProduct 2 Smart-UPS 750 FW:UPS 15.1 / ID=18 iSerial 3 SERIALXXXXXXXX bNumConfigurations 1 ... Remote Wakeup EnabledBased upon this data you can add this information to your ups.conf
nano /etc/ups/ups.conf[apc] driver = "usbhid-ups" port = "auto" vendorid = "051D" productid = "0003" product = "Smart-UPS 750 FW:UPS 15.1 / ID=18" serial = "SERIALXXXXXXXX" vendor = "American Power Conversion" bus = "002"Now add users in
nano /etc/ups/upsd.users. "upsmon" is for slave connected devices.[admin] password = PWXXXXXX actions = SET FSD instcmds = ALL upsmon master [upsmon] password = SLAVEPW upsmon slaveNow add/enable via
nano /etc/ups/upsd.confthe required lines. If you want other servers to listen, you need to listen to a non-localhost IP of course.LISTEN 127.0.0.1 3493Now enable in
nano /etc/ups/upsmon.confthe relevant line:MONITOR apc@localhost 1 admin PWXXXXXX masterNow restart services:
upsdrvctl start systemctl start nut-server.service systemctl start nut-monitor.serviceand you should be able to see the USV data by calling:
upsc apc@localhostIt should show:
battery.charge: 100 battery.charge.low: 10 battery.charge.warning: 50 battery.runtime: 3900 battery.runtime.low: 120 battery.type: PbAc battery.voltage: 27.3 battery.voltage.nominal: 24.0 device.mfr: American Power Conversion device.model: Smart-UPS 750 device.serial: SERIALXXXXX device.type: ups driver.name: usbhid-ups driver.parameter.bus: 002 driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.product: Smart-UPS 750 FW:UPS 15.1 / ID=18 driver.parameter.productid: 0003 driver.parameter.serial: SERIALXXXXX driver.parameter.synchronous: auto driver.parameter.vendor: American Power Conversion driver.parameter.vendorid: 051D driver.version: 2.8.0 driver.version.data: APC HID 0.98 driver.version.internal: 0.47 driver.version.usb: libusb-0.1 (or compat) ups.beeper.status: enabled ups.delay.shutdown: 20 ups.firmware: UPS 15.1 / ID=18 ups.mfr: American Power Conversion ups.mfr.date: 2015/08/14 ups.model: Smart-UPS 750 ups.productid: 0003 ups.serial: SERIALXXXXX ups.status: OL ups.timer.reboot: -1 ups.timer.shutdown: -1 ups.vendorid: 051dHINT#1: I experienced that the bus id of the usb device sometimes changes after reboot. Watch out if you restart the server and adapt your ups.conf accordingly!!!
HINT#2: You need to open firewall port 3493 if you want to access it from a monitor!
-
RE: Just FYI: current update seams to break NUT dependancies
@rzr: Sorry, first and foremost I totally forgot to say thank you very much. I really appreciate you work and effort for this "non-core" issue.
That said, I can say that it works on my test machines. I could successfully install and connected to a APC Smart-UPS 750 (SMT750RMI2UC) to my test server. Not a single problem whatsoever. I will now monitor it a bit and if I observe anything I will let you know.
Is there maybe anything particular you are interested in for me to test?
-
RE: Just FYI: current update seams to break NUT dependancies
Hello, sorry for not getting back earlier. I had some "other" unexpected trouble-shooting project.
Since I have never installed this type of "dev" package, I just wanted to let others know how to install (please to so on a testing server). Besides that, just run:
yum install nut --enablerepo=xcp-ng-ciThat's it. At least installation on my newly setup and completely patched test "XCP-ng 8.3" server worked like a charme:
[22:41 xcp-test ~]# yum install nut --enablerepo=xcp-ng-ci Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Excluding mirror: updates.xcp-ng.org * xcp-ng-base: mirrors.xcp-ng.org Excluding mirror: updates.xcp-ng.org * xcp-ng-ci: mirrors.xcp-ng.org Excluding mirror: updates.xcp-ng.org * xcp-ng-updates: mirrors.xcp-ng.org xcp-ng-base/signature | 473 B 00:00:00 xcp-ng-base/signature | 3.0 kB 00:00:00 !!! xcp-ng-ci/signature | 473 B 00:00:00 xcp-ng-ci/signature | 3.0 kB 00:00:00 !!! xcp-ng-updates/signature | 473 B 00:00:00 xcp-ng-updates/signature | 3.0 kB 00:00:00 !!! xcp-ng-ci/primary_db | 168 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package nut.x86_64 0:2.8.0-2.1.xcpng8.3 will be installed --> Processing Dependency: libfreeipmi.so.17()(64bit) for package: nut-2.8.0-2.1.xcpng8.3.x86_64 --> Processing Dependency: libipmimonitoring.so.6()(64bit) for package: nut-2.8.0-2.1.xcpng8.3.x86_64 --> Processing Dependency: libltdl.so.7()(64bit) for package: nut-2.8.0-2.1.xcpng8.3.x86_64 --> Processing Dependency: libupsclient.so.6()(64bit) for package: nut-2.8.0-2.1.xcpng8.3.x86_64 --> Processing Dependency: libusb-0.1.so.4()(64bit) for package: nut-2.8.0-2.1.xcpng8.3.x86_64 --> Running transaction check ---> Package freeipmi.x86_64 0:1.5.7-2.el7 will be installed ---> Package libtool-ltdl.x86_64 0:2.4.2-22.el7_3 will be installed ---> Package libusb.x86_64 1:0.1.4-3.el7 will be installed ---> Package nut-client.x86_64 0:2.8.0-2.1.xcpng8.3 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================================================================== Installing: nut x86_64 2.8.0-2.1.xcpng8.3 xcp-ng-ci 2.2 M Installing for dependencies: freeipmi x86_64 1.5.7-2.el7 xcp-ng-base 2.0 M libtool-ltdl x86_64 2.4.2-22.el7_3 xcp-ng-base 48 k libusb x86_64 1:0.1.4-3.el7 xcp-ng-base 19 k nut-client x86_64 2.8.0-2.1.xcpng8.3 xcp-ng-ci 203 k Transaction Summary ==================================================================================================================================================================================================================== Install 1 Package (+4 Dependent packages) Total download size: 4.5 M Installed size: 20 M Is this ok [y/d/N]: y Downloading packages: (1/5): libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm | 48 kB 00:00:00 (2/5): freeipmi-1.5.7-2.el7.x86_64.rpm | 2.0 MB 00:00:01 (3/5): libusb-0.1.4-3.el7.x86_64.rpm | 19 kB 00:00:00 (4/5): nut-client-2.8.0-2.1.xcpng8.3.x86_64.rpm | 203 kB 00:00:00 (5/5): nut-2.8.0-2.1.xcpng8.3.x86_64.rpm | 2.2 MB 00:00:01 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.7 MB/s | 4.5 MB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : nut-client-2.8.0-2.1.xcpng8.3.x86_64 1/5 Installing : freeipmi-1.5.7-2.el7.x86_64 2/5 Installing : libtool-ltdl-2.4.2-22.el7_3.x86_64 3/5 Installing : 1:libusb-0.1.4-3.el7.x86_64 4/5 Installing : nut-2.8.0-2.1.xcpng8.3.x86_64 5/5 Verifying : nut-2.8.0-2.1.xcpng8.3.x86_64 1/5 Verifying : 1:libusb-0.1.4-3.el7.x86_64 2/5 Verifying : libtool-ltdl-2.4.2-22.el7_3.x86_64 3/5 Verifying : freeipmi-1.5.7-2.el7.x86_64 4/5 Verifying : nut-client-2.8.0-2.1.xcpng8.3.x86_64 5/5 Installed: nut.x86_64 0:2.8.0-2.1.xcpng8.3 Dependency Installed: freeipmi.x86_64 0:1.5.7-2.el7 libtool-ltdl.x86_64 0:2.4.2-22.el7_3 libusb.x86_64 1:0.1.4-3.el7 nut-client.x86_64 0:2.8.0-2.1.xcpng8.3 Complete!I will let you know once I got some impressions.
-
RE: Just FYI: current update seams to break NUT dependancies
@rzr Hi. Thank you very much. I will be setting up a new server within the next 2 weeks and will definitely test it. Then I will give you feedback! Thank you again for picking it up!
-
RE: Just FYI: current update seams to break NUT dependancies
@FritzGerald workaround
yum update --exclude=net-snmp*This is dangerous.
@stormi Do you see any immediate threat? I am asking since it is working so far for me
-
RE: Just FYI: current update seams to break NUT dependancies
@rzr
Hi, thank you for having a look.Regarding point 1.)
As it was written by Olivier Lambert in post https://xcp-ng.org/forum/topic/10250/what-os-is-xcp-ng-8-3-based-on/8?_=1773671654080 I understand that your focus is on datacenter usage. Nevertheless I still think - and in other posts users mention it as well - there are quite a lot small non-datacenter - installations in place that use xcp-ng in small office structures using and needing an USV, since it simply essential. I love using XCP-NG and believe it would be a goodie that would make a lot small open source supporters like me very happy.Regarding point 2.)
I am always careful when interfering with "mighty" tools like hypervisors. My experience is that my knowledge is unfortunately to small to see all caveats. -
RE: Just FYI: current update seams to break NUT dependancies
yum update --exclude=net-snmp*
You made my day. Works fine and I have learned something new. Thank you for your quick help!
-
Just FYI: current update seams to break NUT dependancies
Just a short informational update. Current xcp-ng update seems to break nut dependancies.
Error: Package: nut-2.8.0-2.el7.x86_64 (@epel) Requires: libnetsnmp.so.31()(64bit) Removing: 1:net-snmp-libs-5.7.2-52.1.xcpng8.3.x86_64 (@xcp-ng-updates) libnetsnmp.so.31()(64bit) Updated By: 1:net-snmp-libs-5.9.3-8.1.xcpng8.3.x86_64 (xcp-ng-updates) ~libnetsnmp.so.40()(64bit) Available: 1:net-snmp-libs-5.7.2-33.el7_5.2.x86_64 (xcp-ng-base) libnetsnmp.so.31()(64bit) Available: 1:net-snmp-libs-5.7.2-51.1.xcpng8.3.x86_64 (xcp-ng-base) libnetsnmp.so.31()(64bit) Available: 1:net-snmp-libs-5.7.2-51.2.xcpng8.3.x86_64 (xcp-ng-base) libnetsnmp.so.31()(64bit) Available: 1:net-snmp-libs-5.7.2-51.3.xcpng8.3.x86_64 (xcp-ng-base) libnetsnmp.so.31()(64bit)Since NUT is an "external" package and everyone was warned about installing "3rd-party" packages, this is not an official xcp-ng problem. I have not yet found a workaround. Since the old repos EPEL 7 are not really updated, it could get tricky. I just wanted to let you know.
-
RE: What OS is XCP-ng 8.3 based on?
Hello everyone,
I absolutely understand the point regarding datacenters. I am using xcp-ng for years in smaller - non datacenter - environments and its great. Therefore I added the nut packages (8.2 and 8.3) and it works like a charm. It's installation is well explained in:
However, I agree with @Kajetan321 that it would be great if the nut package could be included in the standard "updated" packages repo since its added quite some benefits (imho) for "smaller" IT environments. However, I do not know how much effort it takes to maintain that.
-
RE: How to create a user with read only access to all objects in xoa for monitoring purposes
Hello everyone. I tripped over this issue. If someone got another approach I would be interested.
Thanks to @lsouai-vates I had a look at:
and
To what I understand it is not possible as a Non-Admin user to get information like pools, ... By creating a new admin user limiting the resources via ACLS with viewer right worked around this. However, granting admin rights still looks sort of strange.
Just in case someone struggled as well this information might help.
-
RE: Error: invalid HTTP header in response body
@peo
I am sorry, I must have missed your statement about the discs.Okay. We can both confirm:
- CBT based delta backups fail on some VMs, causing an iterating success / failure backup behavior.
- removing "Purge snapshot data when using CBT" flag works around it, but at the costs of additional "doubling" storage space.
- In addition only I observed, that it always and only happens to me, when there is are additional discs involves. Delta backup of VMs within the same backup job but different machines work at my place.
I will observe this during this week and then file a bug report.
-
RE: Error: invalid HTTP header in response body
@peo
Hi. Sorry for bothering you. I may have expressed in-precise in my question.For reporting a bug we need to get the most specific information possible. That helps developers to pinpoint a bug. Since I have only trouble with VMs having additional virtual discs (disc created on a local SR on the same host as the VM) attached to it, I would like to know if you have a counter example. Or in other words: Do all your VMs only have a single virtual disc?
@manilx feedback would be very interesting as well.
Thank you for your support.
-
RE: Error: invalid HTTP header in response body
@peo
Hi thank you. Your are most likely right about the backup storage overflow.Just two more questions:
- have you every experienced this problem on a VM with only one disc attached? I am asking since at my site only delta backups fail with additional discs attached.
- Is this somehow addressed as a bug or shall I officially report a bug, since now quite a few users experience this problem.
-
RE: Error: invalid HTTP header in response body
@peo Hi, thank you for your quick reply. Since I had this storage issues after disabling it, I am a little bit careful. My knowledge is really limited about CBT based backups, can you tell me, what it means in terms of storage use. To my understanding it will keep the snapshots and thereby significantly increase space usage, or do I miss something? And have you heard about whether the bug is officially known and worked on?
-
RE: Error: invalid HTTP header in response body
Hi everyone again. I pretty much got back to square one. What I can observer is, that all my VMs where I added additional disc run into the above error code. So 1 disc per VM works fine for 6 backups, the two others VMs (on with 2 disc, one with 5 discs) fail. Does CBT based delta backups only work if there is no disc attached? I really appreciate any help.
-
RE: Error: invalid HTTP header in response body
Hi everyone, just FYI. During my delta backup testing, I ran out of space on my NAS (although it should have had enough?!?). It must have created more data then I expected. Therefore I had other priorities, I removed the backups and set up new delta backups. However, thereby I could not dive into further exploring the problems.
-
RE: Error: invalid HTTP header in response body
@manilx okay. I will wait and see. Backup runs tonight.