$ openstack image create --public --file /home/ubuntu/images/bionic-server-cloudimg-amd64.img bionic-test
500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
* Enable proposed, upgrade python3-glance-store and restart glance-api service
The cosmic package worked for me to. Version info below:
python3- glance- store: archive. ubuntu. com/ubuntu cosmic- proposed/ universe amd64 Packages dpkg/status 26.1-0ubuntu2 500 nova.clouds. archive. ubuntu. com/ubuntu cosmic/universe amd64 Packages
Installed: 0.26.1-0ubuntu2.1
Candidate: 0.26.1-0ubuntu2.1
Version table:
*** 0.26.1-0ubuntu2.1 500
500 http://
100 /var/lib/
0.
500 http://
Test output:
$ juju run --unit glance/0 "apt-cache policy python3- glance- store" glance- store: nova.clouds. archive. ubuntu. com/ubuntu cosmic/universe amd64 Packages dpkg/status
python3-
Installed: 0.26.1-0ubuntu2
Candidate: 0.26.1-0ubuntu2
Version table:
*** 0.26.1-0ubuntu2 500
500 http://
100 /var/lib/
$ openstack image create --public --file /home/ubuntu/ images/ bionic- server- cloudimg- amd64.img bionic-test
500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
* Enable proposed, upgrade python3- glance- store and restart glance-api service
$ juju run --unit glance/0 "apt-cache policy python3- glance- store" glance- store: archive. ubuntu. com/ubuntu cosmic- proposed/ universe amd64 Packages dpkg/status 26.1-0ubuntu2 500 nova.clouds. archive. ubuntu. com/ubuntu cosmic/universe amd64 Packages
python3-
Installed: 0.26.1-0ubuntu2.1
Candidate: 0.26.1-0ubuntu2.1
Version table:
*** 0.26.1-0ubuntu2.1 500
500 http://
100 /var/lib/
0.
500 http://
$ openstack image create --public --file /home/ubuntu/ images/ bionic- server- cloudimg- amd64.img bionic-test ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+ ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+ 68922e461686ef9 36 | 22T07:10: 26Z | eca7aeb5- 4c16-4bb2- ad9a-53acfb3c18 ca/file | 4c16-4bb2- ad9a-53acfb3c18 ca | 9aae58729b818e3 98 | algo='sha512' , os_hash_ value=' be4993640deb7eb 99b07667213b1fe 3a9145df2c0ed5c 72cf786a621fe64 e93fb543cbb3faf a9a130988b684da 432d2a55493c50e 77a9dfe336e7ed9 96be92d9' , os_hidden='False' | 22T07:10: 44Z | ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+
+------
| Field | Value |
+------
| checksum | c8994590c7d61dc
| container_format | bare |
| created_at | 2019-05-
| disk_format | raw |
| file | /v2/images/
| id | eca7aeb5-
| min_disk | 0 |
| min_ram | 0 |
| name | bionic-test |
| owner | 6c8b914f26bc40d
| properties | os_hash_
| protected | False |
| schema | /v2/schemas/image |
| size | 348127232 |
| status | active |
| tags | |
| updated_at | 2019-05-
| virtual_size | None |
| visibility | public |
+------