Uh oh!
There was an error while loading. Please reload this page.
packaging: use libuuid x86_64 package for cloudstack-common - #2706
Conversation
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
blueorangutan
commented
Jun 11, 2018
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jun 11, 2018
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2115 |
yadvr
commented
Jun 11, 2018
Closing this, the built package still tries to install the following: /cc @DaanHoogland |
rafaelweingartner
commented
Jun 11, 2018
@rhtyd you should force ``glibc` to use the 64 bits package, then I guess it should fix this problem. |
yadvr
commented
Jun 11, 2018
@rafaelweingartner I'm not sure how to force that, if needed I'll relook at this tomorrow in case @DaanHoogland@PaulAngus requires my assistance. This certainly is not a huge issue, we can do in 4.11.2.0. |
rafaelweingartner
commented
Jun 11, 2018
Something like |
DaanHoogland
commented
Jun 11, 2018
Rohit, i just did a test with the packages from this PR. the host has libuuid.x86_64 2.23.2-43.el7_4.2 installed, so that is fine |
blueorangutan
commented
Jun 11, 2018
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
DaanHoogland
commented
Jun 11, 2018
just double checked: the host also has both versions installed (without conflict) |
blueorangutan
commented
Jun 11, 2018
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2116 |
DaanHoogland
commented
Jun 12, 2018
@blueorangutan package |
blueorangutan
commented
Jun 12, 2018
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jun 12, 2018
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2118 |
DaanHoogland
commented
Jun 13, 2018
@blueorangutan package |
blueorangutan
commented
Jun 13, 2018
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jun 13, 2018
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2120 |
DaanHoogland
commented
Jun 13, 2018
@blueorangutan package |
blueorangutan
commented
Jun 13, 2018
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jun 13, 2018
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2121 |
wido
commented
Jun 13, 2018
I'm not so much of a RPM expert and I don't know what the exclude here does. Why are we playing with .so files in a spec file while a RPM should handle this for us? |
@wido you are not. I forgot about that, sorry. |
DaanHoogland
commented
Jun 13, 2018
@blueorangutan test |
blueorangutan
commented
Jun 13, 2018
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Jun 13, 2018
Trillian test result (tid-2756)
|
wido
commented
Jun 14, 2018
Looks good to me removing those old 32-bit things from the SSVM template :) |
| apt-get update | ||
| ${apt_get} install links:i386 libuuid1:i386 libc6:i386 | ||
| fi | ||
| ${apt_get} install links |
There was a problem hiding this comment.
The vhd-util we bundle with systemvm.iso/cloudstack is used by ssvm, and needs the i386 libs:
ldd ./scripts/vm/hypervisor/xenserver/vhd-util
linux-gate.so.1 => (0xf7f23000)
libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xf7edb000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7d05000)
/lib/ld-linux.so.2 (0xf7f25000)
There was a problem hiding this comment.
Does it need the 32 bits library? Or, is it a matter of creating a symbolic link to the files of the 64 bits library?
There was a problem hiding this comment.
Yes, see the ldd output. Either we'll need libuuid:i386 or rebuild/ship a 64-bit vhd-util binary.
There was a problem hiding this comment.
I mean, can't we simply do the following?
mkdir /lib/x86_64-linux-gnu/
ln -s /lib/x86_64-linux-gnu/libuuid.so.1 /lib/i386-linux-gnu/libuuid.so.1
ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib/i386-linux-gnu/libc.so.6
The libraries are already in the 64bits system when we install the "links" for 64bits. The problem is that they are in a different path.
If we create the symbolic links, we would have the following then:
root@debian:~# ls -lah /lib/i386-linux-gnu/
lrwxrwxrwx 1 root root 31 Jun 14 08:25 libc.so.6 -> /lib/x86_64-linux-gnu/libc.so.6
lrwxrwxrwx 1 root root 34 Jun 14 08:24 libuuid.so.1 -> /lib/x86_64-linux-gnu/libuuid.so.1
Would this work?
There was a problem hiding this comment.
@rhtyd if we have the proper version to rebuild that would be best. In any way teh cloudstack-common package doesn't need it, only the systemvm template.
we can either
- ammend the commit that removes the 32 dependencies to allow for glibc and libuuid, or
- rebuild vhdutil
What ever is easiest will do for this release, i think
There was a problem hiding this comment.
@DaanHoogland I can try to build vhd-util x86_64 binary for linux, but we can do that for the future 4.11.2.0 release. The easiest would be to continue to install the 32bit dependencies in systemvm like we've done in the current 4.11.1 systemvmtemplate.
There was a problem hiding this comment.
@DaanHoogland Based on the last comment, can you remove the changes to the systemvm template build script? Once we have the 64-bit vhd-util we can remove the changes from this file.
There was a problem hiding this comment.
will do, and then of course test if this fixes the centos7 dependencies at least.
DaanHoogland
commented
Jun 18, 2018
@blueorangutan package |
blueorangutan
commented
Jun 18, 2018
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
| apt-get autoclean | ||
| #32 bit architecture support:: not required for 32 bit template | ||
| ${apt_get} install links |
There was a problem hiding this comment.
For 64-bit binaries, this may be moved to lines up like line 60-73. I'm not sure where links is used at all (perhaps for debugging purposes).
blueorangutan
commented
Jun 18, 2018
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2126 |
DaanHoogland
commented
Jun 18, 2018
@blueorangutan test |
blueorangutan
commented
Jun 18, 2018
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Jun 18, 2018
Trillian test result (tid-2761)
|
yadvr
commented
Jun 19, 2018
@PaulAngus@DaanHoogland this is ready for merge once the cloudstack-common rpm is verified to not install the libuuid i386 dependency. |
blueorangutan
commented
Jun 19, 2018
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jun 19, 2018
Packaging result: ✖centos6 ✔centos7 ✖debian. JID-2135 |
This forces the rpm cloudstack-common package to install libuuid x86_64 pkg instead of the i686 package.

Types of changes
GitHub Issue/PRs
How Has This Been Tested?
Checklist:
Testing
@blueorangutan package