[Starlingx-discuss] [MultiOS] How to deploy STX in other linux systems?
Hi all I am trying to deploy STX in kylin system[1], an operating system base on ubuntu 16.04. I don’t know how to deploy STX in an installed system. I know there are many dependent components and softwares to be installed. I am trying to install those softwares one by one, but I don’t know whether this way is right or not. Does somebody try to deploy STX in ubuntu? Can you help me how to work for it? Thanks Kunpeng [1]http://en.kylinos.cn/products_detail/productId=21.html <http://en.kylinos.cn/products_detail/productId=21.html>
Kunpeng The current STX version doesn’t support deployment on Ubuntu yet – Victor is working on the build for Ubuntu but the functionality of the image is not yet testable. We are interested to understand the requirements: does 99cloud have customer who is asking to have StarlingX on Ubuntu? What is the user scenario? And we are very much welcome your contribution to multi-OS effort lead by Cesar/Victor. Thx. - cindy From: 张鲲鹏 [mailto:zhang.kunpeng@99cloud.net] Sent: Tuesday, April 23, 2019 7:23 PM To: starlingx-discuss@lists.starlingx.io Subject: [Starlingx-discuss] [MultiOS] How to deploy STX in other linux systems? Hi all I am trying to deploy STX in kylin system[1], an operating system base on ubuntu 16.04. I don’t know how to deploy STX in an installed system. I know there are many dependent components and softwares to be installed. I am trying to install those softwares one by one, but I don’t know whether this way is right or not. Does somebody try to deploy STX in ubuntu? Can you help me how to work for it? Thanks Kunpeng [1]http://en.kylinos.cn/products_detail/productId=21.html
Hi Kunpeng Cindy is right, we are working very hard to make it possible as soon as possible. Right now the current state of the project is described in this mail: http://lists.starlingx.io/pipermail/starlingx-discuss/2019-April/004145.html The current multi-os build system we have been working on lives in: https://github.com/starlingx-staging/stx-packaging It has a very clear README with videos and examples With that you can start building parts fo the flock services as DEB packages, you can also create a live ISO image that you can test. In the previous mail pointed you will see the list of TODO thins we have. The full architecture is described in this document as well: https://drive.google.com/open?id=1ck7vGH50AIAjUx9GNrIGtowG5qg7OYUBNdJyY-5ZvD... Regarding your use case, we are more than happy to help with the developing of tools to enable the community to support other OS. In this case the Kylin OS is not in our scope, however, it is the Ubuntu OS. I am not familiar with Kylin but a nice first exploratory phase could be that you take what we have right now, and test if you can install the packages of the flock that we have ported to Ubuntu and see if they can be installed. ( no functional test has been performed yet ) If you have any questions please let me know, any feedback to our multi-os build system is more than welcome Regards Victor Rodriguez On Tue, Apr 23, 2019 at 7:26 AM Xie, Cindy <cindy.xie@intel.com> wrote:
Kunpeng
The current STX version doesn’t support deployment on Ubuntu yet – Victor is working on the build for Ubuntu but the functionality of the image is not yet testable.
We are interested to understand the requirements: does 99cloud have customer who is asking to have StarlingX on Ubuntu? What is the user scenario? And we are very much welcome your contribution to multi-OS effort lead by Cesar/Victor.
Thx. - cindy
From: 张鲲鹏 [mailto:zhang.kunpeng@99cloud.net] Sent: Tuesday, April 23, 2019 7:23 PM To: starlingx-discuss@lists.starlingx.io Subject: [Starlingx-discuss] [MultiOS] How to deploy STX in other linux systems?
Hi all
I am trying to deploy STX in kylin system[1], an operating system base on ubuntu 16.04. I don’t know how to deploy STX in an installed system. I know there are many dependent components and softwares to be installed. I am trying to install those softwares one by one, but I don’t know whether this way is right or not.
Does somebody try to deploy STX in ubuntu? Can you help me how to work for it?
Thanks
Kunpeng
[1]http://en.kylinos.cn/products_detail/productId=21.html
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Hi Cindy, Victor, I am very glad to receive your replies. We have the requirements to deploy STX in other linux systems. For this work, I think deployment on Ubuntu is the best start to understand the flow of starlingx installation. I hope I can do something for multi-os and I am trying to follow in your footsteps. Otherwise, I find your goal is to build DEB files and finally create an iso. If a clear ubuntu system have been installed in server, how can I to deploy starlingx for test or development? Is it right to install these DEB file by hand? Thanks Kunpeng
On Apr 24, 2019, at 07:43, Victor Rodriguez <vm.rod25@gmail.com> wrote:
Hi Kunpeng
Cindy is right, we are working very hard to make it possible as soon as possible. Right now the current state of the project is described in this mail:
http://lists.starlingx.io/pipermail/starlingx-discuss/2019-April/004145.html
The current multi-os build system we have been working on lives in:
https://github.com/starlingx-staging/stx-packaging
It has a very clear README with videos and examples
With that you can start building parts fo the flock services as DEB packages, you can also create a live ISO image that you can test.
In the previous mail pointed you will see the list of TODO thins we have.
The full architecture is described in this document as well:
https://drive.google.com/open?id=1ck7vGH50AIAjUx9GNrIGtowG5qg7OYUBNdJyY-5ZvD...
Regarding your use case, we are more than happy to help with the developing of tools to enable the community to support other OS. In this case the Kylin OS is not in our scope, however, it is the Ubuntu OS. I am not familiar with Kylin but a nice first exploratory phase could be that you take what we have right now, and test if you can install the packages of the flock that we have ported to Ubuntu and see if they can be installed. ( no functional test has been performed yet )
If you have any questions please let me know, any feedback to our multi-os build system is more than welcome
Regards
Victor Rodriguez
On Tue, Apr 23, 2019 at 7:26 AM Xie, Cindy <cindy.xie@intel.com> wrote:
Kunpeng
The current STX version doesn’t support deployment on Ubuntu yet – Victor is working on the build for Ubuntu but the functionality of the image is not yet testable.
We are interested to understand the requirements: does 99cloud have customer who is asking to have StarlingX on Ubuntu? What is the user scenario? And we are very much welcome your contribution to multi-OS effort lead by Cesar/Victor.
Thx. - cindy
From: 张鲲鹏 [mailto:zhang.kunpeng@99cloud.net] Sent: Tuesday, April 23, 2019 7:23 PM To: starlingx-discuss@lists.starlingx.io Subject: [Starlingx-discuss] [MultiOS] How to deploy STX in other linux systems?
Hi all
I am trying to deploy STX in kylin system[1], an operating system base on ubuntu 16.04. I don’t know how to deploy STX in an installed system. I know there are many dependent components and softwares to be installed. I am trying to install those softwares one by one, but I don’t know whether this way is right or not.
Does somebody try to deploy STX in ubuntu? Can you help me how to work for it?
Thanks
Kunpeng
[1]http://en.kylinos.cn/products_detail/productId=21.html
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
If a clear ubuntu system have been installed in server, how can I to deploy starlingx for test or development? Is it right to install these DEB file by hand? I don't think you can do so - StarlingX flocks services needs a lot of configurations before it can be started, so just install flocks DEB files built out by ourselves cannot work. A demo is possible by using Devstack to launch those services. I believe to make StarlingX fully functional is a project deserves more planning and digesting still. This is a good PTG topics and please have Shuquan to raise it in TSC as well.
Thx. - cindy -----Original Message----- From: 张鲲鹏 [mailto:zhang.kunpeng@99cloud.net] Sent: Wednesday, April 24, 2019 7:40 PM To: Victor Rodriguez <vm.rod25@gmail.com> Cc: Xie, Cindy <cindy.xie@intel.com>; starlingx-discuss@lists.starlingx.io Subject: Re: [Starlingx-discuss] [MultiOS] How to deploy STX in other linux systems? Hi Cindy, Victor, I am very glad to receive your replies. We have the requirements to deploy STX in other linux systems. For this work, I think deployment on Ubuntu is the best start to understand the flow of starlingx installation. I hope I can do something for multi-os and I am trying to follow in your footsteps. Otherwise, I find your goal is to build DEB files and finally create an iso. If a clear ubuntu system have been installed in server, how can I to deploy starlingx for test or development? Is it right to install these DEB file by hand? Thanks Kunpeng
On Apr 24, 2019, at 07:43, Victor Rodriguez <vm.rod25@gmail.com> wrote:
Hi Kunpeng
Cindy is right, we are working very hard to make it possible as soon as possible. Right now the current state of the project is described in this mail:
http://lists.starlingx.io/pipermail/starlingx-discuss/2019-April/00414 5.html
The current multi-os build system we have been working on lives in:
https://github.com/starlingx-staging/stx-packaging
It has a very clear README with videos and examples
With that you can start building parts fo the flock services as DEB packages, you can also create a live ISO image that you can test.
In the previous mail pointed you will see the list of TODO thins we have.
The full architecture is described in this document as well:
https://drive.google.com/open?id=1ck7vGH50AIAjUx9GNrIGtowG5qg7OYUBNdJy Y-5ZvDc
Regarding your use case, we are more than happy to help with the developing of tools to enable the community to support other OS. In this case the Kylin OS is not in our scope, however, it is the Ubuntu OS. I am not familiar with Kylin but a nice first exploratory phase could be that you take what we have right now, and test if you can install the packages of the flock that we have ported to Ubuntu and see if they can be installed. ( no functional test has been performed yet )
If you have any questions please let me know, any feedback to our multi-os build system is more than welcome
Regards
Victor Rodriguez
On Tue, Apr 23, 2019 at 7:26 AM Xie, Cindy <cindy.xie@intel.com> wrote:
Kunpeng
The current STX version doesn’t support deployment on Ubuntu yet – Victor is working on the build for Ubuntu but the functionality of the image is not yet testable.
We are interested to understand the requirements: does 99cloud have customer who is asking to have StarlingX on Ubuntu? What is the user scenario? And we are very much welcome your contribution to multi-OS effort lead by Cesar/Victor.
Thx. - cindy
From: 张鲲鹏 [mailto:zhang.kunpeng@99cloud.net] Sent: Tuesday, April 23, 2019 7:23 PM To: starlingx-discuss@lists.starlingx.io Subject: [Starlingx-discuss] [MultiOS] How to deploy STX in other linux systems?
Hi all
I am trying to deploy STX in kylin system[1], an operating system base on ubuntu 16.04. I don’t know how to deploy STX in an installed system. I know there are many dependent components and softwares to be installed. I am trying to install those softwares one by one, but I don’t know whether this way is right or not.
Does somebody try to deploy STX in ubuntu? Can you help me how to work for it?
Thanks
Kunpeng
[1]http://en.kylinos.cn/products_detail/productId=21.html
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
On Wed, Apr 24, 2019 at 7:09 AM Xie, Cindy <cindy.xie@intel.com> wrote:
If a clear ubuntu system have been installed in server, how can I to deploy starlingx for test or development? Is it right to install these DEB file by hand? I don't think you can do so - StarlingX flocks services needs a lot of configurations before it can be started, so just install flocks DEB files built out by ourselves cannot work. A demo is possible by using Devstack to launch those services. I believe to make StarlingX fully functional is a project deserves more planning and digesting still. This is a good PTG topics and please have Shuquan to raise it in TSC as well.
Thx. - cindy
-----Original Message----- From: 张鲲鹏 [mailto:zhang.kunpeng@99cloud.net] Sent: Wednesday, April 24, 2019 7:40 PM To: Victor Rodriguez <vm.rod25@gmail.com> Cc: Xie, Cindy <cindy.xie@intel.com>; starlingx-discuss@lists.starlingx.io Subject: Re: [Starlingx-discuss] [MultiOS] How to deploy STX in other linux systems?
Hi Cindy, Victor,
Hi Kunpeng My comments inline:
I am very glad to receive your replies. We have the requirements to deploy STX in other linux systems. For this work, I think deployment on Ubuntu is the best start to understand the flow of starlingx installation. I hope I can do something for multi-os and I am trying to follow in your footsteps.
I am really glad to hear this, I am happy that all the work we have done to enable the multi os on ubuntu will be useful for you and your costumer. Please take the time to play witht the build sysmte we have and rise concerns and bugs on our current multi OS buidl system.
Otherwise, I find your goal is to build DEB files and finally create an iso.
So far yes If a clear ubuntu system have been installed in server, how can I to deploy starlingx for test or development? Is it right to install these DEB file by hand? Ok here comes an improtant part that makes starling x project special. We dont only have DEBs or RPMs that coudl be installed a running Linux system. We have the following components to consider : -> Installer ( during hte installation of the ISO you decide what configuration do you want ) that is hard ( not imnpossible ) to configure from a simple apt-get install -> Config controller: As described in [0] the script is used to configure the first controller in the StarlingX cluster as controller-0. The prompts are grouped by configuration area. We are still on the exploratory face on how to deal with this -> Runtime Dependencies: Trying to answering your question, Is it right to install these DEB files by hand ? yes and no, if you install one package of the flock service, it might ask for more as a runtime dependency. a solution could be to set up an STX deb repository accessible to your cloud system where apt can resolve the runtime dependencies previously compiled ( we also have to solve the build time dependencies, working hard on that ). That is for the flocks, there are other patches to host packages like Nova, Keystone and others that might need to be reinstalled (among them, the kernel with the extra patches described on the README I share with you ) on your Ubuntu host system. being completely honest with you are working on that as fast as we can trying to solve all these parts. Now this is only for a simplex all in one configuration, which is the scope for now of our POC, for a multi-node, multi-controller solution we have to deal with other problems ( one problem at the time ) [0] https://wiki.openstack.org/wiki/StarlingX/Installation_Guide_Virtual_Environ... Regarding the use of devstack for this, I will recommend you to sync with Dean, but as a general rule and as Cindy mention, Devstack is not for production just for demo and as far as I know, the work done so far to make the flock part of devstack is not functional yet. But please double check with Dean. In the meantime, any help on this TODO list is more than welcome. I will send a mail latter to encourage the community and TSC to make this project part of the official STX plan and no longer a POC. Happy to help Regards Victor Rodriguez
Thanks Kunpeng
On Apr 24, 2019, at 07:43, Victor Rodriguez <vm.rod25@gmail.com> wrote:
Hi Kunpeng
Cindy is right, we are working very hard to make it possible as soon as possible. Right now the current state of the project is described in this mail:
http://lists.starlingx.io/pipermail/starlingx-discuss/2019-April/00414 5.html
The current multi-os build system we have been working on lives in:
https://github.com/starlingx-staging/stx-packaging
It has a very clear README with videos and examples
With that you can start building parts fo the flock services as DEB packages, you can also create a live ISO image that you can test.
In the previous mail pointed you will see the list of TODO thins we have.
The full architecture is described in this document as well:
https://drive.google.com/open?id=1ck7vGH50AIAjUx9GNrIGtowG5qg7OYUBNdJy Y-5ZvDc
Regarding your use case, we are more than happy to help with the developing of tools to enable the community to support other OS. In this case the Kylin OS is not in our scope, however, it is the Ubuntu OS. I am not familiar with Kylin but a nice first exploratory phase could be that you take what we have right now, and test if you can install the packages of the flock that we have ported to Ubuntu and see if they can be installed. ( no functional test has been performed yet )
If you have any questions please let me know, any feedback to our multi-os build system is more than welcome
Regards
Victor Rodriguez
On Tue, Apr 23, 2019 at 7:26 AM Xie, Cindy <cindy.xie@intel.com> wrote:
Kunpeng
The current STX version doesn’t support deployment on Ubuntu yet – Victor is working on the build for Ubuntu but the functionality of the image is not yet testable.
We are interested to understand the requirements: does 99cloud have customer who is asking to have StarlingX on Ubuntu? What is the user scenario? And we are very much welcome your contribution to multi-OS effort lead by Cesar/Victor.
Thx. - cindy
From: 张鲲鹏 [mailto:zhang.kunpeng@99cloud.net] Sent: Tuesday, April 23, 2019 7:23 PM To: starlingx-discuss@lists.starlingx.io Subject: [Starlingx-discuss] [MultiOS] How to deploy STX in other linux systems?
Hi all
I am trying to deploy STX in kylin system[1], an operating system base on ubuntu 16.04. I don’t know how to deploy STX in an installed system. I know there are many dependent components and softwares to be installed. I am trying to install those softwares one by one, but I don’t know whether this way is right or not.
Does somebody try to deploy STX in ubuntu? Can you help me how to work for it?
Thanks
Kunpeng
[1]http://en.kylinos.cn/products_detail/productId=21.html
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
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[1]: *** [all] Error 1 make[1]: 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@gmail.com> wrote:
https://wiki.openstack.org/wiki/StarlingX/Installation_Guide_Virtual_Environ... <https://wiki.openstack.org/wiki/StarlingX/Installation_Guide_Virtual_Environment/Controller_Storage>
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 Regards Victor R On Mon, Apr 29, 2019 at 2:15 AM 张鲲鹏 <zhang.kunpeng@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[1]: *** [all] Error 1 make[1]: 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@gmail.com> wrote:
https://wiki.openstack.org/wiki/StarlingX/Installation_Guide_Virtual_Environ...
Hi Kunpeng 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: https://packages.debian.org/sid/python-oslo.concurrency 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-sphinx python-mox3 (>= 0.7.0) python-oslo.concurrency (>= 3.7.1) python-oslosphinx (>= 2.5.0) After that, your deb files should be in ls /usr/local/mydebs/ Packages.gz python-oslo.concurrency_3.27.0-3_all.deb python-osprofiler-doc_2.3.0-3_all.deb python3-oslo.concurrency_3.27.0-3_all.deb python-oslo.concurrency-doc_3.27.0-3_all.deb python3-osprofiler_2.3.0-3_all.deb python-osprofiler_2.3.0-3_all.deb 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: https://wiki.debian.org/PbuilderTricks#How_to_build_for_different_distributi... In the meantime let me know if this workaround works for you, hope it helps Regards Victor R On Tue, Apr 30, 2019 at 11:44 AM Victor Rodriguez <vm.rod25@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
Regards
Victor R
On Mon, Apr 29, 2019 at 2:15 AM 张鲲鹏 <zhang.kunpeng@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[1]: *** [all] Error 1 make[1]: 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@gmail.com> wrote:
https://wiki.openstack.org/wiki/StarlingX/Installation_Guide_Virtual_Environ...
I forgot to mention , in the end this is the result after build horizon: vmrod@vmrod-VirtualBox:~/stx-packaging$ ls /usr/local/mydebs/ horizon-doc_14.0.2-3_all.deb python3-osprofiler_2.3.0-3_all.deb openstack-dashboard_14.0.2-3_all.deb python-oslo.concurrency_3.27.0-3_all.deb openstack-dashboard-apache_14.0.2-3_all.deb python-oslo.concurrency-doc_3.27.0-3_all.deb Packages.gz python-osprofiler_2.3.0-3_all.deb python3-django-horizon_14.0.2-3_all.deb python-osprofiler-doc_2.3.0-3_all.deb python3-oslo.concurrency_3.27.0-3_all.deb Regards Victor R On Wed, May 1, 2019 at 5:33 PM Victor Rodriguez <vm.rod25@gmail.com> wrote:
Hi Kunpeng
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:
https://packages.debian.org/sid/python-oslo.concurrency
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-sphinx python-mox3 (>= 0.7.0) python-oslo.concurrency (>= 3.7.1) python-oslosphinx (>= 2.5.0)
After that, your deb files should be in
ls /usr/local/mydebs/ Packages.gz python-oslo.concurrency_3.27.0-3_all.deb python-osprofiler-doc_2.3.0-3_all.deb python3-oslo.concurrency_3.27.0-3_all.deb python-oslo.concurrency-doc_3.27.0-3_all.deb python3-osprofiler_2.3.0-3_all.deb python-osprofiler_2.3.0-3_all.deb
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:
https://wiki.debian.org/PbuilderTricks#How_to_build_for_different_distributi...
In the meantime let me know if this workaround works for you, hope it helps
Regards
Victor R
On Tue, Apr 30, 2019 at 11:44 AM Victor Rodriguez <vm.rod25@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
Regards
Victor R
On Mon, Apr 29, 2019 at 2:15 AM 张鲲鹏 <zhang.kunpeng@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[1]: *** [all] Error 1 make[1]: 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@gmail.com> wrote:
https://wiki.openstack.org/wiki/StarlingX/Installation_Guide_Virtual_Environ...
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 Like this: 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. Marcela On 5/1/19, 5:33 PM, "Victor Rodriguez" <vm.rod25@gmail.com> wrote: Hi Kunpeng 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: https://packages.debian.org/sid/python-oslo.concurrency 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-sphinx python-mox3 (>= 0.7.0) python-oslo.concurrency (>= 3.7.1) python-oslosphinx (>= 2.5.0) After that, your deb files should be in ls /usr/local/mydebs/ Packages.gz python-oslo.concurrency_3.27.0-3_all.deb python-osprofiler-doc_2.3.0-3_all.deb python3-oslo.concurrency_3.27.0-3_all.deb python-oslo.concurrency-doc_3.27.0-3_all.deb python3-osprofiler_2.3.0-3_all.deb python-osprofiler_2.3.0-3_all.deb 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: https://wiki.debian.org/PbuilderTricks#How_to_build_for_different_distributi... In the meantime let me know if this workaround works for you, hope it helps Regards Victor R On Tue, Apr 30, 2019 at 11:44 AM Victor Rodriguez <vm.rod25@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 > > Regards > > Victor R > > On Mon, Apr 29, 2019 at 2:15 AM 张鲲鹏 <zhang.kunpeng@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[1]: *** [all] Error 1 > > make[1]: 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@gmail.com> wrote: > > > > https://wiki.openstack.org/wiki/StarlingX/Installation_Guide_Virtual_Environ... > > > >
participants (4)
-
Rosales Jimenez, Marcela A
-
Victor Rodriguez
-
Xie, Cindy
-
张鲲鹏