Error: Unable to retrieve the Zun Availability Zones.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zun UI |
Fix Committed
|
High
|
hongbin |
Bug Description
Openstack rocky with horizon installed. Installed Zun and zun-ui and able to create containers using zun commands like openstack appcontainer run , but while using horizon with zun-ui it is giving error as "Unable to retrieve the Zun Availability Zones." when I browse to Container in horizon. The zun list is giving proper output though.
[(keystone_user)]# zun list
+------
| uuid | name | image | status | task_state | addresses | ports |
+------
| 7ba65fcb-
+------
Masked the IP in above output. If I select the option to create a container from UI , it displays "Error: Unable to retrieve the Zun Availability Zones." As admin user if I run cli command it shows availability zone as nova.
[(keystone_admin)]# openstack appcontainer service list
+----+-
| Id | Host | Binary | State | Disabled | Disabled Reason | Updated At | Availability Zone |
+----+-
| 1 | ostk-node2 | zun-compute | up | False | None | 2019-05-
+----+-
Seems like the javascripts under /usr/share/
zun --version
3.3.0
openstack --version
openstack 3.16.2
zun-compute --version
3.1.0.dev55
zun-api --version
3.1.0.dev55
Did all the steps mentioned in installation doc https:/
@Ajith,
According to your attached screenshot, your horizon was not able to access Zun's API at all.
It cannot access both:
* The container API: /containers
* The availability zone API: /availability-zones
However, if you was able to access using CLI (but couldn't access it in browser), then you might want to check the horizon logs to see the real error. The logs are under /var/log/ apache2/ horizon* on Ubuntu.
My best guess is that your Zun endpoint in keystone (i.e. http:// controller: 9517/v1) might not be accessible from browser. You might want to double check that.