[murano-apps] If applications using the same ports, additional deployment fails

Bug #1444681 reported by Victor Ryzhenkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Critical
Stan Lagun

Bug Description

Steps to reproduce:
1. Upload some applications, which using same ports. (Grafana, Nginx)
2. Create environment
3. Add Grafana application
4. Deploy environment and wait for successful deployment
5. Add Nginx to environment
6. Deploy environment again

Actual result:
Deployment fails with error:
2015-04-15 20:01:32 - Error: {'errorCode': 100, 'message': u'Script runDockerCommand returned error code', 'extra': None, 'details': {u'stdout': u'167129c30fb37426731374ef672ffad5092727270bdf32bea9ae259fbbbafe0c', u'stderr': u'time="2015-04-15T20:01:32Z" level="fatal" msg="Error response from daemon: Cannot start container 167129c30fb37426731374ef672ffad5092727270bdf32bea9ae259fbbbafe0c: Bind for 0.0.0.0:80 failed: port is already allocated"', u'exitCode': 1}, 'time': u'2015-04-15 20:01:32.400900'}

Full log in attachments.

Revision history for this message
Victor Ryzhenkin (vryzhenkin) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-apps (master)

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

Changed in murano:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano-apps (master)

Reviewed: https://review.openstack.org/174162
Committed: https://git.openstack.org/cgit/stackforge/murano-apps/commit/?id=add6c2f31c539d8b6ca6dd39303637d1eaf381bb
Submitter: Jenkins
Branch: master

commit add6c2f31c539d8b6ca6dd39303637d1eaf381bb
Author: Stan Lagun <email address hidden>
Date: Thu Apr 16 03:05:36 2015 +0300

    Fixes port acquiring logic in DockerStandaloneHost

    Previous code used integer keys in port map. But because
    JSON doesn't support integer keys they were converted
    to corresponding string representations and were not
    found on subsequent deployments

    Change-Id: I0477a043854a5ed78545d3b944397cdbf2352bd8
    Closes-Bug: #1444681

Changed in murano:
status: In Progress → Fix Committed
Changed in murano:
status: Fix Committed → Fix Released
Changed in murano:
milestone: kilo-rc1 → 2015.1.0
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.