Public bug reported: The imageRef parameter description does not describe what happens during rebuild if a new image is provided, nor is there any asynchronous post- condition section for what the user should expect:
https://developer.openstack.org/api-ref/compute/#rebuild-server-rebuild- action There are a few implications of specifying a new imageRef: 1. You cannot specify a new image for a volume-backed server, it will result in an error. 2. For non-volume-backed servers, specifying a new image will result in validating that the image is acceptable for the current compute host on which the server is running. If the new image is not valid, the server will go into "ERROR" status and can be rebuilt with a different image. The description of the API does not really mention what it does, i.e. destroys and re-creates the server including the root disk (if not on shared storage - which the user won't know beforehand) while preserving attached volumes and ports. As for asynchronous post-conditions, if the server was in status SHUTOFF before the rebuild, it will be stopped and in status SHUTOFF after the rebuild, otherwise it will be ACTIVE if the rebuild was successful or ERROR if the rebuild failed. ** Affects: nova Importance: Medium Status: Confirmed ** Tags: api-ref docs low-hanging-fruit ** Changed in: nova Status: New => Confirmed ** Changed in: nova Importance: Undecided => Medium -- 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/1784387 Title: rebuild API reference should discuss implications of specifying a new image Status in OpenStack Compute (nova): Confirmed Bug description: The imageRef parameter description does not describe what happens during rebuild if a new image is provided, nor is there any asynchronous post-condition section for what the user should expect: https://developer.openstack.org/api-ref/compute/#rebuild-server- rebuild-action There are a few implications of specifying a new imageRef: 1. You cannot specify a new image for a volume-backed server, it will result in an error. 2. For non-volume-backed servers, specifying a new image will result in validating that the image is acceptable for the current compute host on which the server is running. If the new image is not valid, the server will go into "ERROR" status and can be rebuilt with a different image. The description of the API does not really mention what it does, i.e. destroys and re-creates the server including the root disk (if not on shared storage - which the user won't know beforehand) while preserving attached volumes and ports. As for asynchronous post-conditions, if the server was in status SHUTOFF before the rebuild, it will be stopped and in status SHUTOFF after the rebuild, otherwise it will be ACTIVE if the rebuild was successful or ERROR if the rebuild failed. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1784387/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

