Packages libguestfs0 python-guestfs >=1.20

Bug #1397014 reported by Stanislav Makar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
High
Albert Syriy

Bug Description

Packages libguestfs0 python-guestfs >=1.20 are needed for ubuntu 12.04
There are 1.14 in original ubuntu repo but absent in our mirrors

related to https://bugs.launchpad.net/fuel/+bug/1335697

Albert Syriy (asyriy)
Changed in fuel:
assignee: MOS Linux (mos-linux) → asyriy (asyriy)
Stanislav Makar (smakar)
description: updated
Revision history for this message
Albert Syriy (asyriy) wrote :

The current libguestfs version is 1.14, the packages what are absent in the our repo are taken from upstream.
Will try to backport the newer version from trusty to precise.

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package libguestfs has been built for project packages/precise/libguestfs
Package version == , package release ==

Changeset: https://review.fuel-infra.org/1079
project: packages/precise/libguestfs
branch: master
author: Albert Syriy
committer: Albert Syriy
subject: The libguestfs for precise (from trusty), bugfix LP#1397014
status: patchset-created

Files placed on repository:
erlang-guestfs_1.14.8-1_amd64.deb
guestfish_1.14.8-1_amd64.deb
guestfsd_1.14.8-1_amd64.deb
guestmount_1.14.8-1_amd64.deb
libguestfs-dev_1.14.8-1_amd64.deb
libguestfs-doc_1.14.8-1_all.deb
libguestfs-java_1.14.8-1_amd64.deb
libguestfs-ocaml-dev_1.14.8-1_amd64.deb
libguestfs-ocaml_1.14.8-1_amd64.deb
libguestfs-perl_1.14.8-1_amd64.deb
libguestfs-tools_1.14.8-1_amd64.deb
libguestfs0-dbg_1.14.8-1_amd64.deb
libguestfs0_1.14.8-1_amd64.deb
python-guestfs_1.14.8-1_amd64.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: /ubuntu-fuel-master-1079/ubuntu

Revision history for this message
Albert Syriy (asyriy) wrote :

Status:
The last attempt to build libguestfs v 1.22 failed with the error messages:
----Start the quotation------
[ 133s] checking that /usr/bin/qemu-system-x86_64 -help works... yes
[ 133s] checking that /usr/bin/qemu-system-x86_64 -version works... yes
[ 133s] checking for /usr/bin/qemu-system-x86_64 version >= 1... no
[ 133s] configure: error: in `/usr/src/packages/BUILD/debian/build-default':
[ 133s] configure: error: /usr/bin/qemu-system-x86_64 version must be >= 1.0.
--------End the quotation----
(Please see for the details http://osci-jenkins.srt.mirantis.net:8080/job/f-i-build-deb-deps-request/185/artifact/buildlog.txt)

The Ubuntu 12.40 has the qemu-system-x86_64 version 1.0
--- See the quotation ----
# /usr/bin/qemu-system-x86_64 --version
QEMU emulator version 1.0 (qemu-kvm-1.0), Copyright (c) 2003-2008 Fabrice Bellard
-------
The obstacle could be resolved.

The last chance is to try build the libguestfs-1.20 with Ubuntu 12.04
The other option is to migrate to Ubuntu 14.

Revision history for this message
Albert Syriy (asyriy) wrote :

Sorry, for the typo ^^^^ The obstacle could not be resolved.

Revision history for this message
Albert Syriy (asyriy) wrote :

The build libguestfs v1.20 failed as well . See the link for details

http://osci-jenkins.srt.mirantis.net:8080/job/f-i-build-deb-deps-request/188/artifact/buildlog.txt

Revision history for this message
Albert Syriy (asyriy) wrote :

Tha attempt to build the libguestfs-1.20 has failed with the error message
----
configure: error: /usr/bin/qemu-system-x86_64 version must be >= 1.0.
----
See the link for details:
https://review.fuel-infra.org/#/c/1098/

Summary:
The libguestfs >= 1.20 couldn't be build due to the requirement qemu-system-x86_64 version must be >=1.0.
The actual qemu-system-x86_64 version is 1.0 (Ubunt 12.04).

The only option to have libguestfs >= 1.20 is to migrate to Ubuntu 14.

Changed in fuel:
status: Confirmed → Won't Fix
Revision history for this message
Stanislav Makar (smakar) wrote :

Looks like we are building qemu-system and qemu-system-x86 version 2.0.0
Info from node below:

root@node-1:~# apt-cache policy qemu-system qemu-system-x86
qemu-system:
  Installed: (none)
  Candidate: 2.0.0+dfsg-2ubuntu1.1
  Version table:
     2.0.0+dfsg-2ubuntu1.1 0
        500 http://10.108.0.2/2014.2-6.0/ubuntu/x86_64/ precise/main amd64 Packages
qemu-system-x86:
  Installed: (none)
  Candidate: 2.0.0+dfsg-2ubuntu1.1
  Version table:
     2.0.0+dfsg-2ubuntu1.1 0
        500 http://10.108.0.2/2014.2-6.0/ubuntu/x86_64/ precise/main amd64 Packages

Albert Syriy (asyriy)
Changed in fuel:
status: Won't Fix → In Progress
Revision history for this message
Albert Syriy (asyriy) wrote :

Actually the qemu-system-x86 was upgraded up to the version 2.0 on the deployed by Fuel Ubuntu tenants.

The obstacle with qemu-system-x86_64 verstion required >1.0 during building libguestfs could be resolved by installing the custom qemu package v 2.0 from the repository on the build machine.

Changed in fuel:
assignee: asyriy (asyriy) → Fuel OSCI Team (fuel-osci)
Revision history for this message
Albert Syriy (asyriy) wrote :

Could someone from OSCI team installed qemu-2.0 from our repository to build on the Build machine to build the submitted libguestfs package ?
Please help.

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package libguestfs has been built for project packages/precise/libguestfs
Package version == , package release ==

Changeset: https://review.fuel-infra.org/1139
project: packages/precise/libguestfs
branch: master
author: Artem Silenkov
committer: Artem Silenkov
subject: - try to fix LP#1397014
status: patchset-created

Files placed on repository:
erlang-guestfs_1.18.11-1_amd64.deb
guestfish_1.18.11-1_amd64.deb
guestfsd_1.18.11-1_amd64.deb
guestmount_1.18.11-1_amd64.deb
libguestfs-dev_1.18.11-1_amd64.deb
libguestfs-java_1.18.11-1_amd64.deb
libguestfs-ocaml-dev_1.18.11-1_amd64.deb
libguestfs-ocaml_1.18.11-1_amd64.deb
libguestfs-perl_1.18.11-1_amd64.deb
libguestfs-tools_1.18.11-1_amd64.deb
libguestfs0-dbg_1.18.11-1_amd64.deb
libguestfs0_1.18.11-1_amd64.deb
python-guestfs_1.18.11-1_amd64.deb
ruby-guestfs_1.18.11-1_amd64.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: /ubuntu-fuel-master-1139/ubuntu

Revision history for this message
Artem Silenkov (asilenkov) wrote :

The problem is a little bit complicated.
libguestfs <1.26 can't be compiled with qemu >2 because of broken autodetection of QEMU version during configure. We have QEMU >2 available but broken libguestf can't detect it. So we need either fix libguestfs <1.26 or use libguestfs>=1.26.

As far as I could understand the root of problem, version 1.18 is able to fix bug needed. So let's try to stick with it first.

Revision history for this message
Igor Gnatenko (i-gnatenko-brain) wrote :

https://lists.gnu.org/archive/html/qemu-devel/2014-10/msg01889.html
> Libguestfs can now be built with qemu 2.x.

I think we should use >=1.28

Revision history for this message
Igor Gnatenko (i-gnatenko-brain) wrote :
Revision history for this message
Albert Syriy (asyriy) wrote :

I made the commit for building libguestfs 1.28.
https://review.fuel-infra.org/#/c/1098/,

The console output is
http://osci-jenkins.srt.mirantis.net:8080/job/f-i-build-deb-deps-request/195/consoleText

There is unmet dependencies:
------------- Start the quotation ------------
+ [[ unresolvable != \s\u\c\c\e\e\d\e\d ]]
+ [[ -z nothing provides supermin &gt;= 5, nothing provides libaugeas-dev &gt;= 1.0.0, nothing provides libsystemd-dev | libsystemd-journal-dev, nothing provides linux-image-amd64 ]]
+ echo 'Details: nothing provides supermin &gt;= 5, nothing provides libaugeas-dev &gt;= 1.0.0, nothing provides libsystemd-dev | libsystemd-journal-dev, nothing provides linux-image-amd64'
Details: nothing provides supermin &gt;= 5, nothing provides libaugeas-dev &gt;= 1.0.0, nothing provides libsystemd-dev | libsystemd-journal-dev, nothing provides linux-image-amd64
------------ End of the quotation ------------

The supermin could be exchange by febootstrap package (in Ubuntu 12), but
libsystemd-dev, libsystemd-journal-dev are appeared from Ubuntu Trusty (14.04) ...
Please see the link for more details:
http://packages.ubuntu.com/search?suite=trusty&arch=any&searchon=names&keywords=libsystemd

I coudn't see a way to build libguestfs >= 1.20 (1.28) for Ubuntu 12 (Precise) in the current circumstances, could you ?

PS
IMHO, It would be easier to focus the efforts on updating Ubuntu 12 (Precise) to Ubuntu 14 (Trusty), then do port the packages one by one.

Revision history for this message
Albert Syriy (asyriy) wrote :

Any suggestion, comments?

Revision history for this message
Stanislav Makar (smakar) wrote :

could you please build 1.20 ?
due to 1.18 doesn't fix my problem

Revision history for this message
Artem Silenkov (asilenkov) wrote : Re: [Bug 1397014] Re: Packages libguestfs0 python-guestfs >=1.20

Hello!
We could port that packages in mean time. There is no complicated
dependencies here or huge number of it.
Agree about distupgrade but this very action could take a long time. And
indeed need deep testing.
Probably mos-linux team could port it or I could try myself if any trouble.
Regards, Artem Silenkov
2 дек. 2014 г. 14:45 пользователь "Stanislav Makar" <email address hidden>
написал:

> could you please build 1.20 ?
> due to 1.18 doesn't fix my problem
>
> --
> You received this bug notification because you are a member of Fuel OSCI
> Team, which is a bug assignee.
> https://bugs.launchpad.net/bugs/1397014
>
> Title:
> Packages libguestfs0 python-guestfs >=1.20
>
> Status in Fuel: OpenStack installer that works:
> In Progress
>
> Bug description:
> Packages libguestfs0 python-guestfs >=1.20 are needed for ubuntu 12.04
> There are 1.14 in original ubuntu repo but absent in our mirrors
>
> related to https://bugs.launchpad.net/fuel/+bug/1335697
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/fuel/+bug/1397014/+subscriptions
>

Revision history for this message
Albert Syriy (asyriy) wrote :

There is some progress in the building.
The current customized build v1.22 was able to build to another error.
http://osci-jenkins.srt.mirantis.net:8080/job/f-i-build-deb-deps-request/199/artifact/buildlog.txt

I couldn't resolve it by my own.
Looks like some additional packages should be installed to the Build machine
(according to the link http://stackoverflow.com/questions/10240054/cant-install-rhc-openshift-client-on-ubuntu-11-10-64-bit )
----
sudo apt-get install ruby1.8
sudo apt-get install gem
sudo apt-get install rubygems
sudo gem install json_pure
sudo gem install rake
sudo gem install rhc
---
Could some one help to do that ?

Revision history for this message
Artem Silenkov (asilenkov) wrote :

You could adjust debian/control build-dep section within package.
If that packages are presented in build-target repo they could be installed by OBS automatically during build process.
As for ruby and ruby-gems there is no problem.
Also if requred gems are not packaged. Then probably some modification of debian/rules needed = override_dh_autoinstall section.

Roman Vyalov (r0mikiam)
Changed in fuel:
assignee: Fuel OSCI Team (fuel-osci) → MOS Linux (mos-linux)
Albert Syriy (asyriy)
Changed in fuel:
milestone: 6.0 → 6.0.1
Changed in fuel:
milestone: 6.0.1 → 6.1
Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package libguestfs has been built for project packages/precise/libguestfs
Package version == , package release ==

Changeset: https://review.fuel-infra.org/1227
project: packages/precise/libguestfs
branch: 6.0
author: Artem Silenkov
committer: Artem Silenkov
subject: Backported from precise.
status: patchset-created

Files placed on repository:
erlang-guestfs_1.22.4-1ubuntu2_amd64.deb
gir1.2-guestfs-1.0_1.22.4-1ubuntu2_amd64.deb
guestfish_1.22.4-1ubuntu2_amd64.deb
guestfsd_1.22.4-1ubuntu2_amd64.deb
guestmount_1.22.4-1ubuntu2_amd64.deb
libguestfs-dev_1.22.4-1ubuntu2_amd64.deb
libguestfs-gobject-1.0-0_1.22.4-1ubuntu2_amd64.deb
libguestfs-gobject-dev_1.22.4-1ubuntu2_amd64.deb
libguestfs-java_1.22.4-1ubuntu2_amd64.deb
libguestfs-ocaml-dev_1.22.4-1ubuntu2_amd64.deb
libguestfs-ocaml_1.22.4-1ubuntu2_amd64.deb
libguestfs-perl_1.22.4-1ubuntu2_amd64.deb
libguestfs-tools_1.22.4-1ubuntu2_amd64.deb
libguestfs0-dbg_1.22.4-1ubuntu2_amd64.deb
libguestfs0_1.22.4-1ubuntu2_amd64.deb
lua-guestfs_1.22.4-1ubuntu2_amd64.deb
python-guestfs_1.22.4-1ubuntu2_amd64.deb
python3-guestfs_1.22.4-1ubuntu2_amd64.deb
ruby-guestfs_1.22.4-1ubuntu2_amd64.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: /ubuntu-fuel-6.0-stable-1227/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package libguestfs has been built for project packages/precise/libguestfs
Package version == , package release ==

Changeset: https://review.fuel-infra.org/1229
project: packages/precise/libguestfs
branch: 6.0
author: Artem Silenkov
committer: Artem Silenkov
subject: libguestfs backported frm precise
status: patchset-created

Files placed on repository:
erlang-guestfs_1.22.4-1ubuntu2_amd64.deb
gir1.2-guestfs-1.0_1.22.4-1ubuntu2_amd64.deb
guestfish_1.22.4-1ubuntu2_amd64.deb
guestfsd_1.22.4-1ubuntu2_amd64.deb
guestmount_1.22.4-1ubuntu2_amd64.deb
libguestfs-dev_1.22.4-1ubuntu2_amd64.deb
libguestfs-gobject-1.0-0_1.22.4-1ubuntu2_amd64.deb
libguestfs-gobject-dev_1.22.4-1ubuntu2_amd64.deb
libguestfs-java_1.22.4-1ubuntu2_amd64.deb
libguestfs-ocaml-dev_1.22.4-1ubuntu2_amd64.deb
libguestfs-ocaml_1.22.4-1ubuntu2_amd64.deb
libguestfs-perl_1.22.4-1ubuntu2_amd64.deb
libguestfs-tools_1.22.4-1ubuntu2_amd64.deb
libguestfs0-dbg_1.22.4-1ubuntu2_amd64.deb
libguestfs0_1.22.4-1ubuntu2_amd64.deb
lua-guestfs_1.22.4-1ubuntu2_amd64.deb
python-guestfs_1.22.4-1ubuntu2_amd64.deb
python3-guestfs_1.22.4-1ubuntu2_amd64.deb
ruby-guestfs_1.22.4-1ubuntu2_amd64.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: /ubuntu-fuel-6.0-stable-1229/ubuntu

Revision history for this message
Artem Silenkov (asilenkov) wrote :

So I've finally managed to backport it.

1. Ruby disabled by default. We don't need ruby bindings and ruby related stuff is quite brocken in Ubuntu. So additional time needed to backport with ruby enabled. Not reasonable.
-> debian/rules

2. Some cleanup after --disable-ruby. Basically .install files.
dh_install --fail-missing changed to --list-missing.
-> debian/rules
debian/*.install

3. I've disabled QEMU checks during configure phase. We can't start qemu inside OBS chroot without modifications of OBS code or without manual intervention. Basically we don't need. But libguestfs uploader wan't to check if qemu is correct and is working by invoking $QEMU -help command. Patch added to debian/patches
->configure
configure.ac

4. Some debian/control hacking in order to work inside precise.

Feel free to change. I'm still not sure about version number. I feel that this way of backporting is not quite correct so we must add some suffix here or something.

Revision history for this message
Albert Syriy (asyriy) wrote :

FYI:
To check the correctness of the libguestfs package please run the command libguestfs-test-tool (when the package has been deployed on testing environment).

About the versions:
The version 1.20-8 had problem with building on x86 (See build in the link)
https://launchpad.net/ubuntu/+source/libguestfs/1:1.20.8-1
The version 1.22- 4 looks like OK
https://launchpad.net/ubuntu/+source/libguestfs/1:1.22.4-1

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package supermin has been built for project packages/precise/supermin
Package version == , package release ==

Changeset: https://review.fuel-infra.org/1241
project: packages/precise/supermin
branch: master
author: Artem Silenkov
committer: Artem Silenkov
subject: supermin backported from precise
status: patchset-created

Files placed on repository:
febootstrap_4.1.6-1_all.deb
supermin_4.1.6-1_amd64.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: /ubuntu-fuel-master-1241/ubuntu

Changed in fuel:
assignee: MOS Linux (mos-linux) → asyriy (asyriy)
Revision history for this message
Albert Syriy (asyriy) wrote :

The Ubuntu 14 (trusty) is going to be appeared soon.
Trusty (Ubuntu 14.04) has the python-guestfs version 1.24.5-1 in upstream.
(Please see the details at the link http://packages.ubuntu.com/uk/trusty/amd64/python-guestfs )
Due to this the custom version of the package python-guestfs is not going to be build.

Changed in fuel:
status: In Progress → Won't Fix
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on packages/precise/libguestfs (6.0)

Change abandoned by Artem Silenkov <email address hidden> on branch: 6.0
Review: https://review.fuel-infra.org/1227

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote :

Change abandoned by Artem Silenkov <email address hidden> on branch: 6.0
Review: https://review.fuel-infra.org/1229

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on packages/precise/supermin (master)

Change abandoned by Artem Silenkov <email address hidden> on branch: master
Review: https://review.fuel-infra.org/1241

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.