elasticsearch 0.7.3 plugin deployment fails during installing openjdk-7-jre-headless.

Bug #1509242 reported by Artem Minasyan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Plugins
Fix Released
High
guillaume thouvenin

Bug Description

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "7.0"
  openstack_version: "2015.1.0-7.0"
  api: "1.0"
  build_number: "301"
  build_id: "301"
  nailgun_sha: "4162b0c15adb425b37608c787944d1983f543aa8"
  python-fuelclient_sha: "486bde57cda1badb68f915f66c61b544108606f3"
  fuel-agent_sha: "50e90af6e3d560e9085ff71d2950cfbcca91af67"
  fuel-nailgun-agent_sha: "d7027952870a35db8dc52f185bb1158cdd3d1ebd"
  astute_sha: "6c5b73f93e24cc781c809db9159927655ced5012"
  fuel-library_sha: "5d50055aeca1dd0dc53b43825dc4c8f7780be9dd"
  fuel-ostf_sha: "2cd967dccd66cfc3a0abd6af9f31e5b4d150a11c"
  fuelmain_sha: "a65d453215edb0284a2e4761be7a156bb5627677"

Steps to reproduce:
1. Deploy environment with following parameters:
3 controllers: KVM, 1 CPU, 4 GB RAM, 150GB HDD
1 Base OS (base): KVM, 1 CPU, 2 GB RAM, 150GB HDD
1 compute+Ceph OSD: KVM, 1 CPU, 3 GB RAM, 150GB HDD
hypervisor type: KVM
Storage:
    Cinder, Glance, Nova in Ceph
    Ceph replica: 1
LMA plugin:
    Events Analytics: Local node: base
    Metric Analytics: Local node: base
                               Influx database name: lma
                               Influx database user: lma
                               Influx database pass: lmapass
Elasticsearch plugin:
    Node name: base
    JVM heap size: 1
InfluxDB plugin:
    Node name: base
    root password: lmapass
    db name: lma
    user name: lma
    user password: lmapass
Plugins built from stable/0.7 branch

Expected result:
Deployment successfully finished.

Actual result:
Deployment fails with the following errors.
 Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install openjdk-7-jre-headless' returned 100: Reading package lists...
(/Stage[main]/Main/Package[openjdk-7-jre-headless]/ensure) E: There are problems and -y was used without --force-yes

Diagnostic snapshot is attached

Revision history for this message
Artem Minasyan (aminasyan) wrote :
Changed in fuel-plugins:
importance: Undecided → High
status: New → Incomplete
status: Incomplete → Confirmed
assignee: nobody → guillaume thouvenin (guillaume-thouvenin)
milestone: none → 6.1
Revision history for this message
guillaume thouvenin (guillaume-thouvenin) wrote :

I looked in the logs and I see that the problem is due to a version of tzdata that has been updated recently. In our plugin we embed a version of tzdata that is too old and when puppet tries to install elasticsearch that depends on java it tries a downgrade that fails. Here are the corresponding log:

2015-10-22 18:14:27 +0000 Puppet (err): Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install openjdk-7-jre-headless' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  ca-certificates-java fontconfig-config fonts-dejavu-core java-common
  libasyncns0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2
  libflac8 libfontconfig1 libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3
  libnss3-nssdb libogg0 libpcsclite1 libpulse0 libsndfile1 libvorbis0a
  libvorbisenc2 tzdata tzdata-java
Suggested packages:
  default-jre equivs cups-common liblcms2-utils pcscd pulseaudio
  icedtea-7-jre-jamvm libnss-mdns sun-java6-fonts fonts-dejavu-extra
  fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei
  ttf-indic-fonts-core ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts
  ttf-bengali-fonts
The following NEW packages will be installed:
  ca-certificates-java fontconfig-config fonts-dejavu-core java-common
  libasyncns0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2
  libflac8 libfontconfig1 libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3
  libnss3-nssdb libogg0 libpcsclite1 libpulse0 libsndfile1 libvorbis0a
  libvorbisenc2 openjdk-7-jre-headless tzdata-java
The following packages will be DOWNGRADED:
  tzdata
0 upgraded, 25 newly installed, 1 downgraded, 0 to remove and 1 not upgraded.
Need to get 43.5 MB of archives.
After this operation, 73.4 MB of additional disk space will be used.
E: There are problems and -y was used without --force-yes

Revision history for this message
guillaume thouvenin (guillaume-thouvenin) wrote :

Fixed for stable/0.7 committed => https://review.openstack.org/#/c/238070/
Fixed for master committed => https://review.openstack.org/#/c/238028/

Changed in fuel-plugins:
milestone: 6.1 → 7.0
status: Confirmed → Fix Committed
Revision history for this message
Artem Minasyan (aminasyan) wrote :

Verified on plugins built from stable/0.7 version and ISO :
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "7.0"
  openstack_version: "2015.1.0-7.0"
  api: "1.0"
  build_number: "301"
  build_id: "301"
  nailgun_sha: "4162b0c15adb425b37608c787944d1983f543aa8"
  python-fuelclient_sha: "486bde57cda1badb68f915f66c61b544108606f3"
  fuel-agent_sha: "50e90af6e3d560e9085ff71d2950cfbcca91af67"
  fuel-nailgun-agent_sha: "d7027952870a35db8dc52f185bb1158cdd3d1ebd"
  astute_sha: "6c5b73f93e24cc781c809db9159927655ced5012"
  fuel-library_sha: "5d50055aeca1dd0dc53b43825dc4c8f7780be9dd"
  fuel-ostf_sha: "2cd967dccd66cfc3a0abd6af9f31e5b4d150a11c"
  fuelmain_sha: "a65d453215edb0284a2e4761be7a156bb5627677"

Changed in fuel-plugins:
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.