Bug #11
closedCan't build "helloworld" binding using "rp-cli"
0%
Description
When trying to build the "helloworld" binding with rp-cli, command "rp-cli local package run" fails as follows:
sipload@localhost:~/my_rp_builder_dir/gitsources> rp-cli local package run helloworld-binding --target x86_64 --project clitest
-- Packaging requested by user --
Checking application details... [OK]
Checking packaging directories...
"gitsources/" directory used: /home/sipload/my_rp_builder_dir/gitsources/helloworld-binding
"gitpkgs/" directory used: /home/sipload/my_rp_builder_dir/gitpkgs/helloworld-binding
Retrieving packaging parameters for helloworld-binding... [OK]
Packaging the application...
PACKAGING LOGS >>>
sources file doesn't exist. Source files download skipped.
Creating repo object from /home/devel/gitpkgs/helloworld-binding
Could not execute localbuild: Could not find the release/dist from branch name clitest_5e45bf18--redpesk-lts-arz-1.0-update
Please specify with --release
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/iotpkg/cli.py", line 392, in localbuild
noOptimization=self.args.without_optimization)
File "/usr/lib/python3.6/site-packages/iotpkg/__init__.py", line 475, in localbuild
self.load_nameverrel()
File "/usr/lib/python3.6/site-packages/pyrpkg/__init__.py", line 680, in load_nameverrel
cmd.extend(self.rpmdefines)
File "/usr/lib/python3.6/site-packages/pyrpkg/__init__.py", line 747, in rpmdefines
self.load_rpmdefines()
File "/usr/lib/python3.6/site-packages/iotpkg/__init__.py", line 170, in load_rpmdefines
self.branch_merge)
pyrpkg.errors.rpkgError: Could not find the release/dist from branch name clitest_5e45bf18--redpesk-lts-arz-1.0-update
Please specify with --release
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/iotpkg", line 11, in <module>
load_entry_point('iotpkg==1.8.0', 'console_scripts', 'iotpkg')()
File "/usr/lib/python3.6/site-packages/iotpkg/__main__.py", line 77, in main
sys.exit(client.args.command())
File "/usr/lib/python3.6/site-packages/iotpkg/cli.py", line 394, in localbuild
raise rpkgError(e)
pyrpkg.errors.rpkgError: Could not find the release/dist from branch name clitest_5e45bf18--redpesk-lts-arz-1.0-update
Please specify with --release
<<< PACKAGING LOGS
Results and/or logs in: /home/sipload/my_rp_builder_dir/gitpkgs/helloworld-binding/results_helloworld-binding/1.0.2/0.rp*/
Oups... An error appeared while packaging your application
Error: End of process W5MiLDgFVit6EEO2IbsDnw with status 256
Updated by Vincent Rubiolo over 2 years ago
- Description updated (diff)
- Status changed from New to In Progress
Updated by Emmanuel Jubera [SAFT] over 2 years ago
Please find hereafter project and application creation commands issued before build command:
sipload@localhost:~> rp-cli projects add --name Clitest --mandatory-arch x86_64 --mandatory-distro redpesk-lts-arz-1.0-update
-- Project creation requested by user --
Checking that at least one architecture is set... [OK]
Checking that at least one distribution is set...
Creation of "Clitest" project...
sipload@localhost:~>
sipload@localhost:~> rp-cli projects list
ID Slug Name Version Type
5e45bf18-1a43-42f2-bf73-de28042849a0 clitest Clitest [Not set] standard
04b0fb15-f7c7-4898-b380-ea56c36ddece datahub datahub [Not set] standard
47486bb8-9549-4f42-a97f-67662d280d6b datahub-update Datahub update [Not set] standard
a7929ba1-769e-4c71-ab43-af967c634c4a vincent-s-project Vincent's project [Not set] standard
sipload@localhost:~>
sipload@localhost:~> rp-cli applications add-from-sample helloworld-binding --project 5e45bf18-1a43-42f2-bf73-de28042849a0
-- Application creation requested by user --
Processing the distribution(s) settings... [OK]
Creation of "Helloworld binding" application...
Wait for creation confirmation from the backend...
sipload@localhost:~>
sipload@localhost:~> rp-cli applications list
ID Name Slug Type Project
6fb207a6-5f4d-4fa6-91a1-45e2c9c9a604 Helloworld binding helloworld-binding standard clitest
84eb2fca-a30a-4b16-9859-084d50d093b0 bms2redis-binding bms2redis-binding standard datahub
69cdcc7d-6efb-4212-b451-0af6490cf596 canbus-plugins-bms canbus-plugins-bms standard datahub
28f8bd40-a59e-4b29-a3e6-4c5c0899488e configs-datahub configs-datahub standard datahub
69b45686-1567-4c54-a05e-ace31413cabe poc-service poc-service standard datahub
e8794530-45e5-4bfa-8189-ffd14e29b713 redisTS2influxDB redists2influxdb standard datahub
1c4d0418-b860-41b7-b675-21a06194fb24 Wifi Automate binding wifi-automate-binding standard datahub
18bde0bd-14d6-4692-8d9f-bdfcf00c8619 bms2redis binding bms2redis-binding standard datahub-update
e2edbec1-9f00-4e1b-9ae2-12d796009e23 Canbus plugin BMS canbus-plugin-bms standard datahub-update
4da94af1-6ceb-46bc-bc95-3373aa85013a Configs datahub configs-datahub standard datahub-update
671cb2f1-e266-48cd-84d4-4e503d79d0b3 POC service poc-service standard datahub-update
6ab35d9d-3148-4990-85fd-fe3030d5c17e redisTS 2 influxDB redists-2-influxdb standard datahub-update
5db01b96-90f3-4c2b-9f16-c56e7b04eaed Wifi Automate binding wifi-automate-binding standard datahub-update
437fee6e-da1a-40bd-93c1-04fd89aa3665 Helloworld binding helloworld-binding standard vincent-s-project
Updated by Vincent Rubiolo over 2 years ago
- Status changed from In Progress to Resolved
The problem has been fixed and included in iotpkg-1.8.2-14.rpdarz.noarch
. Please perform a dnf update iotpkg
within the localbuilder to fetch it.
The fix has been validated with the following commands and generated an RPM which can be deployed in the localbuilder itself:
rp-cli projects add --name Clitest --alias clitest-1 --mandatory-arch x86_64 --mandatory-distro redpesk-lts-arz-1.0-update
rp-cli applications add-from-sample helloworld-binding --project clitest-1 x86_64
rp-cli local package init helloworld-binding --project clitest-1 x86_64
rp-cli local package run helloworld-binding --target aarch64 --project clitest-1 x86_64
Note that there is currently an issue w/ URL rewriting for certain accesses to a stack Kojihub.
In the meantime, you will need to add an entry corresponding to your stack kojihub IP in your localbuilder /etc/hosts
like so: W.X.Y.Z XXX-hub-prod01.redpesk.onprem
Updated by Vincent Rubiolo over 2 years ago
- Assignee changed from Vincent Rubiolo to Emmanuel Jubera [SAFT]
Updated by Emmanuel Jubera [SAFT] over 2 years ago
- Assignee changed from Emmanuel Jubera [SAFT] to Vincent Rubiolo
Fix checked ok after issuing following commands:
$ dnf update iotpkg (inside local builder)
$ echo '10.40.1.106 saft-hub-prod01.redpesk.onprem' |sudo tee -a /etc/hosts (inside openSUSE VM)
Updated by Vincent Rubiolo over 2 years ago
Submitter confirms everything works fine, build included. Closing as a result.
Updated by Vincent Rubiolo over 2 years ago
- Status changed from Resolved to Closed