Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create server image didn't return image->id #270

Open
numitec opened this issue Nov 27, 2018 · 0 comments
Open

Create server image didn't return image->id #270

numitec opened this issue Nov 27, 2018 · 0 comments

Comments

@numitec
Copy link

numitec commented Nov 27, 2018

Hello there,

is it possible to return object id when it is created a vm snapshot? On CLI we get a summary with image ID:

[root@eustackio ~(keystone_admin)]# openstack server image create --name snapshot_test vm_test
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field            | Value                                                                                                                                                                                                                                                     |
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| checksum         | None                                                                                                                                                                                                                                                      |
...
| file             | /v2/images/bef4a0b5-c987-4fc2-b8fc-454819b6fac9/file                                                                                                                                                                                                      |
| id               | bef4a0b5-c987-4fc2-b8fc-454819b6fac9                                                                                                                                                                                                                      |
| min_disk         | 1                                                                                                                                                                                                                                                         |
..                                                                                                                                                                                                |
| visibility       | private                                                                                                                                                                                                                                                   |
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

But on the samples, createImage didn't return an image object when we create an snapshot of a server:

$image = $server->createImage([
    'name' => '{imageName}',
]);

print_r( $image) // ==> NULL

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant