[Starlingx-discuss] [MultiOS] How to deploy STX in other linux systems?
Rosales Jimenez, Marcela A
marcela.a.rosales.jimenez at intel.com
Thu May 2 21:47:26 UTC 2019
Hi Kunpeng and Victor,
The Depends error is because pbuilder chroot cannot find the dependencies
of the package you want to build.
I was seeing this same error when generating a package that depended
on python-pip and python-wheel. To find out what repositories provide
those packages I did "apt-cache showpkg python-pip" on my host machine which
has Ubuntu 16.04. Also "apt-cache policy python-pip" provided some insight.
Then I added the repository to the OTHERMIRROR variable in ~/.pbuilderrc
OTHERMIRROR="deb [trusted=yes] file:///usr/local/mydebs/ ./|deb [trusted=yes] http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse|deb [trusted=yes] http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/queens main"
The pipe is used to separate repos.
If you need to add repositories because pbuilder change root cannot see
the package you need, you should modify that variable.
Something to notice is that the stx-packaging/setup.sh script overwrites
the ~/.pbuilderrc with stx-packaging/configs/pbuilderrc
Let us know if you keep having this same problem or new ones.
On 5/1/19, 5:33 PM, "Victor Rodriguez" <vm.rod25 at gmail.com> wrote:
After working on fixing this bug, I was able to build horizon with a
workaround, here the details:
1) the bug is due to the lower version installed in the chroot of
pbuilder. for example when we do a pbuilder login
we can try to apt-get install python3-osprofiler and it will get :
Setting up python3-osprofiler (1.15.2-0ubuntu1)
But the dsc file of horizon set:
Depends: python3-osprofiler (>= 2.3.0) but it is not going to be installed
It seems that when I updated the README the bionic repo in ubuntu
18.04 was providing the correct versions.
2) It seems to be necessary to specify a missing ubuntu repository, in
Debian sid seems to be a valid repository to have these versions:
I will work tomorrow with Marcela since she face the same problem
yesterday and add them in the pbuilderc file
3 ) The simples work around ( work for me ) was to build the build
dependencies using the same tooling we privide ( good we have a simple
way ) inside stx-packaging:
make upstream_pkg PKG=python3-oslo.concurrency
make upstream_pkg PKG=python3-osprofiler
( these were the one mising in my case ) in your case you have to build
The following packages have unmet dependencies:
Depends: openstack-pkg-tools (>= 23~)
python-mox3 (>= 0.7.0)
python-oslo.concurrency (>= 3.7.1)
python-oslosphinx (>= 2.5.0)
After that, your deb files should be in
once you have fulfilled all your build dependencies you will be able
to re-run your command
make package PKG=x.stx-upstream/openstack/python-horizon/ DISTRO=ubuntu
4) I am using ubuntu 18.04 this is an example of my repos:
deb http://mx.archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src http://mx.archive.ubuntu.com/ubuntu/ bionic main restricted
let me know what do you have in your case.
I will try a hack proposed to use multiple repos according to what
distribution we want to build:
In the meantime let me know if this workaround works for you, hope it helps
On Tue, Apr 30, 2019 at 11:44 AM Victor Rodriguez <vm.rod25 at gmail.com> wrote:
> Hi Kunpeng
> We are able to see the same error, we will be working on the fix asap,
> thanks for using the build system and report the issue
> Victor R
> On Mon, Apr 29, 2019 at 2:15 AM 张鲲鹏 <zhang.kunpeng at 99cloud.net> wrote:
> > Hi Victor,
> > I got one error when I was building python-horizon in ubuntu 16.04 with this command "make package PKG=x.stx-upstream/openstack/python-horizon/ DISTRO=ubuntu”.
> > Below is the last log:
> > 0 packages upgraded, 130 newly installed, 0 to remove and 0 not upgraded.
> > Need to get 15.8 MB/35.5 MB of archives. After unpacking 173 MB will be used.
> > Abort.
> > E: pbuilder-satisfydepends failed.
> > I: Copying back the cached apt archive contents
> > I: unmounting /usr/local/mydebs/ filesystem
> > I: unmounting dev/pts filesystem
> > I: unmounting run/shm filesystem
> > I: unmounting proc filesystem
> > I: cleaning the build env
> > I: removing directory /var/cache/pbuilder/build/15050 and its subdirectories
> > Makefile:5: recipe for target 'all' failed
> > make: *** [all] Error 1
> > make: Leaving directory '/home/ubuntu/stx-packaging/x.stx-upstream/openstack/python-horizon/ubuntu'
> > Makefile:25: recipe for target 'build_pkg_native' failed
> > make: *** [build_pkg_native] Error 2
> > Is there a lack of some configurations?
> > Thanks
> > Kunpeng
> > On Apr 25, 2019, at 00:03, Victor Rodriguez <vm.rod25 at gmail.com> wrote:
> > https://wiki.openstack.org/wiki/StarlingX/Installation_Guide_Virtual_Environment/Controller_Storage
More information about the Starlingx-discuss