Error during service upload

Bug #1269431 reported by Sergey Murashov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
High
Ekaterina Chernova

Bug Description

Steps to reproduce:
1. Check that old cache is deleted.
2. Restart murano-repository
3. Send PUT request with the following body: {"name": "test", "version": "0.1", "full_service_name": "test", "service_display_name": "test"} to http://<url>:8084/v1/admin/services/test

Actual result:
We get 500 error status code and the following traceback in murano repository logs:
2014-01-15 14:02:56.892 21688 ERROR root [-] Unable to write to service manifest file /tmp/muranorepository-data/service_definitions/72239681556748a3b9b74b44d081b84b/test-manifest.yaml
2014-01-15 14:02:56.892 21688 TRACE root Traceback (most recent call last):
2014-01-15 14:02:56.892 21688 TRACE root File "/usr/local/lib/python2.7/dist-packages/muranorepository/api/utils.py", line 245, in create_or_update_service
2014-01-15 14:02:56.892 21688 TRACE root with open(path_to_manifest, 'w') as service_manifest:
2014-01-15 14:02:56.892 21688 TRACE root IOError: [Errno 2] No such file or directory: u'/tmp/muranorepository-data/service_definitions/72239681556748a3b9b74b44d081b84b/test-manifest.yaml'
2014-01-15 14:02:56.892 21688 TRACE root
2014-01-15 14:02:56.893 21688 ERROR root [-] Error while cleaning cache
2014-01-15 14:02:56.893 21688 TRACE root Traceback (most recent call last):
2014-01-15 14:02:56.893 21688 TRACE root File "/usr/local/lib/python2.7/dist-packages/muranorepository/api/utils.py", line 29, in reset_cache
2014-01-15 14:02:56.893 21688 TRACE root os.mkdir(cache_dir)
2014-01-15 14:02:56.893 21688 TRACE root OSError: [Errno 2] No such file or directory: '/tmp/muranorepository-data/cache/72239681556748a3b9b74b44d081b84b'
2014-01-15 14:02:56.893 21688 TRACE root

Tags: verified
Changed in murano:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Ekaterina Fedorova (efedorova)
milestone: none → 0.4.1
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-repository (master)

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

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

Reviewed: https://review.openstack.org/66853
Committed: https://git.openstack.org/cgit/stackforge/murano-repository/commit/?id=f9f8bcf6ddee6badfcead52da363e18058e51d85
Submitter: Jenkins
Branch: master

commit f9f8bcf6ddee6badfcead52da363e18058e51d85
Author: Ekaterina Fedorova <email address hidden>
Date: Wed Jan 15 18:30:32 2014 +0400

    Add service_definition directory existence checkup

    Change-Id: I957c9db4eae76aabf3fb9ebdec1a67e404239de1
    Closes-bug: #1269431

Changed in murano:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-repository (release-0.4)

Fix proposed to branch: release-0.4
Review: https://review.openstack.org/67429

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

Reviewed: https://review.openstack.org/67429
Committed: https://git.openstack.org/cgit/stackforge/murano-repository/commit/?id=72337dc3ac680402713ec95d48c5a6aa35b59bad
Submitter: Jenkins
Branch: release-0.4

commit 72337dc3ac680402713ec95d48c5a6aa35b59bad
Author: Ekaterina Fedorova <email address hidden>
Date: Fri Jan 10 16:54:30 2014 +0400

    Update from master with following commits

    * Fix log.exception usage. Add log translating
      Closes-bug: #1264980

    * Add per-tenant isolation
      Implements blueprint per-tenant-isolation

    * Fixed issue with Key Pairs for Linux-based services
      Implements: blueprint rewrite-key-pair-for-linux-based-services
    * Add service_definition directory existence checkup
      Closes-Bug: #1269431

    * Make some refactoring

    * Add forgotten return
      Closes-Bug: #1249303

    * Add forgotten return statements
      Closes-Bug: #1268934

    * Fix error code when there is no input json

    * Return correct http code
      Closes-Bug: #1268976

    Change-Id: I726d8b8849b2ccd44fdbf9d7b4ce65f3a62cf4aa

tags: added: verified
Changed in murano:
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.