← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1180618] Re: fault['message'] needs to be updated with exception message

 

I don't think this bug is valid. Isn't the problem just that you're
failing to schedule both times and ending up with the same error
message?

** Changed in: nova
       Status: In Progress => Invalid

-- 
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/1180618

Title:
  fault['message'] needs to be updated with exception message

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  current implementation of nova/compute/utils.py will not update the
  exception message thrown from exception class.

  Here are steps taken to produce the defect:

  1. Created a fake glance image:
  glance image-create --name=Fake_Image --is-public=true --container-format=ovf --min-ram=4000 --disk-format=raw < /mnt/download/test2.raw
  (test2.raw is only a txt file, not an image file).
  2. The image Fake_Image shown:
  ubuntu@osee0221:/mnt/download$ nova image-list
  +--------------------------------------+---------------------------------+--------+--------+
  | ID                                   | Name                            | Status | Server |
  +--------------------------------------+---------------------------------+--------+--------+
  | f474b249-e7fb-45de-adad-c5338fa53c53 | cirros-0.3.1-x86_64-uec         | ACTIVE |        |
  | 4664b408-ad40-4fba-9d71-20c217189090 | cirros-0.3.1-x86_64-uec-kernel  | ACTIVE |        |
  | bec25ebd-6543-4599-a8bf-c97b7ad3a649 | cirros-0.3.1-x86_64-uec-ramdisk | ACTIVE |        |
  | 97bcfabc-5fab-4dd0-9d55-233613c0fdea | Fake_Image	                 | ACTIVE |        |
  +--------------------------------------+---------------------------------+--------+--------+
  ubuntu@osee0221:/mnt/download$

  3. Now boot that Fake_Image:
  ubuntu@osee0221:/mnt/download$ nova boot --flavor 3 --image Fake_Image 97bcfabc-5fab-4dd0-9d55-233613c0fdea
  +-------------------------------------+--------------------------------------+
  | Property                            | Value                                |
  +-------------------------------------+--------------------------------------+
  | OS-EXT-STS:task_state               | scheduling                           |
  | image                               | Fake_Image                  |
  | OS-EXT-STS:vm_state                 | building                             |
  | OS-EXT-SRV-ATTR:instance_name       | instance-00000002                    |
  | flavor                              | m1.medium                            |
  | id                                  | bcae969f-ece0-4c20-8738-354fb3a7cf68 |
  | security_groups                     | [{u'name': u'default'}]              |
  | user_id                             | 8a6aac216f3241bba8b6cfda77778255     |
  | OS-DCF:diskConfig                   | MANUAL                               |
  | accessIPv4                          |                                      |
  | accessIPv6                          |                                      |
  | progress                            | 0                                    |
  | OS-EXT-STS:power_state              | 0                                    |
  | OS-EXT-AZ:availability_zone         | nova                                 |
  | config_drive                        |                                      |
  | status                              | BUILD                                |
  | updated                             | 2013-05-15T22:38:28Z                 |
  | hostId                              |                                      |
  | OS-EXT-SRV-ATTR:host                | None                                 |
  | key_name                            | None                                 |
  | OS-EXT-SRV-ATTR:hypervisor_hostname | None                                 |
  | name                                | 97bcfabc-5fab-4dd0-9d55-233613c0fdea |
  | adminPass                           | cs4ULhBnb545                         |
  | tenant_id                           | 97ba217a35a14b5aa09fefe9c95610c0     |
  | created                             | 2013-05-15T22:38:28Z                 |
  | metadata                            | {}                                   |
  +-------------------------------------+--------------------------------------+

  4. see the servers: (in Error state)
  ubuntu@osee0221:/mnt/download$ nova list
  +--------------------------------------+--------------------------------------+--------+------------------+
  | ID                                   | Name                                 | Status | Networks         |
  +--------------------------------------+--------------------------------------+--------+------------------+
  | 16c7fc43-8cab-48e4-be63-03c9305807d8 | 4664b408-ad40-4fba-9d71-20c217189090 | ACTIVE | private=10.0.0.2 |
  | bcae969f-ece0-4c20-8738-354fb3a7cf68 | 97bcfabc-5fab-4dd0-9d55-233613c0fdea | ERROR  | private=10.0.0.3 |
  +--------------------------------------+--------------------------------------+--------+------------------+

  
  5. See detail about that server:
  ubuntu@osee0221:/mnt/download$ nova show 97bcfabc-5fab-4dd0-9d55-233613c0fdea
  +-------------------------------------+------------------------------------------------------------------------------------+
  | Property                            | Value                                                                              |
  +-------------------------------------+------------------------------------------------------------------------------------+
  | status                              | ERROR                                                                              |
  | updated                             | 2013-05-15T22:38:50Z                                                               |
  | OS-EXT-STS:task_state               | None                                                                               |
  | OS-EXT-SRV-ATTR:host                | osee0221                                                                           |
  | key_name                            | None                                                                               |
  | image                               | Fake_Image (97bcfabc-5fab-4dd0-9d55-233613c0fdea)                         |
  | private network                     | 10.0.0.3                                                                           |
  | hostId                              | f1e0c4e312540e8877e6b0d61e86db7887451ea877f901f359da7ad4                           |
  | OS-EXT-STS:vm_state                 | error                                                                              |
  | OS-EXT-SRV-ATTR:instance_name       | instance-00000002                                                                  |
  | OS-EXT-SRV-ATTR:hypervisor_hostname | osee0221.novalocal                                                                 |
  | flavor                              | m1.medium (3)                                                                      |
  | id                                  | bcae969f-ece0-4c20-8738-354fb3a7cf68                                               |
  | security_groups                     | [{u'name': u'default'}]                                                            |
  | user_id                             | 8a6aac216f3241bba8b6cfda77778255                                                   |
  | name                                | 97bcfabc-5fab-4dd0-9d55-233613c0fdea                                               |
  | created                             | 2013-05-15T22:38:28Z                                                               |
  | tenant_id                           | 97ba217a35a14b5aa09fefe9c95610c0                                                   |
  | OS-DCF:diskConfig                   | MANUAL                                                                             |
  | metadata                            | {}                                                                                 |
  | accessIPv4                          |                                                                                    |
  | accessIPv6                          |                                                                                    |
  | fault                               | {u'message': u'NoValidHost', u'code': 500, u'details': u'No valid host was found.  |
  |                                     | ', u'created': u'2013-05-15T22:38:50Z'}                                            |
  | OS-EXT-STS:power_state              | 0                                                                                  |
  | OS-EXT-AZ:availability_zone         | nova                                                                               |
  | config_drive                        |                                                                                    |
  +-------------------------------------+------------------------------------------------------------------------------------+
  ubuntu@osee0221:/mnt/download$

  6. reset the server to be active:
  ubuntu@osee0221:/mnt/download$ nova reset-state --active 97bcfabc-5fab-4dd0-9d55-233613c0fdea

  
  ubuntu@osee0221:/mnt/download$ nova show 97bcfabc-5fab-4dd0-9d55-233613c0fdea
  +-------------------------------------+------------------------------------------------------------+
  | Property                            | Value                                                      |
  +-------------------------------------+------------------------------------------------------------+
  | status                              | ACTIVE                                                     |
  | updated                             | 2013-05-15T22:52:44Z                                       |
  | OS-EXT-STS:task_state               | None                                                       |
  | OS-EXT-SRV-ATTR:host                | osee0221                                                   |
  | key_name                            | None                                                       |
  | image                               | Fake_Image (97bcfabc-5fab-4dd0-9d55-233613c0fdea) |
  | hostId                              | f1e0c4e312540e8877e6b0d61e86db7887451ea877f901f359da7ad4   |
  | OS-EXT-STS:vm_state                 | active                                                     |
  | OS-EXT-SRV-ATTR:instance_name       | instance-00000002                                          |
  | OS-EXT-SRV-ATTR:hypervisor_hostname | osee0221.novalocal                                         |
  | flavor                              | m1.medium (3)                                              |
  | id                                  | bcae969f-ece0-4c20-8738-354fb3a7cf68                       |
  | security_groups                     | [{u'name': u'default'}]                                    |
  | user_id                             | 8a6aac216f3241bba8b6cfda77778255                           |
  | name                                | 97bcfabc-5fab-4dd0-9d55-233613c0fdea                       |
  | created                             | 2013-05-15T22:38:28Z                                       |
  | tenant_id                           | 97ba217a35a14b5aa09fefe9c95610c0                           |
  | OS-DCF:diskConfig                   | MANUAL                                                     |
  | metadata                            | {}                                                         |
  | accessIPv4                          |                                                            |
  | accessIPv6                          |                                                            |
  | progress                            | 0                                                          |
  | OS-EXT-STS:power_state              | 0                                                          |
  | OS-EXT-AZ:availability_zone         | nova                                                       |
  | config_drive                        |                                                            |
  +-------------------------------------+------------------------------------------------------------+

  7. Try to resize it to flavor 1 (will put the server status back to error, with hope that there will be a new fault msg)
  ubuntu@osee0221:/mnt/download$ nova resize 97bcfabc-5fab-4dd0-9d55-233613c0fdea 1

  8. Now it has the same fault msg:(created at same time, nothing change in the fault msg)
  ubuntu@osee0221:/mnt/download$ nova show 97bcfabc-5fab-4dd0-9d55-233613c0fdea
  +-------------------------------------+------------------------------------------------------------------------------------+
  | Property                            | Value                                                                              |
  +-------------------------------------+------------------------------------------------------------------------------------+
  | status                              | ERROR                                                                              |
  | updated                             | 2013-05-15T22:56:01Z                                                               |
  | OS-EXT-STS:task_state               | None                                                                               |
  | OS-EXT-SRV-ATTR:host                | osee0221                                                                           |
  | key_name                            | None                                                                               |
  | image                               | Fake_Image (97bcfabc-5fab-4dd0-9d55-233613c0fdea)                         |
  | hostId                              | f1e0c4e312540e8877e6b0d61e86db7887451ea877f901f359da7ad4                           |
  | OS-EXT-STS:vm_state                 | error                                                                              |
  | OS-EXT-SRV-ATTR:instance_name       | instance-00000002                                                                  |
  | OS-EXT-SRV-ATTR:hypervisor_hostname | osee0221.novalocal                                                                 |
  | flavor                              | m1.medium (3)                                                                      |
  | id                                  | bcae969f-ece0-4c20-8738-354fb3a7cf68                                               |
  | security_groups                     | [{u'name': u'default'}]                                                            |
  | user_id                             | 8a6aac216f3241bba8b6cfda77778255                                                   |
  | name                                | 97bcfabc-5fab-4dd0-9d55-233613c0fdea                                               |
  | created                             | 2013-05-15T22:38:28Z                                                               |
  | tenant_id                           | 97ba217a35a14b5aa09fefe9c95610c0                                                   |
  | OS-DCF:diskConfig                   | MANUAL                                                                             |
  | metadata                            | {}                                                                                 |
  | accessIPv4                          |                                                                                    |
  | accessIPv6                          |                                                                                    |
  | fault                               | {u'message': u'NoValidHost', u'code': 500, u'details': u'No valid host was found.  |
  |                                     | ', u'created': u'2013-05-15T22:38:50Z'}                                            |
  | OS-EXT-STS:power_state              | 0                                                                                  |
  | OS-EXT-AZ:availability_zone         | nova                                                                               |
  | config_drive                        |                                                                                    |
  +-------------------------------------+------------------------------------------------------------------------------------+
  ubuntu@osee0221:/mnt/download$

  Problem: 
  The fault message in step 7 and step 5 are exactly same

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