← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1856311] [NEW] server_external_events response status is always 'completed' instead of event status which requested as failed

 

Public bug reported:

Description
===========
For the server external event rest api response is always completed instead of what the user requested to updated as failed/in-progress .

here the changes required :
https://github.com/openstack/nova/blob/aa096fd18352fb9da94069ec2cab478eed5c6cca/nova/api/openstack/compute/server_external_events.py#L133

Steps to reproduce
==================
1. POST a rest api request with the status as failed .
2. API response event status will be always completed .

Expected result
===============
Post request :
openstack/compute/v2.1/os-server-external-events
{
 "events": [
   {
     "name": "network-vif-plugged",
     "tag": "foo",
     "server_uuid": "b20f436b-b9b6-4a8d-a1f7-411ed42ffe62",
     "status": "failed"
   }
  ]
}

Response :

{
    "events": [
        {
            "status": "failed",
            "tag": "foo",
            "name": "network-vif-plugged",
            "server_uuid": "b20f436b-b9b6-4a8d-a1f7-411ed42ffe62",
            "code": 200
        }
    ]
}


Actual result
=============

Post request :
openstack/compute/v2.1/os-server-external-events
{
 "events": [
   {
     "name": "network-vif-plugged",
     "tag": "foo",
     "server_uuid": "b20f436b-b9b6-4a8d-a1f7-411ed42ffe62",
     "status": "failed"
   }
  ]
}

Response :

{
    "events": [
        {
            "status": "completed",
            "tag": "foo",
            "name": "network-vif-plugged",
            "server_uuid": "b20f436b-b9b6-4a8d-a1f7-411ed42ffe62",
            "code": 200
        }
    ]
}

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1856311

Title:
  server_external_events response status is always 'completed' instead
  of  event status which requested as failed

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  For the server external event rest api response is always completed instead of what the user requested to updated as failed/in-progress .

  here the changes required :
  https://github.com/openstack/nova/blob/aa096fd18352fb9da94069ec2cab478eed5c6cca/nova/api/openstack/compute/server_external_events.py#L133

  Steps to reproduce
  ==================
  1. POST a rest api request with the status as failed .
  2. API response event status will be always completed .

  Expected result
  ===============
  Post request :
  openstack/compute/v2.1/os-server-external-events
  {
   "events": [
     {
       "name": "network-vif-plugged",
       "tag": "foo",
       "server_uuid": "b20f436b-b9b6-4a8d-a1f7-411ed42ffe62",
       "status": "failed"
     }
    ]
  }

  Response :

  {
      "events": [
          {
              "status": "failed",
              "tag": "foo",
              "name": "network-vif-plugged",
              "server_uuid": "b20f436b-b9b6-4a8d-a1f7-411ed42ffe62",
              "code": 200
          }
      ]
  }

  
  Actual result
  =============

  Post request :
  openstack/compute/v2.1/os-server-external-events
  {
   "events": [
     {
       "name": "network-vif-plugged",
       "tag": "foo",
       "server_uuid": "b20f436b-b9b6-4a8d-a1f7-411ed42ffe62",
       "status": "failed"
     }
    ]
  }

  Response :

  {
      "events": [
          {
              "status": "completed",
              "tag": "foo",
              "name": "network-vif-plugged",
              "server_uuid": "b20f436b-b9b6-4a8d-a1f7-411ed42ffe62",
              "code": 200
          }
      ]
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1856311/+subscriptions


Follow ups