Public bug reported: GET ‘servers’ API responds with \u escaped Unicode characters even though the request headers specify that the client will only accept UTF-8 encdoding. Both these headers were tried, with same result : “Accept: application/json;charset=UTF-8” and “Accept-Charset: UTF-8”
GET Request: http://172.24.35.1:8774/v2/022bd87dc697494b80ba18867e08049c/servers/detail RESPONSE of GET Request: http://172.24.35.1:8774/v2/022bd87dc697494b80ba18867e08049c/servers/detail {"servers": [{"status": "ACTIVE", "updated": "2017-02-24T00:48:11Z", "hostId": "909fbdf150d0b5ffa82f171b156ffd2fbc50c1a20ea49021cf497139", "OS-EXT-SRV-ATTR:host": "opurl", "addresses": {"\u7f51\u7edc2private_network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:6e:0b:57", "version": 4, "addr": "192.168.100.73", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://172.24.35.1:8774/v2/022bd87dc697494b80ba18867e08049c/servers/2f3d6d1a-d08c-445a-8c88-9d7e34cf4c80", "rel": "self"}, {"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/servers/2f3d6d1a-d08c-445a-8c88-9d7e34cf4c80", "rel": "bookmark"}], "key_name": "chinesekeypair", "image": "", "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-0000005a", "OS-SRV-USG:launched_at": "2017-02-24T00:48:11.000000", "OS-EXT-SRV-ATTR:hypervisor_hostname": "opurl", "flavor": {"id": "1", "links": [{"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/flavors/1", "rel": "bookmark"}]}, "id": "2f3d6d1a-d08c-445a-8c88-9d7e34cf4c80", "security_groups": [{"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "8ba22b00b4884c4da8863681670495ce", "name": "\u5b9e\u4f8b2", "created": "2017-02-24T00:47:57Z", "tenant_id": "022bd87dc697494b80ba18867e08049c", "OS-DCF:diskConfig": "AUTO", "os-extended-volumes:volumes_attached": [{"id": "6347096d-c12a-4776-b1b7-90c9303a131f"}, {"id": "3f8f5452-22be-4986-8b88-5e3f25d0e89a"}], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}, {"status": "ACTIVE", "updated": "2017-02-24T00:46:46Z", "hostId": "909fbdf150d0b5ffa82f171b156ffd2fbc50c1a20ea49021cf497139", "OS-EXT-SRV-ATTR:host": "opurl", "addresses": {"\u7f51\u7edc2private_network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:ab:4c:50", "version": 4, "addr": "192.168.100.72", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://172.24.35.1:8774/v2/022bd87dc697494b80ba18867e08049c/servers/4acccb0f-8e49-4090-8515-bd3e02855d28", "rel": "self"}, {"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/servers/4acccb0f-8e49-4090-8515-bd3e02855d28", "rel": "bookmark"}], "key_name": "chinesekeypair", "image": {"id": "d35e9f02-af5b-4a70-817c-00da24d0c5e7", "links": [{"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/images/d35e9f02-af5b-4a70-817c-00da24d0c5e7", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000059", "OS-SRV-USG:launched_at": "2017-02-24T00:46:46.000000", "OS-EXT-SRV-ATTR:hypervisor_hostname": "opurl", "flavor": {"id": "1", "links": [{"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/flavors/1", "rel": "bookmark"}]}, "id": "4acccb0f-8e49-4090-8515-bd3e02855d28", "security_groups": [{"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "8ba22b00b4884c4da8863681670495ce", "name": "\u5b9e\u4f8b1", "created": "2017-02-24T00:46:37Z", "tenant_id": "022bd87dc697494b80ba18867e08049c", "OS-DCF:diskConfig": "AUTO", "os-extended-volumes:volumes_attached": [{"id": "dd8e7387-28eb-4bc1-9bd2-e6efd5979fa9"}], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}, {"status": "ACTIVE", "updated": "2017-02-24T00:38:52Z", "hostId": "909fbdf150d0b5ffa82f171b156ffd2fbc50c1a20ea49021cf497139", "OS-EXT-SRV-ATTR:host": "opurl", "addresses": {"\u7f51\u7edc2private_network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:e5:57:c3", "version": 4, "addr": "192.168.100.71", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:e5:57:c3", "version": 4, "addr": "172.24.35.10", "OS-EXT-IPS:type": "floating"}]}, "links": [{"href": "http://172.24.35.1:8774/v2/022bd87dc697494b80ba18867e08049c/servers/60ad6b92-c922-488d-a7a4-06696af9f35e", "rel": "self"}, {"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/servers/60ad6b92-c922-488d-a7a4-06696af9f35e", "rel": "bookmark"}], "key_name": "chinesekeypair", "image": {"id": "f3c63770-2d00-4c88-97dc-ac8e718aa1db", "links": [{"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/images/f3c63770-2d00-4c88-97dc-ac8e718aa1db", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000058", "OS-SRV-USG:launched_at": "2017-02-24T00:38:51.000000", "OS-EXT-SRV-ATTR:hypervisor_hostname": "opurl", "flavor": {"id": "3", "links": [{"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/flavors/3", "rel": "bookmark"}]}, "id": "60ad6b92-c922-488d-a7a4-06696af9f35e", "security_groups": [{"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "8ba22b00b4884c4da8863681670495ce", "name": "chineseproxy", "created": "2017-02-24T00:38:36Z", "tenant_id": "022bd87dc697494b80ba18867e08049c", "OS-DCF:diskConfig": "AUTO", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}]} # rpm -qa | grep nova openstack-nova-cert-13.1.2-1.el7.noarch openstack-nova-console-13.1.2-1.el7.noarch openstack-nova-api-13.1.2-1.el7.noarch python2-novaclient-3.3.2-1.el7.noarch openstack-nova-conductor-13.1.2-1.el7.noarch python-nova-13.1.2-1.el7.noarch openstack-nova-scheduler-13.1.2-1.el7.noarch openstack-nova-common-13.1.2-1.el7.noarch openstack-nova-compute-13.1.2-1.el7.noarch openstack-nova-novncproxy-13.1.2-1.el7.noarch Hypervisor: KVM ** Affects: nova Importance: Undecided Status: New -- 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/1672479 Title: Nova servers APIs respond with Unciode ignoring charset in request headers Status in OpenStack Compute (nova): New Bug description: GET ‘servers’ API responds with \u escaped Unicode characters even though the request headers specify that the client will only accept UTF-8 encdoding. Both these headers were tried, with same result : “Accept: application/json;charset=UTF-8” and “Accept-Charset: UTF-8” GET Request: http://172.24.35.1:8774/v2/022bd87dc697494b80ba18867e08049c/servers/detail RESPONSE of GET Request: http://172.24.35.1:8774/v2/022bd87dc697494b80ba18867e08049c/servers/detail {"servers": [{"status": "ACTIVE", "updated": "2017-02-24T00:48:11Z", "hostId": "909fbdf150d0b5ffa82f171b156ffd2fbc50c1a20ea49021cf497139", "OS-EXT-SRV-ATTR:host": "opurl", "addresses": {"\u7f51\u7edc2private_network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:6e:0b:57", "version": 4, "addr": "192.168.100.73", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://172.24.35.1:8774/v2/022bd87dc697494b80ba18867e08049c/servers/2f3d6d1a-d08c-445a-8c88-9d7e34cf4c80", "rel": "self"}, {"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/servers/2f3d6d1a-d08c-445a-8c88-9d7e34cf4c80", "rel": "bookmark"}], "key_name": "chinesekeypair", "image": "", "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-0000005a", "OS-SRV-USG:launched_at": "2017-02-24T00:48:11.000000", "OS-EXT-SRV-ATTR:hypervisor_hostname": "opurl", "flavor": {"id": "1", "links": [{"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/flavors/1", "rel": "bookmark"}]}, "id": "2f3d6d1a-d08c-445a-8c88-9d7e34cf4c80", "security_groups": [{"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "8ba22b00b4884c4da8863681670495ce", "name": "\u5b9e\u4f8b2", "created": "2017-02-24T00:47:57Z", "tenant_id": "022bd87dc697494b80ba18867e08049c", "OS-DCF:diskConfig": "AUTO", "os-extended-volumes:volumes_attached": [{"id": "6347096d-c12a-4776-b1b7-90c9303a131f"}, {"id": "3f8f5452-22be-4986-8b88-5e3f25d0e89a"}], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}, {"status": "ACTIVE", "updated": "2017-02-24T00:46:46Z", "hostId": "909fbdf150d0b5ffa82f171b156ffd2fbc50c1a20ea49021cf497139", "OS-EXT-SRV-ATTR:host": "opurl", "addresses": {"\u7f51\u7edc2private_network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:ab:4c:50", "version": 4, "addr": "192.168.100.72", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://172.24.35.1:8774/v2/022bd87dc697494b80ba18867e08049c/servers/4acccb0f-8e49-4090-8515-bd3e02855d28", "rel": "self"}, {"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/servers/4acccb0f-8e49-4090-8515-bd3e02855d28", "rel": "bookmark"}], "key_name": "chinesekeypair", "image": {"id": "d35e9f02-af5b-4a70-817c-00da24d0c5e7", "links": [{"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/images/d35e9f02-af5b-4a70-817c-00da24d0c5e7", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000059", "OS-SRV-USG:launched_at": "2017-02-24T00:46:46.000000", "OS-EXT-SRV-ATTR:hypervisor_hostname": "opurl", "flavor": {"id": "1", "links": [{"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/flavors/1", "rel": "bookmark"}]}, "id": "4acccb0f-8e49-4090-8515-bd3e02855d28", "security_groups": [{"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "8ba22b00b4884c4da8863681670495ce", "name": "\u5b9e\u4f8b1", "created": "2017-02-24T00:46:37Z", "tenant_id": "022bd87dc697494b80ba18867e08049c", "OS-DCF:diskConfig": "AUTO", "os-extended-volumes:volumes_attached": [{"id": "dd8e7387-28eb-4bc1-9bd2-e6efd5979fa9"}], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}, {"status": "ACTIVE", "updated": "2017-02-24T00:38:52Z", "hostId": "909fbdf150d0b5ffa82f171b156ffd2fbc50c1a20ea49021cf497139", "OS-EXT-SRV-ATTR:host": "opurl", "addresses": {"\u7f51\u7edc2private_network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:e5:57:c3", "version": 4, "addr": "192.168.100.71", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:e5:57:c3", "version": 4, "addr": "172.24.35.10", "OS-EXT-IPS:type": "floating"}]}, "links": [{"href": "http://172.24.35.1:8774/v2/022bd87dc697494b80ba18867e08049c/servers/60ad6b92-c922-488d-a7a4-06696af9f35e", "rel": "self"}, {"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/servers/60ad6b92-c922-488d-a7a4-06696af9f35e", "rel": "bookmark"}], "key_name": "chinesekeypair", "image": {"id": "f3c63770-2d00-4c88-97dc-ac8e718aa1db", "links": [{"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/images/f3c63770-2d00-4c88-97dc-ac8e718aa1db", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000058", "OS-SRV-USG:launched_at": "2017-02-24T00:38:51.000000", "OS-EXT-SRV-ATTR:hypervisor_hostname": "opurl", "flavor": {"id": "3", "links": [{"href": "http://172.24.35.1:8774/022bd87dc697494b80ba18867e08049c/flavors/3", "rel": "bookmark"}]}, "id": "60ad6b92-c922-488d-a7a4-06696af9f35e", "security_groups": [{"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "8ba22b00b4884c4da8863681670495ce", "name": "chineseproxy", "created": "2017-02-24T00:38:36Z", "tenant_id": "022bd87dc697494b80ba18867e08049c", "OS-DCF:diskConfig": "AUTO", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}]} # rpm -qa | grep nova openstack-nova-cert-13.1.2-1.el7.noarch openstack-nova-console-13.1.2-1.el7.noarch openstack-nova-api-13.1.2-1.el7.noarch python2-novaclient-3.3.2-1.el7.noarch openstack-nova-conductor-13.1.2-1.el7.noarch python-nova-13.1.2-1.el7.noarch openstack-nova-scheduler-13.1.2-1.el7.noarch openstack-nova-common-13.1.2-1.el7.noarch openstack-nova-compute-13.1.2-1.el7.noarch openstack-nova-novncproxy-13.1.2-1.el7.noarch Hypervisor: KVM To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1672479/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp