Unable to deploy apps on debian image due to dpkg/lock

Bug #1548857 reported by omar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
High
Kirill Zaitsev
Mitaka
Fix Released
High
Kirill Zaitsev
Newton
Fix Released
High
Unassigned

Bug Description

Steps to reproduce:
1. Click on "Quick deploy" option on ApacheHttpServer application.
2. Set "floating ip" option, debian-8-m-agent.qcow2 image.
3. Deploy environment.
4. Apache is unavailable at the appropriate ip.

Additional:
5. Log into spawned instance via ssh.
6. Check /var/log/murano-agent.log file.
7. Overview the next:
' run /usr/local/lib/python2.7/dist-packages/muranoagent/executors/application/__init__.py:69
2016-02-23 13:36:15.323 2312 DEBUG application [-] 'runApacheDeploy.sh' execution stderr: 'E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

omar (oshykhkerimov)
Changed in murano-apps:
assignee: nobody → omar (oshykhkerimov)
Stan Lagun (slagun)
Changed in murano-apps:
importance: Undecided → Medium
Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

Works as expected on a fresh debian image, probably a problem with the image

Changed in murano-apps:
status: New → Invalid
affects: murano-apps → murano
Changed in murano:
importance: Medium → High
summary: - Unable to deploy ApacheHttpServer app on debian image
+ Unable to deploy apps on debian image due to dpkg/lock
Changed in murano:
status: Invalid → Confirmed
Stan Lagun (slagun)
Changed in murano:
milestone: none → mitaka-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (master)

Fix proposed to branch: master
Review: https://review.openstack.org/298876

Changed in murano:
status: Confirmed → In Progress
Changed in murano:
assignee: omar (oshykhkerimov) → Kirill Zaitsev (kzaitsev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/299186

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.openstack.org/298876
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=54e115c60b74084a0d6b0b8595b11252f08ab7a3
Submitter: Jenkins
Branch: master

commit 54e115c60b74084a0d6b0b8595b11252f08ab7a3
Author: Omar Shykhkerimov <email address hidden>
Date: Tue Mar 29 19:50:02 2016 +0300

    Do not upgrade packages with cloud-init

    This patch deletes 'package_upgrade: true' option from cloud-init confs.
    It caused upgrading of all the packages in the images spawned by murano.
    This made spawning VMs slow and in certain cases caused
    dpkg locks be still in place when murano-agent attempted to
    install packages

    Change-Id: I440d2985f9122dad53c81b15148e60df4e7e9583
    Closes-Bug: 1548857

Changed in murano:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (stable/mitaka)

Reviewed: https://review.openstack.org/299186
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=a8a41a082462f99fde5d343dcf114fa7f5ca8c41
Submitter: Jenkins
Branch: stable/mitaka

commit a8a41a082462f99fde5d343dcf114fa7f5ca8c41
Author: Omar Shykhkerimov <email address hidden>
Date: Tue Mar 29 19:50:02 2016 +0300

    Do not upgrade packages with cloud-init

    This patch deletes 'package_upgrade: true' option from cloud-init confs.
    It caused upgrading of all the packages in the images spawned by murano.
    This made spawning VMs slow and in certain cases caused
    dpkg locks be still in place when murano-agent attempted to
    install packages

    Change-Id: I440d2985f9122dad53c81b15148e60df4e7e9583
    Closes-Bug: 1548857

tags: added: in-stable-mitaka
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/murano 3.0.0.0b1

This issue was fixed in the openstack/murano 3.0.0.0b1 development milestone.

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.