Detailed bug description: When I try to build the latest version of the plugin I receive this error:
2017-05-04 16:17:58 DEBUG 8739 (utils) + FILE=libmysqlclient18_5.5.54-0ubuntu0.14.04.1_amd64.deb 2017-05-04 16:17:58 DEBUG 8739 (utils) + wget -qO /root/plugins/fuel-plugin-external-zabbix/repositories/ubuntu/xenial/libmysqlclient18_5.5.54-0ubuntu0.14.04.1_amd64.deb http://archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.54-0ubuntu0.14.04.1_amd64.deb 2017-05-04 16:17:58 ERROR 8739 (cli) Shell command executed with "8" exit code: ./pre_build_hook Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/cli.py", line 126, in main perform_action(args) File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/cli.py", line 106, in perform_action actions.make_builder(args.build).run() File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/actions/build.py", line 73, in run self.run_pre_build_hook() File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/actions/build.py", line 86, in run_pre_build_hook utils.exec_cmd(self.pre_build_hook_cmd, self.plugin_path) File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/utils.py", line 95, in exec_cmd 'exit code: {1} '.format(exit_code, cmd)) Steps to reproduce: 1. Download latest version of plugin from master: https://github.com/openstack/fuel-plugin-external-zabbix.git 2. Build it: fpb --debug --build fuel-plugin-external-zabbix/
Expected results: plugin builds successfully
Actual result: it fails
Reproducability: always
Workaround: This is because the package libmysqlclient18_5.5.54-0ubuntu0.14.04.1_amd64.deb does not exist. When you update the package url to http://archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.55-0ubuntu0.14.04.1_i386.deb I get:
+ shift + '[' 0 -gt 0 ']' + http://archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.55-0ubuntu0.14.04.1_i386.deb http://archive.ubuntu.com/ubuntu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.3-2ubuntu4.4_amd64.deb http://archive.ubuntu.com/ubuntu/pool/main/g/gnutls26/libgnutls26_2.12.23-12ubuntu2.7_amd64.deb http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd-daemon0_204-5ubuntu20.24_amd64.deb ./pre_build_hook: line 74: http://archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.55-0ubuntu0.14.04.1_i386.deb: No such file or directory
Add these packages to a new variable for use in the download_packages function:
MISC_XENIAL_PACKAGES="http://archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.55-0ubuntu0.14.04.1_i386.deb \ http://archive.ubuntu.com/ubuntu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.3-2ubuntu4.4_amd64.deb \ http://archive.ubuntu.com/ubuntu/pool/main/g/gnutls26/libgnutls26_2.12.23-12ubuntu2.7_amd64.deb \ http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd-daemon0_204-5ubuntu20.24_amd64.deb"
download_package "$DEB_XENIAL_REPO" $ZABBIX_PACKAGES \ $PHP5_XENIAL_PACKAGES \ $COMMON_PACKAGES \ $MISC_XENIAL_PACKAGES
Detailed bug description:
When I try to build the latest version of the plugin I receive this error:
2017-05-04 16:17:58 DEBUG 8739 (utils) + FILE=libmysqlcl ient18_ 5.5.54- 0ubuntu0. 14.04.1_ amd64.deb fuel-plugin- external- zabbix/ repositories/ ubuntu/ xenial/ libmysqlclient1 8_5.5.54- 0ubuntu0. 14.04.1_ amd64.deb http:// archive. ubuntu. com/ubuntu/ pool/main/ m/mysql- 5.5/libmysqlcli ent18_5. 5.54-0ubuntu0. 14.04.1_ amd64.deb python2. 7/site- packages/ fuel_plugin_ builder/ cli.py" , line 126, in main action( args) python2. 7/site- packages/ fuel_plugin_ builder/ cli.py" , line 106, in perform_action make_builder( args.build) .run() python2. 7/site- packages/ fuel_plugin_ builder/ actions/ build.py" , line 73, in run run_pre_ build_hook( ) python2. 7/site- packages/ fuel_plugin_ builder/ actions/ build.py" , line 86, in run_pre_build_hook exec_cmd( self.pre_ build_hook_ cmd, self.plugin_path) python2. 7/site- packages/ fuel_plugin_ builder/ utils.py" , line 95, in exec_cmd /github. com/openstack/ fuel-plugin- external- zabbix. git external- zabbix/
2017-05-04 16:17:58 DEBUG 8739 (utils) + wget -qO /root/plugins/
2017-05-04 16:17:58 ERROR 8739 (cli) Shell command executed with "8" exit code: ./pre_build_hook
Traceback (most recent call last):
File "/usr/lib/
perform_
File "/usr/lib/
actions.
File "/usr/lib/
self.
File "/usr/lib/
utils.
File "/usr/lib/
'exit code: {1} '.format(exit_code, cmd))
Steps to reproduce:
1. Download latest version of plugin from master:
https:/
2. Build it:
fpb --debug --build fuel-plugin-
Expected results:
plugin builds successfully
Actual result:
it fails
Reproducability:
always
Workaround: 8_5.5.54- 0ubuntu0. 14.04.1_ amd64.deb does not exist. When you update the package url to http:// archive. ubuntu. com/ubuntu/ pool/main/ m/mysql- 5.5/libmysqlcli ent18_5. 5.55-0ubuntu0. 14.04.1_ i386.deb I get:
This is because the package libmysqlclient1
+ shift archive. ubuntu. com/ubuntu/ pool/main/ m/mysql- 5.5/libmysqlcli ent18_5. 5.55-0ubuntu0. 14.04.1_ i386.deb http:// archive. ubuntu. com/ubuntu/ pool/main/ libg/libgcrypt1 1/libgcrypt11_ 1.5.3-2ubuntu4. 4_amd64. deb http:// archive. ubuntu. com/ubuntu/ pool/main/ g/gnutls26/ libgnutls26_ 2.12.23- 12ubuntu2. 7_amd64. deb http:// archive. ubuntu. com/ubuntu/ pool/main/ s/systemd/ libsystemd- daemon0_ 204-5ubuntu20. 24_amd64. deb archive. ubuntu. com/ubuntu/ pool/main/ m/mysql- 5.5/libmysqlcli ent18_5. 5.55-0ubuntu0. 14.04.1_ i386.deb: No such file or directory
+ '[' 0 -gt 0 ']'
+ http://
./pre_build_hook: line 74: http://
Add these packages to a new variable for use in the download_packages function:
MISC_XENIAL_ PACKAGES= "http:// archive. ubuntu. com/ubuntu/ pool/main/ m/mysql- 5.5/libmysqlcli ent18_5. 5.55-0ubuntu0. 14.04.1_ i386.deb \
http:// archive. ubuntu. com/ubuntu/ pool/main/ libg/libgcrypt1 1/libgcrypt11_ 1.5.3-2ubuntu4. 4_amd64. deb \
http:// archive. ubuntu. com/ubuntu/ pool/main/ g/gnutls26/ libgnutls26_ 2.12.23- 12ubuntu2. 7_amd64. deb \
http:// archive. ubuntu. com/ubuntu/ pool/main/ s/systemd/ libsystemd- daemon0_ 204-5ubuntu20. 24_amd64. deb"
download_package "$DEB_XENIAL_REPO" $ZABBIX_PACKAGES \
$ PHP5_XENIAL_ PACKAGES \
$ COMMON_ PACKAGES \
$ MISC_XENIAL_ PACKAGES