Met the "pkg-map failed"issue for building ubuntu/IPA and debian/IPA ramdisk

Bug #1489339 reported by Ye-hong Fang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
High
Ye-hong Fang

Bug Description

When building ubuntu/IPA and debian/IPA ramdisk, it will report "pkg-map failed" issue using latest upstream code.

dib-run-parts Thu Aug 27 12:01:05 UTC 2015 Running /tmp/in_target.d/install.d/01-package-installs
+ set -eu
+ set -o pipefail
++ dirname /tmp/in_target.d/install.d/01-package-installs
+ package-installs -d /tmp/in_target.d/install.d
+ set -eu
+ set -o pipefail
++ basename /usr/local/bin/package-installs
+ SCRIPTNAME=package-installs
++ getopt -o hd: -n package-installs -- -d /tmp/in_target.d/install.d
+ TEMP=' -d '\''/tmp/in_target.d/install.d'\'' --'
+ '[' 0 '!=' 0 ']'
+ eval set -- ' -d '\''/tmp/in_target.d/install.d'\'' --'
++ set -- -d /tmp/in_target.d/install.d --
+ WORKDIR=
+ true
+ case "$1" in
+ WORKDIR=/tmp/in_target.d/install.d
+ shift 2
+ true
+ case "$1" in
+ shift
+ break
+ '[' -z /tmp/in_target.d/install.d ']'
+ PACKAGES=
++ find /tmp/in_target.d/install.d -maxdepth 1 -name 'package-installs-*'
+ for PACKAGEFILE in '$(find $WORKDIR -maxdepth 1 -name "package-installs-*" )'
++ basename /tmp/in_target.d/install.d/package-installs-source-repositories
+ basefile=package-installs-source-repositories
+ element_name=source-repositories
+ read pkg
+ '[' -z '# Git isn'\''t a dependency of this element, but is a dependency of pbr' ']'
+ '[' '#' = '#' ']'
+ continue
+ read pkg
+ '[' -z '# if you are doing pip install on a git cloned directoy, because this' ']'
+ '[' '#' = '#' ']'
+ continue
+ read pkg
+ '[' -z '# looks to be a fairly common pattern it makes sense to have git on the' ']'
+ '[' '#' = '#' ']'
+ continue
+ read pkg
+ '[' -z '# target image' ']'
+ '[' '#' = '#' ']'
+ continue
+ read pkg
+ '[' -z git ']'
+ '[' g = '#' ']'
+ '[' g = - ']'
+ '[' -e /usr/share/pkg-map/source-repositories ']'
+ PACKAGES=' git'
+ read pkg
+ '[' -n ' git' ']'
+ install-packages git
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  git-man libcurl3-gnutls liberror-perl
Suggested packages:
  gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-email
  git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn
Recommended packages:
  patch
The following NEW packages will be installed:
  git git-man libcurl3-gnutls liberror-perl
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/12.2 MB of archives.
After this operation, 24.1 MB of additional disk space will be used.
Selecting previously unselected package libcurl3-gnutls:amd64.
(Reading database ... 38055 files and directories currently installed.)
Preparing to unpack .../libcurl3-gnutls_7.38.0-3_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.38.0-3) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.1.3-1+hLinux_all.deb ...
Unpacking git-man (1:2.1.3-1+hLinux) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.1.3-1+hLinux_amd64.deb ...
Unpacking git (1:2.1.3-1+hLinux) ...
Processing triggers for man-db (2.7.0.2-3+hLinux) ...
/usr/bin/mandb: can't create index cache /var/cache/man/es/4921: No such file or directory
Setting up libcurl3-gnutls:amd64 (7.38.0-3) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:2.1.3-1+hLinux) ...
Setting up git (1:2.1.3-1+hLinux) ...
Processing triggers for libc-bin (2.19-13+hLinux) ...
+ package-installs-v2 --phase install.d /tmp/package-installs.json
Traceback (most recent call last):
  File "/usr/local/bin/pkg-map", line 130, in <module>
    main()
  File "/usr/local/bin/pkg-map", line 75, in main
    package_names = json.loads(fd.read())
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 5 column 7 (char 61)
installing signed_grub_efi from grub2
installing signed_shim_efi from grub2
installing grub_bios from grub2
installing syslinux-common from iso
installing syslinux from iso
installing isolinux from iso
installing curl from ironic-agent

pkg-map failed

Revision history for this message
Ye-hong Fang (hongyefang) wrote :
tags: added: agent ironic python
Changed in diskimage-builder:
status: New → In Progress
assignee: nobody → Ye-hong Fang (hongyefang)
Revision history for this message
James Slagle (james-slagle) wrote :
Changed in diskimage-builder:
status: In Progress → Fix Committed
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on diskimage-builder (master)

Change abandoned by Clint 'SpamapS' Byrum (<email address hidden>) on branch: master
Review: https://review.openstack.org/217511
Reason: This was a duplicate. Resurrect it if need-be, but it looks like it was fixed in the referenced duplicate patch.

Changed in diskimage-builder:
status: Fix Committed → Fix Released
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.